Menu

#369 irtext2udp broken for large pulse durations

Future
closed
None
dup
2025-06-08
2022-03-05
Paul Fox
No

I'm using a clone of irtext2udp (mine is in shell, since I don't have python on my picoreplayer system) to help relay IR codes across my network using the LIRC UDP protocol. To test my rewrite, I ran test data through both it and irtext2udp. It quickly became apparent that irtext2udp is broken as written.

Codes whose duration is less than 32768 are translated correctly into two little-endian bytes, with the high bit set for a pulse.

Codes whose duration is longer should create a pair of zero bytes, again with pulses indicated with the high bit set, followed by 4 bytes (little-endian longword) holding the duration. irtext2udp correctly formulates these 6 bytes, but neglects to output the first two.

Simple patch is attached.

1 Attachments

Discussion

  • Paul Fox

    Paul Fox - 2022-03-05

    There seem to be more problems with irtext2udp than just this. See ticket #379. The patches there include this one, so this can be closed, I guess.

     
  • Sean Young

    Sean Young - 2025-06-08
    • status: open --> closed
    • assigned_to: Sean Young
    • Resolution: na --> dup
     
  • Sean Young

    Sean Young - 2025-06-08

    dup of 370

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.