I recently got a bus pirate 5 from blinkinlabs and updated the firmware to e2429e0. I have these Infrared controlled candles at my sisters place that I wanted to analyse the remote signals with, but irrx crashes the bus pirate and it blinks red and becomes unresponsive, as soon as I use the remote. I think it is NEC and it looks like sigrok / pulseview is able to decode it here (see screenshot).
I don’t have another RPi with me for debugging and I can not take the remote home sadly, so debugging this further might get complicated for me. I did use it successfully on something else that is infrared (great wolf lodge IR wand) and in logic analyzer mode I was able to get the screenshot above and added a sigrok file of one signal.
Your capture has one NEC frame: 34 mark/space pairs, about 290 characters in irrx. That is below both irrx limits that #323 fixes (512 characters of text, 128 pairs), so this frame alone shouldn’t crash it.
irrx only ends a signal after a 65.5 ms gap. If the remote sends the whole frame again every 108 ms while the button is held, two frames make 68 pairs and 585 characters, and on e2429e0 (same IR code as 322c452) that writes past the text buffer. An 84 pair signal did that on a Bus Pirate 6 here: “AIR packet too long”, then it hung on x with the LEDs red. #323 fixes that case.
Could you tell us:
the commands you ran before the crash
whether the terminal printed “AIR packet too long” or a packet before the LEDs started blinking
whether a short tap crashes it too, or only holding the button
Here’s a infrared scan of a short button press, it looks like it is actually sending three packets, not just the one. I was pressing three buttons before and thought it’s from that, but I got it wrong.
Your short press is three full NEC frames 108 ms apart, with 40 ms gaps (00 FF 00 FF, 00 FF 01 FE and 08 B7 00 FF). irrx only ends a signal after 65.5 ms without IR, so it takes the three as one signal of 102 pairs, and on e2429e0 that overflows its 512-character text buffer.
I sent the same three frames into an IR Toy plank on a Bus Pirate 6 with e2429e0: the text ran to the end of RAM, the LEDs blinked red and nothing was printed, like on your board. I couldn’t try it on a Bus Pirate 5.
#323 as it was (c09d201) stopped the crash but only said “AIR packet too long”. It now prints the whole signal: your press comes out as one packet of 102 pairs, and with irrx -f <file> the s key saves it. Could you try this dev build and tell us if it works with your candles? The .uf2 files are in the next comment. Pick the file that matches i: bus_pirate5_rev10.uf2 for a REV10, bus_pirate5_rev8.uf2 for a REV8, bus_pirate5_xl.uf2 for a 5XL.