I have been playing with an sdr dongle to read the signal of my KR-P861 motion sensor. I have the data and am a little bit stuck now. How can I convert the binary data to a homey signal definition?
Playing with SDR is good for general knowledge but of no real use for developing of an app.
Create a signal definition according to the Athom developer site. https://developer.athom.com/docs/apps/tutorial-Signals.html
And then create a Homey app with that signal definition for your devices.
I don’t see why it wouldn’t be. The most difficult part of creating a Homey signal definition is finding the correct timings, and SDR tools are great at automating that (as the screenshot is showing).
If the program can show/export the timings, you should be able to create a Homey signal definition from it.
After reviewing the tutorial Creating a Signal and trying to understand what the numerical values of sof/words were. I guess it should be possible to determine the signal definitions for Homey using Universal Radio Hacker. The modulated ASK signal can be viewed in a demodulated form as shown in the lower part of the screenshot. The timings can be determined by zooming and panning in the tool. Maybe there is a plugin or another app that does this automatically?
Determining the timing is pretty straight forward using the Signal View. Selecting the desired bits in the signal view highlights the signal and displays the total amount of μs/ms for the selected bits. It’s a lot easier than using audacity to determine the timings.
I’m not really sure if the timings are correct but this was the idea.
From that signal definition, and the waveform you posted, it doesn’t look like the signal actually has a SOF or EOF, it just sends the words. Typically, a SOF/EOF has completely different timings.
I did use your tool to generate a signal but wasn’t sure if the result would work with my sensor. Thanks anyways! But I thought it would also be fun to figure out how to decompose the signal by hand and understand how this works.