Help Bluetooth Programing

Posted: 03-02-2006, 03:17 AM
Hi all

I have been reading and working on Bluetooth programming for my
project. Some points I am a bit blur about. Could you just give your
suggestion?

I try to state my problem as clear as possible.

What I have:
Two bluetooth chips with programmable microprocessors. One is referred
as Master, the other is referred as Slave. They each has a 48 bit
address and IS KNOWN TO EACH OTHER.

What I want:
When they are both powered on, Master will be able to detect that
specific slave within a certain range say, 1m.(Hardward issue) Once the
Slave is out of a range Master will sound alarm.

What I did:
I write C program under BlueZ to let Master keep on inquiry nearby
device using the function: hci_inquiry(...). I set the max number of
detectable device to one (max_rsp = 1). And everytime if Master
detected nothing within time, sounds alarm. When a device is detected,
I can get the detected device's 48 bit address. So Master make a
comparison with the special Slave's address. If it is the Slave unit it
wants to detect, Master will clear this inquiry, go to the next
inquiry. (Use a while loop) Otherwise, if it is not, Master sound the
alarm.

So now the problem is:
1. I know how to do the Master side program. But What should I do for
slave side? What code should I write? What I need for Slave is just let
it to be Discoverable/Detectable once it is powered on.

2. Should I do the whole thing in socket manner?

Looking forward to your reply.

Thanks.

YY

Reply With Quote

Responses to "Help Bluetooth Programing"

 
Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
lock codes and hand set programing instructions rick Nokia 0 07-07-2004 07:37 PM
Programing and Unlocking aquarium Motorola 3 10-02-2003 08:04 AM
V205 SID programing andrew brockman GSM 0 07-08-2003 05:30 AM


All times are GMT. The time now is 09:43 AM.


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 31 32 33