• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Relation between raw-output and pulse length
#7
curlymo Wrote:You can clearly see the footer as a long pulse around 6785. So the pulse length of this protocol is around 200.

I'm still a bit puzzled by the raw-output and the actual pulses generated by the transmitter.

Given the pilight-raw output of the alecto_ws1700 protocol:
Code:
540 1890 540 3780 540 1890 540 3780 540 3780 540 3780 540 3780 540 3780 540 1890 540 1890 540 3780 540 3780 540 3780 540 1890 540 1890 540 1890 540 1890 540 1890 540 1890 540 1890 540 3780 540 3780 540 1890 540 1890 540 4050 540 1890 540 4050 540 4050 540 1890 540 1890 540 4050 540 1890 540 3780 540 1890 540 3780 540 3780 540 9180

The footer 9180 divided by 34 (why 34? is that alway's and for all protocols the same divider?) gives a pulse-length of 270 microseconds.
Now, what I read from the numbers is that the protocol looks like this (a dash is a high and a space a low or vice versa) :
Code:
-+     +------+     +-----+     +--------------+     +--------------+     +-----
   540  1890    540   1890  540      3800        540       3800       540

A 540 followed by a 1890 is a "0" and a 540 followed by a 3800 is a "1". In this example there are two "0"s and two "1"s albeit "0011".

Now, what does "the pulse length of this protocol is around 270 microseconds" mean? I clearly see three distinct pulses. One identified by 540, one by 1890 and one by ~3800. I assumed that these numbers where the length of the pulses in microseconds. Which is clearly not the case as I wrote an Arduino program that works with these numbers as microseconds which I measured with a scope and a Logic State analyser to confirm that the lengths are correct .. but pilight does not "see" the transmission.
I'm close to understanding this thinky, but not really..
I just can't figure out how many microseconds the 540 pulse should be, and how many microseconds the other two ('1890' and '3800') should be.

This "not understanding" has kept me awake for night's in a row so if someone would please explain this to me I can finally program my own sensors and get a decend night sleep!! Tongue

Thanks in advance!
 
Reply
  


Messages In This Thread
RE: Relation between raw-output and pulse length - by TheWheel - 02-13-2016, 12:27 AM

Possibly Related Threads...
Thread Author Replies Views Last Post
  pilight-raw changes output format from 7 to 8 Rschnauzer 1 32 11-26-2020, 01:52 PM
Last Post: curlymo
  ERROR: The Broadcom 2835 GPIO 0 is not set to output mode stuckinger 10 2,307 05-07-2019, 09:11 PM
Last Post: curlymo
  Start command/script on pulse receive wous 10 11,267 12-24-2013, 09:39 PM
Last Post: bultje76

Forum Jump:


Browsing: 1 Guest(s)