Visual Basic, DB9 pins
Archiver
Posts: 46,084
Colleagues,
I want to use other pins on the DB9 connector (like RTS and DTR). How
can I drive them with (preferably) Visual Basic, or C++?
Thanks,
Nick
I want to use other pins on the DB9 connector (like RTS and DTR). How
can I drive them with (preferably) Visual Basic, or C++?
Thanks,
Nick
Comments
Original Message
From: "Nick Alexeev" <kender_a@y...>
To: <basicstamps@yahoogroups.com>
Sent: Tuesday, March 04, 2003 4:45 PM
Subject: [noparse][[/noparse]basicstamps] Visual Basic, DB9 pins
> Colleagues,
>
> I want to use other pins on the DB9 connector (like RTS and DTR). How
> can I drive them with (preferably) Visual Basic, or C++?
>
> Thanks,
> Nick
Here's a VB project by Jared Hoylman showing how to use the DTR & RTS pins
to control the Fire-Cracker serial RF transmitter module.
http://www.rentron.com/FireCracker.htm
Regards,
-Bruce
tech@r...
http://www.rentron.com
In Visual basic use the DTREnable and RTSEnable properties of the
MSComm control to set the DTR and RTS lines high or low. For example:
MSComm1.DTREnable = True ' Set DTR High
MSComm1.DTREnable = False ' Set DTR Low
MSComm1.RTSEnable = True ' Set RTS High
MSComm1.RTSEnable = False ' Set RTS Low
The following link is to an article I wrote to control the X-10
Firecracker using the DTR and RTS lines. It should serve as a good
starting point.
http://www.rentron.com/FireCracker.htm
Hope this helps,
jared Hoylman
--- In basicstamps@yahoogroups.com, "Nick Alexeev" <kender_a@y...>
wrote:
> Colleagues,
>
> I want to use other pins on the DB9 connector (like RTS and DTR).
How
> can I drive them with (preferably) Visual Basic, or C++?
>
> Thanks,
> Nick
I've had a Firecracker module for some time, and was
not able on the X10 site to find the communication docs,
so could not program communication to it from VB -- your
solution fixes that problem, plus can be easily adapted
to allow the Stamp to drive it, plus had the link so
I could find the X10 docs.
Plus, I could have sworn the RTS and DTR pins were not
individually controllable from VB -- you demonstrated
they are. Thanks for publishing an excellent solution.
--- In basicstamps@yahoogroups.com, "Jared Hoylman"
<electrolinx@y...> wrote:
> Nick,
>
> In Visual basic use the DTREnable and RTSEnable properties of the
> MSComm control to set the DTR and RTS lines high or low. For
example:
>
> MSComm1.DTREnable = True ' Set DTR High
> MSComm1.DTREnable = False ' Set DTR Low
> MSComm1.RTSEnable = True ' Set RTS High
> MSComm1.RTSEnable = False ' Set RTS Low
>
> The following link is to an article I wrote to control the X-10
> Firecracker using the DTR and RTS lines. It should serve as a good
> starting point.
>
> http://www.rentron.com/FireCracker.htm
>
> Hope this helps,
> jared Hoylman
>
>
>
>
> --- In basicstamps@yahoogroups.com, "Nick Alexeev" <kender_a@y...>
> wrote:
> > Colleagues,
> >
> > I want to use other pins on the DB9 connector (like RTS and DTR).
> How
> > can I drive them with (preferably) Visual Basic, or C++?
> >
> > Thanks,
> > Nick
firecrck.bs2 John L. Scarfone 7/31/99
>
> Jared, dude, you have solved three problems for me at once!
> I've had a Firecracker module for some time, and was
> not able on the X10 site to find the communication docs,
> so could not program communication to it from VB -- your
> solution fixes that problem, plus can be easily adapted
> to allow the Stamp to drive it, plus had the link so
> I could find the X10 docs.
>
it posted on our Wiki (now defunct... Long story). But it has been
mirrored in a few places:
http://www.geocities.com/ido_bartana/basicstamp_firecracker.htm
Al Williams
AWC
* Floating point A/D
http://www.al-williams.com/awce/pak9.htm
>
Original Message
> From: Mike DeMetz [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=eIbeHBsdeJxyLjMxvNIhHOzh2y2LWwWSR8VaH-vnoua5hHECuzKTvS33aPoSRYLTrlvlZOujBkN0nQ]miked@e...[/url
> Sent: Wednesday, March 05, 2003 12:01 PM
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] Re: Visual Basic, DB9 pins
>
>
> There is already BS2 code for the Firecracker out there.
> firecrck.bs2 John L. Scarfone 7/31/99
>
> >
> > Jared, dude, you have solved three problems for me at once!
> I've had a
> > Firecracker module for some time, and was not able on the
> X10 site to
> > find the communication docs, so could not program
> communication to it
> > from VB -- your solution fixes that problem, plus can be easily
> > adapted to allow the Stamp to drive it, plus had the link so
> > I could find the X10 docs.
> >
>
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the
> Subject and Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>
>