Discussion in "PIC Microcontroller Discussion" started by    monika    Apr 9, 2008.
Wed Apr 09 2008, 10:06 AM
I have to establish a wireless link between a PC and a pic microcontroller using Bluetooth USB dongle or a bluetooth module.The data from the micro will travel to another micro again through wireless communication.

PC<----->PIC MICRO<----->PIC micro.
I am not able to decide which protocol to use(RFCOMM,L2CAP,...)
Do the bluetooth modules available have the protocols inbuilt or it will be embedded in the the code of the micro.
also wat sort of interface shud i go for in terms of cost?
this micro--->RS232---->bluetooth. or micro--->MAX3124E---->BLuetooth USB

how shud i decide a particular PIC for this particular project?

If anybody has worked on this kind of project before please guide me.

Wed Apr 09 2008, 03:16 PM
i think bluetooth modules avalable in market comes with on board protocol stack. You need to look in nearest market. Decision of pic controller to be used depends on how complex is your design. Which intern depends on type of module.

if you just need to make a simple wireless communication link between pc and controller then why don't you use rf modules available in market? They are really good for this.
Thu Apr 10 2008, 06:06 AM
I am also working on a similar project. i have to establish this link over a distance of 1 km. I have found some options for this purpose
1: http://www.lemosint.com/scripts/bluetooth_dongle_class1.asp

2:making a host controller interface USB on PIC itself and then using a usual bluetooth USB adapter easily available in the market.

3: also sparkfun has some readily available bluetooth modules.

but am not able to decide on which one to go for.
out of these 2nd one is the cheapest option but in that case the bluetooth driver(bluetooth protocol stack) need to be written.

I am not sure if i'll have to write the driver in 1st and the last case or not but i think i wont have to...wat do u say?

And i dont knw how to start with it. if any of you knows how to develop a complete driver implementing 'Bluetooth Stack" please help me.
You can tell me some links to it or may be any book if you know...

Tags bluetooth
Thu Apr 10 2008, 01:24 PM
The 1st option would be the easiest as the module already has the bt stack.

The 2nd option would be really difficult unless you use sth like the MAX3124 or a uc with a built in master usb(most usb 'enabled' micros are just slaves).So atleast you don't have to study the whole usb spec and write a USB stack.You still have to write the bt stack though.

btw National too has a serial module with stack implemented.Probably you could get a sample. :-)
Thu Apr 10 2008, 02:57 PM
bluetooth communication over a 1 KM range???? :mad :mad

i missed something here isnt it??
Thu Apr 10 2008, 03:04 PM
y r u people going for bluetooth????

Fri Apr 11 2008, 03:41 AM

bluetooth communication over a 1 KM range???? :mad :mad

i missed something here isnt it??


Yup ..... they're providing a patch antenna for increased coverage.Wonder whether it really works error-free in noisy,trying conditions though.
Fri Apr 11 2008, 10:29 PM

I have to establish wireless communication as depicted:
PC<----->uc1<---->uc2<----->uc3<------>........<------>uc20(say). over a distance of 1 km.
i.e. each micro will be communicating with adjacent micros only.PC will be communicating only with uc1 only.I have to make a secure wireless communcation. and bluetooth is good security wise.
I think this can be done using bluetooth modules....wat do u say?


I think i'll go for Bluetooth----->RS232 module which has embedded bluetooth stack on it.
but dont knw hw to begin writing the driver code on the PIC.?:-(
and only directing tha data to the PC's COM port will be sufficent for the PIC to recieve it wirelessly or dis will also require some system software on PC .

Please help me guyz with watever u can..thanks a ton....

Sat Apr 12 2008, 06:26 AM
Monika and IshaG looks like you both have got a similar project or you are working in same class

Still i want to say.. a simple RF module is enough.. you can define your own encryption algorithm before sending data to other uC and while receiving decrypt the data. Also you can add authentication before data is accepted.

Well do think over it.. Its much better method and cost effective solution. Final decision is still yours..
 IshaG like this.
Sat Apr 12 2008, 08:18 PM
Yeah and with so many links you'll become bankrupt in no time purchasing bluetooth modules.Could've been ok for a single connection......

Get Social


Powered by e107 Forum System


Mon Apr 12 2021, 11:54 AM
Joe N
I have recently launched my own site, and I am looking to provide value for you for free, by giving away 26 professional level blog post templates (worth $297).
Mon Apr 12 2021, 09:24 AM
Hey, I think your site might be having browser compatibility issues. When I look at your website in Ie, it looks fine but when opening in Internet Explorer, it has some overlapping. I just wanted to give you a quick heads up! Other then that, very good blog! https://onanadiete.ru/alpha-numeric-reasoning-questions-and-answers-pdf.pdf alpha numeric reasoning questions and answers pdf alpha numeric reasoning questions and answers pdf



Thu Jun 25 2020, 03:46 PM
Mon Jun 22 2020, 03:03 PM
Tue Jun 16 2020, 05:10 PM
Sat Jun 13 2020, 09:43 PM
Thu May 21 2020, 12:44 PM
Thu May 21 2020, 01:28 AM
Wed May 20 2020, 07:05 PM
Wed May 20 2020, 11:52 AM


Guests: 113, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 38215
Newest member: Mirza123