Bs1usb
Cowggodd
Posts: 3
Hey everyone newbie here but I have a question
I just purchased a BS1USB and I was wondering if anyone could throw me some sample code of how to comunicate with the BS1USB and visual basic 6?· I want to start off with a basic program that clicking certain buttons will turn on certain LED's.· Can anyone help me out? thanks
~Adam
I just purchased a BS1USB and I was wondering if anyone could throw me some sample code of how to comunicate with the BS1USB and visual basic 6?· I want to start off with a basic program that clicking certain buttons will turn on certain LED's.· Can anyone help me out? thanks
~Adam
Comments
The BS1USB [noparse][[/noparse]and other USB products from Parallax] are using FTDI chips. The FTDI driver that you install when using this device creates a virtual com port [noparse][[/noparse]VCP] when the USB device is plugged in.
This COM port will show up just like a serial port on the PC [noparse][[/noparse]or Mac].
If you are using VB6 [noparse][[/noparse]or the socket thing from the Flash thread http://forums.parallax.com/forums/default.aspx?f=5&m=153716], you will be able to connect to the device as if it were a serial port. We use Flash because it is relatively easy to develop useful interface prototypes.
Paul, if you have the VCP drivers intalled on your machine and plug in the BS1USB a new serial port will show up when you run Socket2SerialServer.exe.
We are currently using the Socket2SerialServer to connect Flash to a wireless device which uses the FTDI drivers and a VCP [noparse][[/noparse]the DLP-RF1]...and ultimately to a BS2 with a wireless transceiver [noparse][[/noparse]the DLP-RF2].
·
·· Jon Williams did an article on decoding the DEBUG output from the BS1.· He used RealBASIC to write his application, but I understand there are a lot of similarities.· You could probably use the code as a guide to implementing this on VB6.· Please see the link below in our Completed Projects Forum.· Take care.
http://forums.parallax.com/showthread.php?p=567110
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support