problems sending raw code with ESP32

Everything related to protocols and IR codes
electrodevice
Posts: 12
Joined: Fri Apr 06, 2018 2:54 pm

problems sending raw code with ESP32

Post by electrodevice »

I can not use the Arduino IRRemote library for raw codes with ESP32, because this microcontroller uses a different method in native form, to handle reception and IR transmission, in native form (RMT).
How can I avoid the problem?
User avatar
AnalysIR
Site Admin
Posts: 776
Joined: Sat Aug 31, 2013 3:51 pm
Location: Dublin, Ireland
Contact:

Re: problems sending raw code with ESP32

Post by AnalysIR »

As you have an A.IR Shield ESP32 Shield....you would have received an email with firmware which can send and receive IR signals, with AnalysiR.

It should be easy to adjust that to send RAW signals.

As it happens, I will be doing some testing with the ESP32 this afternoon, so if you want to send me your test signals, I can use them for my tests & provide you with the firmware.
electrodevice
Posts: 12
Joined: Fri Apr 06, 2018 2:54 pm

Re: problems sending raw code with ESP32

Post by electrodevice »

I intend to create a database of raw ir codes, of various brands, even long ones like Hitachi.
in which format do I have to export raw codes, so that it can be used with AIRShield?
I hypothesize exporting for airshield, correct me if I'm wrong.
I have attached a file with four codes from two different remote controls (Toshiba on / off and Hitachi on / off).
You do not have the required permissions to view the files attached to this post.
User avatar
AnalysIR
Site Admin
Posts: 776
Joined: Sat Aug 31, 2013 3:51 pm
Location: Dublin, Ireland
Contact:

Re: problems sending raw code with ESP32

Post by AnalysIR »

You can write firmware for the A.IR Shield to send IR in any format.

However, the firmware supplied with the Shield uses A.IR Format, which can be exported from AnalysIR. AnalysIR can also export in most industry formats. The A.IR format is essentially a RAW format with he carrier frequency included.

Code: Select all

eg $38:4502,4420,592,1596,.......
Thanks for the upoad I will test it out in the next couple of hours, once I have things set up.

PS: The signals you posted are in AIR format, and should work as is with the firmware we emailed to you for the Shield.
electrodevice
Posts: 12
Joined: Fri Apr 06, 2018 2:54 pm

Re: problems sending raw code with ESP32

Post by electrodevice »

unfortunately the sketch you sent me, I think it is not compatible with ESP32 (is older, year 2014).
During compilation there is a blocking error: 'PIND' was not declared in this scope
Please send me the correct one
Thank you
User avatar
AnalysIR
Site Admin
Posts: 776
Joined: Sat Aug 31, 2013 3:51 pm
Location: Dublin, Ireland
Contact:

Re: problems sending raw code with ESP32

Post by AnalysIR »

You are probably referencing the wrong sketch, I will re-send it later.
User avatar
AnalysIR
Site Admin
Posts: 776
Joined: Sat Aug 31, 2013 3:51 pm
Location: Dublin, Ireland
Contact:

Re: problems sending raw code with ESP32

Post by AnalysIR »

I have just re-emailed the firmware again.

If you want to write your own 'simpler' sketch, you just need to use the function AIR_sendRAW (and include everything it references).

Initially, you should use the firmware as is, with AnalysIR to verify everything is OK. (Links to instrictions & documentation are in the email)

Once you are happy with that, you can then start customising hte sketch or parts of it to your own needs.
electrodevice
Posts: 12
Joined: Fri Apr 06, 2018 2:54 pm

Re: problems sending raw code with ESP32

Post by electrodevice »

i don't receive the mail, please resend-me.
Thanks
User avatar
AnalysIR
Site Admin
Posts: 776
Joined: Sat Aug 31, 2013 3:51 pm
Location: Dublin, Ireland
Contact:

Re: problems sending raw code with ESP32

Post by AnalysIR »

I have sent it twice now, please cheack your spam/junk folder
electrodevice
Posts: 12
Joined: Fri Apr 06, 2018 2:54 pm

Re: problems sending raw code with ESP32

Post by electrodevice »

Hi Chris,
I can not invulge it anywhere, maybe the internet provider's mail server blocks it.
Please, compress it in zip or rar format and send it to us, if we do not even manage it, we can transfer it via TeamViewer or Skype.
Thank you
Post Reply