Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IRSENDRAW #17

Open
tcpipchip opened this issue Aug 3, 2018 · 12 comments
Open

IRSENDRAW #17

tcpipchip opened this issue Aug 3, 2018 · 12 comments

Comments

@tcpipchip
Copy link

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
Copy link

lspaula commented Aug 30, 2018

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
Copy link
Author

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

@lspaula
Copy link

lspaula commented Aug 30, 2018

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
Copy link
Author

tcpipchip commented Aug 30, 2018 via email

@lspaula
Copy link

lspaula commented Aug 30, 2018

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
Copy link
Author

tcpipchip commented Aug 31, 2018 via email

@tcpipchip
Copy link
Author

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
Copy link

lspaula commented Aug 31, 2018

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
Copy link
Author

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
Copy link

lspaula commented Sep 1, 2018

Just a dumb question: did you enable raw Mode?

@tcpipchip
Copy link
Author

tcpipchip commented Sep 1, 2018 via email

@tcpipchip
Copy link
Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants