Using Command Line with Flirc

Follow

Currently the only benefit of using command line rather than the Flirc GUI app is:

  • Ability to delete indexes (this will be added to Flirc GUI in a future update)
  • Record API 

If you're unsure about using command line then it is probably best if you stick to using the Flirc GUI app.

 

Below is the help section of flirc_util which should help using Flirc via command line:

Usage:

record_api 'arg1 arg2' arg1 is key-modifier
  arg2 is HID key

                               

For example:

flirc_util record_api 136 4 '136' represents right cmd + left cmd
    '4' represents 'a' in HID

  

Key modifiers are defined in the IEEE HID Spec as follows:

Left control 1
Left shift 2
Left alt 4
Left CMD\Win 8
Right control 16
Right shift 32
Right Alt 64
Right CMD\Win 128

 

The record_api is a super advanced feature, and it's just going to go beyond someone who isn't comfortable reading the IEEE USB HID spec. We have no intentions of documenting that anymore than the help section of flirc_util (as described above)

 

Have more questions? Submit a request

Comments

  • Avatar
    Mr Scott

    The command line program flirc_util.exe doesn't work on windows 11:
    C:\Program Files (x86)\Flirc>flirc_util.exe version
    3.26.5
    [E] lib/libtransport/transport.c _dev_send_cmd(223): Wrong response: 'ir_state'
    [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/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
    FW Version: v1.9.61-1-g4b35b71
    [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
    [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
    [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/transport.c _dev_send_cmd(223): Wrong response: 'h_peek'
    Hash: 0x00000001

Powered by Zendesk