FreeEMS Issues - Loader
View Issue Details
0000278LoaderSerial Monitor Commspublic2011-09-26 17:402012-08-29 01:00
Fred 
sean94z 
normalminoralways
assignedreopened 
LinuxDebianSid/Unstable
 
0.1.0 
Bug
medium
0000278: Loader Goes CRAZY If Something Else Has Serial Port
Abort button turns back into connect, but app keeps trying ot send packets and delete and load stuff, with no way of stopping bar ctrl C.

Simple thing to test:

 - Fire up cutecom and connect (leave connected)
 - Fire up loader and connect (same device)
 - When it succeeds try to load something
 - Watch it all turn to custard.
No tags attached.

Notes
(0001927)
sean94z   
2012-08-27 21:25   
I followed your directions as per this issue and was unable to reproduce the result.

commit a0e0281df1dcc2f43304214404a135ce10142e5d
Author: Sean Keys <skeys@ipdatasys.com>
Date: Mon Aug 27 14:11:03 2012 -0700

    [0000236] Renamed files in an attempt to satisfy 'better' files names.

It behaves as expected, if cutecom get the ACKS or bytes and the Loader does not it gracefully errors out.
(0001933)
Fred   
2012-08-27 21:55   
Behaves well in SM mode, however if firmware is streaming it just locks up solid/freezes. It shouldn't ever do this. Method is same as description, no longer goes crazy, but still doesn't work right always, so reopening.
(0001934)
sean94z   
2012-08-27 21:56   
Will investigate, thx!
(0001940)
sean94z   
2012-08-27 22:32   
I cant ever get it to succeed....... It may take a unit test to get it to succeed with my env?
(0001941)
sean94z   
2012-08-27 22:34   
CuteCom open 115200 8 N 1 and I can see packets coming in... broken packets because the parity is wrong

Info: closing serial portseank@sk-dv6500:~/work/workspaceCDT/freeems-loader/src$ ./FreeEMS-Loader

Info: number of burns executed 514
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
^[[B^[[B^C
seank@sk-dv6500:~/work/workspaceCDT/freeems-loader/src$
(0001942)
Fred   
2012-08-28 09:37   
Can't get it to "succeed" ? What do you mean?
(0001946)
sean94z   
2012-08-28 18:14   
Simple thing to test:

 - Fire up cutecom and connect (leave connected)
 - Fire up loader and connect (same device)
 - When it succeeds try to load something <- this never happens....
 - Watch it all turn to custard.

I just get the above error messages each time...

Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
(0001947)
Fred   
2012-08-28 18:16   
Right, see this comment: http://issues.freeems.org/view.php?id=278#c1933 [^]

All it does now is lock up and freeze.
(0001953)
sean94z   
2012-08-29 01:00   
I'm going to bring in another tester on this one. I cant get it to lock up, I tried two difference serial adaptors and all I get when I click connect is this:

Info: closing serial port
Error: Data read, but it was not a serial monitor ACK
Info: closing serial port
Error: Data read, but it was not a serial monitor ACK

The app doesn’t ever lock though....