|
Here we go again
I modified MTTTY today and here are new raw logs of a session.
Changes :
- I dumped each serial port to a separate file, to avoid buffer flushing and thread synchronization problems
- I numbered each received byte uniquely (even across com ports)
- I also timestamped each byte received. The PC clock isn't that accurate to get a different timestamp for each byte, but it gives valuable information on the timing of the protocol. Time is given in seconds[.milliseconds]
- I removed the ascii conversion that was useless.
I then manually executed the following "script of operations", with and estimated precision of +/- 2 seconds :
Time : operation
-----------------
0 : start capture
30 : turn head unit on (Changer starts playing the beginning of TR1 of CD1)
60 : press "Next" (track 2)
75 : press "Next" (track 3)
90 : press "Next" (track 4)
105 : press "Next" (track 5)
120 : press "Next" (track 6)
135 : press "Next" (track 7)
150 : press "Next" (track 8)
165 : press "Next" (track 9)
180 : press "Next" (track 1 again, because CD only had 9 tracks)
195 : press "Next" (track 2)
210 : press "Previous" (track 2 restarts at the beginning)
225 : quickly press "Previous/Previous" (track 1 starts at the beginning)
240 : press and held "Next" (Fast forward, display shows ">>")
255 : release "Next" (playing)
270 : press and held "Previous" (Fast reverse, display shows "<<")
284 : release "Previous" (playing)
300 : press "CD 2" (CD loads and starts after ca. 5 seconds)
315 : press "CD 3" (idem)
330 : press "CD 4" (idem)
345 : press "CD 5" (idem)
360 : press "CD 6" (idem)
375 : press and hold "CD1" (random on)
378 : release "CD1" after the beep (skips to track 10, I think)
390 : press "Next" (skips to track 2, I think)
405 : press and hold "CD1" (random off)
408 : release "CD1" after the beep (continues in track 2, I think)
435 : eject CD tray from changer (head unit switched to tuner)
465 : insert CD tray and let the changer load each CD in turn
495 : eject CD tray again
525 : insert CD tray again
530 : switch head unit source to CD changer (display shows "CD CHECK"). Playing starts around 548
570 : switch head unit source to Tuner
585 : switch head unit source back to CD changer
600 : press "Pause" (music stops)
615 : press "Pause" again (music starts again)
630 : turn head unit off
Apart from the 2 raw files in the zip, you'll also find an Excel version compressed in a rar, combining both logs (ordered by byte number ;-)) and the manual operations.
I think it would be interesting to find a rule and automate the splitting into frames, because manually formating 12kBytes of data seems rather lengthy...
Happy hacking :-)
Note : I also attach here my modified MTTTY app. If you want to make your own logs, just make sure you have a C:\Temp directory or create it if needed (hardcoded path for log files), then start the app, check the com port settings (9600/even/1) and click File > Connect.
Source - quickly hacked - available on demand.
|