A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows XP » General XP issues or comments
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

type a file to serial port and receive it on another computer



 
 
Thread Tools Display Modes
  #16  
Old May 22nd 21, 11:14 AM posted to microsoft.public.windowsxp.general
R.Wieser
external usenet poster
 
Posts: 1,302
Default type a file to serial port and receive it on another computer

Just an update.

This morning I was doing some more testing, and found out something : when
just using "copy" a files (terminating) ctrl-Z is not send. For that the
"/b" switch needs to be included. ("type" does send it though).

While that works for COMMAND.COM (on DOS and XP) (the "copy com1 file"
command terminates - without including the ctrl-Z in the file) XPs CMD still
does not want to play ball. It stubbornly keeps stuck in both the "copy"
and the "type" commands (and need to be task-managered outof it).

@Herbert

Using, as you suggested, a small DEBUG program on XP echoing received COM
bytes to stdout until a terminating character (ctrl-Z) is received works.

A caveat though: using CMD exiting such a COM style program on XP resets,
for some reason, the datawidth to 5. That ofcourse means that shrinking
the program by excluding the comports initialisation (allowing it to use
whatever speed its currently set to isn't possible - unless the "mode com1"
command is available and used in between.

Talking about (subtile) changes throwing a wrench in something that shoud
have been simple ... :-)

Regards,
Rudy Wieser


Ads
  #17  
Old May 22nd 21, 05:58 PM posted to microsoft.public.windowsxp.general
J. P. Gilliver (John)[_7_]
external usenet poster
 
Posts: 603
Default type a file to serial port and receive it on another computer

On Fri, 21 May 2021 at 13:56:43, R.Wieser wrote
(my responses usually follow points raised):
Herbert,

But in real DOS, the "copy com1 file" should work.


You got me there I'm afraid, I used the DOS w98 ran on. And although "copy
com1 file" /looks/ to be working there, it , just as "type com1", does not
know when to stop. Ctrl-C-ing outof it causes the file to be empty. :-\

[]
You've already mentioned the /b switch. Have you played with /a?
--
J. P. Gilliver. UMRA: 1960/1985 MB++G()AL-IS-Ch++(p)[email protected]+H+Sh0!:`)DNAf

Mike Jackson |\ _,,,---,,_
and Squeak /,`.-'`' -. ;-;;,_ Shame there's no snooze button
[1998] |,4- ) )-,_..;\ ( `'- on a cat who wants breakfast
zzz '---''(_/--' `-'\_)
  #18  
Old May 22nd 21, 06:28 PM posted to microsoft.public.windowsxp.general
R.Wieser
external usenet poster
 
Posts: 1,302
Default type a file to serial port and receive it on another computer

John

Have you played with /a?


Nope. To be honest, I was trying to get the whole file to the other side,
and as "/b" did the job ...

But I did just now. Hmm. Under XP it does not seem to make a difference
if I use it on a single file or not. Ether way the ctrl-Z EOF, if there, is
removed.

Regards,
Rudy Wieser


  #19  
Old May 23rd 21, 07:55 AM posted to microsoft.public.windowsxp.general
R.Wieser
external usenet poster
 
Posts: 1,302
Default type a file to serial port and receive it on another computer

John,

Have you played with /a?

....
But I did just now. Hmm. Under XP it does not seem to make a difference
if I use it on a single file or not. Ether way the ctrl-Z EOF, if there,
is removed.


It took me a while to realize that it could maybe be usefull on the
receiving end (if "/a" strips the ctrl-Z on sending it might also detect it
while receiving and end the copy process). Alas, a test just now showed it
made no difference (the copy process still gets stuck).

Regards,
Rudy Wieser


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off






All times are GMT +1. The time now is 06:20 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.
Copyright 2004-2022 PCbanter.
The comments are property of their posters.