Go Down

Topic: How can i convert hex code to raw data in IR? (Read 140 times) previous topic - next topic

Goodluck_

I have IR receiver serial output(connected with esp8266 with IR receiver)
How can I convert manually from hex code to raw data?

[coProtocol  : UNKNOWN
Code      : 0xB4C0FCA9 (129 Bits)
uint16_t rawData[257] = {516, 988,  478, 530,  476, 1014,  492, 530,  474, 530,  476, 1012, 
520, 506,  498, 986,  522, 488,  516, 982,  516, 492,  518, 986,  500, 990,  518, 506,  498,
986,  518, 488,  520, 488,  516, 506,  500, 506,  500, 504,  500, 506,  488, 518,  516, 490, 
520, 488,  518, 506,  500, 506,  500, 506,  474, 530,  512, 492,  518, 488,  522, 488,  516,
506,  500, 984,  518, 488,  522, 486,  518, 506,  500, 504,  500, 504,  442, 564,  514, 492, 
518, 488,  522, 486,  518, 504,  500, 504,  500, 504,  500, 504,  484, 522,  516, 490,  520,
488,  518, 506,  500, 504,  500, 504,  500, 504,  500, 506,  488, 518,  518, 490,  520, 488, 
518, 512,  500, 500,  496, 506,  500, 504,  418, 590,  512, 494,  518, 490,  518, 504,  500,
504,  500, 504,  500, 504,  500, 506,  482, 524,  516, 490,  520, 488,  518, 506,  500, 504, 
500, 506,  500, 504,  416, 590,  512, 494,  518, 488,  518, 504,  500, 506,  500, 506,  498,
506,  498, 506,  486, 520,  516, 492,  520, 488,  516, 506,  500, 506,  498, 506,  500, 504, 
418, 590,  488, 518,  518, 490,  518, 506,  500, 506,  498, 506,  498, 506,  498, 508,  416,
590,  512, 494,  518, 488,  516, 506,  498, 506,  498, 506,  498, 506,  474, 532,  486, 520, 
516, 492,  518, 492,  512, 506,  498, 506,  498, 506,  498, 506,  418, 590,  486, 520,  516,
490,  516, 506,  498, 506,  498, 508,  498, 506,  418, 590,  486, 520,  514, 492,  516, 508, 
496, 508,  496, 508,  496, 508,  498};  // UNKNOWN B4C0FCA9

UKHeliBob

Why have you asked this question from another account when it is already being answered in your many other topics on the same subject under another account name ?

Are you and wounder1 the same person ?
Please do not send me PMs asking for help.  Post in the forum then everyone will benefit from seeing the questions and answers.


UKHeliBob

that's  not me  :(
Then it must be a coincidence that the questions being asked are about the same subject as yours and that the user has the same IP address as you

Is this a school project ?
Please do not send me PMs asking for help.  Post in the forum then everyone will benefit from seeing the questions and answers.

krupski

I have IR receiver serial output(connected with esp8266 with IR receiver)
How can I convert manually from hex code to raw data?
Look at this code:  https://github.com/krupski/sony_ir

Study how it works and your problem is solved.
Gentlemen may prefer Blondes, but Real Men prefer Redheads!

sterretje

Why do you need hex codes? A number is a number, it does not matter how you represent it.
E.g. 516 decimal is the same as 0x204.
If you understand an example, use it.
If you don't understand an example, don't use it.

Electronics engineer by trade, software engineer by profession. Trying to get back into electronics after 15 years absence.

DrDiettrich

The basic problem is that raw hex codes (hash codes) cannot be converted back into raw data, for use with sendRaw(). The next more annoying problem are people which don't accept such an answer :-(

Goodluck_

Code: [Select]
From below, response get from IR receiver (using  Arduino library )
could you please help me decode the protcol formate ?
thanks..
Timestamp : 000657.493
Library   : v2.7.2

Protocol  : UNKNOWN
Code      : 0xB4C0FCA9 (129 Bits)
uint16_t rawData[257] = {462, 1044,  474, 532,  472, 1016,  492, 532,  472, 532,  448, 1038, 
492, 514,  490, 1010,  462, 544,  490, 1014,  450, 558,  416, 1090,  474, 1012,  490, 516,  492,
1008,  418, 590,  462, 544,  492, 514,  584, 440,  472, 532,  536, 474,  462, 538,  446, 560, 
416, 590,  462, 548,  492, 516,  464, 560,  434, 570,  444, 556,  466, 538,  416, 588,  462,
544,  490, 1014,  472, 534,  462, 548,  486, 518,  492, 514,  492, 536,  560, 440,  468, 534, 
472, 532,  416, 590,  462, 544,  492, 514,  492, 532,  472, 532,  472, 532,  472, 532,  444,
560,  416, 590,  486, 520,  490, 516,  490, 534,  470, 538,  446, 554,  470, 534,  416, 590, 
462, 544,  490, 516,  492, 534,  470, 534,  470, 534,  470, 534,  470, 536,  416, 590,  462,
544,  490, 516,  490, 534,  470, 534,  470, 534,  470, 534,  418, 588,  460, 546,  488, 518, 
490, 536,  470, 532,  472, 534,  470, 534,  468, 536,  416, 590,  462, 548,  486, 520,  492,
478,  518, 536,  470, 534,  470, 534,  416, 588,  460, 546,  490, 518,  490, 534,  470, 534, 
470, 534,  470, 534,  444, 560,  416, 600,  454, 544,  490, 518,  488, 538,  470, 530,  468,
536,  470, 536,  416, 590,  434, 578,  482, 520,  490, 534,  470, 536,  474, 528,  470, 538, 
458, 542,  416, 592,  460, 546,  490, 518,  488, 538,  470, 536,  444, 556,  446, 560,  442,
562,  482, 530,  476, 530,  478, 544,  462, 540,  468, 536,  468, 536,  466, 538,  416, 590, 
436, 570,  488, 518,  488, 536,  468}; 

pert

Another similarity between @Goodluck_ and wounder1 is they both like to cross-post.

I've merged your other cross-post @Goodluck_.

Cross-posting is against the rules of the forum. The reason is that duplicate posts can waste the time of the people trying to help. Someone might spend 15 minutes (or more) writing a detailed answer on this topic, without knowing that someone else already did the same in the other topic.

Repeated cross-posting will result in a suspension from the forum.

In the future, please take some time to pick the forum board that best suits the topic of your question and then only post once to that forum board. This is basic forum etiquette, as explained in the sticky "How to use this forum - please read." post you will find at the top of every forum board. It contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

Go Up