Jump to content
Flirc Forums

Recommended Posts

Posted

I have been messing around with the IR transmit capability of my flirc. I am able to send IR signals using the flirc_util app, but it takes around 800ms to send a single command. I suspect it's because flirc_util opens the device, sends the signal, and then closes the device. If I try with the repeat set higher, it doesn't significantly affect the timing.

It looks like the SDK provides static library (libflirc.a). I'm programming in python on a raspberry pi 3, which doesn't work with static libraries. Is it possible to get direct access to the flirc to open the device and send signals? Or possibly get a dynamic library?

Thanks,

Ben

  • Like 1
  • 1 year later...
Posted

Also looking for something like this. I tried adapting the `ir` example from the sdk but it just sends the code type and hex value to the statically linked library.

In my case I want to keep the device open and send raw IR codes programmatically.

Posted (edited)

So I managed to adapt an example from a project that used the C library to transmit codes.

fl_transmit_raw says its taking 65 ms to run but I think running on the main thread is slowing it down with the UI waiting for it.

The code I built out is here https://gist.github.com/parkerlreed/4f7d2026c5c4a29a4a0cf39e40705473

EDIT: Oh just realized I put the device init and disconnect in the button function... I'll separate these out and see how it performs.

Edited by parkerlreed

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...