![]() |
PC application with bluetooth
Hello everybody,
I'm trying to develop a PC application with a Bluetooth connection using a USB dongle. The application is supposed to search for devices in range, choose one of them, and then send him a file... I have searched the net looking for a way to do it, but didn't find one. :icon_sad: Is it possible to develop such application? If so, how can I do it? What should I look for? Is Java the ideal language for this application? (I don't care to use C# or C++ instead...) Thanks.... :icon_wink: |
Re: PC application with bluetooth
Personally, use C++.
|
Re: PC application with bluetooth
|
Re: PC application with bluetooth
Quote:
But now I have another question: Using bluecove (jsr-82), I've succeeded in making a device discovery search, select a mobile phone, search for services and make a connection attempt.. So far so good, but when I try to connect the mobile, my cell demands a passkey (in order to pair itself to the PC). So I have two questions (I've listed some code in the bottom): 1. Is it possible to send a message without the passkey and the pairing? (only by clicking yes/no to accept the connection by the cell) For instance, when I send a file from one mobile phone to another, it doesn't request a passkey, only an approval from the mobile user. 2. If it's not possible to connect without the passkey, how do I enter the pairing passkey back in the PC? This is how I'm trying to initialize the connection: :
...I hope I explained the code enough, Thanks |
Re: PC application with bluetooth
Can be done with JSR with J2me
|
Re: PC application with bluetooth
In this case, I'm talking about J2SE only, due to the fact I'm programming this application for my computer...
I know this attributes determine the type of service we are looking for: :
int[] attrSet = new int[] { 0x0100};:
_discoveryAgent.searchServices(attrSet, uuidSet, devices[i], this);Maybe there are other properties except 0x0100 and 0x1106 that will do the work? I tried to learn more about those properties but found nothing about it. |
| All times are GMT -5. The time now is 4:21 PM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC