Closed kkumara closed 3 years ago
Using bluetooth
Hi, how can you know the dbdb00000000 command? Can you know another ones? I try use ble. Thanks
This is part of the si_control.py file
# Define Serial port (over bluetooth) for BMS
ser_blue = serial.Serial(
port='/dev/rfcomm0',
baudrate = 9600,
parity=serial.PARITY_NONE,
stopbits=serial.STOPBITS_ONE,
bytesize=serial.EIGHTBITS,
timeout = 0)
And in /etc/bluetooth/rfcomm.conf put
rfcomm0 {
# Automatically bind the device at startup
bind yes;
# Bluetooth address of the device
device AA:BB:CC:A1:23:45;
# RFCOMM channel for the connection
channel 0;
# Description of the connection
comment "BMS";
}
Any diagram or picture showing how to connect to the bms?