Discussion in "PIC Microcontroller Discussion" started by    monika    Apr 9, 2008.
Wed Apr 09 2008, 03:36 pm
#1
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, 08:46 pm
#2
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, 11:36 am
#3
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, 06:54 pm
#4
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, 08:27 pm
#5
@IshaG
bluetooth communication over a 1 KM range???? :mad :mad

i missed something here isnt it??
Thu Apr 10 2008, 08:34 pm
#6
y r u people going for bluetooth????

Fri Apr 11 2008, 09:11 am
#7


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

i missed something here isnt it??

shyam


Yup ..... they're providing a patch antenna for increased coverage.Wonder whether it really works error-free in noisy,trying conditions though.
Sat Apr 12 2008, 03:59 am
#8
@shyam

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?

@sashijoseph

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, 11:56 am
#9
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.
Sun Apr 13 2008, 01:48 am
#10
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

Information

Powered by e107 Forum System

Downloads

Comments

Bobbyerilar
Thu Mar 28 2024, 08:08 am
pb58
Thu Mar 28 2024, 05:54 am
Clarazkafup
Thu Mar 28 2024, 02:24 am
Walterkic
Thu Mar 28 2024, 01:19 am
Davidusawn
Wed Mar 27 2024, 08:30 pm
Richardsop
Tue Mar 26 2024, 10:33 pm
Stevencog
Tue Mar 26 2024, 04:26 pm
Bernardwarge
Tue Mar 26 2024, 11:15 am