Sitelet https://github.com/crankyoldgit/IRremoteESP8266/issues/1703
Skip to content

Generate raw data from hex code #1703

Description

@Nakul93

I am trying to use rmt module from esp-idf and was able to receive raw data(raw timings) from it, in order for matching the protocols I have the hex codes for each control(which is unique).
Is there a way where we can generate the raw data (raw timings) from hex (hash) code so that I can send data.

eg: for GREE

convert:
code: 0x09072050002000C0

to:
uint16_t rawData[139] = {9048, 4422, 706, 1616, 674, 474, 726, 524, 650, 1642, 676, 514, 684, 496, 702, 524, 652, 550, 672, 1616, 674, 1620, 650, 1644, 652, 522, 676, 520, 702, 516, 682, 524, 676, 522, 652, 518, 702, 498, 678, 548, 652, 546, 676, 524, 676, 1620, 674, 476, 700, 520, 704, 524, 674, 524, 652, 548, 678, 522, 652, 1616, 676, 548, 676, 1620, 676, 522, 676, 524, 652, 1642, 676, 498, 700, 19896, 706, 526, 676, 522, 678, 520, 678, 520, 680, 522, 676, 494, 706, 520, 678, 520, 678, 520, 680, 518, 680, 520, 682, 516, 684, 516, 682, 1582, 712, 512, 684, 516, 686, 512, 684, 514, 684, 514, 684, 514, 684, 514, 686, 514, 684, 514, 684, 514, 684, 516, 682, 516, 684, 516, 682, 518, 682, 516, 680, 494, 704, 1586, 708, 1588, 706}; // GREE

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions