pc to stamp
Archiver
Posts: 46,084
Hey there everyone, Im trying to get my bs2 to talk to my pc (vb6). im pretty
sure my software is correct, as far as hardware goes, i etched out bs2 pin 3
connection, so my atn is disabled. Im not having much success. Does anyone
know if the rs232 cable supplied with the bs2 should or shouldnot be used,
and why? Also, any other pointers or even code would be appreciated.
thanks in advance
Lou
sure my software is correct, as far as hardware goes, i etched out bs2 pin 3
connection, so my atn is disabled. Im not having much success. Does anyone
know if the rs232 cable supplied with the bs2 should or shouldnot be used,
and why? Also, any other pointers or even code would be appreciated.
thanks in advance
Lou
Comments
From: lu323@a...
Date sent: Mon, 8 May 2000 20:42:17 EDT
Send reply to: basicstamps@egroups.com
Subject: [noparse][[/noparse]basicstamps] pc to stamp
> Hey there everyone, Im trying to get my bs2 to talk to my pc (vb6). im pretty
> sure my software is correct, as far as hardware goes, i etched out bs2 pin 3
> connection, so my atn is disabled. Im not having much success. Does anyone
> know if the rs232 cable supplied with the bs2 should or shouldnot be used,
> and why? Also, any other pointers or even code would be appreciated.
> thanks in advance
> Lou
>
>
>
Hi Lou,
I´m having the same kind of problems that you.
I´m trying to programm the Basic Stamp using Visual Basic 5.0,
but i guess the problem is that i´m not so sure if the
communication protocol of the BS is exactly RS232, even if it use
an RS232 cable.
If you have any information you can share with me i´ll apreciate it.
Thanks, Pablo.
pguersch@o... writes:
> > Hey there everyone, Im trying to get my bs2 to talk to my pc (vb6). im
> pretty
> > sure my software is correct, as far as hardware goes, i etched out bs2
pin
> 3
> > connection, so my atn is disabled. Im not having much success. Does
anyone
>
> > know if the rs232 cable supplied with the bs2 should or shouldnot be
used,
>
> > and why? Also, any other pointers or even code would be appreciated.
> > thanks in advance
> > Lou
> >
> >
> >
> Hi Lou,
> I´m having the same kind of problems that you.
> I´m trying to programm the Basic Stamp using Visual Basic 5.0,
> but i guess the problem is that i´m not so sure if the
> communication protocol of the BS is exactly RS232, even if it use
> an RS232 cable.
> If you have any information you can share with me i´ll apreciate it.
>
> Thanks, Pablo.
The problem is somewhere in the code. I built a project for a friend that
used the BS2 programming pins as general comm connection for the project. I
was able to download code, then shutdown the BS2 editor and run my VB6
program without problems.
VB comm code is very tricky. You should get Jan Axelson's book, "Serial Port
Complete." It's really the best on the subject. You can get more info and
other goodies from Jan at www.lvr.com.
-- Jon Williams
-- Dallas, TX
From: jonwms@a...
Date sent: Tue, 9 May 2000 13:50:44 EDT
Send reply to: basicstamps@egroups.com
Subject: Re: [noparse][[/noparse]basicstamps] pc to stamp
> In a message dated 5/9/00 9:55:37 AM Central Daylight Time,
> pguersch@o... writes:
>
> > > Hey there everyone, Im trying to get my bs2 to talk to my pc (vb6). im
> > pretty
> > > sure my software is correct, as far as hardware goes, i etched out bs2
> pin
> > 3
> > > connection, so my atn is disabled. Im not having much success. Does
> anyone
> >
> > > know if the rs232 cable supplied with the bs2 should or shouldnot be
> used,
> >
> > > and why? Also, any other pointers or even code would be appreciated.
> > > thanks in advance
> > > Lou
> > >
> > >
> > >
> > Hi Lou,
> > I´m having the same kind of problems that you.
> > I´m trying to programm the Basic Stamp using Visual Basic 5.0,
> > but i guess the problem is that i´m not so sure if the
> > communication protocol of the BS is exactly RS232, even if it use
> > an RS232 cable.
> > If you have any information you can share with me i´ll apreciate it.
> >
> > Thanks, Pablo.
>
> The problem is somewhere in the code. I built a project for a friend that
> used the BS2 programming pins as general comm connection for the project. I
> was able to download code, then shutdown the BS2 editor and run my VB6
> program without problems.
>
> VB comm code is very tricky. You should get Jan Axelson's book, "Serial Port
> Complete." It's really the best on the subject. You can get more info and
> other goodies from Jan at www.lvr.com.
>
> -- Jon Williams
> -- Dallas, TX
>
>
>
Is there any possibility of download the program to the Stamp from
Vbasic?
pguersch@o... writes:
> Is there any possibility of download the program to the Stamp from
> Vbasic?
At this time, no. It may be possible in the future if Parallax produces a
seperate compiler module (disconnected from the UI/editor).
got the stamp to receive from the PC <vb6> no problem, but Im still having a
little trouble with sinding from the stamp to the pc. If anyone has a snippet
of bs2 serout code for this application, please send it along.
L
writes:
> Hey folks, thanks to the many inputs Ive gotten to help with this problem.
I
> got the stamp to receive from the PC <vb6> no problem, but Im still having
a
> little trouble with sinding from the stamp to the pc. If anyone has a
> snippet of bs2 serout code for this application, please send it along.
The trouble with VB is that it takes more than a "snippet of code" to get
things going. The MSComm control settings can be difficult and how you
handle the OnComm event is critical. Again, I will encourage you to get Jan
Axelson's book "Serial Port Complete" (from www.lvr.com). Even though I
write a lot of serial-to-stamp code in VB, I keep that book close because of
the myriad details it covers. It even has a chapter specifically dedicated
to the Stamp.
Perhaps Jan has some VB samples on her web site. It would be worth a look.
-- Jon Williams
-- Dallas, TX
at: http://www.rentron.com
Regards,
---Bruce
Original Message
From: <lu323@a...>
To: <basicstamps@egroups.com>
Sent: Thursday, May 11, 2000 5:59 AM
Subject: Re: [noparse][[/noparse]basicstamps] pc to stamp
> Hey folks, thanks to the many inputs Ive gotten to help with this problem.
I
> got the stamp to receive from the PC <vb6> no problem, but Im still having
a
> little trouble with sinding from the stamp to the pc. If anyone has a
snippet
> of bs2 serout code for this application, please send it along.
> L
>
>
>
>
that and her Parallel Port Complete along with The Microcontroller Idea Book.
All excellent publications and very useful. I use the 8052 MCU for my more
complex projects or when I need a lot of I/O and her book is priceless for
that. I don't think she has any sample serial code on her website but you
might give it a try anyway.
Her URL is www.lvr.com (Lakeview Research)
Again, good luck and I will get my BS2 code to you probably tomorrow night.
Randy A.
anywhere for detailed information about using the PC serial
port with various microcontrollers & other projects.
The book comes with a disk loaded with sample code for the
Stamp and VB. I couldn't recommend any book "on the planet"
more highly than this one for learning to use the serial port.
Call 1-800-247-6553 and you'll get 20% off the list price if you
order it directly from Lakeview research.
I've worn out my copy by flipping through the pages so often.;o]
Excellent reference, and worth every dime....!
Regards,
-Bruce
http://www.rentron.com
Original Message
From: <cnc002@a...>
To: <basicstamps@egroups.com>
Sent: Thursday, May 11, 2000 4:49 PM
Subject: Re: [noparse][[/noparse]basicstamps] pc to stamp
> Jon Williams suggestion about Jan Axelson's book is a good one. I too
have
> that and her Parallel Port Complete along with The Microcontroller Idea
Book.
> All excellent publications and very useful. I use the 8052 MCU for my
more
> complex projects or when I need a lot of I/O and her book is priceless for
> that. I don't think she has any sample serial code on her website but you
> might give it a try anyway.
>
> Her URL is www.lvr.com (Lakeview Research)
>
> Again, good luck and I will get my BS2 code to you probably tomorrow
night.
>
> Randy A.
>
>
>
>