PDA

View Full Version : Tapping data from a Unix VT220 terminal



sougata
- 20th January 2006, 05:48
Hi,

Anybody worked with Unix VT220 (or 100/320) terminals. I need to design a display for a POS system and the operator console is a dumb terminal running at 9.6kbps serial. So the only way to get data from the POS terminal is to trap the serial data and parse it with the corrects field codes. For this I need to know the entire control code character for the terminal so that I can parse whatever fields I like. Any help or reference would be greatly appreciated. I have already build a prototype by analysing the data stream from the terminals and it is working. But I want to know the entire story so that future upgrades or different scenario can be handled with.

Regards

Sougata

Luciano
- 20th January 2006, 08:40
Hi,

See these links.

Best regards,

Luciano


A parser for DEC’s ANSI-compatible video terminals:
http://vt100.net/emu/dec_ansi_parser
(Implemented in C and placed in the public domain).

* * *

ANSI/VT100 Terminal Control Escape Sequences:
http://www.termsys.demon.co.uk/vtansi.htm

* * *

HyperTerminal Emulation Protocols:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/randz/protocol/portal_hyperterminal_emulation_protocols.asp

sougata
- 20th January 2006, 18:59
Dear Luciano,

Thank you very much for the links. They are really helpful.

Regards

Sougata

sougata
- 22nd February 2006, 04:47
Hi,

For the mentioned app. I used a ring array (an adaptation of code from the picbasic list) with USART interrupt. Now my problem is parsing large amount of string from a whole screen dump of the VT220 terminal. I think I need an external RAM to store the entire data and hunt for valid entries there. Any ideas ??

Regards

Sougata