![]() |
||
| Home | SwiftForth Archive | SwiftX Archive | |

>From a turnkeyed app, the easiest way to change comm parameters is via a
CommConfigDialog call and a menu option. But, you need to set up a
CommConfig DCB and some other semi-messy stuff.
Fortunately, I have code that is modularized using some very slick serial
port code furnished by Rick. The code also allows selection of any com port
within the legal range (e.g., high numbered com ports for network-remoted
com ports).
Unfortunately, there is too much code to post here and I haven't the time to
work up a sample app for posting on the FAQ server. If you care to wade
through it, I will send you the source for one of my turnkeyed apps,
including all of the pertinent serial comm "REQUIRES" files that were
furnished by Rick. The code I am sending creates a turnkeyed app under ver.
2.2.2.9 that you can use to see how the com options work. But, it won't be
of much use to you otherwise. Also, strange things may happen if you have
anything connected to COM1 or COM2. If anyone else is interested, I can
ship them a copy too (after all, how many SFTalk voyeurs could there
possibly be?).
P.S. -- I am not sure that the serial port code is Rick's "latest and
greatest", but he developed it in May, 2001. It has been in continuous
service since that time with three different apps (each using two COM
ports). No hiccups yet.
-----Original Message-----
From: Douglas Beattie Jr. [mailto:doug_at_iconixresearch.com]
Sent: Thursday, September 20, 2001 9:49 AM
To: sftalk_at_forth.com
Subject: [sftalk] SIO.F -- Changing the Baud Rate
Hello SFtalk;
My application needs to change baud rates after initial communication
with the target.
REQUIRES Sio.f
9600 COMPORT COM1
I can change the baud to 19200 from the command line with
19200 BAUD
..but how can I change the baud rate from within a colon definition?
Also, can COMPORT work from within a colon definition, or if the system
is saved (with PROGRAM ) while the port is open, would the port
automatically open when it was launched?
Maybe there are app notes or FAQ about this stuff -- should I go looking,
or can you point me in the general direction?
-- Douglas Beattie Jr. Design Engineer Iconix Research, Ogden Utah http://www.iconixresearch.com/ ---------------------------------------------------------------------- sftalk_at_forth.com The SwiftForth programming discussion email list To unsubscribe, send subject "unsubscribe sftalk" to listar_at_forth.com For help with listar commands, send subject "help" to listar_at_forth.com Archives are located at http://www.forth.com/sftalk -- check them out! Search the archives! Visit http://www.forth.com/search for details. ---------------------------------------------------------------------- sftalk_at_forth.com The SwiftForth programming discussion email list To unsubscribe, send subject "unsubscribe sftalk" to listar_at_forth.com For help with listar commands, send subject "help" to listar_at_forth.com Archives are located at http://www.forth.com/sftalk -- check them out! Search the archives! Visit http://www.forth.com/search for details.Received on Thu Sep 20 2001 - 15:19:33 PDT
This archive was generated by hypermail 2.2.0 : Fri Nov 21 2008 - 03:04:19 PST