Goodluck_:
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: GitHub - krupski/sony_ir: Infrared remote shutter control for Sony DSLR cameras
Study how it works and your problem is solved.