Jump to content
Flirc Forums

Search the Community

Showing results for 'SendIR command'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Flirc forums
    • Skip
    • Raspberry Pi Cases
    • Flirc USB
    • Flirc USB Gen1
    • Jeff Probe

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Location


Interests

  1. Hello, this might not be the correct forum, but it looks like a bug... The "Toggle Fullscreen" command in the Logitech Harmony Remote Profile of Flirc Media Player Kodi preset does send '#' instead of '\'. Greets
  2. Looking at the ipad logs, this does look suspicious (see text in bold): Date/Time: 2022-08-21 08:57:49.762 -0600 End time: 2022-08-21 09:02:25.724 -0600 OS Version: iPhone OS 15.6.1 (Build 19G82) Architecture: arm64e Report Version: 35.1 Incident Identifier: 69EE6824-8C85-46ED-B9BF-2A55AD464A6C Share With Devs: Yes Data Source: Microstackshots Shared Cache: FA21C079-94F7-35A0-B38A-8B4CEF88650F slid base address 0x180538000, slide 0x538000 Command: backboardd Path: /usr/libexec/backboardd Architecture: arm64e Parent: launchd [1] PID: 66 Event: wakeups Action taken: none Wakeups: 45001 wakeups over the last 276 seconds (163 wakeups per second average), exceeding limit of 150 wakeups per second over 300 seconds Wakeups limit: 45000 Limit duration: 300s Wakeups caused: 45001 Wakeups duration: 276s Duration: 275.96s Duration Sampled: 274.89s Steps: 318 Hardware model: iPad14,1 Active cpus: 6 HW page size: 16384 VM page size: 16384 Advisory levels: Battery -> 2, User -> 3, ThermalPressure -> 0, Combined -> 2 Free disk space: 110.13 GB/238.40 GB, low space threshold 150 MB
  3. Here is the full listing of Pronto hex codes for Flirc. I used the specification provided by Jason to write an command line utility to generate Pronto hex codes. I've tested them on my Nvidia Shield and they seem to work fine. I was able to control the Shield by directly sending Flirc commands with my IP to IR flasher and not requiring any configuation of Flirc, it's just plug and play. This should make things easier for those that have more sophisticated IR controllers. I've attached the listings of all the codes for each device. I've even included commands that don't exist yet. Use the Flirc IR Documentation (above) to find the command you want then look up the code for it using the device ID and command ID. The Pronto codes follow the command identifier in square brackets. Here is the link to my utility on gihub: https://github.com/rossmacgregor/FlircProntoCodes FlircProntoCodes.zip
  4. Hi, Is there a possibility to program a "pause in time" when programming a macro, for example: programming a macro with "F10" then a "pause for a second or two" and then "F11" There are a limited set of commands that are available when programming with command line (long press and macros) (return, enter, escape, backspace, delete, tab, space, F[1-12], printscreen, scroll, pause, insert, home, pageup, pagedown, end, right, left, down, up, wake, media keys: eject, vol_up, vol_down, mute, play/pause, stop, fastforward, rewind) Will there be a possibility to program multiple commands with command line, for example "shift + F12" or "alt + F4" and will there be more programmable commands like "windows key" in the future? Best regards, //Peter
  5. Hi all, Sorry if this was asked before- I searched but did not find anything to help me. I "managed" to program the Flirc USB to operate Fire TV stick, using Roku commands programmed into my Universal Remote MX-780. Everything works as it should. The Fire TV came with a basic remote, without "Netflix" or "YouTube" buttons. However, I see that Amazon now sells Fire TV remotes that have those buttons. For now, I programmed the "YouTube" command as a macro that has all power commands for my equipment and then calls for "1 sec. delay, home, Right x 3, enter", because the app is located first in the front row. However, this is a long command, so I would to have more "elegant" solution ...if at all possible. Thanks
  6. I thought all Fire TV remotes had the Netflix button. It’s surprising to find out some of them don’t. And it seems that this is the only way you can use this command. I doubt there is an easier way to write this command, but I am not a professional and might be wrong. I have not been watching regular Netflix for a long time because of the quality of content and the prices. I prefer using ซีรี่ย์ Netflix instead because they have more movies there, and I can choose whatever one I want. It’s not cool to be a pirate, but sometimes I just do not have any choice. If the company offered better prices, I would think about subscribing.
  7. Seems like the problem with this method is that you couldn't stop the Fire TV from listening, so every command you sent to the HTPC would also go to the Fire TV. Easier solution is to use a universal remote, like the Skip 1s by Flirc, then use that to control everything. Then the Fire TV and HTPC could each have unique commands.
  8. You can flip from the Kodi profile to the Keyboard profile and train a remote button to enter the S command. edit: Oh, or are you saying you use that now, but it'd be nice if the Kodi profile did that without needing to switch? If so, fair point.
  9. The idea is for the Skip to support any possible command supported by the receiver. If the receiver, in this case, is a USB Flirc, then every command from the Flirc should be drag and droppable onto the Skip, including a full keyboard. At that point, the limiting factor is just the number of buttons on the Skip itself, which obviously isn't 104/5. If your goal is for the Skip to instead support LIRC inputs, well, there's a reason the company is called FLIRC.
  10. I'm trying to make sure we're on the same wave length here. Do you know what the Flirc USB is and that it can translate any IR input into any command - keyboard or otherwise - your computer can accept via USB? Given the existence of the Flirc USB, the need for the Kodi Keymap editor is likely nonexistent in a Skip + Flirc USB combo.
  11. I have a Flirc V2 running on a raspberry pi headless. Using the device log when I press the increase temperature button I get this (I just press the button one time but get what looks like to me to be two outputs): :e:0 371,454,375,454,372,453,372,453,372,423,406,424,405,424,406,484,354,454,375,454,371,454,376,454,371,454,1226,484,353,454,1226,454,371,458,371,454 :e:0 376,454,371,449,380,458,371,429,396,453,372,453,371,450,384,454,371,454,375,454,371,454,371,454,371,424,1264,454,371,454,1230,450,379,454,376,423 I am now trying to use the sendir command like this: flirc_util sendir --pattern="371,454,375,454,372,453,372,453,372,423,406,424,405,424,406,484,354,454,375,454,371,454,376,454,371,454,1226,484,353,454,1226,454,371,458,371,454" --repeat=1 --ik=40000 and I get this error: [E] util/flirc_util/src/cmds/ir_transmit.c sendir(101): Error: buffer should lead with zero But if I add a zero at the beginning like this, I get a different error: flirc_util sendir --pattern="0,371,454,375,454,372,453,372,453,372,423,406,424,405,424,406,484,354,454,375,454,371,454,376,454,371,454,1226,484,353,454,1226,454,371,458,371,454" --repeat=1 --ik=40000 [E] util/flirc_util/src/cmds/ir_transmit.c sendir(96): Error: invalid length, must be even I also tried recording the on/off button with similar results. I noticed the codes are always a little bit different everytime. Do you have any suggestions? Is controlling a minisplit something the Flirc can do? Thanks for the help!
  12. i dont understand (just to be clear).. Unplug the device, Push the button, Plug it in while holding the button. continue holding the button while executing the command?
  13. I am trying to build the SDK on an M1 MacMini 2020 adn here is the results I am getting: xx@tvs-Mac-mini cli % make flirc_util [BUILDING] flirc_util.debug [CC] src/main.c [CC] src/prepost.c [CC] lib/logging.c [CC] lib/getline.c [CC] lib/dict.c [CC] lib/cmds.c [CC] lib/cmds_script.c [CC] lib/cmds_shell.c [CC] src/cmds/version.c [CC] src/cmds/flirc_cmds.c [CC] src/cmds/ir_transmit.c [LINK] buildresults/Darwin_arm64/cc/flirc_util/debug/flirc_util ld: warning: directory not found for option '-L../libs/Darwin_arm64/' ld: library not found for -lflirc clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [buildresults/Darwin_arm64/cc/flirc_util/debug/flirc_util] Error 1 make[1]: *** [debug] Error 2 make: *** [flirc_util] Error 2 I guess the Darwin_arm64 version of the library doesn't exist. I was wondering if there are any work arounds for this.
  14. I see everyone saying you can setup the flirc se with the command line utility to power on a streacom pc from off but how exactly do you do that and i mean if someone could please provide step by step instructions. Since this is not in the gui this is pretty confusing.
  15. Use this guide to derive the HID page and key code of an HID event device or original remote connected e.g. via USB, I2C or Bluetooth to a Linux PC, or to verify that your Flirc actually sends the events you expect. HID page and key code can be grabbed under Linux following these steps: 1. Find the event devices associated with your HID devices using "udevadm info -a <device>" with <device> walking through /dev/input/event*. There might be multiple devices for a single hardware component, e.g. for a Harmony Hub there is one for HID mouse events, one for HID keyboard events, one for HID consumer control events, one for HID system control events, ... 2. Monitor the desired event devices (usually requires root) using "sudo evtest [--grab<] <device>" for each device required. The optional parameter "--grab" is essential if you want to stop the recorded events to be forwarded to and interpreted by the system, like I did to stop my system going into standby whenever I sent the sleep event that I wanted to record. If you want to use "--grab" on your local keyboard or such, you might want to either attach a second keyboard or run the command over the network via SSH, so you can abort the monitoring by sending Ctrl+C. 3. Perform the key presses on the device you want to record. Each key press will emit 2 events, one for key down (press), one for key up (release), example output for the "0" key: Event: time 1593381762.020128, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70027 Event: time 1593381762.020128, type 1 (EV_KEY), code 11 (KEY_0), value 1 Event: time 1593381762.020128, -------------- SYN_REPORT ------------ Event: time 1593381762.020198, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70027 Event: time 1593381762.020198, type 1 (EV_KEY), code 11 (KEY_0), value 0 Event: time 1593381762.020198, -------------- SYN_REPORT ------------ 4. Interpret the output; you are interested in the value of the MSC_SCAN (scancode) of EV_MSC (miscellaneous) events. The value is hexadecimal and for HID devices with the last 4 digits being the HID key code (0x0027) and leading digit(s) the HID page (0x07). 5. HID page 0x07 events (HID keyboard) can be programmed using "flirc_util record_api <modifiers> <key code>", where <key code> is the decimal representation of the HID key code you fetched above (e.g. 0x27 = 39), and <modifier> is a logical or-ed list of modifier keys to be held down while <key code> is sent (see "flirc_util help record_api"). I ran into an intentional limitation of flirc_util, limiting <key code> to values <= 101. Unfortunately, flirc_util silently programs the key anyway without a warning, leaving a key that is never sent. This cost me a lot of time while trying to send the correct codes to my hardware, being the Flirc the culprit by never sending the programmed keys. Jason is currently checking whether the limitation will be removed.
  16. I picked up a flirc as it was the only USB IR transceiver available online in my area and I wanted to do some experiments with home automation on a handful of devices that use infrared remotes, specifically LED lighting and an air conditioner. I've had great success with the lights and was able to reverse engineer the remote and write scripts to control them with the flirc. The air conditioner is a different story. Air conditioner remotes send huge packets with all of the current settings for the device. Unfortunately, this means the signal sent by my remote is more than 100 edges and flirc stops early and returns an error - I can't see the whole packet to reverse engineer it! Additionally, from my testing, it seems the firmware limits transmitted packets to 100 edges as well, so even if I could figure out the format, I wouldn't be able to send it back to the air conditioner - no bueno. Is there any possibility of being able to receive, or at least print to the debug log, more than 100 edges? Same for improving the transmit command to support longer packets? 100 seems like a very arbitrary choice, rather than something that was specifically called for based on available RAM on the device.
  17. Hey All, Noob here, trying out new things. I am attempting to set up a magic mirror and would like to use my HomeBridge Broadlink IR blaster to shutdown my raspberry pi when I leave the house. If I set up the broadlink to send just the simple power command, if the pi is already off, the broadlink will turn the pi on when I leave the house- which defeats the purpose of trying to save energy. Before I buy it, can I program a Flirc USB IR Receiver to just send a shutdown command? and is there a guide that anyone can link to me please? Thanks!
  18. hi thanx i knew of sendir but it still didnt send via that theres a few posts that might help you if you can actually send from flirc app i cant never mind trying cmd but heres some links for you http://forum.flirc.tv/index.php?/search/&q=SendIR command &search_and_or=or&sortby=relevancy theres 4 diff links there only 3 did as posts
  19. Hello! I am about to use the SDK for that purpose. If the CWD could do it, it would be just wonderful - but my research so far suggests: No, only possible by calling API-function: fl_transmit_raw() I hope I am wrong and somebody knows a trick how to send using CMD. Thanks! UPDATE: Just found that a recent version of the CMD-tool does have some (slow?!) sending-command: flirc_util.exe help sendir But this is new (great) info for me and I need to test. I think slow does not matter in my case. So that would be great if it worked. Somebody knows more?!
  20. Need Help When I try to use the flric_util.exe on any option I get corrupted data. here is an example: c:\Program Files (x86)\Flirc>flirc_util.exe record escape Press any button on the remote to link it with 'escape' [E] lib/libtransport/transport.c _dev_send_cmd(223): Wrong response: 'getversion' Error, button exists I can program keys from GUI and have use the sendir command all works. here is a dump using kodi config c:\Program Files (x86)\Flirc>flirc_util.exe Version: flirc_util.release.v3.25.3-16-g28e8a01+ [E] lib/libtransport/hid.c hid_recv_packet(167): hid_recv_packet: wrong report id [E] lib/libtransport/hid.c hid_recv_packet(168): hidapi: The parameter is incorrect. [E] lib/libtransport/transport.c _recv_packet(126): _recv_packet: recv packet error = -1 [E] lib/libtransport/transport.c _dev_send_cmd(201): recv timeout [E] lib/libtransport/hid.c hid_recv_packet(167): hid_recv_packet: wrong report id [E] lib/libtransport/hid.c hid_recv_packet(168): hidapi: The parameter is incorrect. [E] lib/libtransport/transport.c _recv_packet(126): _recv_packet: recv packet error = -1 [E] lib/libtransport/transport.c _dev_send_cmd(201): recv timeout FW Version: v4.9.3 SKU: Flirc 2.0 [dori] Branch: master Config: release Hash: 0xCB185BDE
  21. I’m a newbie to Flirc. Purchased it so I could control a 2019 Nvidia Shield Pro with my URC RF20 remote which controls equipment in a cabinet. Setup the Flirc on my iMac for the Gen 2 Shield remote and used an older, no longer used, Roku IR remote to record the key presses. Success! Then I discovered that the universal Samsung TV remotes Menu command also caused the Shields System Menu to open. And the Up, Down, Left, Right and Select commands as well. So I found a very old TDK CD Recorder remote and used its Display button to record the Shields System Menu command to see if I was on the right track. That didn’t work. I’m clearly not getting it so I’m asking for some guidance.
  22. Can you describe this a bit more. Do you mean you recorded the command with flirc and my software?
  23. Steve H

    Steve H

    Hi I just bought a Flirc v2 I have successfully mapped an IR remote button to keyboard functions using the GUI app This is the device log: Wed Aug 18 2021 16:34:58 Flirc GUI Version v3.25.3-15-gc366d26+ Operating System: Windows *** Device Disconnected *** *** Device Connected *** Firmware Version: v4.9.3 SKU: Flirc 2.0 [dori] Git Hash: 0xcb185bde I want to record some macros, but I'm getting errors with the flirc_util.exe I did these steps: Format the Flirc (to clear all settings) Attempt to record a key "h", but I get an error before I had time to press any IR remote buttons I then ran the "settings" command and got what appears to be multiple errors I need to know if my unit is faulty (so should be exchanged), or if there is another problem (and solution). My system is windows7 I have posted the CMD prompt info below - note the commands were issued one after the other Cheers Steve C:\Program Files (x86)\Flirc>flirc_util.exe format Formatting Device, please wait... Done! C:\Program Files (x86)\Flirc>flirc_util.exe record h Press any button on the remote to link it with 'h' [E] lib/libtransport/transport.c _dev_send_cmd(223): Wrong response: 'getversion' Error, button exists C:\Program Files (x86)\Flirc> C:\Program Files (x86)\Flirc>flirc_util.exe settings 3.25.3-16-g28e8a01+ FW Version: v4.9.3 [E] lib/libtransport/transport.c _dev_send_cmd(223): Wrong response: 'getversion' [E] lib/libflirc/firmware/fw_4.0.c fl_ver4_header_peek(50): invalid address you idiot [E] lib/libtransport/transport.c _dev_send_cmd(223): Wrong response: 'getversion' [E] lib/libflirc/firmware/fw_4.0.c fl_ver4_header_peek(50): invalid address you idiot [E] lib/libtransport/hid.c hid_recv_packet(167): hid_recv_packet: wrong report id [E] lib/libtransport/hid.c hid_recv_packet(168): hidapi: (null) [E] lib/libtransport/transport.c _recv_packet(126): _recv_packet: recv packet error = -1 [E] lib/libtransport/transport.c _dev_send_cmd(201): recv timeout [E] lib/libflirc/firmware/fw_4.0.c fl_ver4_header_peek(50): invalid address you idiot SKU: Flirc 2.0 [dori] [E] lib/libtransport/hid.c hid_recv_packet(167): hid_recv_packet: wrong report id [E] lib/libtransport/hid.c hid_recv_packet(168): hidapi: (null) [E] lib/libtransport/transport.c _recv_packet(126): _recv_packet: recv packet error = -1 [E] lib/libtransport/transport.c _dev_send_cmd(201): recv timeout [E] lib/libtransport/transport.c _dev_send_cmd(223): Wrong response: 'h_peek' [E] lib/libtransport/hid.c hid_recv_packet(167): hid_recv_packet: wrong report id [E] lib/libtransport/hid.c hid_recv_packet(168): hidapi: (null) [E] lib/libtransport/transport.c _recv_packet(126): _recv_packet: recv packet error = -1 [E] lib/libtransport/transport.c _dev_send_cmd(201): recv timeout Hash: 0x00000001 Settings: sleep detection: always enabled noise canceler: always enabled inter-key delay: N/A for current firmware variant: Flirc builtin profiles: NA Memory Info: NA [E] lib/libtransport/transport.c _dev_send_cmd(223): Wrong response: 'getversion' [E] lib/libflirc/firmware/fw_4.0.c fl_ver4_header_peek(50): invalid address you idiot [E] lib/libtransport/transport.c _dev_send_cmd(223): Wrong response: 'ir_state' [E] lib/libflirc/firmware/fw_4.0.c fl_ver4_header_peek(50): invalid address you idiot not a valid image product sku: NA [E] lib/libtransport/transport.c _dev_send_cmd(223): Wrong response: 'h_peek' [E] lib/libflirc/firmware/fw_4.0.c get_config(101): command error [E] lib/libflirc/firmware/fw_4.0.c fl_ver4_display_config(960): couldn't get config Records: NA
  24. GerryD

    Steve H

    It was on both. I've connected it directly to a USB port on the PC. Still no joy. Very flakey . My application is a web accessible remote remote. I've got a little web page with a pile o' buttons that wrappers flirc_util in shell mode to "sendir" commands to control my cable box. Here's an interesting observation, manually running the send_ir commands it turns out it works much better if the GUI isn't running, See below. ########## GUI not running ##################### <5,521,2160,516,2165,520,2160,516,2165,520,4408,525,2155,520,4408,524,2157,518 Transmitting IR Pattern...Done! <5,521,2160,516,2165,520,2160,516,2165,520,4408,525,2155,520,4408,524,2157,518 Transmitting IR Pattern...Done! <5,521,2160,516,2165,520,2160,516,2165,520,4408,525,2155,520,4408,524,2157,518 Transmitting IR Pattern...Done! ############ Turned on GUI ################# <5,521,2160,516,2165,520,2160,516,2165,520,4408,525,2155,520,4408,524,2157,518 Transmitting IR Pattern...[E] lib/libtransport/hid.c hid_recv_packet(167): hid_recv_packet: wrong report id [E] lib/libtransport/hid.c hid_recv_packet(168): hidapi: The parameter is incorrect. [E] lib/libtransport/transport.c _recv_packet(126): _recv_packet: recv packet error = -1 [E] lib/libtransport/transport.c _dev_send_cmd(201): recv timeout [E] util/flirc_util/src/cmds/ir_transmit.c sendir(112): Error: could not transmit data Done! flirc_sudo.exe $ I'll try to do some more debugging. In the meantime can you tell me how to find the Flirc device in Device Manager so I can verify the proper driver is being used?
  25. GerryD

    Steve H

    I'm having an identical problem. Interesting this is it "WAS" working fine. I'm at a lose to determine what has changed. I've unistalled and reinstalled a couple of times and reloaded the flirc firmware. WIndows 10. The device disconnects and reconnects after every yril cmd. :\Program Files (x86)\Flirc>flirc_util.exe settings 3.26.0 FW Version: v4.9.3 [E] lib/libtransport/transport.c _dev_send_cmd(223): Wrong response: 'getversion' [E] lib/libflirc/firmware/fw_4.0.c fl_ver4_header_peek(50): invalid address you idiot [E] lib/libtransport/transport.c _dev_send_cmd(223): Wrong response: 'getversion' [E] lib/libflirc/firmware/fw_4.0.c fl_ver4_header_peek(50): invalid address you idiot [E] lib/libtransport/hid.c hid_recv_packet(167): hid_recv_packet: wrong report id [E] lib/libtransport/hid.c hid_recv_packet(168): hidapi: The parameter is incorrect. [E] lib/libtransport/transport.c _recv_packet(126): _recv_packet: recv packet error = -1 [E] lib/libtransport/transport.c _dev_send_cmd(201): recv timeout [E] lib/libflirc/firmware/fw_4.0.c fl_ver4_header_peek(50): invalid address you idiot [E] lib/libtransport/transport.c _dev_send_cmd(223): Wrong response: 'ir_state' [E] lib/libflirc/firmware/fw_4.0.c fl_ver4_header_peek(50): invalid address you idiot SKU: Flirc 2.0 [dori] Branch: master Config: release Hash: 0xCB185BDE Settings: sleep detection: always enabled noise canceler: always enabled inter-key delay: N/A for current firmware variant: Flirc builtin profiles: NA Memory Info: NA product sku: Flirc 2.0 [dori] C:\Program Files (x86)\Flirc>flirc_util.exe unit_test [E] lib/libtransport/transport.c _dev_send_cmd(223): Wrong response: 'ir_state' [E] lib/libflirc/firmware/fw_4.9.c fl_ver4_set_record_api(108): command error [E] lib/libtransport/hid.c hid_recv_packet(167): hid_recv_packet: wrong report id [E] lib/libtransport/hid.c hid_recv_packet(168): hidapi: The parameter is incorrect. [E] lib/libtransport/transport.c _recv_packet(126): _recv_packet: recv packet error = -1 [E] lib/libtransport/transport.c _dev_send_cmd(201): recv timeout [E] lib/libtransport/hid.c hid_recv_packet(167): hid_recv_packet: wrong report id [E] lib/libtransport/hid.c hid_recv_packet(168): hidapi: The parameter is incorrect. [E] lib/libtransport/transport.c _recv_packet(126): _recv_packet: recv packet error = -1 [E] lib/libtransport/transport.c _dev_send_cmd(201): recv timeout [E] lib/libflirc/firmware/fw_4.2.c _fl_unit_test(141): error recording Flirc Not Okay [E] lib/libtransport/transport.c _dev_send_cmd(223): Wrong response: 'ir_state' *** Device Connected *** Firmware Version: v4.9.3 SKU: Flirc 2.0 [dori] Git Hash: 0xcb185bde *** Device Disconnected *** *** Device Connected *** Firmware Version: v4.9.3 SKU: Flirc 2.0 [dori] Git Hash: 0xcb185bde *** Device Disconnected *** *** Device Connected *** Firmware Version: v4.9.3 SKU: Flirc 2.0 [dori] Git Hash: 0xcb185bde <3>report_callback(227): pkt recv err <3>report_callback(227): pkt recv err
×
×
  • Create New...