Jump to content
Flirc Forums

[Bug] sendir --raw not functional after flirc_util upgrade to 3.27.5


drikanis

Recommended Posts

Hi, I'm having an issue with sendir in flirc_util after updating the flirc package to 3.27.5. The code (if it's being sent at all) is not recognized by the device I'm trying to control with it. Works fine with 3.27.4.

  • OS: OSMC (raspbian 11.8)
  • FW Version: v4.6.5v4.6.5
  •    SKU:     Flirc 2.0 [dori]
  •    Branch:  master
  •    Config:  release
  •    Hash:    0x18BBFCFA

3.27.4 (works and code is recognized by receiving device):

$ flirc_util sendir --raw='+9014 -4405 +535 -560 +588 -1615 +587 -508 +587 -1611 +587 -1611 +592 -1611 +587 -508 +587 -1615 +588 -508 +587 -482 +627 -464 +588 -508 +587 -483 +557 -1645 +609 -482 +588 -1611 +561 -538 +588 -482 +613 -1611 +587 -1611 +592 -508 +587 -478 +587 -1615 +609 -482 +592 -1611 +561 -1641 +609 -487 +587 -503 +592 -1611 +587 -1611 +592 -504 +591 -1611 +588' --repeat=2
Transmitting IR Pattern...
+9014 -4405 +535 -560 +588 -1615 +587 -508 +587 -1611 +587 -1611 +592 -1611 +587 -508 +587 -1615 +588 -508 +587 -482 +627 -464 +588 -508 +587 -483 +557 -1645 +609 -482 +588 -1611 +561 -538 +588 -482 +613 -1611 +587 -1611 +592 -508 +587 -478 +587 -1615 +609 -482 +592 -1611 +561 -1641 +609 -487 +587 -503 +592 -1611 +587 -1611 +592 -504 +591 -1611 +588
-15000
Done!

3.27.5 (error and code is either not sent or not recognized by receiving device):

$ flirc_util sendir --raw='+9014 -4405 +535 -560 +588 -1615 +587 -508 +587 -1611 +587 -1611 +592 -1611 +587 -508 +587 -1615 +588 -508 +587 -482 +627 -464 +588 -508 +587 -483 +557 -1645 +609 -482 +588 -1611 +561 -538 +588 -482 +613 -1611 +587 -1611 +592 -508 +587 -478 +587 -1615 +609 -482 +592 -1611 +561 -1641 +609 -487 +587 -503 +592 -1611 +587 -1611 +592 -504 +591 -1611 +588' --repeat=2
Transmitting IR Pattern...
+9014 -4405 +535 -560 +588 -1615 +587 -508 +587 -1611 +587 -1611 +592 -1611 +587 -508 +587 -1615 +588 -508 +587 -482 +627 -464 +588 -508 +587 -483 +557 -1645 +609 -482 +588 -1611 +561 -538 +588 -482 +613 -1611 +587 -1611 +592 -508 +587 -478 +587 -1615 +609 -482 +592 -1611 +561 -1641 +609 -487 +587 -503 +592 -1611 +587 -1611 +592 -504 +591 -1611 +588
-15000
[E] lib/libflirc/firmware/fw_4.2.c _fl_transmit_raw(59): Value less than 40ms, increasing
Done!

 

Link to comment
Share on other sites

  • 11 months later...

I see the same result with flirc_util 3.27.15+ and the following Flirc 2.0 USB firmwares:

v4.9.6

v4.10.5

The workaround is to transform the "raw" codes into CSV, this can be done with the following command (Linux):

raw="+9014 -4405 +535 ..... <rest of raw string>"

csv=$(echo 0"$raw" | sed 's/ \?[+-]/,/g')

flirc_util sendir --raw="$csv"

Note the prefixed '0'.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...