Searching \ for '[EE] WinXP serial software' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/io/serials.htm?key=serial
Search entire site for: 'WinXP serial software'.

Exact match. Not showing close matches.
PICList Thread
'[EE] WinXP serial software'
2006\10\24@181944 by Jason

flavicon
face
Does anyone know of a windows XP program that will read data from a web page and output it to the serial port at a fixed interval?  I'm trying to build something that reacts to live data, and I can write a parser in PHP to get the data into the correct format and post it online but I can't get windows to dump the page to the serial port.  

Thanks,
 Jason

2006\10\24@184948 by Michael Dipperstein

face
flavicon
face
I haven't tried it, but I think you can use the unxutils
<http://unxutils.sourceforge.net/> version of wget and set the output to
COM1:

-Mike

{Original Message removed}

2006\10\24@200933 by Jason

flavicon
face
From: "Michael Dipperstein" <spam_OUTMDippersteinTakeThisOuTspamcalamp.com>
Sent: Tuesday, October 24, 2006 3:49 PM


>I haven't tried it, but I think you can use the unxutils
> <http://unxutils.sourceforge.net/> version of wget and set the output to
> COM1:

Interesting idea.  At first I thought you meant wget had an option to send
the output but now I see you mean using ">" to send the output.

It's a bit complicated because wget seems to print a lot of verbose status
info on the screen and then save the actual data to a file, so I'm using a
batch file to call wget and then echo out the file.  It seems to miss the
output a lot though; I have to keep repeating the "type file > com1:" line
and eventually it takes it.  Do you think it could be a baud rate problem?
I don't see where to set the baud rate and the PIC device is set for 300.


2006\10\24@204323 by Michael Dipperstein

face
flavicon
face
> From: .....piclist-bouncesKILLspamspam@spam@mit.edu [piclist-bouncesspamKILLspammit.edu] On
Behalf
> Of Jason
> Sent: Tuesday, October 24, 2006 5:09 PM
> To: Microcontroller discussion list - Public.
> Subject: Re: [EE] WinXP serial software
>
> From: "Michael Dipperstein" <.....MDippersteinKILLspamspam.....calamp.com>
> Sent: Tuesday, October 24, 2006 3:49 PM
>
>
> >I haven't tried it, but I think you can use the unxutils
> > <http://unxutils.sourceforge.net/> version of wget and set the
output to
> > COM1:
>
> Interesting idea.  At first I thought you meant wget had an option to
send
> the output but now I see you mean using ">" to send the output.

wget does have an option to send output to a file -O.  I thought
something like "wget URL -O COM1:" might work.  It appears that
redirection is kind of working for you anyway.

There's a way to set the COM1: baud rate too.  However, I'm not sure
what it is.

-Michael

2006\10\24@205230 by Richard Prosser

picon face
The mode command?

RP

On 25/10/06, Michael Dipperstein <EraseMEMDippersteinspam_OUTspamTakeThisOuTcalamp.com> wrote:
{Quote hidden}

> -

2006\10\24@225814 by William Chops Westfield

face picon face

On Oct 24, 2006, at 3:49 PM, Michael Dipperstein wrote:

> Does anyone know of a windows XP program that will read data from a web
> page and output it to the serial port at a fixed interval?

You should be able to use "lynx" (a text-only web browser) inside a
suitable batch file controlled by "periodic tasks" or whatever.
Lynx has some command-line switches that mean "fetch the web page
and send it to stdout."

BillW

2006\10\25@033738 by Jason

flavicon
face
From: "Richard Prosser" <RemoveMErhprosserTakeThisOuTspamgmail.com>
Sent: Tuesday, October 24, 2006 5:52 PM


> The mode command?

The "DOS" with winXP is practically useless.

I typed mode com1:,n,8,1 or something similar, and my command prompt froze.
I quit it after waiting about 20 minutes.  Now hyperterminal says the com
port is in use, as does MPLAB, and if I try to write to it from DOS again it
just freezes my DOS window again.


2006\10\25@050402 by John Chung

picon face
well you can pipe the output of a text browser into a
rs-232 program..

John

--- Jason <spamBeGonepicspamBeGonespamcanadaspeaks.com> wrote:

> Does anyone know of a windows XP program that will
> read data from a web page and output it to the
> serial port at a fixed interval?  I'm trying to
> build something that reacts to live data, and I can
> write a parser in PHP to get the data into the
> correct format and post it online but I can't get
> windows to dump the page to the serial port.  
>
> Thanks,
>   Jason
> --

2006\10\25@085554 by Gerhard Fiedler

picon face
Jason wrote:

> From: "Richard Prosser" <TakeThisOuTrhprosserEraseMEspamspam_OUTgmail.com>
> Sent: Tuesday, October 24, 2006 5:52 PM
>
>> The mode command?
>
> The "DOS" with winXP is practically useless.

I hear that a lot, yet I have still to find something that MS-DOS could
that WinXP can't. Most of the "uselessnesses" are caused by the device
between keyboard and chair and they often can be remedied by RTFM :)

> I typed mode com1:,n,8,1 or something similar, and my command prompt froze.

I didn't try that command, but given the command line help for mode, I
wouldn't... :)

E:\>mode /?
Configures system devices.

Serial port:       MODE COMm[:] [BAUD=b] [PARITY=p] [DATA=d] [STOP=s]
                               [to=on|off] [xon=on|off] [odsr=on|off]
                               [octs=on|off] [dtr=on|off|hs]
                               [rts=on|off|hs|tg] [idsr=on|off]

Device Status:     MODE [device] [/STATUS]

Redirect printing: MODE LPTn[:]=COMm[:]

Select code page:  MODE CON[:] CP SELECT=yyy

Code page status:  MODE CON[:] CP [/STATUS]

Display mode:      MODE CON[:] [COLS=c] [LINES=n]

Typematic rate:    MODE CON[:] [RATE=r DELAY=d]

E:\>mode COM1: /status

Status for device COM1:
-----------------------
   Baud:            115200
   Parity:          None
   Data Bits:       8
   Stop Bits:       2
   Timeout:         OFF
   XON/XOFF:        OFF
   CTS handshaking: OFF
   DSR handshaking: OFF
   DSR sensitivity: OFF
   DTR circuit:     ON
   RTS circuit:     ON


E:\>MODE COM1 baud=300
Default to 7 data bits.
Default to 1 stop bits.
Default to even parity.

Status for device COM1:
-----------------------
   Baud:            300
   Parity:          Even
   Data Bits:       7
   Stop Bits:       1
   Timeout:         OFF
   XON/XOFF:        OFF
   CTS handshaking: OFF
   DSR handshaking: OFF
   DSR sensitivity: OFF
   DTR circuit:     ON
   RTS circuit:     ON


Alternatively, you can try the serial port configuration in the device
manager. Its defaults possibly are being picked up when you open a shell.

------------------------

Besides wget/redirection, there is also the possibility of using scripting.
Many script languages provide a means to access web pages -- among many
others, the ones that come with WinXP.

Home page of Windows Scripting http://tinyurl.com/4h52e
Explains some basics of how to use the Internet Explorer objects
http://www.eggheadcafe.com/articles/20011215.asp

Gerhard

2006\10\25@145730 by Richard Prosser

picon face
Jason

Feeling somewhat responsible -

I just tried it here at work (Win 2K)
M:\>mode com1: 19200, n, 8, 1

Worked fine for me.

(I had also tried it at home last night on my laptop (WinXP). Failed.
I tried several variations - all no good. Then I realised that I
didn't have a com port on the laptop! It didn't lockup or cause other
problems however, I just got an error message)

RP

On 26/10/06, Gerhard Fiedler <RemoveMElistsspamTakeThisOuTconnectionbrazil.com> wrote:
{Quote hidden}

> -

2006\10\25@151644 by Metis Adrastea

picon face
Hi!

This may be a stupid idea, but have you tried to go to start->control
panel->system->hardware->device manager and in the COM1, right
click->properties->port configuration?

Note: I have the spanish version of WinXP, the names could be different.

Regards
--
Metis Adrastea
http://metisadrastea.blogspot.com/

More... (looser matching)
- Last day of these posts
- In 2006 , 2007 only
- Today
- New search...