juamiso / ANT_BMS

Python Script for raspberry reading BMS Ant parameters via Bluetooth
39 stars 11 forks source link

How to connect in to the antbms #2

Closed kkumara closed 3 years ago

kkumara commented 4 years ago

Any diagram or picture showing how to connect to the bms?

juamiso commented 4 years ago

Using bluetooth

rdaguerre commented 3 years ago

Hi, how can you know the dbdb00000000 command? Can you know another ones? I try use ble. Thanks

juamiso commented 3 years ago

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";
}