bengtmartensson / HarcHardware

HarcHardware is a collection of Java routines for accessing hardware, files, network resources etc.
http://www.harctoolbox.org/HarcHardware.html
GNU General Public License v3.0
3 stars 4 forks source link

Support Flirc USB for receiving and sending #7

Closed bengtmartensson closed 3 years ago

bengtmartensson commented 6 years ago

Probably not the best solution (only a 38kHz receiver, i.e. only demodulatied reception), but it has transmission hardware, is reasonably cheap and quite well spread.

2nd generation only is the first priority.

bengtmartensson commented 3 years ago

There is a API for Flirc, written in C. The bulk of that code is closed-source, available as a compiled, static library only. So, to be able to call that API from our environment, it would be necessary to write JNI-bindings, depending on a proprietary binary-only library.

Sending: there is a suitable api call fl_transmit_raw. However, the transmitter in the v2 hardware is not very capable.

Receiving: There is only a demodulating receiver, using 38kHz carrier frequency. Flirc does not record the received IR signal, just a hash value. Here it is shown how to "mis-use" the logging feature, but I do not consider it to be an integration worth the name.

So it is very much work for quite little benefit.

Won't do.