Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help with RBT12100LFP-BT #67

Closed
Brakelmann opened this issue Apr 24, 2024 · 11 comments
Closed

Help with RBT12100LFP-BT #67

Brakelmann opened this issue Apr 24, 2024 · 11 comments

Comments

@Brakelmann
Copy link

Brakelmann commented Apr 24, 2024

Hi,

I tried to get my new Renogy RBT12100LFP-BT working, the example.py throws an error.
The connections seems to be established, but reading values fails.

INFO:root:Init RoverClient: RNGPRO12BATT4600xxxx => 4c:e1:74:49:xx:xx
INFO:root:Adapter status - Powered: True
INFO:root:Starting discovery...
INFO:root:Devices found: 5
INFO:root:Found matching device RNGPRO12BATT4600xxxx => [4c:e1:74:49:xx:xx]
INFO:root:[4c:e1:74:49:xx:xx] Connected
INFO:root:[4c:e1:74:49:xx:x] Resolved services
INFO:root:subscribed to notification 0000fff1-0000-1000-8000-00805f9b34fb
INFO:root:found write characteristic 0000ffd1-0000-1000-8000-00805f9b34fb
INFO:root:subscribed to notification 0000fff1-0000-1000-8000-00805f9b34fb
INFO:root:found write characteristic 0000ffd1-0000-1000-8000-00805f9b34fb
INFO:root:resolved services
DEBUG:root:create_request_payload 12 => [255, 3, 0, 12, 0, 8, 145, 209]
INFO:root:characteristic_enable_notifications_failed
INFO:root:characteristic_enable_notifications_succeeded
INFO:root:characteristic_write_value_failed
WARNING:root:on_data_received: unknown operation=131
^CERROR:root:Exception occured: KeyboardInterrupt
INFO:root:Exit: Disconnecting device: RNGPRO12BATT46000121 [4c:e1:74:49:xx:xx]

Any help is appreciated.
Thanks, Stefan.

@cyrils
Copy link
Owner

cyrils commented Apr 25, 2024

Looks like you use PRO series battery and it has different register values. It will be impossible to figure out the actual values without bluetooth snooping using something like wireshark.

@Brakelmann
Copy link
Author

Ok, thanks for you response.
Renogy has an Android App to connect via BT and read the values.

Would it somhow be possible to sniff the communication between this app and the battery's BMS to get the register values?
Eg with some BT Proxy running on the PiZero?

@cyrils
Copy link
Owner

cyrils commented Apr 25, 2024

Yes you have to use the renogy android app and something like wireshark to capture the traffic to a log file.

@Brakelmann
Copy link
Author

Before I dig deeper into this one more question.
Would it be sufficient to use the internal Bluetooth of the RPI Zero 2W to sniff with wireshark, or do I need an external BT Stick?
e.g.: https://learn.adafruit.com/introducing-adafruit-ble-bluetooth-low-energy-friend/quickstart-guide

Thanks, Stefan.

@cyrils
Copy link
Owner

cyrils commented Apr 25, 2024

You shouldn't be using RPI. Read the traffic from your iOS/Android phone when using the renogy home app. Method differs based on your mobile platform. Ex: Android

@Brakelmann
Copy link
Author

OK, I got it.
Thanks for pointing me there.

@Brakelmann
Copy link
Author

Brakelmann commented Apr 25, 2024

I was able to capture the communication between the phone and battery.
Downloded the capture file and opened it with wireshark.
I was also able to set a filter based on the mac adresses of the phone and battery.

What would be the next steps?

image

@Brakelmann
Copy link
Author

Sent the file to you some minutes ago...

@cyrils
Copy link
Owner

cyrils commented Apr 28, 2024

Hm.. newer renogy devices seems to be using different protocols. Its hard to figure out without owning a device.

@Brakelmann
Copy link
Author

If I can log or test something for you just let me know... maybe we can figure that out working together.

@cyrils
Copy link
Owner

cyrils commented Aug 5, 2024

Closing as unsupported

@cyrils cyrils closed this as not planned Won't fix, can't repro, duplicate, stale Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants