I tried to find duplicates of my problem, but could not find. Also, sorry for the obscure name. I am so confused by what I'm looking for, as well as the terminology. I am an electronics engineer with very little knowledge of the .Net framework, so treat me well :)
My current project is a heart rate monitor that can store the measured heart rate in the EEPROM for sending to a PC for later viewing the log.
I interact with an 8-bit microcontroller using the RS-232 protocol (serial). Whenever I send to the microcontroller char l , which stands for log , it will send me some information in the following format:
0x1E 0x21 0x01 0x13 0x14 0x35 0x46 0x1E 0x21 0x01 0x13 0x14 0x43 0x48 0x0A 0x0D
Empty space for informational purposes, these bytes are not separated from each other.
These 8-bit HEX values ββthat are sent from the microcontroller include the start of recording information that is 0x1E , the date and time in DD MM YY HH MM format, and the recorded heart rate. When all records are reflected, then 0x0A and 0x0D are sent.
For example, the above code means:
Record start. 21.01.13 14:35 Heart Rate: 70 Record start. 21.01.13 14:43 Heart Rate: 72 End of records.
How to get a string value as follows: "S210113143570S210113144372", where S can be anything. Subsequently, I am going to apply the regular expression syntax to this and divide it into groups so that I can add these values ββto the listview control.
Edit after comments and replies:
I did not write the sample incorrectly. Unfortunately, the encoding is exactly the same as above.