Exporting IR Data to any Arduino format only works 2 times? #502
Replies: 4 comments 1 reply
-
Hi, first, please confirm that you are using the latest versions of IrScrutinizer (2.4.0 or the snapshot) and Infrared4Arduino (1.2.3, available in the Arduino library manager). Support for IRRemote is presently broken, see #444, so we leave that out until we have fixed that. Assuming that everything is the latest version, please post the broken export (preferably as gist). |
Beta Was this translation helpful? Give feedback.
-
Thank you for the reply. I verified I am using IrScrutinizer 2.4.0 and Infrared4Arduino 1.2.3. I went through the process again and have posted the code in this gist for you to look at. Here is my process:
UPDATE: In the course of gathering this data, the Uno board started working after an upload! I was able to execute 20+ cycles of IR commands without a hang. However, after connecting the Uno Every board to try it, I no longer can get the Uno to work. Back to hanging after 2-3 sends. Thinking this might be a buffer issue, I manually edited the IR command data for the line below with a smaller data set:
I first tried to substitute the REPEAT data below which is short { 9024U, 2256U, 564U, 65535U } for the INTRO data. That works! No hang. Then I tried to edit the INTRO data and although some edits works (no hang), others do not. For example, I hope with this information, you are able to resolve the problem. I will continue to explore on my end. This is the ultimate solution for my needs. It's very frustrating to be so close. Thank you very much for your extensive, high-quality contributions in this area! Paul Stary |
Beta Was this translation helpful? Give feedback.
-
Thank you for the description. It looks quite OK. I'll test if I can reproduce, but not today... The canonical assumption is a memory leak. |
Beta Was this translation helpful? Give feedback.
-
I was able to reproduce your issue. However, earlier this year, I rewrote that export format, junking the combined IRremote/Infrared4Arduino version and replaced with a version for Infrared4Arduino only. This is not yet in a released version, but in the snapshot. This appears to work fine. So, please download and try the snapshot version. (If you need the setup.exe version, just tell me.) |
Beta Was this translation helpful? Give feedback.
-
I have successfully imported a Global Cache IR command and converted it to Arduino Raw using the Export option. The resultant Sketch works great except it only allows me to send the IR command twice and then hangs somewhere in a library file. I have tried to look at these linked files but don't have the skill to understand what could be causing the hang.
Also, ALL of the (3) possible Arduino Export Sketches (Arduino Raw, Arduino/Infrared4Arduino and Arduino/Remote) have this same exact problem... only two sends and hang on both an Arduino Uno and Arduino Uno Every board.
Is this normal? I doubt it as the only way to use the Sketch for more than 2 sends is to reboot the Arduino.
IrScrutinizer has delivered on every step along my path except this final output result. Very frustrating! BTW, the IR command that is sent twice works perfectly!
Does anyone have a clue what is happening here?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions