Wireless Communication Library Support Forum
Frameworks => Bluetooth Framework => Topic started by: engpaulo on June 30, 2010, 08:20:54 PM
-
Hi Mike.
I m running the BlueChat Server for tests and i have problems with Service UID.
My Phone application has to connect in BlueChat Server by Service UID. In this version(app phone) he does not search for devices,
he already tries to connect through the Service UID, but he does not connect.
In this old version (app phone), he does search for devices and I select that I want to connect. No problem in this case. Connection OK.
But I have to use the new version.
What s wrong in this code?
wclServer->Transport = stBluetooth;
wclServer->BluetoothParams->Radio = Radio;
wclServer->BluetoothParams->Service = StringToGUID("{1CBF2215-9E04-40d4-9CD7-BEE54683B97D}");
wclServer->BluetoothParams->Authentication = false;
wclServer->BluetoothParams->Encryption = false;
wclShowError(wclServer->Listen());
Thanks.
-
Hi,
Your code looks absolutly correct. How your phoen know about device to connect to? Are you sure you use the same UUID as in phone app?
-
Yes, Exactly.
The app phone connects directly by the service UUID.
The same UUID.
Whats happens?
Thanks.
-
Phone app MUST connect to device, not to service UUID. So the same question: How does your phone app know about your PC?
-
So, the application developer said he could connect directly by UID but i said that not.
He will make a new version with the search and connection.
So, I can use the UID? after the connection? The same UID in PC application and phone application. Right?
Thanks.
-
He is wrong. He can not connect by UUID only. Of course, if he uses fixed MAC then yes, he can connect to this fixed MAC to your UUID.
He must (in the application) search for devices around a phone and connect to a device which has your services UUID in its public browsable services list. So the app must query each device about your service's UUID.
Something like that.
UUID is like TPC/IP port number (in first look). In TCP/IP you always connect to a computer and only then an app talks to specified port.
-
Hi, Mike.
I understood perfectly. Thank you very much.
One doubts....
In the BlueChat Server case... the client (Phone), what type of protocol used for communication? RFCOMM but is not create the virtual COM? Right?
Can you explain to me how to communicate?
Thanks.
-
Hi,
Yes, it uses RFCOMM. Of course it does not create any COM ports as it is bluetooth, not serial communication. And RFCOMM does not declares/requires any COM ports. It's just COM port emulation over Bluetooth (RF). Don;t mix it up :)
-
Hi, Mike.
Do you know any application for Phone ( NOKIA E71 (SYMBIAN) or POCKET PC ( Windows mobile) to test BlueChat Server?
Thanks.
-
Hi,
No, but google gave me this: http://code.google.com/p/bluetooth-chat/
You can modify it a bit or check just service used.
-
Hi, Mike.
I'm having problems with BlueChat Server.
My Phone application sometimes work well and sometimes work very bad.
When connected, not send messages. When not connected with message error "Address NOT FOUND".
Whats the problem? It may be the dongle?
Thanks.
-
What is BT drive you use? What is phone app you use and how does it connect? (If it is private you can send it to mike@btframework.com and I test it here)
-
Hi Mike.
I sent the email to you.
Thanks.
-
Yes, just got it, thanks. I will test it tomorow and back to you (e-mail). The we can post result here. :)