Decoding ASK/OOK pulstrain
KidE
Posts: 29
Hi All,
I'm setting my 1st steps in wireless and asfter a few days of banning my head i'm hitting rock bottom here.
I have a 868Mhz ASK receiver from ELV which receives multiple pulstrains in different modulations on the 868,3MHz band. http://www.elv-downloads.de/service/manuals/RX868_3V/RX868_3V_UM_G_080527.pdf
As i've understood so far the module data out is a 8E1 which the BS2 cannot decode directly due to an unsupported SERIN mode.
Here my 1st problem: As i understood from the protocol description i have is that high pulses (1) are 600µs High, 600µs Low and low pulses (0) 400µs High, 400µs Low
Since there are multiple pulstrains which vary in modulation (high low duration is modulation right?) how can SERIN detect that a high is 600-600 and a low is 400-400 among the the other pulses? Or is using SERIN a totally wrong approach here?
At jeelabs i found masses of info and as i understood he uses a Serial.Begin statement and after that he measures the puls width.
A small push in the right direction would be appreciated before my forehad gets totally blue.
Ernst
I'm setting my 1st steps in wireless and asfter a few days of banning my head i'm hitting rock bottom here.
I have a 868Mhz ASK receiver from ELV which receives multiple pulstrains in different modulations on the 868,3MHz band. http://www.elv-downloads.de/service/manuals/RX868_3V/RX868_3V_UM_G_080527.pdf
As i've understood so far the module data out is a 8E1 which the BS2 cannot decode directly due to an unsupported SERIN mode.
Here my 1st problem: As i understood from the protocol description i have is that high pulses (1) are 600µs High, 600µs Low and low pulses (0) 400µs High, 400µs Low
Since there are multiple pulstrains which vary in modulation (high low duration is modulation right?) how can SERIN detect that a high is 600-600 and a low is 400-400 among the the other pulses? Or is using SERIN a totally wrong approach here?
At jeelabs i found masses of info and as i understood he uses a Serial.Begin statement and after that he measures the puls width.
A small push in the right direction would be appreciated before my forehad gets totally blue.
Ernst
Comments
-Phil
How would you decode such a string?
My idea was something like this:
But if i do this i already miss the 1st 0
How would you capture such a pulstrain and analyze it after buffering?
Once data reception begins, an example of buffering the bits might go something like this (untested):
I could be wrong, but I seriously doubt that the BASIC Stamp will be fast enough to pull this off.
-Phil
I modded and tested the code and iḿ not confident that the BS2 will be able to do what i want.
What would be a good option for transition here. Should i replace my BS2 for a BS2px-IC which can execute 19000 instead of 4000 instructions per second or think further and switch to the propeller?
-Phil