Subject: Re: sending ascii to comm port
To: Tomas D <u0giene@yahoo.com>
From: Herb Peyerl <hpeyerl@beer.org>
List: netbsd-help
Date: 05/31/2006 09:53:15
On 31-May-06, at 8:05 AM, Tomas D wrote:
> Can anyone help me simulate following(TX:) on my comm port?
>
> CONFIG: 9600,N,8,1
>   DATE: 30/05/2006  TIME: 15:43:56
> ------------------------------------------------
> TX:[EOT][CR]
> TX:[NUL][NUL]
> RX:[CR][ESC][EOT][CR]
> TX:[CR]
> RX:ID=
> TX:[ESC]PG1[CR]
> RX:[CR][ACK][CR][ESC][p[CR]
> TX:[STX]182[CR]TEST MESSAGE[CR][ETX]41?[CR]
> TX:[NUL][NUL][NUL][NUL][NUL][NUL][NUL][NUL][NUL][NUL][NUL][NUL][NUL] 
> [NUL][NUL][NUL][NUL][NUL][NUL][NUL][NUL][NUL][NUL]
> RX:[CR][ACK][CR]
> [END CAPTURE] DATE: 30/05/2006  TIME: 15:44:50
> ------------------------------------------------
>
> This was comm port dump when sending a message "TEST MESSAGE" to  
> pager# 182 using TAP protocol
> connnecting 9600,N,8,1 to ascom paging system with native ascom  
> software.
>
> I've looked up these symbols on ascii table and got all HEX values  
> etc. I wonder if it's possible
> instead of converting all that to HEX and type this way just type  
> in something before each symbol
> so it gets recognised?
>
> Any help will be much appreciated!

Having implemented TAP in the past, I can recommend using 'Hylafax'  
if it still exists.  I haven't looked at it in about 6 years though.

Alternatively, you might consider either writing C code, or if you're  
in a hurry, consider installed 'c-kermit' and using its scripting  
language..

I don't see how else you're going to send a NUL from an interactive tty.