| Author |
Message |
niket_304
Joined: 21 Dec 2005 Posts: 74
|
28 Apr 2008 11:12 bluetooth + microcontroller |
|
|
|
|
| feline694 wrote: |
dear niket
would you mind to change your concept?
If not u can use the nRF24 which has built in MCU with Blue tooth.
let me know your plan
thanks for sharing
feline |
It is only 2.4 Ghz RF Transciever with on chip controller. They have not specified bluetooth anywhere.
If you wanna use any wireless communication protocol then there are lots of options like Zigbee, FSK etc...there are many system on chip 2.4Ghz RF Transcievere available.
But this thread is specifically meant for Bluetooth...
|
|
| Back to top |
|
 |
shingadaddy
Joined: 16 Dec 2008 Posts: 24
|
16 Dec 2008 19:07 interfacing bluetooth dongle with microcontroller |
|
|
|
|
I would like to know if any progress has been made regarding the original idea of using a uC to drive a USB BLUETOOTH dongle. I have the setup here in front of me to do just that with one of my circuit cards. I originally designed it to use with FLASHDRIVES and it uses the Vinculum chip. The Vinculum has a DATA mode and it can pass data, directly through it to the device that is plugged into the USB A type HOST connector. These BLuetooth dongles seem to just contain the RADIO and I assume all the HOPPING, PAIRING and sevice class control must be done by the PC whne plugged into a PC. That means the uC needs to be able to do similar butmaybe limited subsets of commands for rudimentary operation as a serial port.
Comments / suggestions / further discussions welcome and appreciated.
|
|
| Back to top |
|
 |
blueroomelectronics
Joined: 17 Sep 2006 Posts: 1681 Helped: 99 Location: Toronto, Canada
|
16 Dec 2008 20:36 bluetooth usb pic-controller |
|
|
|
|
Why not just use a Bluetooth to serial adapter, most MPUs have a UART easy peasy.
|
|
| Back to top |
|
 |
shingadaddy
Joined: 16 Dec 2008 Posts: 24
|
16 Dec 2008 22:40 bluetooth connected to microcontroller |
|
|
|
|
Hi Blueroomelectronics.
A quick net lookup and i find them about 10 times the price of the typical USB Bluetooth dongle. But I agree, it would work. External powered. Or battery...Just no where near as clean as just popping a bluetooth dongle on and linking up.
|
|
| Back to top |
|
 |
reyge
Joined: 23 Jan 2007 Posts: 76
|
17 Dec 2008 2:45 bluetooth with java connect to microcontroller |
|
|
|
|
| I think the hopping and pairing are done inside the Bluetooth dongle
|
|
| Back to top |
|
 |
blueroomelectronics
Joined: 17 Sep 2006 Posts: 1681 Helped: 99 Location: Toronto, Canada
|
17 Dec 2008 5:11 dongle bluetooth usb microcontroller interface |
|
|
|
|
| Yes the RS232 devices do all the work, that's partly why they cost more. They also don't need a device driver and some have TTL I/O.
|
|
| Back to top |
|
 |
tijoseymathew
Joined: 13 May 2007 Posts: 82 Helped: 1
|
17 Dec 2008 7:25 otg bluetooth interfacing dongle arm |
|
|
|
|
| hi cant we h(at)ck the bluetooth module out of a bluetooth dongle bypassing the usb chip and interface to the bluetooth directly... This way we have a cheap, easily available wireless communication platform?!
|
|
| Back to top |
|
 |
shingadaddy
Joined: 16 Dec 2008 Posts: 24
|
17 Dec 2008 19:00 bluetooth usb a pic |
|
|
|
|
If you examine the internals of a bluetooth Dongle you may well find the Broadcom BCM2045 chip. Takes USB straight in. No USB devices to bypass. Along with Standard uart and SPi and a few discretes. What were talking about doing here is perfectly feasible since it's already been done. I believe the Motorola Krazer uses this device and I don't believe it is too PC like...But I guess I need to look into the Krazer inards a little more. I would have though it contained a somewhat powerful microcontroller at its core which in turn must drive the BCM2045. Hopping/ Pairing: I have never seen a dongle with a pairing switch that PAIRS it with an external device on its own. And the devices must SYNC their suedo-random hoppers and this is done by the PC. That is all PAIRING is, I believe. Just rf detection and getting to a common hop starting point. Once hopping starts, maybe the BCM2045 handles the hop sequence but there is definately host pc interaction to the dongle.
Added after 3 hours 4 minutes:
Just tossing the odd reality out here just for understanding purposes for those who follow this possible painful path.... One of the *possible* stumbling blocks of all this is that each bluetooth dongle manufacturer can select from different bluetooth radio devices(chips/chipsets) and when they do, the maufacturer of the bluetooth dongle provides a specific WINDOWS DRIVER for operating their device. However that said, since windows seems to be offering a generic driver that works with more than one manufacturers device, there seems to be either some commonality of interoperability between different manufacturer devices or the Windows driver is just getting FAT with all the known types out there and recognizes them when they are plugged in, since most USB devices do offer an ID transmission to the host when they are first plugged in. Ramblings of a mad man.....
|
|
| Back to top |
|
 |
koolhoney07
Joined: 12 Jan 2009 Posts: 16
|
12 Jan 2009 15:30 otg bluetooth coldfire |
|
|
|
|
hey is this possible to connect a usb bluetooth dongle to a microcontroller????????
plsss reply meee.....needed urgently
thanks in advance...
|
|
| Back to top |
|
 |
blueroomelectronics
Joined: 17 Sep 2006 Posts: 1681 Helped: 99 Location: Toronto, Canada
|
12 Jan 2009 16:49 lmx9838 sdp |
|
|
|
|
| Read the thread. In simple terms NO.
|
|
| Back to top |
|
 |
shingadaddy
Joined: 16 Dec 2008 Posts: 24
|
12 Jan 2009 18:23 usb-bluetooth angesteuert von mikrocontroller |
|
|
|
|
Exactly. In simple terms NO. But I am communicating to my bluetooth dongle via Hyper terminal and the Vinculum chip. No RF communication yet. Just USB to DONGLE. So far I am at the "Hello World" level and maybe just beyound that with the limit of functionality being that I have QD'd the device and got an expected 32 byte response back from the dongle. First step is GET FAMILIAR WITH USB...Of course the dongle is an UNKNOWN device by Vinculum (bit 6 page 42 of http://www.vinculum.com/documents/fwspecs/UM_VinculumFirmware_V205.pdf)
But I can get into data mode with Vinculum. In this mode the Vinculum just passes whatever it gets on its monitor port directly to the connected USB device.
Since the 2045 takes USB straight in, it must comply with the USB spec.
Presumably if we send the correct USB data using the Vinculum DSD command and read back data using the DRD command, in the correct method as required by the Dongle, we.... well.... thats where I'm at Knowing what the dongle wants and knowing what the dongle sends back are what I am digging for at the moment..Like I said. Ramblings of a mad man..
|
|
| Back to top |
|
 |
koolhoney07
Joined: 12 Jan 2009 Posts: 16
|
13 Jan 2009 14:24 toothpick interfacing |
|
|
|
|
Thanks a lot for ur responses ...
what actually i need is, i want to send a contact number from my mobile using a bluetooth feature.....on the other side the microcontroller should receive that contact number with the help of bluetooth dongle connected to it.
so, now as u said, if it is not possible to connect a bluetooth USB dongle to a microcontroller for communication...then what can u suggest me(i.e, is it possible to connect a bluetooth module to a microcontroller for communication??????)
|
|
| Back to top |
|
 |
blueroomelectronics
Joined: 17 Sep 2006 Posts: 1681 Helped: 99 Location: Toronto, Canada
|
13 Jan 2009 15:14 bluetooth mcu thesis |
|
|
|
|
No you need the more expensive rs232 version as it contains the extra microcontroller with the firmware required to connect as a Bluetooth device.
And they're about $100 US
|
|
| Back to top |
|
 |
shingadaddy
Joined: 16 Dec 2008 Posts: 24
|
13 Jan 2009 15:34 bcm2045 datasheet |
|
|
|
|
| There are many companies making a bluetooth embedable modules. Or count ten posts previous to this and the Parani SD100 suggested by blueroomelectronics. This plugs onto a DB9 serial port but I believe they make embedable modules as well. A little work with google and you'll find many. Try "bluetooth embedded module"
|
|
| Back to top |
|
 |
davidgrm
Joined: 08 Apr 2006 Posts: 232 Helped: 21
|
13 Jan 2009 16:02 rn-21 bluetooth microcontroller |
|
|
|
|
Have a look at the link below. The modules use simple AT commands. I have not used them but they are failry cheap = $40
http://www.kcwirefree.com/Products.aspx
|
|
| Back to top |
|
 |
shingadaddy
Joined: 16 Dec 2008 Posts: 24
|
13 Jan 2009 16:40 dongle bluetooth microcontroller |
|
|
|
|
Thanks davidgrm. Yes I am spotting a few offerings of the embedded module in this price range also. I am also seeing some different offerings of bluetooth dongles from a few folks that are a little more than your run-of-the-mill bluetooth dongle. The link you provided has one such offering.The KC-210 USB dongle. Unlike the usual cheepie USB bluetooth dongles that just have the radio chip inside and require a lot of work inside the PC, this bluetooth dongle has an integrated controller AND the radio chip. It offloads a lot of the typical overhead tasks from the PC that it is plugged into and provides an easy com port style of communication. Looking at the data sheet: http://www.kcwirefree.com/docs/kcSerial_RefGuide.pdf
Page 6, I have seen this block diagram before on some one elses integrated bluetooth dongle and I am going hunting for it now. Again thanks for posting the link. NOT ALL BLUETOOTH DONGLES ARE CREATED EQUAL!!!
|
|
| Back to top |
|
 |
koolhoney07
Joined: 12 Jan 2009 Posts: 16
|
13 Jan 2009 17:47 pic + usb a bluetooth |
|
|
|
|
I am very much thankful to u all for ur valuable responses.....thanks a lot!!!!!
if a bluetooth module is connected to microcontroller then wat about coding in microcontroller???
how the coding should be done in mc to have communication between bt module and mc???
|
|
| Back to top |
|
 |
shingadaddy
Joined: 16 Dec 2008 Posts: 24
|
13 Jan 2009 18:31 microcontrollers +hid +bluetooth |
|
|
|
|
How you do your code is way out of scope for this board. Depends on your choice of controller, the language you want to write the code in and the data that pertains to your bluetooth device choice
Heres another fully integrated dongle or two...
http://www.aircable.net/usb.html
http://www.rovingnetworks.com/rnusbx.php
http://www.lemosint.com/bluetooth/bluetooth_usb_serial_adapter_details.php
|
|
| Back to top |
|
 |
koolhoney07
Joined: 12 Jan 2009 Posts: 16
|
15 Jan 2009 13:41 module bluetooth mikrokontroller |
|
|
|
|
hiiii @shingadaddy, thanks for ur response
The above sites u suggesting are about the bluetooth dongles..but as per my requirement, it is already said that we cannot connect a bluetooth dongle to a microcontroller directly for a communication,as they need separate drivers to be installed which becomes complicated.
so what am thinking now is to connect a bluetooth module(i.e,BP20372 BLUETOOTH 2.0+EDR) to a microcontroller(PIC16F877A). so how the coding should be done in mc for bluetooth and microcontroller communication???
Thanks in advance
|
|
| Back to top |
|
 |
blueroomelectronics
Joined: 17 Sep 2006 Posts: 1681 Helped: 99 Location: Toronto, Canada
|
15 Jan 2009 16:04 usb bluetooth interface with microcontroller |
|
|
|
|
That module would work fine. It supports many popular communications protocols (UART, I2S<sic>. SPI) and has both a 1.1 & 2.0 Bluetooth stack.
The 16F877A has all you need.
A slightly better PIC might be an 18F4620 as it's got more of everything and much better tools IE C18, Swordfish BASIC and is almost a drop in replacement for the 16F877A
Nice find koolhoney07
|
|
| Back to top |
|
 |
shingadaddy
Joined: 16 Dec 2008 Posts: 24
|
15 Jan 2009 17:46 how to interface micro controller and bluetooth |
|
|
|
|
| Yep. Thats a good one. Lots of companies make them. Also note that one of the suggested applications for this module is "USB DONGLE". If it were placed in a DONGLE, that would be one of the "INTELLIGENT" or "DRIVERLESS" dongles if this module was used. However "DRIVERLESS" is a bit of a misnomer since a virtual com port driver is usually invoked because the onboard radio electrronics usual fake the PC into thinking there is a USB to RS232 com port hooked into the usb port on the PC. We like the idea of the RADIO parts being easily/quickly removable for secuity reasons. Hence my desire to use a dongle. Blueroomelectronics makes some good suggestion regarding your project and the device you have found should be good. Somewhere on the site that this module comes from will probably have a list of commands for controlling it via UART. Good luck with your project.
|
|
| Back to top |
|
 |
koolhoney07
Joined: 12 Jan 2009 Posts: 16
|
16 Jan 2009 16:02 bluetooth+microcontroller+interfacing |
|
|
|
|
hey thank u so much for ur valuable suggestions....
1. now i want to know how the coding is to be done on microcontroller(i.e,using AT commands, C coding or Assembly?????) for communication betwn bt and mc.
2.where can i easily get these bluetooth modules and microcontrollers in India(if possible in andra pradesh)?????
|
|
| Back to top |
|
 |
shingadaddy
Joined: 16 Dec 2008 Posts: 24
|
16 Jan 2009 23:39 bluetooth interface for microcontrollers |
|
|
|
|
Well to start with I looked around on the BLUEPACKET site
http://www.bluepacket.net/BluePacket/default.aspx
This seems to be the point on the web that comes up while googling BP20372.
I didn't find any info on the related command set that this device needs and the site seems to have a lot of pages that are still "under construction". I'll have to say good luck to you about getting the needed data. They probably will get it to you but I suppose you'll have to ask for it. Maybe I didn't surf enough??
"AT" commands are just ASCII data that you will need to send to the bluetooth module of your choice, typically from the UART port on the microcontroller of your choice. Some Bluetooth modules use "AT" commands and some just roll their own version of commands like Roving Networks. Roving Network has their command set published on the web.
http://www.rovingnetworks.com/documents/BlueportII-ref-guide.pdf.
A similar module to the one you mentioned is the RN-41. You can get them at Digikey. The Roving Networks device is CLASS 1 (LONG RANGE) but you can control the output power with commands.
1. Maybe I missed it but I don't recall you mentioning which microcontroller you have used before and which one you are going to use for this application. If you have used one before and are familiar with its hardware enough to know if it has a UART port, then you can use any language that is available for that microcontroller . Basic, C, Assembly.... Whatever. Your choice. But it has to be targeted to THAT MICROCONTROLLER. The UART port should be accessible with any decent software package. You write the code to produce the MODULE SPECIFIC commands that your specific Bluetooth module requires. ("AT" or otherwise )
2. I am unfamiliar with what is available in India but I can tell you that Digikey ships world wide within legal technology limits and Digikey DOES NOT HAVE the bluetooth module you are referencing.
Again I wish you good luck..
Added after 5 hours 22 minutes:
Oh and just for anybody thats interested, I just ordered a couple of those RN-USB-X devices from Roving Networks. I plan on driving these USB dongles with my microcontroller through the Vinculum device in DATA mode, which just passes whatever the Vinculum chip gets on it's UART port straight through and out on USB. The RN-USB-X fakes the PC into thinking a USB to RS232 com port (An FTDI 232R), just got plugged in. Technically this *IS* exactly what the thread is about but its not your every day run of the mill $12.00 Bluetooth dongle. At $70.00 Still cheaper than the $100 RS232 to bluetooth and does not require power from a wall wart or battery. I'll let you all know how it goes if you're interested.
|
|
| Back to top |
|
 |
koolhoney07
Joined: 12 Jan 2009 Posts: 16
|
17 Jan 2009 7:53 implementing bluetooth stack in microcontroller |
|
|
|
|
hey thank u thanksss a lottt....the information u hav given is definetely very useful
i have some more little doubts regarding my prj..pls make it clear na..
1. is it enough to connect a mc to a bt module directly or do we need any software to be installed in mc to access the data from the bluetooth module??????
2.after the connection between bt module and mc....how the other device(i.e,mobile with bt feature) wil recognise this bt module to send some data(i.e,contact no.) to dat module???
ohhh is it possible to communicate with dongle???yep am interested in knowing about ur project in detail...seems to be very interesting
|
|
| Back to top |
|
 |
koolhoney07
Joined: 12 Jan 2009 Posts: 16
|
18 Jan 2009 14:43 pic microcontrollers bluetooth |
|
|
|
|
hey friends....pls do reply for my above post..
i wil b very thankful to u all...
|
|
| Back to top |
|
 |
Google AdSense

|
18 Jan 2009 14:43 Ads |
|
|
|
|
|
|
| Back to top |
|
 |
koolhoney07
Joined: 12 Jan 2009 Posts: 16
|
19 Jan 2009 16:54 wpan bluetooth adapter microcontroller |
|
|
|
|
hey what happend....y no response from anyone...some one try out and help mee something yaar....i need those details at any cost...i need them for my project which i have to submit in the near days....
plsssssssssss helpppp
Added after 3 minutes:
hey @shingadaddy, u said that u trying interface with BT dongle....pls can u let me know that in detail..
|
|
| Back to top |
|
 |
blueroomelectronics
Joined: 17 Sep 2006 Posts: 1681 Helped: 99 Location: Toronto, Canada
|
19 Jan 2009 18:57 microcontroller interface to bluetooth dongle |
|
|
|
|
| You been told what parts you need. What else do you want? Febuary 1 is only a couple weeks away.
|
|
| Back to top |
|
 |
koolhoney07
Joined: 12 Jan 2009 Posts: 16
|
20 Jan 2009 13:50 interface bluetooth module to microcontroller |
|
|
|
|
hey noooo....am asking for the other....just refer the above scrapss..
i.e,
1. is it enough to connect a mc to a bt module directly or do we need any software to be installed in mc to access the data from the bluetooth module??????
2.after the connection between bt module and mc....how the other device(i.e,mobile with bt feature) wil recognise this bt module to send some data(i.e,contact no.) to dat module???
|
|
| Back to top |
|
 |
krishnasty
Joined: 14 Oct 2008 Posts: 9
|
21 Jan 2009 20:06 bluetooth microcontroller phone |
|
|
|
|
hi,
i am doing a similar project in which a UC wil be connected to a bluetooth dongle. this embedded system when connected to the PC will be able to send some information which i feed to different bluetooth devices . i was going thru the post and wanted to know if anybody was successfull in getting the interfacing done properly. i am also doing the same implementation in java. using jdk, i have designed a code which will send txt files to cell phones via bluetooth dongle connected to the pc. i now want the hardware thing to be done.
pls help me out.
thnx
|
|
| Back to top |
|
 |
blueroomelectronics
Joined: 17 Sep 2006 Posts: 1681 Helped: 99 Location: Toronto, Canada
|
21 Jan 2009 22:12 modify bluetooth dongle as modem |
|
|
|
|
I take it you're using a RS232 type Bluetooth dongle with a microcontroller.
REMEMBER the USB dongles do not work with a microcontroller.
|
|
| Back to top |
|
 |