tirtho Posted January 27, 2021 Report Share Posted January 27, 2021 I got the debug output from your app, how would I send this out using ir_transmit.c 0,9043,4430,652,1563,651,439,622,465,625,465,622,465,621,465,626,465,621,465,621,469,622,1589,625,1589,626,1589,644,1571,648,1563,626,1590,626,1589,647,1563,652,439,621,465,622,469,621,465,621,465,626,465,622,465,621,469,622,1589,626,1589,622,1589,652,1563,626,1590,621,1590,651,1564,626 :e:40 0,9041,2181,621 Quote Link to comment Share on other sites More sharing options...
jason Posted January 27, 2021 Report Share Posted January 27, 2021 This is an NEC code: This is the timing marker for the button: 0,9043,4430,652,1563,651,439,622,465,625,465,622,465,621,465,626,465,621,465,621,469,622,1589,625,1589,626,1589,644,1571,648,1563,626,1590,626,1589,647,1563,652,439,621,465,622,469,621,465,621,465,626,465,622,465,621,469,622,1589,626,1589,622,1589,652,1563,626,1590,621,1590,651,1564,626 This is the elapsed time in between the next signal it receives: e40 <-- 40ms This is specific to the NEC specification which stands for repeat the last thing you saw: 0,9041,2181,621 Here is the commandline: sendir --pattern=0,153,1231,131 --repeat=3 --ik=32000 So the first is the pattern, how many times we want to repeat the pattern, and the time between the signals. In the case above, it is 0,153,1231,131 (wait 32ms) 0,153,1231,131 (wait 32ms) 0,153,1231,131 But for NEC, it gets tricky, because the follow-up pattern is simply no the first. So for this, we have a few options. Send the first packet only once: flirc_util sendir --pattern=0,9043,4430,652,1563,651,439,622,465,625,465,622,465,621,465,626,465,621,465,621,469,622,1589,625,1589,626,1589,644,1571,648,1563,626,1590,626,1589,647,1563,652,439,621,465,622,469,621,465,621,465,626,465,622,465,621,469,622,1589,626,1589,622,1589,652,1563,626,1590,621,1590,651,1564,626 Send the first packet a few times: flirc_util sendir --pattern=0,9043,4430,652,1563,651,439,622,465,625,465,622,465,621,465,626,465,621,465,621,469,622,1589,625,1589,626,1589,644,1571,648,1563,626,1590,626,1589,647,1563,652,439,621,465,622,469,621,465,621,465,626,465,622,465,621,469,622,1589,626,1589,622,1589,652,1563,626,1590,621,1590,651,1564,626 --ik=40000 --repeat=3 Or alter the signal so that the first includes the repeat signal. The initial 0 is the timing marker, we remove that, so it becomes: 0,9043,4430,652,1563,651,439,622,465,625,465,622,465,621,465,626,465,621,465,621,469,622,1589,625,1589,626,1589,644,1571,648,1563,626,1590,626,1589,647,1563,652,439,621,465,622,469,621,465,621,465,626,465,622,465,621,469,622,1589,626,1589,622,1589,652,1563,626,1590,621,1590,651,1564,626 + 40000 + 0,9041,2181,621 -> flirc_util sendir --pattern=0,9043,4430,652,1563,651,439,622,465,625,465,622,465,621,465,626,465,621,465,621,469,622,1589,625,1589,626,1589,644,1571,648,1563,626,1590,626,1589,647,1563,652,439,621,465,622,469,621,465,621,465,626,465,622,465,621,469,622,1589,626,1589,622,1589,652,1563,626,1590,621,1590,651,1564,626,40000,9041,2181,621,40000,9041,2181,621,40000,9041,2181,621 Quote Link to comment Share on other sites More sharing options...
tirtho Posted February 8, 2021 Author Report Share Posted February 8, 2021 I ended up getting this working, on my own just realised you posted this thx for the info. Whats interesting is the --pattern= syntax is not liked by the latest git debug compilation not sure if something changed. in anycase I figured it out and posted a how to on how to turn on my heater, I have a few other applications. thx Quote Link to comment Share on other sites More sharing options...
frame86 Posted January 14 Report Share Posted January 14 This is a nice how to and I know the topic is a little bit older but could @jason please explain how to interprete the pattern? I want to understand the output. > This is specific to the NEC specification which stands for repeat the last thing you saw: 0,9041,2181,621 How do you know that? How to transcode the integers into the modulation logic 0 and 1? I can't find this information. My guess according the NEC specification about the repeat code: 9041 is ~ 9ms burst 1 2181 is ~ 2.25ms space 0 621 is ~ 0.5625ms burst 1 So that is that just the raw modulation with some noise? But according the protocol, the timing for the repeat codes is only 40ms after the initial message and then switches to 108ms incl. the repeat code time, so I'm still not sure if I see this correctly. And a new pattern must always start with 0? Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.