Proper format for using iresend.sendRaw

Everything related to protocols and IR codes
Post Reply
mmaseda
Posts: 2
Joined: Sun Jul 01, 2018 2:20 pm

Proper format for using iresend.sendRaw

Post by mmaseda »

I have captured the following IR code from my AC remote with AnalysIR and a IR Toy. I exported it using in the IRremote format. Can someone please help me convert this into a properly formatted irsend.sendRaw statement.


Regards,

Manuel


Raw (197): 6123,-7360,533,-555,555,-512,491,-597,533,-512,533,-555,533,-512,555,-512,491,-576,555,-555,533,-555,533,-512,576,-555,469,-576,555,-512,491,-576,555,-533,533,-576,491,-576,555,-512,491,-576,555,-533,512,-576,533,-512,533,-555,512,-576,555,-512,491,-576,555,-512,533,-1600,555,-512,491,-597,533,-512,533,-576,491,-576,533,-555,512,-555,555,-512,533,-555,512,-555,555,-512,491,-597,555,-512,533,-533,555,-512,576,-512,491,-576,555,-512,491,-576,555,-555,533,-555,533,-512,576,-533,491,-576,555,-512,491,-576,555,-512,491,-619,533,-1600,533,-555,533,-512,576,-512,533,-1600,512,-576,533,-1600,491,-619,533,-512,576,-512,491,-576,555,-512,491,-576,555,-533,491,-597,533,-1621,533,-1600,555,-512,491,-1643,555,-533,491,-1643,533,-555,512,-555,555,-1621,491,-576,555,-1600,533,-512,576,-512,491,-1643,533,-555,533,-1600,533,-576,491,-1643,533,-555,533,-512,533,-555,491,-576,555,-512,491,-1643,533,-7381,512
User avatar
AnalysIR
Site Admin
Posts: 776
Joined: Sat Aug 31, 2013 3:51 pm
Location: Dublin, Ireland
Contact:

Re: Proper format for using iresend.sendRaw

Post by AnalysIR »

I have 'cleaned' the signal and generated the code below using our AnalysIR application.

Code: Select all

/*
Automatically Generated by AnalysIR - Batch Export Utility
Registered to: xxxxxxxx
Session History
Type : Key : Value : Bits : Carrier Frequency (kHz)
0 : CHIGO96AC :  : 000000080000004500D4A541 : 96 : 0
Note: Be sure to use the correct Carrier frequency, for each individual signal, as(or if) indicated above
*/

// NB: Not all protocols are supported by IRremote or IRLib. You may need to edit the code below manually
// Automatically Generated by AnalysIR for xxxxxxxx, visit https://www.AnalysIR.com/ or email info@....... for further details
int khz=38; //NB Change this default value as neccessary to the correct carrier frequency


unsigned int Signal_0_0[] = {6160,7400,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,1640,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,1640,560,560,560,560,560,560,560,1640,560,560,560,1640,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,560,1640,560,1640,560,560,560,1640,560,560,560,1640,560,560,560,560,560,1640,560,560,560,1640,560,560,560,560,560,1640,560,560,560,1640,560,560,560,1640,560,560,560,560,560,560,560,560,560,560,560,1640,560,7400,560}; //AnalysIR Batch Export (IRremote) - RAW

irsend.sendRaw(Signal_0_0, sizeof(Signal_0_0)/sizeof(int), khz); //AnalysIR Batch Export (IRremote) - RAW
 // AnalysIR IR Protocol: CHIGO96AC, Key:  
mmaseda
Posts: 2
Joined: Sun Jul 01, 2018 2:20 pm

Re: Proper format for using iresend.sendRaw

Post by mmaseda »

I have it working now. I have successfully integrated a NEST thermostat with a Chigo window AC unit using an Arduino.
Post Reply