Dear sir,
This is my long ir raw code , and i have to send it from arduino through xbee which limit payload 250 byte. Is there have any way to achieve it?
/*
Automatically Generated by AnalysIR - Batch Export Utility
Registered to: imissyou27@hotmail.com
Session History
Type : Key : Value : Bits
0 : ELECTROLUX134AC : : 201403029100200074028060720000000A : 134
*/
int khz=38; //NB Change this default value as neccessary to the correct carrier frequency
unsigned int Signal_0_0[] = {9004,4504,644,1644,664,540,668,540,664,568,640,568,640,568,636,568,640,568,640,568,636,1672,640,568,636,1644,668,564,644,540,664,540,668,564,644,568,636,568,640,544,664,568,640,1644,664,1640,668,564,644,540,664,540,664,568,644,540,664,540,664,1676,636,540,664,1668,644,540,664,544,668,1668,636,568,640,20008,640,544,664,568,636,1648,664,540,664,568,644,540,664,544,660,568,644,564,640,564,644,540,664,568,640,568,640,1668,640,544,664,568,640,564,640,544,664,540,664,568,668,516,664,540,664,568,636,548,664,540,664,544,660,572,640,540,664,1668,644,1644,664,1644,664,544,664,40000,9004,4480,664,1648,664,540,664,568,640,568,640,544,664,564,640,544,664,544,664,568,636,1676,636,540,664,1672,640,564,644,564,640,540,664,544,668,568,636,544,664,568,636,568,640,1644,664,1668,644,540,664,544,664,572,636,544,664,540,664,568,636,1648,664,1668,644,1644,660,572,636,548,660,1644,664,568,640,19984,664,568,640,544,664,568,636,568,644,560,644,564,640,568,640,568,636,568,644,568,636,568,640,564,640,568,636,572,640,568,636,568,640,568,636,572,640,568,636,568,640,568,636,572,636,568,640,568,640,568,640,568,636,568,636,572,640,1668,640,564,640,1672,640,568,636}; //AnalysIR Batch Export - RAW
My_Sender.IRsendRaw::send(Signal_0_0, sizeof(Signal_0_0)/sizeof(int), khz); //AnalysIR Batch Export (IRLib) - RAW
// AnalysIR IR Protocol: ELECTROLUX134AC, Key:
How to send long ir raw code through xbee?
-
- Posts: 1
- Joined: Fri May 08, 2015 5:44 am
Re: How to send long ir raw code through xbee?
There are a number of ways to achieve this.
First Approach
A. You could send the long signal buffer over Zigbee in multiple messages and rebuild at the remote end.
B. Probably the simplest approach.
Another Approach
1. First clean the signal using Menu->Power Tools->Clean History.
2. You will then notice that a lot of the values are similar. The values are 9000,4500,600,1700
3. You could compress the buffer using this information.
Third possible approach
The other way to do it is to regenerate the signal from the HEX/Binary value
a. the header is always the same, so it always starts with 9000 mark followed by a 4500 space
b The trailer is always the same and is a mark of 600
c. In between is the HEX/Binary value e.g 201403029100200074028060720000000A (NB 134 bits).
d. So all you have to do is send the HEX value over zigbee and rebuild the signal at the far end.
e. binary 1 is a 600 mark follwed by a 1700 space and binary 0 is a 600 mark followed by a 600 space.
f. .....simple! but be careful of the bit order (LSB* for decoding MSB for sending
Of course you should test these approaches without using zigbee until you verify that it is working
Post back and let us know how you get on!
First Approach
A. You could send the long signal buffer over Zigbee in multiple messages and rebuild at the remote end.
B. Probably the simplest approach.
Another Approach
1. First clean the signal using Menu->Power Tools->Clean History.
2. You will then notice that a lot of the values are similar. The values are 9000,4500,600,1700
3. You could compress the buffer using this information.
Third possible approach
The other way to do it is to regenerate the signal from the HEX/Binary value
a. the header is always the same, so it always starts with 9000 mark followed by a 4500 space
b The trailer is always the same and is a mark of 600
c. In between is the HEX/Binary value e.g 201403029100200074028060720000000A (NB 134 bits).
d. So all you have to do is send the HEX value over zigbee and rebuild the signal at the far end.
e. binary 1 is a 600 mark follwed by a 1700 space and binary 0 is a 600 mark followed by a 600 space.
f. .....simple! but be careful of the bit order (LSB* for decoding MSB for sending
Of course you should test these approaches without using zigbee until you verify that it is working
Post back and let us know how you get on!