Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Write to serial port under Windows XP in Perl

Status
Not open for further replies.
Nov 8, 2007
2
CA
I need 5 .pl scripts to write 5 different strings to the COM1 under windows. The Perl scripts will be called by buttons on a webpage...

Here are the strings and specs. I don't know perl so I was hoping someone could help me out...

Jay

Here are the commands and specs to be sent over COM1...

Power On:
02h 00h 00h 00h 00h 02h

Power Off:
02h 01h 00h 00h 00h 03h

Input RGB:
02h 03h 00h 00h 02h 01h 01h 09h

Input Video:
02h 03h 00h 00h 02h 01h 06h 0eh

Input S-Video:
02h 03h 00h 00h 02h 01h 0bh 13h

19200 bps
8-bits
Non-parity
Stop Bit = 1
X On/Off: None
COM: Full Duplex
 
why do u need perl to do this?

If a radio button is rendering an action, then just tie that action to the perl script or a batch file to do this...
 
I was told that .pl would be good to send the strings to the serial port... and a webpage would be a good interface for me. So I'd just have buttons run the .pl scripts to write to the RS232... unless you have a suggestion.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top