bluetooth event trace for inrange and out range of the registered device in windows7.

This is a discussion on bluetooth event trace for inrange and out range of the registered device in windows7. within the Windows Programming forums, part of the Platform Specific Boards category; Hi All, I want to trap inRange and outRange event of the bluetooth device i.e. paired with my windows7 machine. ...

  1. #1
    Registered User
    Join Date
    Sep 2011
    Posts
    3

    bluetooth event trace for inrange and out range of the registered device in windows7.

    Hi All,

    I want to trap inRange and outRange event of the bluetooth device i.e. paired with my windows7 machine.

    Thanks in advance.

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,668
    So do you have an actual question?

    Or do you just need hand-holding through MSDN Library
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    Sep 2011
    Posts
    3
    Quote Originally Posted by Salem View Post
    So do you have an actual question?

    Or do you just need hand-holding through MSDN Library

    Hi salem,
    thanks for your interest.

    i want to know how to achieve this goal.

    inRange means that windows7 machine equiped with bluetooth can search the device and outRange means that machine cant search the device.

    I am using the various bluetooth api's of windows7.
    like BluetoothAPIs.h, bthdef.h,winsock2,Ws2bth etc.

    i am able to trap the event when any new device is getting ad to my machine or removed from machine.

    but not able to trap the situation once the authenticated device is getting out side the range of my machine. or comes inrange of my windows machines bluetooth.

  4. #4
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Did you even bother to follow the link Salem gave you?

    In less than 5 minutes I found this... Bluetooth and WM_DEVICECHANGE Messages (Windows)

  5. #5
    Registered User
    Join Date
    Sep 2011
    Posts
    3
    Quote Originally Posted by CommonTater View Post
    Did you even bother to follow the link Salem gave you?

    In less than 5 minutes I found this... Bluetooth and WM_DEVICECHANGE Messages (Windows)

    HI,

    I am already go through with this library.

    and i have tried it as well. through this library i have able to get the event at time of pairing and removing from windwos machine, while i have a paired device with my bluetooth enabled windows 7 machine and i m taking away the device out side the range of my machine's bluetooth that time i am not able to receive the any event same way when i am bringing my device close to my machine that time also i am not able to receive any event like inRange. i have also used with the same GUID as provided in your link.

    I am affraid about is it possible or not?

    for a mean while to accomplish this i am trying to connect the device after some time that device is in range or not by performing a connection to it.

    any suggestion.

  6. #6
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,668
    But isn't that what BT is supposed to do - if it's in-range, it gets paired automatically and the pair is broken when the device moves out of range.

    Yes, there will be some very low level event saying in-range, but my guess this immediately triggers pairing where this is allowed.

    You could try seeing what happens when you use a non-registered device. The "in-range" event would then appear as the "new device detected" or something like that.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. WindowsXP to Windows7
    By KIBO in forum Windows Programming
    Replies: 1
    Last Post: 06-09-2011, 05:52 AM
  2. Replies: 2
    Last Post: 06-06-2011, 08:23 AM
  3. Eclipse CDT, windows7 and new MinGW
    By marcoesteves in forum Windows Programming
    Replies: 0
    Last Post: 12-11-2010, 10:15 AM
  4. Replies: 1
    Last Post: 08-22-2009, 09:07 AM
  5. Intercept mouse event and change to different event
    By ByThaBay in forum Windows Programming
    Replies: 1
    Last Post: 03-19-2008, 05:44 PM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21