RE: FW: Cannot install GIRS driver

Chris van Hoven <[email protected]>
Newsgroups gmane.comp.hardware.lirc
Message-ID <HE1PR0801MB199609A6CC63FA1CA7B3C887AF200@HE1PR0801MB1996.eurprd08.prod.outlook.com>
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)
- 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?

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

Cheers,

Chris

-----Original Message-----
From: Bengt Martensson [mailto:[email protected]] 
Sent: Freitag, 10. März 2017 16:48
To: [email protected]
Subject: Re: FW: Cannot install GIRS driver

On 03/10/17 11:32, Chris van Hoven wrote:
> Hey Bengt, I knew it: if I keep asking, you come up with some specific 
> stuff :-)
>
> The Python Script sounds VERY interesting, especially because I might be able to rewrite it into PHP in order to integrate it better in my home automation solution.

One of the reasons for writing it was to demonstrate that there is no magic in irsend; it is easy to write that, *independently* of the Lirc system. Here is a Java version: 
https://github.com/bengtmartensson/JavaLircClient So by all means make your PHP version.


> One question though: does the statement "It does not depend on anything but standard Python libraries." not contradict this statement "The name comes from the fact that the program requsts services from a Lirc server (lircd)."?
> This implies that LIRC still needs to be installed and running correctly, right?

No, I am ready to defend that statement. It is a self-contained program, that can run on any platform supporting Python3, regardless of Lirc support on *that* platform, using TCP networking as the preferred way of communicating. It does not need any of the Lirc sources. Of course, it is kind of useless unless you have a Lircd somewhere to talk to...

 > It is a mere replacement for IRSEND

yes

> and does not talk directly to your Arduino solution?!

for that, use a terminal program.

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

------------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.