Re: FW: Cannot install GIRS driver
Bengt Martensson <[email protected]>
| Newsgroups | gmane.comp.hardware.lirc |
|---|---|
| Message-ID | <[email protected]> |
On 03/10/17 17:12, Chris van Hoven wrote: > Hi Bengt, > > In fact I was thinking about a terminal program solution, as this means best performance, at least in theory. But that would mean two things: > > - sending raw codes instead of the codes I use in lircd.conf (ie KEY_POWER 0x40BF) For example, using the AGirs/Infrared4Arduino firmware for the Arduino, https://github.com/bengtmartensson/AGirs you can have it recognize either some protocols with parameters "transmit nec1 122 29" or or using named commands like "named my_device my_command". In the latter case, the named commands have to be configured in. Not that IrScrutinizer can generate Arduino code automatically. (Export, select export format Arduino/Infrared4Arduino.) > - Having the possibility to use it like irsend (with parameters) or accessing the usb port directly with php (similar to fsockopen in ip). Or is it as simple as "echo 0x40BF > /dev/ttyUSB0"? > > Correct? At most for testing. You will have to write some "communication module" for bidirectional communication, call it terminal program if you wish. Please also have a look at JGirs, https://github.com/bengtmartensson/JGirs which basically can functionally replace lircd. > There must be more to it, as the Arduino needs to know the other IR parameters, ie: > > bits 16 > flags SPACE_ENC|CONST_LENGTH > eps 30 > aeps 100 > > header 4503 4479 > one 566 1663 > zero 566 548 > ptrail 568 > pre_data_bits 16 > pre_data 0xE0E0 > gap 107672 > toggle_bit_mask 0x0 Much to learn still you have, young padowan ;-). Greetz, Bengt ------------------------------------------------------------------------------ Announcing the Oxford Dictionaries API! The API offers world-renowned dictionary content that is easy and intuitive to access. Sign up for an account today to start using our lexical data to power your apps and projects. Get started today and enter our developer competition. http://sdm.link/oxford