Suggest a way to store IR remote rawdata values which was sent through serial

Hello everyone

i was programming for home automation system comprises of relays and dimmers with IR remote blaster(Sending)

i was reading data from through serial and parsing information to char and integer variables to change states of relay(Char var) integer value for dimmers

Now there is scenario i have to receive such large data of raw ir values to use IR blaster

unsigned int irSignal = {9000, 4500, 560, 560, 560, 560, 560, 1690, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 1690, 560, 1690, 560, 560, 560, 1690, 560, 1690, 560, 1690, 560, 1690, 560, 1690, 560, 560, 560, 560, 560, 560, 560, 1690, 560, 560, 560, 560, 560, 560, 560, 560, 560, 1690, 560, 1690, 560, 1690, 560, 560, 560, 1690, 560, 1690, 560, 1690, 560, 1690, 560, 39416, 9000, 2210, 560}; //AnalysIR Batch Export (IRremote) - RAW

Method i implemented

i was receiving the data though serial and storing in a string ,later i use strtok using , as delimiter and storing them in array.

Problem
when i implemented above serial.readString was missing few packets

looking for sugesstions

Post the code that you have already written.

Maybe looking at the structure of the data you are receiving will help you analyse it more effectively.

It actually looks like extended NEC IR protocol with a 9mS + 4.5mS header followed by gaps representing 0 or 1 (560uS or 1690uS respectively). However, NEC protocol usually has a transmission block size of 4 bytes (32 bits). Yours appears to be 8 bytes. The last 3 timings after the long gap appear to be the repetition marker.

See SB-Projects - IR - NEC Protocol