Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 11:26 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Send a string to the com port?
PostPosted: September 1st, 2006, 3:21 pm 
Offline

Joined: August 31st, 2006, 3:21 pm
Posts: 10
Location: Bristol & London
Send a string to the com port?

Anyone have any idea how I could send a string of hex to the serial / com port?
Have tried launch file, launching a DOS batch file with something like MODE COM2: BAUD=96 PARITY=N DATA=8 STOP=1 ECHO “B3000FF” >COM2. but there must be a better way?

Help :?:


Top
 Profile  
 
 Post subject:
PostPosted: October 24th, 2006, 9:04 am 
Offline

Joined: April 24th, 2005, 9:29 pm
Posts: 6
Location: Maastricht
In the latest version of Opus, you may copy a file to the com port (destination: "com1:"). The file contains the string you want to send. This works very well.
In older versions I used an external utility to be launched by Opus. A parameter determined the string that was send out. Problem was that the utility had to open and close the port each time, which made it impossible to send strings in short time intervals. For some reason, after having send many strings, Windows refused to close the port, thus blocking further sends. So I am happy with the file copy feature: it does not show (works in the background) and simply cues up strings to be send if time intervals are to short.

_________________
Coen van der Gugten


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 53 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group