How to get the address and command of this ir raw data and header_micros and space

I have taken this raw data from the lloyd remote with the help of the TSOP1738 .
HOw to get the address and command and how to identify the pulse distancing format
AC OFF

Protocol=UNKNOWN Hash=0x98E3789A 121 bits (incl. gap and start) received

Raw result in internal ticks (50 us) - with leading gap
rawData[242]:
-65535
+ 21,- 11 + 20,- 11 + 21,- 50 + 20,- 50
+ 21,- 11 + 20,- 50 + 20,- 51 + 20,- 11
+ 20,- 12 + 20,- 11 + 20,- 12 + 20,- 11
+ 20,- 50 + 21,- 50 + 20,- 50 + 21,- 50
+ 20,- 11 + 21,- 11 + 20,- 50 + 20,- 12
+ 20,- 50 + 20,- 12 + 20,- 11 + 20,- 11
+ 21,- 11 + 20,- 11 + 21,- 11 + 20,- 11
+ 21,- 11 + 20,- 50 + 21,- 11 + 20,- 11
+ 20,- 12 + 20,- 11 + 20,- 50 + 21,- 50
+ 20,- 11 + 21,- 11 + 20,- 11 + 21,- 11
+ 20,- 11 + 21,- 11 + 20,- 11 + 20,- 12
+ 20,- 11 + 20,- 12 + 20,- 11 + 20,- 11
+ 21,- 11 + 20,- 11 + 21,- 11 + 20,- 11
+ 21,- 11 + 20,- 11 + 20,- 12 + 20,- 11
+ 20,- 12 + 20,- 11 + 20,- 11 + 21,- 11
+ 20,- 11 + 21,- 11 + 20,- 11 + 21,- 11
+ 20,- 11 + 20,- 12 + 20,- 11 + 20,- 12
+ 20,- 11 + 20,- 12 + 20,- 11 + 20,- 11
+ 21,- 11 + 20,- 11 + 21,- 11 + 20,- 11
+ 20,- 51 + 20,- 11 + 20,- 51 + 20,- 11
+ 20,- 50 + 21,- 11 + 20,- 11 + 21,- 11
+ 20,- 11 + 20,- 12 + 19,- 12 + 20,- 12
+ 20,- 11 + 20,- 12 + 20,- 11 + 20,- 11
+ 21,- 11 + 20,- 11 + 21,- 11 + 20,- 11
+ 20,- 12 + 20,- 11 + 20,- 12 + 20,- 11
+ 20,- 12 + 20,- 11 + 20,- 11 + 21,- 11
+ 20,- 11 + 21,- 11 + 20,- 11 + 20,- 12
+ 20,- 11 + 20,- 12 + 20,- 11 + 20,- 11
+ 21,- 50 + 20,- 50 + 20,- 12 + 20,- 50
+ 21,- 11 + 20,- 50 + 20,- 12 + 20,- 11
+ 20
Raw result in microseconds - with leading gap
rawData[242]:
-3276750
+1050,- 550 +1000,- 550 +1050,-2500 +1000,-2500
+1050,- 550 +1000,-2500 +1000,-2550 +1000,- 550
+1000,- 600 +1000,- 550 +1000,- 600 +1000,- 550
+1000,-2500 +1050,-2500 +1000,-2500 +1050,-2500
+1000,- 550 +1050,- 550 +1000,-2500 +1000,- 600
+1000,-2500 +1000,- 600 +1000,- 550 +1000,- 550
+1050,- 550 +1000,- 550 +1050,- 550 +1000,- 550
+1050,- 550 +1000,-2500 +1050,- 550 +1000,- 550
+1000,- 600 +1000,- 550 +1000,-2500 +1050,-2500
+1000,- 550 +1050,- 550 +1000,- 550 +1050,- 550
+1000,- 550 +1050,- 550 +1000,- 550 +1000,- 600
+1000,- 550 +1000,- 600 +1000,- 550 +1000,- 550
+1050,- 550 +1000,- 550 +1050,- 550 +1000,- 550
+1050,- 550 +1000,- 550 +1000,- 600 +1000,- 550
+1000,- 600 +1000,- 550 +1000,- 550 +1050,- 550
+1000,- 550 +1050,- 550 +1000,- 550 +1050,- 550
+1000,- 550 +1000,- 600 +1000,- 550 +1000,- 600
+1000,- 550 +1000,- 600 +1000,- 550 +1000,- 550
+1050,- 550 +1000,- 550 +1050,- 550 +1000,- 550
+1000,-2550 +1000,- 550 +1000,-2550 +1000,- 550
+1000,-2500 +1050,- 550 +1000,- 550 +1050,- 550
+1000,- 550 +1000,- 600 + 950,- 600 +1000,- 600
+1000,- 550 +1000,- 600 +1000,- 550 +1000,- 550
+1050,- 550 +1000,- 550 +1050,- 550 +1000,- 550
+1000,- 600 +1000,- 550 +1000,- 600 +1000,- 550
+1000,- 600 +1000,- 550 +1000,- 550 +1050,- 550
+1000,- 550 +1050,- 550 +1000,- 550 +1000,- 600
+1000,- 550 +1000,- 600 +1000,- 550 +1000,- 550
+1050,-2500 +1000,-2500 +1000,- 600 +1000,-2500
+1050,- 550 +1000,-2500 +1000,- 600 +1000,- 550
+1000

Never seen this way of showing IR reception before. Usually each button sends a stream of bytes shown in hex in the end.

Sir, is their any method to get the address and command.. basically this is my college project .
I am trying to send the hex code of different AC.

Sir , do you know how to get the hex code from the raw data manually ... Basically i am trying to do reverse engineering

It looks like a form of Pulse Distance Coding. The times are multiples of 500us with a bit of jitter. The start of the bit is high for 1000us. The zero or one is represented by a down time of 500us or 2500us

Round all the values to multiples of 500us, then take each high/low pair to get the bit value. For example the first 3 lines would be

0011
0110
0000
(or the inverse depending on how the bits are encoded, the ones I have seen use the longer down time for a 1)

This will give you the bit pattern but what it means depends on the protocol. If you have no information on the protocol you will need to try to figure it out. Start with the differences from the different buttons. For example if they all start (or maybe end) with the same pattern that might be the device address.

Thankyou sir I understood this concept ...
But every signal have header mark and space and I am unable to find that

Guide me to write the code for unknown protocol with the help of Irremote.h library
I dont want to send the ir raw data , i wanted to send the ir hex code

Please read and use the topic " How to get the best out of this forum".
Look for example code, in the IDE, concerning IR.

See my response in your other post. It is bad form to open multiple discussions on the same topic. The moderators may slap your fingers.

I apologize. I am using this platform for the first time .
Could you please guide me I dont have much knowledge on this topic

Which example sir ?

Quite some useful advice os here: How to get the best out of this forum - Using Arduino / Installation & Troubleshooting - Arduino Forum

Look into the IDE files/examples. When You add libraries they usually come with library example files as well and they pop up here.

@levi0079, please do not cross-post. Threads merged.

I am sorry sir but still I
dont understood how i will send the hex code of different AC
Could you please guide me step by step

What do you mean a different AC? If it is not the same make and model it may have completely different command encoding.

If you just want to use the same commands, play back the recorded raw on/off pattern. I haven't used the IR libraries so I don't know what the options are.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.