| ??? 03/26/01 20:01 Read: times |
#10337 - RE: serial data question |
Craig, it looks like it's just a matter of parsing the string.
The easiest way is to receive the entire string and store it in memory. Then go back and parse it. The data appears to be comma-delimited, so you just start going through and break the fields out knowing that each field ends with a comma (except the last one). You could also do this parsing byte-by-byte as you receive the data as long as your parse procedure doesn't take too long. If it took too long, you could lose serial input. But if it's just a matter of parsing the characters out into various fields that's definitely something you could do on-the-fly instead of storing the entire string to parse later. Craig Steiner |
| Topic | Author | Date |
| serial data question | 01/01/70 00:00 | |
| RE: serial data question | 01/01/70 00:00 | |
| RE: serial data question | 01/01/70 00:00 | |
| RE: serial data question | 01/01/70 00:00 | |
| RE: serial data question | 01/01/70 00:00 | |
| RE: serial data question | 01/01/70 00:00 | |
RE: serial data question | 01/01/70 00:00 |



