parnic / node-screenlogic

Pentair ScreenLogic Javascript library using Node.JS
https://www.npmjs.com/package/node-screenlogic
MIT License
53 stars 15 forks source link

RS-485? #2

Closed tagyoureit closed 6 years ago

tagyoureit commented 6 years ago

Parnic,

Are you able to see what messages the RS-485 bus is sending/receiving? For example, I'm really interested in the ControllerConfigMessage and how it translates to a request/response on the serial bus. Let me know if you can see that side of the communications.

It's great you're making progress and I'm trying to understand how (or if) it makes sense to utilize this networking approach in my app.

Tag

parnic commented 6 years ago

Sorry, I didn't see this over the weekend.

This library is meant to interact remotely so I don't have any direct access to a bus on the device. That said, I'm working primarily off network sniffing and decompiling their android app, so it may be possible, but I don't have any reference for how to do it.

tagyoureit commented 6 years ago

Understood... the one thing (ok, one of the things) I'm looking for is how the Screenlogic knows what equipment is on the Intellitouch board (# of circuits, expansion boards, etc etc). I haven't been able to find the correct RS485 packets to do that. If you come across a way to just query those individual components maybe I can use that to see exactly which packets has the same info.

parnic commented 6 years ago

I don't know how to query individual components, but the circuit count and type data is available in the SLControllerConfigMessage code. Maybe that'll help?

edit: oh, right, you pointed that out in your initial comment. Sorry, I don't have any more information than that right now.

tagyoureit commented 6 years ago

I'm still trying to understand the basic relationship between the network messages and RS-485... how does this const MSG_ID = 12532 ID relate to the RS-485 actions. I think this is either message 2 or 40 or 252, but I don't see all of the information that you extract from this message in either of those messages that I can read.

parnic commented 6 years ago

Closing since there's no work for me to do here. Happy to chat about it further if I can be of help! :)