Closed matlock08 closed 11 years ago
Thanks for that F7 decoding.
You welcome, i am also working on the same thing, hope to share more things with your project in the near future
I'm working on getting the green wire to communicate out. But I only get response from the panel 10% of the time. I can't tell if the issue is with timing or with voltage or current.
OK, we are working (and stuck) in the same part.
My research shows that SoftwareSerial API doesn't handle simultaneously send/receive, I tried unsuccessfully to switch to another API http://www.pjrc.com/teensy/td_libs_AltSoftSerial.html (But seems a little bit harder to implement the read of 8E1 on this API). But still i am trying to do it
I get better results if i turn off the Serial.print to debug.
Also i did a refactor of your code to encapsulate the BUS decoding in one library. Will upload the version in my github account in case you want look at it.
You don't need simultaneous read and write. There is a 0.2-1.0ms delay between the yellow wire asking for data and the green wire replying with data. I removed the interrupt in SoftwareSerial to handle it myself, if I'm sending data on the green wire then I do not process yellow wire data. I can put my changes into a branch and commit them.
Added decoding on the F7 messages fields including prompt position, programming mode, ac power indicator as well as destination address.
Hope you find these useful for the project.