You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have written a simple IR test based on the CPE tutorial. It sends a list of 4 values and processes received data.
I am using the RPi PICOS with the Adafruit LED Emitter and 38kHz Receiver.
I am observing two problems.
the receive data is missing two values at the end. They represent the first value of a bit followed by the trail value. In my example, this is 600 and 0.
the received data is the 1s compliment of the send data. i.e. sending 255 receives 0; sending 251, receives 4.
Note: the 1s complement issue is an error in the CPX learning guide. A separate issue has been opened for the guide. The code below has been updated to the correct format.
Workaoround for missing values: Set the trail value to something (eg 100 or 255). Now the receiving end gets a full message plus a bad pulse. Test the pulse count and skip processing if it is too small. Sample code below has been updated.
@bradanlane
I sent a PR two weeks ago ( #68 ) that addresses this issue. The samples in this repository should be fine, but I think the CPX learning guide is still intact. Sorry, but I don't know how to request a fix.
I have written a simple IR test based on the CPE tutorial. It sends a list of 4 values and processes received data.
I am using the RPi PICOS with the Adafruit LED Emitter and 38kHz Receiver.
I am observing two problems.
trail
value. In my example, this is600
and0
.the received data is the 1s compliment of the send data. i.e. sending 255 receives 0; sending 251, receives 4.Note: the 1s complement issue is an error in the CPX learning guide. A separate issue has been opened for the guide. The code below has been updated to the correct format.
Workaoround for missing values: Set the
trail
value to something (eg 100 or 255). Now the receiving end gets a full message plus a bad pulse. Test the pulse count and skip processing if it is too small. Sample code below has been updated.Here is the code:
The text was updated successfully, but these errors were encountered: