List Info

Thread: sending ascii to comm port




sending ascii to comm port
user name
2006-05-31 14:05:44
Dear all,
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][N
UL][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!

best regards
Tomas

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection
around 
http://mail.yahoo.com 
sending ascii to comm port
user name
2006-05-31 15: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][N
UL][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.

sending ascii to comm port
user name
2006-05-31 22:40:13
>
.....
> >
> > 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.

The pkgsrc version is from January 2006; there is newer
version from
about two weeks ago (but yes, the last time I used it was
more than 6
years ago - all I remember was that it was quite fun to
setup...).

>
> 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.

$ echo <ctrl-V><ctrl->  > /tmp/1
$ od -c /tmp/1
0000000   \0  \n
0000002


from zsh.

>
>

Chavdar
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )