Dear Sir, I want to receive unequal length data from the RS232 Port of the PIC CPU; the first data is 5Bytes (3.396), the second data is 4Bytes (0351), the third data is 3Bytes (65C), and the fourth data is 3Bytes. (37%), the fifth data 6Bytes (12123R), the sixth data 6Bytes (12133R); each data is separated by \t, and finally used \r\n to wrap; this cycle is endless. However, the program I wrote could not replace the array with the length or \t received, or \r\n to replace the loop. Therefore, please do not hesitate to guide the advanced。
The graphic description is as follows, the program is attached.