Bluetooth SPOT

My latest "Stupid SPOT Trick" has been to connect a Bluetooth board (from Sparkfun.com, of course!) to a Sun SPOT. It is both easier than it looks, and harder than it looks. Huh? Let me explain.


In a previous post I wrote about doing bi-directional Serial port access to a Sun SPOT so that I could talk to a device attached to the UART on the eDemoBoard of a Sun SPOT. So, of course, when my BlueGiga Board arrived, I immediately wired it to the eDemoBoard UART on pins D0 and D1. Seemed like the reasonable thing to do. At the time anyway.


Turns out that, according to the datasheet on the BlueGiga board (and don't try to buy one right now, I bought the last 2), it wants to communicate at 115200 baud, 8-N-1. Not being one to read the documentation all that thoroughly, I was unaware that the UART on the eDemoBoard will only go as high as 38400. So all my attempts to communicate resulted in garbage out (to be fair, garbage in, garbage out).


Turns out what you need is an eProto Board. With that, you can put Tx to pin A5 and Rx to pin A6, power to +3v and ground, and voila ... almost. There is one more trick to getting this board going. You need to connect the BTEN pin on the BlueGiga Breakout board via a 100k Ω resistor, to Vcc as well or the board, while powered, will not actually come up. Once I had all that done, of course, it was easy.


So I now have a Bluetooth-enabled Sun SPOT that can talk to other Bluetooth devices over the Serial Port Protocol (SPP) profile of Bluetooth via RFCOMM. I have it doing discovery (to find other Bluetooth devices), Authentication exchange, and full-duplex serial data exchange. Nice!


[ The generation of random numbers is too important to be left to chance. ]

Comments:

Hey Dave,

This sounds simple enough. It appears that as of today (1/17/09) SparkFun has the BlueGiga boards back in stock again. However, do you know where anyone can obtain the eProto board?

Thanks,

Bruce

Posted by Bruce Hopkins on January 17, 2009 at 07:42 AM EST #

See my most recent blog post for where you can get an eProto Kit. It's not an ideal solution, but it's all we've got right now.

Posted by David Simmons on January 17, 2009 at 02:10 PM EST #

Hey David...
I'm trying to connect sun spot and mobile phones using Bluetooth, but i don't understood how it works.
Can you explain to me better?

Best Regards. =)

Posted by Awdren Fontão on March 12, 2009 at 08:12 AM EDT #

Post a Comment:
Comments are closed for this entry.
About

user9157252

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today