Welcome to WiFi-Forum

Go Back   WiFi-Forum - Wi-Fi Discussion Forum > Bluetooth Discussion Forums > alt.cellular.bluetooth
Reply
 
Thread Tools Display Modes
  #1  
Old 03-01-2006, 08:17 PM
yunyejin@gmail.com
 
Posts: n/a
Default Help Bluetooth Programing

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
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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bluetooth & mobile phone - please help Neil Hindry alt.cellular.bluetooth 1 11-21-2005 08:32 PM
NEWS: Bluetooth headsets offer less talk time as price goes up BlueDaze BlueTooth Forum 0 10-09-2005 11:58 PM
Smart Home with Bluetooth Application cherylyee BlueTooth Forum 0 09-29-2005 07:08 AM
borrowing a bluetooth signal rygar BlueTooth Forum 0 08-22-2005 01:17 PM
Bluetooth crippling. Remove This Verizon Forum 67 08-13-2005 12:16 PM




All times are GMT -7. The time now is 06:29 AM.

vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd. All Contents Copyright © Wifi-Forum.com