OFF TOPIC - Some help/idea needed with a similar project #457
Replies: 2 comments 8 replies
-
|
Hi @GSzabados sure, I'm just confused about what you want to know. How to read the electrical signals with an ESP? Or how to decode the signals in theory? |
Beta Was this translation helpful? Give feedback.
-
|
I should have done a bit more research on your code, before asking this question. I had the impression, that you had to write from low-level up the whole communication of the device, but I just realised after looking at the code (finding the right file), that you do use a standard serial communication. Unfortunately my alarm uses some old "proprietary" serialised communication. First I though, it might be I2C, but it isn't. Some things looks similar, but it is not I2C. I have some ideas generally how to do this, I just miss the experience coding an ESP device to do it the right way. 😃 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
@visualapproach, I am reaching out to you, because I am just starting to work on a quite similar project. I have an alarm panel which communicates in a similar way to the keypad attached to it. It has a DATA and CLK line to the keypad, which had 15 LEDs representing triggered sensors and zones and alarm states.
I have managed to hook up a Pololu 2595, 4-channel logic level shifter to these lines and record the signal with a logic level analyzer.
It looks like something like this.
My next step would be to decode the DATA to ones and zeros and then match each bit (bit pair) with the corresponding LED. I am not looking for control (yet), I just want to feed in the sensor state through MQTT to Home Assistant.
Could you please advise where to start looking at for the synchronous decoding (code) of the CLK and DATA with an ESP? The clock seems to be 2kHz, and the DATA can be all four possible state pairs during a clock period. The length of the signal is 32bits.
Any advise would be appreciated! Many thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions