Bluetooth ScreenLock

Sign in to queue

The Discussion

  • User profile image
    rbelknap

    Has anyone had success using the IOGEAR GBU421 usb/bluetooth adapter. I can get the program to compile, but it does not see any devices.

  • User profile image
    Jack

    No problems after installing the C4F framework and changing "DeviceServicesManager" to "BluetoothDeviceServicesManager". Although, if you're using the toshiba stack, you may have issues; I solved the problem by removing the "Bluetooth Stack by Toshiba for Windows" (or whatever it's called) from add/remove programs, and then letting windows find and install the drivers. Using an LG Dare on a Toshiba 350 bluetooth card inside of a dell laptop.

  • User profile image
    charles justice

    i love all your works and article,but looka this problem i have,am in final year and my project supervisor gave me topic to work on "design and implementation of a bluetooth communication software" and i have tried to design d interface and the source code but to no avail could you please help me out cos i have just 2weeks please save.thanks.you can send through this e-mail charlesjustice65@yahoo.com. am counting on u.

  • User profile image
    charles justice

    i love all your works and article,but looka this problem i have,am in final year and my project supervisor gave me topic to work on "design and implementation of a bluetooth communication software" and i have tried to design d interface and the source code but to no avail could you please help me out cos i have just 2weeks please save.thanks.you can send through this e-mail charlesjustice65@yahoo.com. am counting on u.

  • User profile image
    Clint

    @Charles Justice: Not sure what your issue is?  Did you try http://www.codeplex.com/C4FDevKit for the bluetooth part by itself?

  • User profile image
    Clint

    @Bernard, click the "Email Us" link so I can get a better detail on this and help resolve this issue.  Like I said, I have to hunt down an iphone which may be a tad harder right now due to holidays.  Looking at the code in the article, not totally sure why he is calling it a serial port.  Jerry looks to just be sending some data over to verify the device is actually there.

    Also to submit a patch, here is the link from codeplex on the c4f dev kit.

    http://c4fdevkit.codeplex.com/SourceControl/UploadPatch.aspx

  • User profile image
    Bernard

    When I enumerate the services, there are 8, none of which are SPP. I see other things like wireless access point and voice. I was hoping I could connect to any of them, but every service rejects my Connect() call.

    My last ditch effort will be to DiscoverDevices every few seconds and compare the list, but that seems horribly inefficient. Any help is appreciated, I also found a few places in your helper class to add error checking for this type of situation. Happy to contribute back. Thanks Charles.

  • User profile image
    Clint

    @Bernard that is an excellent question, my problem is I don't have an iphone to test this against.  My gut says this should work.  Let me see if I can't track down someone that will let me borrow one for a day or two.

  • User profile image
    Bernard

    Does not work with many phones, since they do not support Serial Port Profile. IPhone included L(

    What other service could you connect to? Hands Free? If so, how? Thank you Charles.

  • User profile image
    Z8080

    I have a C# application (VS2008 using .NET 3.6) for the Blue Toothe connecity using the C4F libraries. The application can discover any BT enabled devices within the range and it works fine. However, I want the application should auto-detect any BT enabled device (on discovery mode) as soon as it comes in within the range. Is there any better way to that? Highly appreciate any recommendation of how to handle this case.

  • User profile image
    BuragohainM

    Put the discovery function in a infinite loop with a time interval in a background worker thread and keep your GUI updated if new one found.

  • User profile image
    Clint

    @Zman email us, I think I can help out, I just need greater context.  Contact link is in the upper right.

  • User profile image
    Zman

    I can discover and pair a bluetooth device in my C# application, but I'm stuck in assigning com ports (incoming or outgoing) to that remote device. I highly appreciate any help on this. Thank you.

  • User profile image
    Zman

    Thank you for the prompt response. Here is my struggle to assign com ports for a remote Bluetooth device that I can discover and pair with through my C# application. My C# is a simple application that discovers and pair Bluetooth devices, also it's supposed to let user know that these are the Com Port assigned to this device (like the Windows Bluetooth device manager does. When you add a Bluetooth device using the Windows Bluetooth Devices you can see the Com ports  assigned to the device). In my application, I can discover BT device as I've mentioned before, I can find the device address and serial port service; but now I need to assign com ports. Using the GetPortNames() methods I can get serial port names, but it seems to me that it(GetPortNames()) does  not show all the ports that are in use. Anyway, so my issues are (1) how do I determine the com ports that are available for a BT device and (2) how can I assign those ports to the device so that data transfer can take place using the port. Thank  you again and appreciate any help on. My contact is hasan_z@hotmail.com

  • User profile image
    Clint

    @Benard, sorry man, I don't have a iPhone to test with.  Based on the quick glance at the article, if it mounts on Windows as a phone, the code *should* see it.  If not, something may have to be altered.

  • User profile image
    Bernard

    A little more detail. When I try to connect to any of those 8 services I get:

    Unable to connect to service. A socket operation was attempted to an unreachable network

  • User profile image
    Bernard

    But it doesn't Smiley The Iphone does not support SPP Sad It has 8 services:

    PAN Network Access Profile - Network Access Point.��|

    Wireless iAP -

    AVRCP DeviceRemote Control Device - Remote Control Device

    Audio Source -

    Phonebook -

    IrMC Sync -

    Handsfree Gateway -

    - PnP Information

    I cant seem to use any of them like SPP to create the proximity functionality. Any ideas?

  • User profile image
    Clint

    @Bernard should work, an iphone is just another bluetooth device

  • User profile image
    Bernard

    Did you ever get a chance to try with an iphone?

  • User profile image
    Clint

    @Bernard like I stated before, I don't have an iPhone to test with.  I'm not sure what Windows sees when the iPhone mounts via bluetooth.  This would ultimately determine how I would change the program.

  • User profile image
    Bernard

    Since the Iphone does not have SPP, one cannot open a connection to the port and using that to "ping" for connectivity.

    What other services could be used for this type of functionality? I love the auto lock idea, but the iphone cannot do it as is, because it does not have SPP.

    Have any examples of connecting to any other services?

    Many thanks

  • User profile image
    Bernard

    The only service windows sees is "Wireless iAP". Any ideas on what I can do with that?

    Alternatively, any way to make the radio scan fast to see what devices are in range?

  • User profile image
    Clint

    @Bernard, it is has been a very long time since I've looked at that code, I hate to give this type of response but it is "As Is".

    Another different implementation may be needed as this uses the C4F Developer kit.

    I've never tried it but http://32feet.codeplex.com/ may do what you need

  • User profile image
    Dima Shawahneh

    Hello every one

    I am using c4f devkit to discover all bluetooth devices within its range .. the problem is that it discovers all the devices including the paired devices even though the bluetooth is off on the mobile and this is a problem >>>

    Is there any way to check if this device paired or not and to check if it is really found and on ? .. plz help and great thanks.

  • User profile image
    Clint

    @Dima Shawahneh how are you keeping track of your bluetooth devices?  If the device bluetooth is off, there is no way to see it.

Add Your 2 Cents