Do you know of a way (in Tera Term or other terminal) to automatically
save this data? Using some kind of modem protocol for instance?
Preferrably the data does not even show up on the screen and may be
even the file name could be set by the serial data.
But now I periodically (every few seconds) have an amount of data that
needs to be stored on the PC. A CVS like output with a 100 lines or so.
I can just spit this out after the menu, surrounded by some division lines and copy paste out of the terminal, or dig through the log file (with thousands of VT100 commmands between the data). But there must be an
easier way.
For a test setup, I have created a small UI using the serial port
connected to a VT100 capable terminal (Tera Term).
I use the VT100 commands to create a "nice" (for certain values of nice) looking output. This works OK.
But now I periodically (every few seconds) have an amount of data that
needs to be stored on the PC. A CVS like output with a 100 lines or so.
I can just spit this out after the menu, surrounded by some division lines and copy paste out of the terminal, or dig through the log file (with thousands of VT100 commmands between the data). But there must be an
easier way.
Do you know of a way (in Tera Term or other terminal) to automatically
save this data? Using some kind of modem protocol for instance?
Preferrably the data does not even show up on the screen and may be
even the file name could be set by the serial data.
--
Stef (remove caps, dashes and .invalid from e-mail address to reply by mail)
He who foresees calamities suffers them twice over.
Stef <stef33d@yahooI-N-V-A-L-I-D.com.invalid> writes:
Do you know of a way (in Tera Term or other terminal) to automatically
save this data? Using some kind of modem protocol for instance?
Preferrably the data does not even show up on the screen and may be
even the file name could be set by the serial data.
Terminal programs typically support downloads via zmodem which is a
protocol that allows automatic downloads and you can set the filename in
your system. I haven't used tera term in a few years but I'd assume file transfers like that are supported. Of course, you'd have to implement
zmodem in your system.
On 2018-12-07, Stef <stef33d@yahooI-N-V-A-L-I-D.com.invalid> wrote:
But now I periodically (every few seconds) have an amount of data that
needs to be stored on the PC. A CVS like output with a 100 lines or so.
I can just spit this out after the menu, surrounded by some division lines >> and copy paste out of the terminal, or dig through the log file (with
thousands of VT100 commmands between the data). But there must be an
easier way.
The likes of X/Y/Zmodem have already been mentioned, don't know
what your specifc terminal emulator would support. Xmodem is
easiest to implement with the proviso that you don't have exact
control over file size, for text data that is unlikely to be a
serious issue though.
The other option that comes to mind would be local terminal printing,
many terminal emulators can save this to a file automatically, I
know PuTTY can for example. That's trivially easy to implement
for ANSI terminals such as the VT100, one control code to switch
to the printer, output the text and another to switch back to screen
output.
vineri, 7 decembrie 2018, 14:20:42 UTC+2, Stef a scris:
For a test setup, I have created a small UI using the serial port
connected to a VT100 capable terminal (Tera Term).
I use the VT100 commands to create a "nice" (for certain values of nice)
looking output. This works OK.
But now I periodically (every few seconds) have an amount of data that
needs to be stored on the PC. A CVS like output with a 100 lines or so.
I can just spit this out after the menu, surrounded by some division lines >> and copy paste out of the terminal, or dig through the log file (with
thousands of VT100 commmands between the data). But there must be an
easier way.
Do you know of a way (in Tera Term or other terminal) to automatically
save this data? Using some kind of modem protocol for instance?
Preferrably the data does not even show up on the screen and may be
even the file name could be set by the serial data.
He who foresees calamities suffers them twice over.
The easier way would have been a real software for the PC.
But you invested in a no-pc-software solution and you dig now
for a work-around.
Maybe a python script or something like that to extract
your real data from the log file full of VT100 commands?
But this is also a kind of pc software...
On 2018-12-07 Andrew Smallshaw wrote in comp.arch.embedded:
The other option that comes to mind would be local terminal printing,
many terminal emulators can save this to a file automatically, I
know PuTTY can for example. That's trivially easy to implement
for ANSI terminals such as the VT100, one control code to switch
to the printer, output the text and another to switch back to screen
output.
Interesting, just a simple <ESC>[5i to start and <ESC>[4i to stop?
Certainly worth looking in to. Thanks.
Does X modem als allows the sender to set the filename?
Sysop: | DaiTengu |
---|---|
Location: | Appleton, WI |
Users: | 1,064 |
Nodes: | 10 (0 / 10) |
Uptime: | 150:46:11 |
Calls: | 13,691 |
Calls today: | 1 |
Files: | 186,936 |
D/L today: |
443 files (116M bytes) |
Messages: | 2,411,003 |