User Tools

  • (equal to forum credentials)

Site Tools


praw

pilight-raw

Please note: To avoid conflicts, pilight-raw requires that you terminate the pilight-daemon service.

pilight-raw will output raw numbers representing the time difference in µs (microseconds) between a low-to-high or a high-to-low transition forming a pulse. Depending on the protocol code a set of multiple pulses, typically two or four pulses, are representing a logical ZERO or ONE condition. A pulsetrain is a series of logical bits normally terminated by a footer pulse (last long distinct pulse).

pilight-raw can print raw data in two different formats:

pilight-raw -L or pilight-raw –linefeed:

....
433gpio: 1180 590 590 1180 1180 590 1180 590 1180 590 590 1180 590 1180 1180 590 1180 590
590 1180 1180 590 590 1180 590 1180 590 1180 590 1180 590 1180 1180 590 1180 590 
1180 590 1180 590 590 1180 590 1180 590 1180 590 1180 590 1180 590 1180 1180 590 
590 1180 590 1180 1180 590 590 1180 1180 590 590 6785 -#: 66
....

pilight-raw:

....
433gpio: 1180 
433gpio: 590 
433gpio: 590
433gpio: 1180
433gpio: 1180
....
433gpio: 590 
433gpio: 6785
....
....

The footer of the code divided by 34 is the pulse length in microseconds (in the above example the footer pulse has a duration of 6785 µs, thus the pulse length is approximately 6785 / 34 ≈ 200 µs).

Raw code can be used to control the device using pilight-send:

sudo pilight-send -p raw --code="1180 590 590 1180 1180 590 1180 590 1180 590 590 1180 590 1180 1180 590 1180 590 590 1180 1180 590 590 1180 590 1180 590 1180 590 1180 590 1180 1180 590 1180 590 1180 590 1180 590 590 1180 590 1180 590 1180 590 1180 590 1180 590 1180 1180 590 590 1180 590 1180 1180 590 590 1180 1180 590 590 6785"

NOTES:

If you use non approved receiver modules and no Low Pass Filter (LPF), pilight picks up a lot of noise. See wiki for recommended receivers and forum for information about hardware filter But notice: 433 MHz transmission is based on OOK (ON-OFF-Keying) of a 433 MHz RF-carrier, the result is a square signal with sharp rising/falling edges. One can only suppress rising/falling edges based on the knowledge that the minimum distance between rising/falling edges is approximately 100µS and simply ignore transitions with shorter durations.

praw.txt · Last modified: 2016/12/06 14:17 by andies