Open bigbborn opened 3 years ago
On a Raspberry Pi, you plug in one of those VE.Direct to USB cables (really just serial to USB) and use something like the following:
$ python3 examples/vedirect_print.py --port /dev/ttyUSB0
@karioja I'm connected to my Victron devices (2 of them) via Bluetooth then "sudo rfcomm bind 1 $MAC_ADDRESS" to bind to /dev/rfcomm1 and didn't succeed to connect. I get this kind of error:
$ python3 examples/vedirect_print.py --port /dev/rfcomm1
Traceback (most recent call last):
File "examples/vedirect_print.py", line 16, in
But I don't use the serial port anywhere. This connectivity issue is systematic on my 2 devices. I may have done something wrong. Have you experienced something similar and connected via Bluetooth ?
AFAIK the Victron Bluetooth Dongle / Bluetooth enabled devides use a custom protocol. https://community.victronenergy.com/questions/24952/using-bluetooth-to-read-direct-values.html They mention GATT so perhaps the data is available through GATT characteristics.
If you want to connect via bluetooth, check out this repo: https://github.com/birdie1/victron. We have reverse engineered parts of the victron bluetooth protocol for different devices and added the new ble gatt protocol from smartshunt as well.
Nice guys ! thanks for the fast reply. I'll definitely check the links out!
The README does a good job of explaining how to use the Example data, but what do you need to do if you're hooked up directly to the MPPT? (sorry, it's probably very basic, but I'm and extremely new Python developer 😅)