piotrC4 / mqtt-ir-transceiver

ESP8266 based bidirectional bridge between MQTT and IR (change MQTT message to IR signal and change received IR signal to MQTT message)
142 stars 34 forks source link

IRSENDRAW #17

Open tcpipchip opened 5 years ago

tcpipchip commented 5 years ago

Sir,

Do this software allow to capture infrared data from no standard hardware and save a RAW code and send the raw code to MQTT server ?

My RAW code got is about 240 words, for example, using IRsendRAW()

TCPIPCHIP

lspaula commented 5 years ago

Hi. Turns out that if you turn on the raw mode it is possible to read and store code up to 100 words, then it resumes and captures another sequence. I am trying to find out where to change it to make able to store larger codes. Let us hope @enc-X give us a shortcut for that.

Regards,

Luciano

tcpipchip commented 5 years ago

Thank you so much! Other problem maybe is on the irrecv h lib!

lspaula commented 5 years ago

While checking the code, I realize this RAWBUF variable which is set to 100 in the IrremoteESP8266.h. Will try changing it to a larger value later today and see if it works.

tcpipchip commented 5 years ago

Yes, thats a problem too! Thank you so much! Try with ac controllers that return between 240 to 278 ints code

Enviada do meu iPhone

Em 30/08/2018, às 07:31, "lspaula" notifications@github.com<mailto:notifications@github.com> escreveu:

While checking the code, I realize this RAWBUF variable which is set to 100 in the IrremoteESP8266.h. Will try changing it to a larger value later today and see if it works.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/enc-X/mqtt-ir-transceiver/issues/17#issuecomment-417272046, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AK9MzNq49b-mAd_qMjghZTPy7GG5EYpwks5uV77ugaJpZM4VutFx.

lspaula commented 5 years ago

I was mistaken in the last message. The file is IRrecv.h

Change

#define RAWBUF 100U // Default length of raw capture buffer

by

#define RAWBUF 512U // Default length of raw capture buffer

and BINGO! Problem solved!

Best regards,

Luciano

tcpipchip commented 5 years ago

Hummm both has that Constant! Well, i test it soon! Thanks to help us!

Enviada do meu iPhone

Em 30/08/2018, às 17:23, "lspaula" notifications@github.com<mailto:notifications@github.com> escreveu:

I was mistaken in the last message. The file is IRrecv.h

Change

define RAWBUF 100U // Default length of raw capture buffer

by

define RAWBUF 512U // Default length of raw capture buffer

and BINGO! Problem solved!

Best regards,

Luciano

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/enc-X/mqtt-ir-transceiver/issues/17#issuecomment-417454845, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AK9MzLJA6eNEOy628VcYP1gmZbB3NbAgks5uWEmigaJpZM4VutFx.

tcpipchip commented 5 years ago

Something is wrong. What really means these constants ? Need SLOT_SIZE be change to 512U too ?

define SLOTS_NUMBER 20 // Number of slots

define SLOT_SIZE 300U // Size of single slot <=========

define SEQ_SIZE 10 // Raw sequnece size

And, there is a AIR IR CONTROLLER is that always is returning to results.decode_type variable the 15 value .

And to the results.bits variable the 24 value ?

What 15 and 24 values means?

lspaula commented 5 years ago

Sorry pal. I did not change those for mine to work. Slot size of 300 is for saving data to SPIFFS I suppose. It is ok for me. My air conditioner code reaches 217 words only.

Best,

Luciano

tcpipchip commented 5 years ago

still have bugs! Because i tested my AIR IR CONTROLLER RAW in another INFRARED C routine and works very nice! On mqtt-ir-transciever not works!

lspaula commented 5 years ago

Just a dumb question: did you enable raw Mode?

tcpipchip commented 5 years ago

Good morning

Yes, i did!

I tested many, about 40, but there is an AC IR CONTROLLER that does not work!

CARRIER TYPE RG52B/BGCE

Miguel


De: lspaula notifications@github.com Enviado: sábado, 1 de setembro de 2018 11:58 Para: enc-X/mqtt-ir-transceiver Cc: tcpipchip; Author Assunto: Re: [enc-X/mqtt-ir-transceiver] IRSENDRAW (#17)

Just a dumb question: did you enable raw Mode?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/enc-X/mqtt-ir-transceiver/issues/17#issuecomment-417854634, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AK9MzBzhqegjcTz8ceX3RIDd8gxJy6nxks5uWnZ1gaJpZM4VutFx.

tcpipchip commented 5 years ago

I mean, i can read the RG52B/BGCE, but the if rules to detect if NEC/SONY etc, fails

But RAW is enough to me!