Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : problem with TeraTerm
Author | Message | ||||
robert.rozee Guru Joined: 31/12/2012 Location: New ZealandPosts: 2350 |
have been seeing some issues with TeraTerm when trying to use the File -> TTY Record feature. garbage text seems to be included in the saved file, though does not appear in the terminal window. i'm using a SiLabs CP2102 usb to serial bridge. can anyone else using a different serial bridge (or a real serial port) duplicate this? cheers, rob :-) here is the bug report i have submitted at sourceforge.jp: after selecting 'File -> TTY Record', pressing some keys, then selecting again to end recording, the created file contains garbage characters. setup: windows XP (sp3) running on an EM350 netbook SiLabe CP2102 usb to serial bridge with Tx/Rx linked CP2102 driver version 6.3.0.0 (10/1/2011) TeraTerm 4.82 com3, 38400 baud, no flow control. with TTY Record selected, typing "hello world" produces the following in the recorded file: " ªFSáõ [8;24;80tªFSê hªFSÔe eªFS‡“ lªFSê2 lªFSƒ@ oªFS· ªFSÝ¢ wªFS$ô oªFS½ rªFSz lªFS´Ä d " (excluding quote marks around both input and output) |
||||
JohnS Guru Joined: 18/11/2011 Location: United KingdomPosts: 3816 |
Are those VT100 escape sequences? Try dumping in hex/etc and check. I take it you are using the correct baud rate... John |
||||
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 6102 |
It certainly looks like escape codes but I don't recognize them as VT100. There are plenty of <esc> characters. You can see 'hello world' in between the control sequences. There may be some 'translation' being done when you copy and paste to the forum so I would certainly try looking at it with a HEX editor such as HxD What device are you connecting to? What terminal does the device expect? What encoding is TeraTerm set to? " ªFSáõ [8;24;80tªFSê hªFSÔe eªFS‡“ lªFSê2 lªFSƒ@ oªFS· ªFSÝ¢ wªFS$ô oªFS½ rªFSz lªFS´Ä d Jim VK7JH MMedit  MMBasic Help |
||||
robert.rozee Guru Joined: 31/12/2012 Location: New ZealandPosts: 2350 |
there is no device being connected to, beyond a jumper connecting Rx and Tx together. so the emulation and baud rates don't matter as long Tx and Rx are the same (and it is not possible to have them different). this is just a simple loopback test. baud rate is 38400, with nothing else altered beyond defaults, teraterm 4.82 (4.81 behaves the same). here is a hex dump: 00 16 aa 46 53 e1 f5 05 00 0a 00 00 00 1b 5b 38 3b 32 34 3b 38 30 74 17 aa 46 53 05 ea 06 00 .ªFSáõ.......[8;24;80t.ªFS.ê.. 1e 01 00 00 00 68 17 aa 46 53 d4 65 0c 00 01 00 00 00 65 18 aa 46 53 87 93 03 00 01 00 00 00 ....h.ªFSÔe......e.ªFS........ 3c 6c 18 aa 46 53 ea 32 06 00 01 00 00 00 6c 18 aa 46 53 83 40 0a 00 01 00 00 00 6f 19 aa 46 l.ªFSê2......l.ªFS.@......o.ªF 5a 53 1b b7 00 00 01 00 00 00 20 19 aa 46 53 dd a2 0c 00 01 00 00 00 77 1a aa 46 53 24 f4 00 S.·...... .ªFSÝ¢......w.ªFS$ô. 78 00 01 00 00 00 6f 1a aa 46 53 bd 01 05 00 01 00 00 00 72 1b aa 46 53 12 7a 00 00 01 00 00 .....o.ªFS½.......r.ªFS.z..... 96 00 6c 1b aa 46 53 b4 c4 04 00 01 00 00 00 64 .l.ªFS´Ä......d |
||||
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 6102 |
OK, I tried it with SI and other brand adapters and the result is the same as you are seeing. I have never used TTY record so I only assume that the escape sequences are required for TTY playback. I have only ever used LOG to record serial port activity with TeraTerm. Jim VK7JH MMedit  MMBasic Help |
||||
bigmik Guru Joined: 20/06/2011 Location: AustraliaPosts: 2914 |
Hi Rob, Where can I find TTY Record? I look under the file menu and can only see LOG (which works as expected...) My version of TT is 4.82 which I think is the latest. Regards, Mick PS. Unless TTY Record is in Unix? I use the windows version Mik Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<< |
||||
robert.rozee Guru Joined: 31/12/2012 Location: New ZealandPosts: 2350 |
here is where to find the menu item - i'm using windows XP: but i do have a sinking feeling that the extra 'garbage' is timestamping info embedded in the log file so that it plays back in real time. could be a case of 'finger trouble' on my behalf - perhaps i should have been using 'Log...' instead. rob :-) |
||||
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 6102 |
There is not a lot of help info available about TTY record but this is a translation of some Japanese help: and ttyrec it?
ttyrec will record a tty. You can play in ttyplay command that comes with data which I recorded. ttyrec is the stuff of just added the ability to embed the time information in microseconds to script command. You can record whatever program running on a tty lynx, or any even any vi emacs-nw. So unless you really do want a timed log (which could be handy at times), stick to 'LOG' Jim VK7JH MMedit  MMBasic Help |
||||
bigmik Guru Joined: 20/06/2011 Location: AustraliaPosts: 2914 |
Rob, That menu definately doesnt appear in my version on my home PC. I have just arrived on holidays at Yarrawonga ... I will dig out my laptop ttomorrow and test it on it.. Mick Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<< |
||||
robert.rozee Guru Joined: 31/12/2012 Location: New ZealandPosts: 2350 |
interesting - perhaps there are multiple compiles available out there? here is a snapshot of the 'about' screen from mine: nonetheless, it does sound like 'TTY Record' and 'TT Replay' are intended for something quite different from what i had assumed. many thanks to those who helped solve this one. in future i shall use the 'Log...' option instead! rob :-) |
||||
bigmik Guru Joined: 20/06/2011 Location: AustraliaPosts: 2914 |
Hi Rob, My laptop has the Record TTY options.. I installed the latest 4.82, to see if it was different, and I see that I have other install options on my laptop checked... When I installed TT to my desktop I unchecked everything except the first box TT+Macro.. So it must be something to do with one of the other install options. Regards, Mick Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<< |
||||
Print this page |