Need VB help!
crackticus pots
Posts: 34
hi ya all
I cannot figure out how to use visual basic(built in to office 2000), to send a single word out the serial port of a computer·to a basic stamp. my application is a Wi-LAN ethernet based webpage controlled robot (and yes I did search google and dogpile and did not find how to do it, and yes·I saw all of the other threads that had to do with serial and VB but they were no help)
any help would be appriciated
thankyou.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
there are a hundred types of people in the world,
but I dont have time to name them all.
Post Edited (crackticus pots) : 3/31/2006 11:50:57 PM GMT
I cannot figure out how to use visual basic(built in to office 2000), to send a single word out the serial port of a computer·to a basic stamp. my application is a Wi-LAN ethernet based webpage controlled robot (and yes I did search google and dogpile and did not find how to do it, and yes·I saw all of the other threads that had to do with serial and VB but they were no help)
any help would be appriciated
thankyou.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
there are a hundred types of people in the world,
but I dont have time to name them all.
Post Edited (crackticus pots) : 3/31/2006 11:50:57 PM GMT
Comments
If you need more info, let me know, I'll get the paticulars for you.
Ummm, one question... if your 'bot is wi-lan endabled, what is the com port needed for?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Just tossing my two bits worth into the bit bucket
KK
·
about the wifi thing, here is how the robot works
the robot has a P-II computer on it with a wifi card, the computer also has network\ web·server software
the the web server can be accessed from a network or web, when accessed the default site has 6 buttons (forward, back, left, right, stop, and wake robot)·aswell as a 240X120 picture that automaticly updates every 1.3 seconds (picture updates from the web cam attached to the robot computer) when one of the web buttons is pressed it (hopfuly) sends a serial command to a BS2p-24 witch gathers sensor information and controlls the two motor controlers witch·drives·two 24V·motors each. (the web site is going to be accessed forn a PDA with a wifi card)
Btw "wake robot" turns on all the sensors and re-activates·the motor controllers because the robot·goes in to a "sleep mode" after 5 minuts of inactivity.
thank you.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
there are a hundred types of people in the world,
but I dont have time to name them all.
Well, from what I see, I cant see the connection between the web server and the hardware.
Is that what your looking to create, the link from the webserver to the serial?
One last question before I can suggest a corse of action:How does the web server post the button?
IE: Does it post the buttons to a web page, a file, what does it do with the button requests? Or, are you creating the interface yourself?
Does the bot's PC have an OS? WHich one?
From here, I'm sure someone if not I can help.
KK
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Just tossing my two bits worth into the bit bucket
KK
·
As an example you could make the object have certain methods like .moveforward and .turnleft Then if you want it to continue that direction until another command comes in, fine. otherwise put in a count parameter like .turnright(10)
Becuase your object is created in VB6 (or your choice) you can have direct access to the serial port.
then in your ASP code you would instantiate that object and link the button clicks to those exposed methods of the object
(asp code)
if request.form("command") = "Left" then
myBoeBot.TurnLeft(10)
elseif request.form("command") = "Right" then
myBoeBot.TurnRight(10)
and so on. You could also write an ISAPI DLL to handle this if you wanted to use some other language (PERL).. you can also SHELL from ASP and run executables, just keep in mind that if you open the website to others, you have to handle the security and you have to have something to prevent like 10 people all trying to control the bot at the same time.
Post Edited (Dunnsept) : 4/6/2006 3:42:48 PM GMT
http://www.parallax.com/html_pages/downloads/nvcolumns/Nuts_Volts_Downloads_V3.asp
James
msdn.microsoft.com/vstudio/express/default.aspx
kaos kidd said:·I cant see the connection between the web server and the hardware.
Is that what your looking to create, the link from the webserver to the serial?
One last question before I can suggest a corse of action:How does the web server post the button?
IE: Does it post the buttons to a web page, a file, what does it do with the button requests? Or, are you creating the interface yourself?
Does the bot's PC have an OS? WHich one?
From here, I'm sure someone if not I can help
the hardware (win XP computer) is configured to be a server that has a single web page, that page has buttons
controlling the·motion, and the robot will reman in motion untill anothr force acts upon it (another button pressed or it hits a chair)·the servers web page is accessed form a pocket pc, the computer sends serial commands to the basic stamp. yes·I am looking to create a link rom the software to a stamp.
Kevin Wood
the link to download vb is brokin thank you though.
Javalin
thank you, this is a little helpful. flow controll is hard stuff!!!
dunnsept
I don't think·I quite get it. but yes I do want it to remain in motion untill it receives another command(or sensor input) the security is built in to the server (smart card or password)
thank you all who provided input.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
there are a hundred types of people in the world,
but I dont have time to name them all.
Post Edited (crackticus pots) : 4/13/2006 8:28:08 PM GMT
Ok, knowing you have a full blowen PC, and access to various aspects of the PC, a general plan of action can be taken.
Dunnsept has the right idea for you.
It would be the fasest path to success.
And, the access you need is there.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Just tossing my two bits worth into the bit bucket
KK
·
WI-FI controller for those who are wondering what bering that this has on the project)
so thank you for the help.
and maby I will eventualy finnish the project.
P.S. hey maby·I could make the robot a dial-up-networking robot!
does·body have any suggestions or done any thing like that before?
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
there are a hundred types of people in the world,
but I dont have time to name them all.
Post Edited (crackticus pots) : 4/19/2006 6:16:30 PM GMT