nobletoll / powersdr-if-stage

Automatically exported from code.google.com/p/powersdr-if-stage
Other
0 stars 0 forks source link

Bug in Incoming Serial Parsing for PowerMaster #144

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Tim K8XS is seeing an issue with the PowerMaster using a USB->Serial cable.
 It turns out the incoming CAT parser has a bug and is stripping out part
of the answer command coming back.  It appears it is because the for loop
in the SerialRXEventHandler is iterating over e.buffer instead of
this.commBuffer which includes data from the previous SerialRXEvent.

SerialRig.connect(), Opening COM8...
SerialRig.connect(), Opened COM8.
Meter.connect(), Opening COM2...
Meter.connect(), Opened COM2.
RigSerialPoller.poll(), Start.
-> FA;
<- FA00014169840;
-> FB;
<- FB00014169840;
-> FB;
<- FB00014169840;
-> IF;
-> FI;
SerialRig.RigCommandThread(), Start.
-> FB;
<- IF00014169840     -000000 0002000021 ;
<- FI6250;
<- FB00014169840;
-> IF;
-> FI;
-> FB;
<- IF00014169840     -000000 0002000021 ;
<- FI6250;
<- FB00014169840;
-> IF;
-> FI;
-> FB;
<- IF00014169840     -000000 0012000021 ;
-> 02 D 2 03 A 2 0d 
<- 02 A 03 8 F 
<- FI6250;
<- FB00014169840;
-> IF;
-> FI;
<- ; 0 ; 0 ; 0 03 2 6 
-> FB;
<- ; 0 ; 0 ; 0 03 0 7 
<- IF00014169840     -000000 0012000021 ;
<- FI6250;
<- ; 0 ; 0 ; 0 03 0 7 
<- FB00014169840;
-> IF;
-> FI;
<- ; 0 ; 0 ; 0 03 0 7 
-> FB;
<- ; 0 ; 0 ; 0 03 D E 
<- IF00014169840     -000000 0012000021 ;
<- FI6250;
<- ; 0 ; 0 ; 0 03 D E 
<- FB00014169840;
-> IF;
-> FI;
<- ; 0 ; 0 ; 0 03 D E 
-> FB;
<- ; 0 ; 0 ; 0 03 C B 
<- IF00014169840     -000000 0012000021 ;
<- FI6250;
<- ; 0 ; 0 ; 0 03 C B 
<- FB00014169840;
-> IF;
-> FI;
<- ; 0 ; 0 ; 0 03 C B 
-> FB;
<- ; 0 ; 0 ; 0 03 5 C 
<- IF00014169840     -000000 0012000021 ;
<- FI6250;
<- ; 0 ; 0 ; 0 03 A 8 
<- FB00014169840;
-> IF;
-> FI;
<- ; 0 ; 0 ; 0 03 A 8 
-> FB;
<- ; 0 ; 0 ; 0 03 A 8 
<- IF00014169840     -000000 0012000021 ;
<- FI6250;
<- ; 0 ; 0 ; 0 03 E 2 
<- FB00014169840;
-> IF;
-> FI;
<- ; 0 ; 0 ; 0 03 3 E 
-> FB;
<- ; 0 ; 0 ; 0 03 3 E 
<- IF00014169840     -000000 0012000021 ;
<- FI6250;
<- ; 0 ; 0 ; 0 03 3 E 
<- FB00014169840;
-> IF;
-> FI;
<- ; 0 ; 0 ; 0 03 8 1 
-> FB;
<- ; 0 ; 0 ; 0 03 8 1 
<- IF00014169840     -000000 0012000021 ;
<- FI6250;
<- FB00014169840;
<- 02 D , 20 20 20 5 8 . 5 , 20 20 20 20 0 . 4 , 20 1 . 1 9 , 0 ; 0 ; 0 ; 0
; 0 03 8 1 
Forward: 58.5W  Reflected: 0.4W  VSWR: 1.19
-> IF;
-> FI;
<- ; 0 ; 0 ; 0 03 0 6 
-> FB;
<- IF00014169840     -000000 0012000021 ;
<- FI6250;
<- ; 0 ; 0 ; 0 03 0 6 
<- FB00014169840;
SerialRig.disconnect(), Shutting down Rig Command Thread.
RigSerialPoller.disable(), Shutting down Rig Polling Thread.
RigSerialPoller.disable(), Waiting for Rig Polling Thread to finish...
SerialRig.RigCommandThread(), End.
<- ; 0 ; 0 ; 0 03 0 6 
RigSerialPoller.poll(), End.
SerialRig.disconnect(), Waiting for Rig Command Thread to finish...
SerialRig.disconnect(), Deregistering COM8 Handlers...
-> 02 D 0 03 7 1 0d 
Meter.disconnect(), Deregistering COM2 Handlers...
SerialRig.destroySIO(), Closing COM8...
Meter.destroySIO(), Closing COM2...
Meter.destroySIO(), Closed COM2.
SerialRig.destroySIO(), Closed COM8.

Original issue reported on code.google.com by cgates...@gmail.com on 25 Feb 2010 at 1:15

GoogleCodeExporter commented 9 years ago
r224

Original comment by cgates...@gmail.com on 25 Feb 2010 at 11:26