To use Blatann in raspberry? #85
-
Hi Thomas |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Hi,
Refer to layer of this image if you want to install this package on python root path raspbian instead of in docker container. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the info @hientominh, raspberry pi is one platform I haven't had a chance to test out. |
Beta Was this translation helpful? Give feedback.
-
I tried blatann on raspberry pi and installed it. @ThomasGerstenberg However the Bonding information is stored in the package installation path which is not writeable by default.
Seems like this default path cannot be changed when using I would propose to store this in a more standard location like |
Beta Was this translation helpful? Give feedback.
-
Thanks for the feedback @OlafFlebbeBosch, I've created #60 to track that. I've been also meaning to move away from using pickle to store bonding info, will look into that for the next release as well. In the meantime, the bond database loader can be swapped out before opening and point to a different file import os
from blatann.gap.default_bond_db import DefaultBondDatabaseLoader
bond_db_file = os.path.join(os.path.expanduser("~"), ".blatann", "bonding_db.pkl")
device = BleDevice(comport)
device.bond_db_loader = DefaultBondDatabaseLoader(bond_db_file)
device.open() |
Beta Was this translation helpful? Give feedback.
Hi,
You can try docker image https://hub.docker.com/repository/docker/vantixinc/raspberry-pi-pc-ble-driver (vantixinc/raspberry-pi-pc-ble-driver:0.14.2-python3.7.9), it already has pc-ble-driver 0.14.2 with python 3.7.
Requirement: docker and docker cli
Step:
Refer to layer of this image if you want to install this package on python root path raspbian instead of in docker…