IPAQ to Stamp communications using Bluetooth
Archiver
Posts: 46,084
Jon,
Doing Bluetooth is as easy as doing serial communiations. On
the Stamp side, the examples that come with the eb500 work
pretty well and you'll have no trouble using it.
In NSBASIC, the serial communications uses the 'comm' object
which works very similarly to the Visual Basic version.
Check the tech notes for details. It only took me a few
minutes to get a working program, once I figured out how the
IPAQ worked and how the NSBASIC did things, which took me
more than a day. Writing the bluetooth test code and
integrating it into my robot and writing thew NSBASIC remote
control only took a couple of hours.
On the IPAQ, Bluetooth is implemented (serial protocol) as
two comm ports, one for sending data and one for receiving
data. On the eb500, it is implemented in a similar manner.
Simply open the comm ports at the proper baud rate and just
send and receive data. The comm object defaults to
9600,n,8,1, just like the eb500 and all other Bluetooth
devices do in serial mode.
When you open the comm port, you will be asked for the
bluetooth device to connect to. I haven't figured out how to
automate this yet but I'm sure there is a way. Anyway, just
select the eb500 and the program will continue. Once the
comm port is open, just send data as though it was any other
serial device. It's that simple.
Transmitting to the Stamp is that easy. With very little
effort, I was able to write an application that sends
command codes to a hewcrawler and works very well. Most of
the time was spent getting used to the IDE and the IPAQ.
After that, it was just a matter of dealing with timing of
the data. Since the Stamp has no inbut buffer, I overcame
that by setting up a timer object (s309timer) to transmit a
single command character every 100ms (just to make sure that
when the stamp checked, there was data for it to see). This
is terribly inefficient, but my goal was to get something
working as soon as I could. Anyway, it works, not elegantly
but it works.
Now, on the down side, I can't get the darn thing to receive
data from the comm port or even be sure that the read port
is open. everything says it is but I get no onComm events.
The port is opened but never receives data. I havn't figured
out what's going on yet, I suspect the IPAQ itself is at
fault. I won't get a chance to work on it again until this
weekend, but this should get you all pointed in the right
direction.
I still need to solve this problem and to programatically
select the appropiate Bluettoh device, but hey, I only have
a couple of days experience programming IPAQs, my PDA
expertise was always on palms, but my top of the line palm
(tungsten C) will never support bluetooth GRRRR!
All in all, I am impressed in the transparancy of the
implementation on both the IPAQ and the eb500.
Now, back to that pesky receive problem...
--
Regards
Dave Evartt
American Hovercraft
Doing Bluetooth is as easy as doing serial communiations. On
the Stamp side, the examples that come with the eb500 work
pretty well and you'll have no trouble using it.
In NSBASIC, the serial communications uses the 'comm' object
which works very similarly to the Visual Basic version.
Check the tech notes for details. It only took me a few
minutes to get a working program, once I figured out how the
IPAQ worked and how the NSBASIC did things, which took me
more than a day. Writing the bluetooth test code and
integrating it into my robot and writing thew NSBASIC remote
control only took a couple of hours.
On the IPAQ, Bluetooth is implemented (serial protocol) as
two comm ports, one for sending data and one for receiving
data. On the eb500, it is implemented in a similar manner.
Simply open the comm ports at the proper baud rate and just
send and receive data. The comm object defaults to
9600,n,8,1, just like the eb500 and all other Bluetooth
devices do in serial mode.
When you open the comm port, you will be asked for the
bluetooth device to connect to. I haven't figured out how to
automate this yet but I'm sure there is a way. Anyway, just
select the eb500 and the program will continue. Once the
comm port is open, just send data as though it was any other
serial device. It's that simple.
Transmitting to the Stamp is that easy. With very little
effort, I was able to write an application that sends
command codes to a hewcrawler and works very well. Most of
the time was spent getting used to the IDE and the IPAQ.
After that, it was just a matter of dealing with timing of
the data. Since the Stamp has no inbut buffer, I overcame
that by setting up a timer object (s309timer) to transmit a
single command character every 100ms (just to make sure that
when the stamp checked, there was data for it to see). This
is terribly inefficient, but my goal was to get something
working as soon as I could. Anyway, it works, not elegantly
but it works.
Now, on the down side, I can't get the darn thing to receive
data from the comm port or even be sure that the read port
is open. everything says it is but I get no onComm events.
The port is opened but never receives data. I havn't figured
out what's going on yet, I suspect the IPAQ itself is at
fault. I won't get a chance to work on it again until this
weekend, but this should get you all pointed in the right
direction.
I still need to solve this problem and to programatically
select the appropiate Bluettoh device, but hey, I only have
a couple of days experience programming IPAQs, my PDA
expertise was always on palms, but my top of the line palm
(tungsten C) will never support bluetooth GRRRR!
All in all, I am impressed in the transparancy of the
implementation on both the IPAQ and the eb500.
Now, back to that pesky receive problem...
--
Regards
Dave Evartt
American Hovercraft
Comments
bluetooth and 802.11b
I'm running the latest updates of everything, including the
NSBASIC.
The serial recieve works ok when run from other serial comm
programs and the test programs that come with the eb500 this
is why I think is is either the comm control or NSBASIC. In
any case, it'll be worked out. Heck, it probably is just
something stupid I'M doing.
All in all I think that the eb500 is going to change the way
we all do stamps, for the better! Now if only we could have
an input buffer on the stamp...
--
Regards
Dave Evartt
American Hovercraft
Original Message
From: Dave Evartt [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=G81xbij2hKEXGoDkMmS0E5FpO4wVHvaC-6FneqBcoeZ_co8b9Bqsgychfd78i0xoXofZO-fmVw8FIHeUSLredn73]davee@a...[/url
Sent: Tuesday, January 06, 2004 11:38 PM
To: basicstamps@yahoogroups.com
Cc: basicstamps@yahoogroups.com
Subject: Re: [noparse][[/noparse]basicstamps] IPAQ to Stamp communications using Bluetooth
by the way, the IPAQ I have is an h5555 with integrated
bluetooth and 802.11b
I'm running the latest updates of everything, including the
NSBASIC.
The serial recieve works ok when run from other serial comm
programs and the test programs that come with the eb500 this
is why I think is is either the comm control or NSBASIC. In
any case, it'll be worked out. Heck, it probably is just
something stupid I'M doing.
All in all I think that the eb500 is going to change the way
we all do stamps, for the better! Now if only we could have
an input buffer on the stamp...
--
Regards
Dave Evartt
American Hovercraft
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.
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/basicstamps/
To unsubscribe from this group, send an email to:
basicstamps-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
-- Jon Williams
-- Parallax
Original Message
From: Dave Evartt [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=TAAbBPMDjjq25Oh7TD-yT5o7b9kYwfBr6w3ZB7uI6c7T_rqo1eF1W9K7E95kk4hd8d0ZbUv-iYSm5J1M22jt5TNYusJhu2Y]davee@a...[/url
Sent: Tuesday, January 06, 2004 10:38 PM
To: basicstamps@yahoogroups.com
Cc: basicstamps@yahoogroups.com
Subject: Re: [noparse][[/noparse]basicstamps] IPAQ to Stamp communications using Bluetooth
by the way, the IPAQ I have is an h5555 with integrated
bluetooth and 802.11b
I'm running the latest updates of everything, including the
NSBASIC.
The serial recieve works ok when run from other serial comm
programs and the test programs that come with the eb500 this
is why I think is is either the comm control or NSBASIC. In
any case, it'll be worked out. Heck, it probably is just
something stupid I'M doing.
All in all I think that the eb500 is going to change the way
we all do stamps, for the better! Now if only we could have
an input buffer on the stamp...
--
Regards
Dave Evartt
American Hovercraft
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.
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/basicstamps/
To unsubscribe from this group, send an email to:
basicstamps-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
This message has been scanned by WebShield. Please report SPAM to
abuse@p....
www.nsbasic.com.
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: Jeff Grady [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=cuOcJwgeDjUaj0gZAw8hEl0jStlfsuPR51K7PdwTpmYrZQ_2MjwKH9XzGHGzs0a_Z44ApIZE1PnVA7c]jlgrady@a...[/url
Sent: Tuesday, January 06, 2004 11:59 PM
To: basicstamps@yahoogroups.com
Subject: RE: [noparse][[/noparse]basicstamps] IPAQ to Stamp communications using Bluetooth
What is NSBASIC ?
Original Message
From: Dave Evartt [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=HHsjY318ojUhBzO5mADc6w94bp9Q8c0egOy2LRpC7H7RySmqif5nCfJ_72wKYBK17bFg__gSWuJLwW28-aT8BaIV]davee@a...[/url
Sent: Tuesday, January 06, 2004 11:38 PM
To: basicstamps@yahoogroups.com
Cc: basicstamps@yahoogroups.com
Subject: Re: [noparse][[/noparse]basicstamps] IPAQ to Stamp communications using Bluetooth
by the way, the IPAQ I have is an h5555 with integrated
bluetooth and 802.11b
I'm running the latest updates of everything, including the
NSBASIC.
The serial recieve works ok when run from other serial comm
programs and the test programs that come with the eb500 this
is why I think is is either the comm control or NSBASIC. In
any case, it'll be worked out. Heck, it probably is just
something stupid I'M doing.
All in all I think that the eb500 is going to change the way
we all do stamps, for the better! Now if only we could have
an input buffer on the stamp...
--
Regards
Dave Evartt
American Hovercraft
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.
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/basicstamps/
To unsubscribe from this group, send an email to:
basicstamps-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
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.
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/basicstamps/
To unsubscribe from this group, send an email to:
basicstamps-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
This message has been scanned by WebShield. Please report SPAM to
abuse@p....
--
Regards
Dave Evartt
American Hovercraft
known as windows CE, Palms and newtons. It looks and feels
very similar to Visual Basic and is very popular in the CE
and palm crowds. more can be found at their website at
http://nsbasic.com
I've beeen using their palm stuff off and on for a few
months and over the christmas break have started using their
CE version.
If you want to develop applications for the CE or palm, this
is a good starting point.
--
Regards
Dave Evartt
American Hovercraft
any possibilities of implementing buffered serial on the BS2? Perhaps
some external circuitry ?
Enzo
--- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
wrote:
> The Javelin Stamp has buffereed serial....
>
> -- Jon Williams
> -- Parallax
>
>
>
Original Message
> From: Dave Evartt [noparse][[/noparse]mailto:davee@a...]
> Sent: Tuesday, January 06, 2004 10:38 PM
> To: basicstamps@yahoogroups.com
> Cc: basicstamps@yahoogroups.com
> Subject: Re: [noparse][[/noparse]basicstamps] IPAQ to Stamp communications using
Bluetooth
>
>
> by the way, the IPAQ I have is an h5555 with integrated
> bluetooth and 802.11b
>
> I'm running the latest updates of everything, including the
> NSBASIC.
>
> The serial recieve works ok when run from other serial comm
> programs and the test programs that come with the eb500 this
> is why I think is is either the comm control or NSBASIC. In
> any case, it'll be worked out. Heck, it probably is just
> something stupid I'M doing.
>
> All in all I think that the eb500 is going to change the way
> we all do stamps, for the better! Now if only we could have
> an input buffer on the stamp...
> --
> Regards
>
> Dave Evartt
> American Hovercraft
>
> 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.
>
>
> Yahoo! Groups Links
>
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/basicstamps/
>
> To unsubscribe from this group, send an email to:
> basicstamps-unsubscribe@yahoogroups.com
>
> Your use of Yahoo! Groups is subject to:
> http://docs.yahoo.com/info/terms/
>
>
>
>
> This message has been scanned by WebShield. Please report SPAM to
> abuse@p...
buffer using an SX micro (not a BS2sx). Not sure if he offers it as a
product though.
-- Jon Williams
-- Parallax
Original Message
From: enzom2000 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=X5reAN_9_Rt_v_kMkHSLv1btKaZNX7u1fZe5XzIljh1ZDchSOS2aoo-j23xwE8tbw8vIn58w8MWneYS9ZCnAc3ZT5cCp1w]vincent.mansueto@s...[/url
Sent: Wednesday, January 07, 2004 5:34 PM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] Re: IPAQ to Stamp communications using Bluetooth
Hello Jon,
any possibilities of implementing buffered serial on the BS2? Perhaps
some external circuitry ?
Enzo
--- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
wrote:
> The Javelin Stamp has buffereed serial....
>
> -- Jon Williams
> -- Parallax
>
>
>
Original Message
> From: Dave Evartt [noparse][[/noparse]mailto:davee@a...]
> Sent: Tuesday, January 06, 2004 10:38 PM
> To: basicstamps@yahoogroups.com
> Cc: basicstamps@yahoogroups.com
> Subject: Re: [noparse][[/noparse]basicstamps] IPAQ to Stamp communications using
Bluetooth
>
>
> by the way, the IPAQ I have is an h5555 with integrated
> bluetooth and 802.11b
>
> I'm running the latest updates of everything, including the
> NSBASIC.
>
> The serial recieve works ok when run from other serial comm
> programs and the test programs that come with the eb500 this
> is why I think is is either the comm control or NSBASIC. In
> any case, it'll be worked out. Heck, it probably is just
> something stupid I'M doing.
>
> All in all I think that the eb500 is going to change the way
> we all do stamps, for the better! Now if only we could have
> an input buffer on the stamp...
> --
> Regards
>
> Dave Evartt
> American Hovercraft
>
> 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.
>
>
> Yahoo! Groups Links
>
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/basicstamps/
>
> To unsubscribe from this group, send an email to:
> basicstamps-unsubscribe@yahoogroups.com
>
> Your use of Yahoo! Groups is subject to:
> http://docs.yahoo.com/info/terms/
>
>
>
>
> This message has been scanned by WebShield. Please report SPAM to
> abuse@p...
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.
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/basicstamps/
To unsubscribe from this group, send an email to:
basicstamps-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
This message has been scanned by WebShield. Please report SPAM to
abuse@p....
Parallax has for download. The SSIB uses the now defunct SX18 but you could
easily move it to the SX28. We've talked about productizing this for some
time, but it hasn't happened yet.
Regards,
Al Williams
AWC
*NEW: GPMPU40 PCB hosts Basic Stamp, SX, PIC, more...
http://www.al-williams.com/gpmpu40.htm
>
Original Message
> From: Jon Williams [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=JiFdE3ZQGxplIy66nE4vQGfaiSwznUFLU1DdYf6pSMswiSUzAxWLZwPra-LSRPoeqMA5dzvv0H6QTDi79AuA]jwilliams@p...[/url
> Sent: Wednesday, January 07, 2004 5:36 PM
> To: basicstamps@yahoogroups.com
> Subject: RE: [noparse][[/noparse]basicstamps] Re: IPAQ to Stamp communications
> using Bluetooth
>
>
> Al Williams (no relation -- but a cool guy nonetheless!) made
> a serial buffer using an SX micro (not a BS2sx). Not sure if
> he offers it as a product though.
>
> -- Jon Williams
> -- Parallax
>
>
Original Message
> From: enzom2000 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=kgFtnuR7PKEcx_IYQm-Fj0kEuszKj2MyJP5SAh9G8VQigz_0VEj7CQ4Wrqi6A1AbMBj3QuG9RX9CbNoIK2Ph0tYEEUoUYbQk]vincent.mansueto@s...[/url
> Sent: Wednesday, January 07, 2004 5:34 PM
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] Re: IPAQ to Stamp communications using
> Bluetooth
>
>
> Hello Jon,
>
> any possibilities of implementing buffered serial on the BS2? Perhaps
> some external circuitry ?
>
> Enzo
> --- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
> wrote:
> > The Javelin Stamp has buffereed serial....
> >
> > -- Jon Williams
> > -- Parallax
> >
> >
> >
Original Message
> > From: Dave Evartt [noparse][[/noparse]mailto:davee@a...]
> > Sent: Tuesday, January 06, 2004 10:38 PM
> > To: basicstamps@yahoogroups.com
> > Cc: basicstamps@yahoogroups.com
> > Subject: Re: [noparse][[/noparse]basicstamps] IPAQ to Stamp communications using
> Bluetooth
> >
> >
> > by the way, the IPAQ I have is an h5555 with integrated
> bluetooth and
> > 802.11b
> >
> > I'm running the latest updates of everything, including the NSBASIC.
> >
> > The serial recieve works ok when run from other serial comm
> programs
> > and the test programs that come with the eb500 this is why
> I think is
> > is either the comm control or NSBASIC. In any case, it'll be worked
> > out. Heck, it probably is just something stupid I'M doing.
> >
> > All in all I think that the eb500 is going to change the
> way we all do
> > stamps, for the better! Now if only we could have an input
> buffer on
> > the stamp...
> > --
> > Regards
> >
> > Dave Evartt
> > American Hovercraft
> >
> > 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.
> >
> >
> > Yahoo! Groups Links
> >
> > To visit your group on the web, go to:
> > http://groups.yahoo.com/group/basicstamps/
> >
> > To unsubscribe from this group, send an email to:
> > basicstamps-unsubscribe@yahoogroups.com
> >
> > Your use of Yahoo! Groups is subject to:
> > http://docs.yahoo.com/info/terms/
> >
> >
> >
> >
> > This message has been scanned by WebShield. Please report SPAM to
> > abuse@p...
>
>
> 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.
>
>
> Yahoo! Groups Links
>
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/basicstamps/
>
> To unsubscribe from this group, send an email to:
> basicstamps-unsubscribe@yahoogroups.com
>
> Your use of Yahoo! Groups is subject to:
> http://docs.yahoo.com/info/terms/
>
>
>
>
> This message has been scanned by WebShield. Please report SPAM to
> abuse@p....
>
>
> 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.
>
>
> Yahoo! Groups Links
>
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/basicstamps/
>
> To unsubscribe from this group, send an email to:
> basicstamps-unsubscribe@yahoogroups.com
>
> Your use of Yahoo! Groups is subject to:
> http://docs.yahoo.com/info/terms/
>
>
>
>
>Hello Jon,
>
>any possibilities of implementing buffered serial on the BS2? Perhaps
>some external circuitry ?
>
>Enzo
Enzo -
You might want to look into using this RSB-509 serial buffer IC:
http://www.protean-logic.com/tickit/rsb509B_HTML_Cutsheet.htm
An example program for using it with the Stamp BS-2 is found on that same page.
Regards,
Bruce Bates
--
Regards
Dave Evartt
American Hovercraft