Create A Communications Between Visual Basic 6 and Basic Stamp 2
sahniana
Posts: 12
I am confuse on how to connect/create communications between Visual Basic 6 (VB6) applications and Basic Stamp 2 module. I learn about serial communications in VB6, but there are things that I am really confuse.
1. If I use Basic Stamp Editor to RUN the program, then COM1 (used com port) is locked because it is in use. Then, in VB6 application, I can't access the port because it is in used, then how I want to communicate with it?
I really need help. Thanks.
1. If I use Basic Stamp Editor to RUN the program, then COM1 (used com port) is locked because it is in use. Then, in VB6 application, I can't access the port because it is in used, then how I want to communicate with it?
I really need help. Thanks.
Comments
Once the Editor downloads a program to the Stamp, the Stamp can function completely stand-alone. The downloaded program will start from the beginning whenever the Stamp is reset, whether from turning on the power or pressing a reset button connected to the module's reset pin.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
The Stamp is reset when the DTR line is toggled. You have to control this through the serial port I/O functions. The Stamp will always run after it is reset.
Anything else will have to be defined by you and you will need a running program in the Stamp to interpret what you send from VB6 and respond to it.
http://forums.parallax.com/showthread.php?p=671804
Jeff T.
There's a document "Using the PBASIC tokenizer library" that's included with the download. That's all the documentation there is. If you don't understand how to use the tokenizer after reading this document, I recommend that you leave it and find some other way to do what you want until you understand VB6 and DLLs much better. It's much too complex to lead you through via a forum.