Aug-12-2019, 06:07 AM
I have serial data captured using coolterm. Sample captured data is shown below
09 9F 12 B1 0D 0A DA BC E1 1A 0A 80 14 63 0D 0A
D7 AA DF 69 0B 15 15 80 0D 0A D4 D6 DD E9 0B 99
16 7A 0D 0A D3 9C DD AC 0B AE 16 A1 0D 0A D3 25
DE 06 0B 91 16 66 0D 0A D3 47 DE D0 0B 4D 15 DD
0D 0A D4 57 E0 40 0A D0 14 E2 0D 0A D5 FF E2 34
The data format is 8 bytes followed by 0D 0A. I need help in python program that
1.picks up 8 data bytes(4 integer data) before 0D 0A and remove OD OA after this
2.group 8 bytes into 4 variables, For eg: consider the data below
D7 AA DF 69 0B 15 15 80 0D 0A
I need var1=D7AA, var2=DF69,var3=0B15,var4=1580 with 0D 0A knocked off for the entire dataset
can anybody help me
09 9F 12 B1 0D 0A DA BC E1 1A 0A 80 14 63 0D 0A
D7 AA DF 69 0B 15 15 80 0D 0A D4 D6 DD E9 0B 99
16 7A 0D 0A D3 9C DD AC 0B AE 16 A1 0D 0A D3 25
DE 06 0B 91 16 66 0D 0A D3 47 DE D0 0B 4D 15 DD
0D 0A D4 57 E0 40 0A D0 14 E2 0D 0A D5 FF E2 34
The data format is 8 bytes followed by 0D 0A. I need help in python program that
1.picks up 8 data bytes(4 integer data) before 0D 0A and remove OD OA after this
2.group 8 bytes into 4 variables, For eg: consider the data below
D7 AA DF 69 0B 15 15 80 0D 0A
I need var1=D7AA, var2=DF69,var3=0B15,var4=1580 with 0D 0A knocked off for the entire dataset
can anybody help me