-->
Page 10 of 14

Re: IR demo code with ESPBasic alpha 21

PostPosted: Mon Nov 28, 2016 6:58 am
by tcpipchip
wich is the difference between ir.send() and ir.send.nec() and ir.send.sony() ?

I can read the the GREE AC infrared code using ir.recv.full() without problems! Shows the "code+nec+32" string...

But, when i send using ir.send() with parameters received from ir.recv.full(), no answer from AC.

Some tip ?

Must i enable to use too ir.send.lg(), ir.send.whynter(), etc to see if works ?

BTW, it works with DVD, TV, PROJECTOR, etc...but with that AC model no!

TCPIPCHIP

Re: IR demo code with ESPBasic alpha 21

PostPosted: Mon Nov 28, 2016 2:04 pm
by bugs
I think you will be unlucky.
:(
Google tells me that the Gree IR code is not standard NEC 32 bits length so although you may decode the first part as NEC, it is actually much longer.
Here is an example page:-
https://myesp8266.blogspot.co.uk/2016/05/keep-your-house-cool-with-esp8266.html

Re: IR demo code with ESPBasic alpha 21

PostPosted: Mon Nov 28, 2016 5:48 pm
by tcpipchip
And raw mode should resolve ?

Re: IR demo code with ESPBasic alpha 21

PostPosted: Tue Nov 29, 2016 6:16 am
by bugs
Does ESP BASIC have raw mode transmit? I cannot find a reference in the documentation.

Even using an Arduino there are problems with the long AC codes as the raw buffer is only 100 bytes. Increasing this in the library to 255 helps with some ACs.
More detail here:-
http://www.analysir.com/blog/2014/03/19/air-conditioners-problems-recording-long-infrared-remote-control-signals-arduino/