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

Support over BT #44

Closed
Anto79-ops opened this issue Oct 20, 2021 · 4 comments
Closed

Support over BT #44

Anto79-ops opened this issue Oct 20, 2021 · 4 comments

Comments

@Anto79-ops
Copy link

Hi, great feature here!

Any way this can work over bluetooth (BT-1 and BT-2) instead of using the cable? Like Raspberry Pi blupy as the data logger?

@retrodaredevil
Copy link
Member

I currently don't know of any way this could work over Bluetooth. It's probably possible, but I won't add support for it because:

As far as I know, Renogy's Bluetooth stuff is proprietary, so getting data off of their Bluetooth stuff would probably require reverse engineering it by decompiling their Android app and seeing what they do. (I don't think reverse engineering their Bluetooth stuff is worth the time.)

Also, I know that people have complained about the reliability of the BT-1 with their phones, so I really wouldn't want to count on that to be reliable, especially if we had to reverse engineer it. The BT-2 might be better, or it might just be the same technology with a different connection, I'm not sure.

@Anto79-ops
Copy link
Author

Anto79-ops commented Dec 20, 2021

Hi, just wanted to follow up on this, looks like there is a way to get this work over the bluetooth module, BT-1. Please see this thread:

https://diysolarforum.com/threads/renogy-devices-and-raspberry-pi-bluetooth-wifi.30235/

Seems to work well with the Rover and BT-1. Any ides how to get this to work with BT-2 modules (i.e. battery/inverters)? Your input would be greatly apprecaited on the forum.

@retrodaredevil
Copy link
Member

That's cool that people are figuring out how to read from the bluetooth. I didn't realize someone already reverse engineered that for Rengoy BT.

I don't know how to get it to work with BT-2 modules. Like I said, I don't know if the BT-1 and BT-2 modules do the same thing (just with a different connection). I would have guessed that BT-1 and BT-2 modules are pretty similar, but if people cannot get BT-2 modules to work with software that works with BT-1 then I guess that might prove that wrong.

I've had brief looks at the Renogy DC Home's decompiled code, and from what I can tell, BT-1 and BT-2 modules are treated the same in the code. I'm only aware of the app treating some registers differently for the DCDC Dual Input Charger, but that isn't bluetooth related. SolarThing also has to treat some of the registers differently for DCDC controllers.

I imagine that once you establish connection with a bluetooth module, you don't have to treat it differently based on if it is a battery, inverter or charge controller. From what I can tell, the bluetooth module is just an interface around making modbus requests to the controller. Batteries, inverters, and charge controllers all have different modbus documents, meaning that most of their registers are different from each other. Again, this isn't bluetooth related, but I figured it's worth mentioning.

Also the decompiled Renogy DC Home code is some of the ugliest code I've ever seen (I think some of it is obfuscated), so I could have easily missed something.

Thanks for asking for my input. This is interesting stuff. I'll be watching that thread and might reply if I think there's anything useful I can add.

@Anto79-ops
Copy link
Author

Sounds good, even your reply already helped! Hopefully, with enough brain-power and expertise like yours, we can get it to work!

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