24c wrote:OK just opening Megatunix, eight times, & not saving anything I get, N=zeros, Y =OK load ...NYNYYNYNdjandruczyk wrote: Try comparing runs where the ecu has been power cycled between tests, and again when the usb seral device has been unplugged and replugged..
Opening Megatunix, and at the Find my ECU splash screen unplugging & plugging the USB I get ... YYYYNYNY
Power cycling doesn't change the port state on the diagnostic RS232 connector, so I got ... NYNY
When MegaTunix exits, port stays in RXD & TXD are active mode. If you unplug/plug USB connector the Serial is reset, so that's RXD, TXD, DTR & RTS ports are active, and when you click Find my ECU the RXD & TXD become active as expected.
It's almost like the Updating Controls Page 1-5 is not reading correctly, and I did notice an instantaneous flash of a splash screen that looked like a "No Entry" or red sign, but it happened so fast, I couldn't see it properly.
Maybe I should run this under gdb but even if it doesn't load correctly initially, I can always Get data from ECU.
PS I think this is due to the serial port not resetting when you Exit MegaTunix, as I just tried using OSX on the iMac and I got ...YYYYYYYY
GDB won't show anything unless it is physiclaly crashing. A bettter method would be to enable serial read serial write debugging and looking at ~/MTXklog.txt file. Beware you may wish to turn the time between realtime reads to 5000 ms (5 seconds) otherwise the log will be fully of those messages.
Its strange that I can NOT replicate your behavior, but I will investigate the serial open/close semantics t osee if I'm leaving the port in an odd state.