I am writing a program that will be reading data from a modem over the serial port. I have the program up and mostly functional. Currently I have a feeling that the data I am reading is not contiguous.
It seems that the strings will sometimes be located in two element of the strArrInBuffer[] and this causes a problem when trying to parse out the information. If I have to I can add the strings together, but I would prefer to have a clean read into one variable. Any ideas on what I am doing incorrectly?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I am writing a program that will be reading data from a modem over the serial port. I have the program up and mostly functional. Currently I have a feeling that the data I am reading is not contiguous.
It seems that the strings will sometimes be located in two element of the strArrInBuffer[] and this causes a problem when trying to parse out the information. If I have to I can add the strings together, but I would prefer to have a clean read into one variable. Any ideas on what I am doing incorrectly?
Hello,
The problem or what I think it is problem is that I am receiving multiple sizes from the function SysComRead(). An example would be:
Expected:
$R$N+SBDIX: 18, 245, 2, 0, 0, 0$R$N$R$NOK$R$N
Actual:
18, 245, 2, 0,
0, 0$R$N$R$NOK$R$N