rb.sam 0 Posted July 21, 2020 Report Share Posted July 21, 2020 (edited) Hi everyone! I haven't bought the Flirc just yet, my original plan was to buy one along with a Broadlink device so that I could map a button on my non-smart IR tv remote to have the Broadlink send an IR signal to another device (a HDMI switcher box that changes input). But I'm now reading that the 2nd gen of the Flirc does some transmitting! If this is the case then it would mean I don't even need to buy the Broadlink. Could anyone confirm? It doesn't need much range as I'll place the Flirc right in front of the device I'm hoping to transmit to (the HDMI switcher box). Thanks! Edited July 21, 2020 by rb.sam Quote Link to post Share on other sites
jason 167 Posted July 30, 2020 Report Share Posted July 30, 2020 I don’t have time to support it right now. It’s all possible through scripting, and quite honestly, I’m not pleased with the transmitter. I’m working on integrating a much higher power transmitter in the next generation. You need line of site, 6 feet max. It’s not good. Quote Link to post Share on other sites
rb.sam 0 Posted July 30, 2020 Author Report Share Posted July 30, 2020 24 minutes ago, jason said: I don’t have time to support it right now. It’s all possible through scripting, and quite honestly, I’m not pleased with the transmitter. I’m working on integrating a much higher power transmitter in the next generation. You need line of site, 6 feet max. It’s not good. The lack of distance for line of sight wouldn’t be an issue for my desired setup, but it’s the code I’m having trouble with. Whenever you do get time are you able to write something where I can replace certain bits like the IR frequency? No problem if not, I understand if you’re super busy and don’t get the time Quote Link to post Share on other sites
jason 167 Posted July 30, 2020 Report Share Posted July 30, 2020 You use the GUI to capture the IR waveform, and use the CLI or SDK to retransmit that same waveform. Only the 38khz frequency is supported. Quote Link to post Share on other sites
rb.sam 0 Posted July 30, 2020 Author Report Share Posted July 30, 2020 42 minutes ago, jason said: You use the GUI to capture the IR waveform, and use the CLI or SDK to retransmit that same waveform. Only the 38khz frequency is supported. I can’t seem to find the documentation on the SDK, the page I went to is down - got a link? Quote Link to post Share on other sites
jason 167 Posted August 19, 2020 Report Share Posted August 19, 2020 https://github.com/flirc/sdk/blob/master/libs/flirc/flirc.h * fl_transmit_raw() sends a raw packet. Only supported on flirc gen2 hardware * * @param buf data to transmit, please be responsible, numbers are in * micro seconds * @param len length of buffer, don't send more than 100 bits, must be * even number of bits (edges). * @param ik delay to use inbetween packets. Required. * Defaults to 40ms if to low. * @param repeat repeat count, generally should be 3, 0 is infinit until * stopped, currently not supported. * * @return EOK * @return -1 error */ int _DLL fl_transmit_raw(uint16_t *buf, uint16_t len, uint16_t ik, uint8_t repeat); Quote Link to post Share on other sites
Ernesto Sun 0 Posted November 26, 2020 Report Share Posted November 26, 2020 Hello! Thank You so much, Flirc team, for this great little thing! I need to receive and send IR-commands to make my good old parents be able to 'Skype' on their TV. I am C programmer, so I am not worried (yet) about using that API-command. (Will use a Mini-PC with Win in order to allow Skype or Whatsapp to run.) Please allow me two questions: a) Will it work to use a cheap USB-powered IR-repeater to catch the signal from the Flirc (Gen 2) and send it out stronger again? b) Do you have some time-estimate when Generation 3 will come out with a full-featured 'IR Command Sending'? Thanks you so much!!! All (=) Love, Ernesto ~:) PS: Welcome to co-realize this project I need for my parents... Quote Link to post Share on other sites
dood 0 Posted December 23, 2020 Report Share Posted December 23, 2020 (edited) Trying to figure out how to use the flirc to send IR commands is pretty daunting. For starters, the blog post won't load: http://blog.flirc.tv/index.php/2017/08/06/sdk-release-linux-rpi-ir-transmit-support/ I've tried to cobble together various ways to do it, but I have seen three different flirc_util commands mentioned that don't work, finally finding the one that currently works with software version 3.25.3, which is the "sendir" command. My use case I would think is common, I want to use a remote to control a device the remote doesn't support, so I want Flirc to receive one command and transmit another. I'll program my remote to control some arbitrary device it supports, then have the Flirc send a different command that controls my actual device. In my case it's my LG TV remote that I want to use to control the volume on an amplifier, but the LG remote doesn't support it nor does it have a learning function to control arbitrary devices. To get started on a proof of concept, I can use the GUI device log to capture the IR sequence I want to transmit. I press a button on my remote and the device log will show something like: :e:17031 0,9008,4393,614,475,615,470,615,470,615,1584,615,474,615,470,615,470,615,1584,619,1584,614,1584,619,1584,614,470,615,1588,614,1584,614,1589,614,479,605,470,615,1584,618,1584,615,470,614,474,615,480,605,1583,615,474,616,1583,617,472,610,474,615,1584,614,1588,625,1573,615,474,615,1584,615 :e:40 0,9007,2157,614 The long string there is the IR code I guess (I really don't know what I'm doing here). I can then transmit this code by doing something like: flirc_util.exe sendir --ik=23000 --repeat=3 --pattern="0,9003,4390,619,470,614,470,614,470,614,1588,614,470,614,474,614,470,614,1588,614,1582,614,1588,614,1587,614,470,614,1588,614,1583,614,1587,615,469,615,474,610,1587,615,1587,615,469,615,470,614,474,615,1583,614,474,614,1583,614,474,610,474,614,1584,614,1587,615,1587,614,470,614,1583,618" This is enough for me to write a simple script that can be triggered with a keyboard press, but I suspect it will be slow and I'll need to dust off my ancient or now non-existent C skills and see what I can do. What would be end game for me is if I could flash the flirc with my own custom firmware and then connect the flirc to power and use it standalone without any PC. Is something like this possible? Assuming it's not possible, I have a Raspberry Pi Zero W on the way to control the flirc instead. I'll report back when I've got my setup in production, but hopefully the above will save someone some time. Edited December 23, 2020 by dood Quote Link to post Share on other sites
dood 0 Posted December 24, 2020 Report Share Posted December 24, 2020 I got my POC working, but as expected it's slow. Each key press needs to invoke a script separately, and long press doesn't work well at all. It does work, however, and it's usable even. My next iteration is going to be attempting to write a C daemon with the SDK instead. I'll share the code if I get it working. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.