home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.msdos.batch      Fun with MS-DOS batch files      42,547 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 41,155 of 42,547   
   T to foxidrive   
   Re: I forgot how to read a com port   
   14 Jun 15 13:07:42   
   
   From: T@invalid.invalid   
      
   On 06/14/2015 08:32 AM, foxidrive wrote:   
   > On 14/06/2015 10:44, T wrote:   
   >> On 06/12/2015 10:10 PM, T wrote:   
   >>> Hi All,   
   >>>   
   >>> I needed to test a com port with a loop back.   
   >>>   
   >>> To write to the port, I used   
   >>>         echo xxxx > com1   
   >>>   
   >>> To read the port, I opened another shell and   
   >>>         type < com1   
   >>>   
   >   
   > I asked the questions because in my experience there was no method for   
   > plain batch commands to read a com port, so I was after more info about   
   > the task to perhaps figure out what could be a workaround.   
   >   
   >> Ah poop!  Just figured it out.   
   >>   
   >> type COM{n}   
   >   
   > And that is the first time I've seen the type command used with a com port!   
   >   
   > If it works as you say, and it well may but I don't have a serial port   
   > to check it on, then it's a wonderful workaround.   
   >   
   > I would hazard a guess though, that some control characters and others   
   > will fail using type.   
   >   
   >   
   >   
   > But I have some reservations:   
   >   
   > How does the type command know when to quit trying to get info from the   
   > com port,   
   >   
   > and does it need a carriage return or line feed pair to output any data,   
   >   
   > and what terminates the type command?   
      
   Shake fist, accuse terminal's parents of not being married,   
      
      
   >   
   >   
      
      
   Hi Foxidrive,   
      
   I too have 8+ years of RS232.  Started in the Military.  I   
   always found it a hoot and holler.   
      
   I was just looking for quick and dirty before I hook the thing   
   back up to the CNC machine.   If it did not work with   
   the quick and dirty, then the advanced stuff would have   
   started.   
      
   And, I knew I had used that stinking command before and   
   it drove me nuts that I forgot it.  Mumble, mumble.   
      
   -T   
      
   Putty seems to be overkill, but it will handle rs232.   
      
   CTL seems like a cool quick and dirty, but I am not about   
   to use Bing with all its spying.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca