Decoding AC Signals - Beginner Questions

Everything related to protocols and IR codes
Post Reply
YouElz
Posts: 2
Joined: Tue Jun 28, 2022 5:46 pm

Decoding AC Signals - Beginner Questions

Post by YouElz »

Hi all

I hope to get help with decoding the AC single of a remote. I am new to all this, and my goal is to be able to capture the signals and change the values programmatically based on selection by the user to control the AC.

I was able to capture the code of many singles from the remote by AnalysIR and then exported some to be used by the IRremote LIB in Arduino. I have changed to LSB8 as advised in the videos and articles for AC remote. Successfully achieved a response when sending code throgh. Thanks to AnaslysIR made it easy, the first part is done, now as I dug deeper I came across a few unknowns that I hope someone may able to help me unravel and answer the questions below:

Code: Select all

Board: Mega2560
Type: FUJITSU128_56AC
Bits: 128
Reverse Engineer Screenshot of the values captured
AnalyseIR (2).jpg
Questions:
1) I can't make sense of the value in AnalysIR for example changing the temperature to 18C? What is the first value (1;0;1000;0) ? and how it correlates to the actual raw data, it seems they don't match.
1;0;1000;0|2;1000;3280;1|3;4280;1692;0|4;5972;400;1|5.....etc..
vs
Raw (259): 3280,-1692,400,-440,392,-444, etc...

2) Why I am getting negative values in raw data when I export IR Signal (IRremote) vs export batch?

3) Is there a Lib that will allow me to send command (hex) eiterh rather than sending the entire raw data?

3) How the HEX values are being converted to Raw data and vice versa?

Code: Select all

For example:
1463001010FE0930200003000000208D
TO
{3280,1692,400,440,392,444,392,1160,512,444,396,1228,444,448,392,444,396,444,396,1256,412,1272,404,444,392,444,392,444,392,1256,420,1280,400,444,396,436,396,440,396,440,396,444,392,444,392,444,396,444,396,444,396,440,396,440,396,440,396,444,396,1212,460,444,392,448,392,448,392,444,392,440,396,444,392,444,392,1180,496,448,392,444,392,448,396,440,392,1276,400,1180,492,1276,400,1276,396,1216,460,1236,440,1224,456,1252,420,440,396,440,396,1256,420,444,392,444,396,444,396,444,396,440,396,440,396,440,396,444,392,1200,476,1276,400,444,396,444,396,440,396,440,396,444,396,440,396,440,396,1228,448,444,396,444,396,440,396,440,396,440,396,440,396,444,396,444,396,444,392,444,396,1220,452,1164,512,440,396,440,396,440,396,444,396,444,396,444,396,440,392,440,396,444,392,444,396,444,392,444,396,444,392,448,396,440,396,440,392,444,392,444,396,444,392,444,396,444,396,444,396,440,396,440,396,440,396,440,396,444,392,444,396,444,396,444,396,440,396,440,392,440,396,444,392,448,392,1272,404,444,396,444,396,1272,400,440,396,1276,400,1272,400,444,392,448,392,444,396,1280,396}; //AnalysIR Batch Export (IRremote) - RAW
Jun 28 2022 173016_ACGeneral_History.txt
You do not have the required permissions to view the files attached to this post.
User avatar
AnalysIR
Site Admin
Posts: 793
Joined: Sat Aug 31, 2013 3:51 pm
Location: Dublin, Ireland
Contact:

Re: Decoding AC Signals - Beginner Questions

Post by AnalysIR »

Questions:
1) I can't make sense of the value in AnalysIR for example changing the temperature to 18C? What is the first value (1;0;1000;0) ? and how it correlates to the actual raw data, it seems they don't match.
1;0;1000;0|2;1000;3280;1|3;4280;1692;0|4;5972;400;1|5.....etc..
vs
Raw (259): 3280,-1692,400,-440,392,-444, etc...
The 1000 is inserted by AnalysIR to make the signal display look better & can be ignored
Otherwise this is the internal representation in AnalysIR, which represents the values in the Channel grid on the left hand side.
FYI, you can also copy the Channel grids (CTRL+1 or CTRL+2) or just export he RAW values directly from the menu.
2) Why I am getting negative values in raw data when I export IR Signal (IRremote) vs export batch?
That is just a historical syntax to indicate a particular value is a space (vs a Mark). When using simply remove the - signs.
3) Is there a Lib that will allow me to send command (hex) eiterh rather than sending the entire raw data?
There are several examples on our blog showing how to send AC signals from HEX.
3) How the HEX values are being converted to Raw data and vice versa?
Part of each signal represents the bits. Usually a 1 will be a mark/space of a certian length and a 0 will have a different length space or mark. Check out the following site for an explanation.
https://www.sbprojects.net/knowledge/ir/index.php
...details thru the menu.
YouElz
Posts: 2
Joined: Tue Jun 28, 2022 5:46 pm

Re: Decoding AC Signals - Beginner Questions

Post by YouElz »

Thank you for the rapid response @AnalysIR answering the questions, and appreciate your help. I actually was able to find a PDF for FUJITSU128_56AC decoding which you have uploaded before in replay to another member, which seems similar to what I got.

For sending Hex values are you referring to this blog consisting of Part1, Part2, and Part 3
https://www.analysir.com/blog/2015/05/1 ... n-arduino/

Basically, do I have to build my own protocol to send Hex values instead of Raw Data?
Secondly, I know you have mentioned verifying checksum to many members, do you have a blog for that? or some sort of documentation, please.
User avatar
AnalysIR
Site Admin
Posts: 793
Joined: Sat Aug 31, 2013 3:51 pm
Location: Dublin, Ireland
Contact:

Re: Decoding AC Signals - Beginner Questions

Post by AnalysIR »

For sending Hex values are you referring to this blog
try this one
https://www.analysir.com/blog/2016/04/1 ... -irremote/
Basically, do I have to build my own protocol to send Hex values instead of Raw Data?
Yes you would have to customize the code above or similar.
Secondly, I know you have mentioned verifying checksum to many members, do you have a blog for that? or some sort of documentation, please.
check out the videos here ...
https://www.youtube.com/c/Analysir/videos
Post Reply