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. In the user guide is states: "To suspend the shield or put it in a sleep state, use the Media Keys controller and record the Wake/Suspend key as shown below." I don't understand what this means. What am I recording to the "Wake/Suspend" key? The sleep command from the Nvidia Shield TV side is a selection in the settings menu so as far as I know, no IR command is being sent from the remote. What do I need to record to make with work? Any help is greatly appreciated.
  2. The colour option goes back to the making it harder by trying to be simpler. On other remotes that have dedicated colour buttons, it’s a one click action that requires no thought once you have a little muscle memory, with your option it may require up to 5 button pushes right? Yes, as a programable remote anything can be anything, and in my case as I’ve said I don’t use RW or FF, it would be the easy option. Let’s say I program it that way, and you come over to my place and I’m cooking you some food and ask you to stop the playback, what do you do, how on earth do you know what button to push to stop? You don’t, your friend doesn’t, your mum/wife/boyfriend/sister etc doesn’t. The Stop button isn’t some obscure command, it’s on most other remotes for a reason. It’s just these new super simple to make it harder remotes that it’s being removed.
  3. Well, if anyone cares. I have a working solution for this that my wife is super happy with and also opens the possibility for way more control of these devices utilizing a harmony hub, Flirc USB, raspberry pi zero w, and the built in hotkey daemon triggerhappy. In my case I needed the harmony hub to establish itself as a bluetooth keyboard with the firestick. You could also use a generic USB keyboard receiver plugged into the firestick but I had an extra hub sitting around so that's what I used. Flirc is connected to the Pi and it relays commands to the firestick via ADB using trigger happy. It's *WAY* more complicated than it needs to be because these stupid streaming devices need better remotes. There's not enough buttons on them, and I don't want to use my phone to control them because there's no tactile feedback (which is the same reason all of the touch screen remotes suck). So anyways for my issue, when you press guide on the harmony remote instead of controlling the firestick, it tells the pi to send the command adb shell input keyevent 297 which opens the guide on the firestick 4k max. This does absolutely nothing on the older firesticks by the way (Amazon needs to get their crap together). For my wife's IR remote, it also sends all the navigation commands via ADB as well using the sendevent shell command to whichever deviceid the harmony hub has identified itself as. I used this method because sendevent is significantly faster than adb input. You can also set up buttons to directly open apps with this! Ie I used the unused numeric buttons to open things like Netflix, Prime Video, and Youtube. There's lots of possibilities here that I stumbled across so at least that makes it more worthwhile. If anyone's interested, I'm happy to share more details on the setup.
  4. 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
  5. No dice. recorded it with the linux version and it still records it as 0. 09-10 09:39:14.822 457 639 D AmzPhoneWindowManager: interceptUnhandledKey: 0 Also, here's the message I get with the windows version: C:\Program Files (x86)\Flirc>flirc_util.exe record_api 0x2 0x129 Consumer Usage Table: 0x129 [E] lib/libtransport/transport.c _dev_send_cmd(223): Wrong response: 'getversion' hit a key on the remote to be paired with 0 0 [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 When I tried to re-record it and forgot to erase first. Interesting it says paired with 0 0. vwmofo@DiscoPickle:/usr/bin$ ./flirc_util record_api 0x2 0x129 Consumer Usage Table: 0x129 [E] lib/libflirc/firmware/fw_4.0.c fl_ver4_set_interrupt(377): Error: button already exists hit a key on the remote to be paired with 0 0
  6. 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
  7. 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
  8. 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
  9. 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
  10. 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.
  11. 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.
  12. 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.
  13. 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.
  14. 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.
  15. 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!
  16. 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.
  17. 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?
  18. 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.
  19. 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.
  20. 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.
  21. 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
  22. 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?!
  23. 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!
  24. 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
  25. 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.
×
×
  • Create New...