| Reply | « Previous Thread | Next Thread » |
|
i want to develop a program which need send data between pc and phone. (use symbian c++) i only find samples that send data between phones. can anybody give me an example or at least tell me which SDK i can use on pc? thanks in advance
|
|
I have the same question. As I went deeper in symbian, I found it frustrating that it needs an extra "PC Suite Connectivity API", to connect symbian with windows, even more ridiculous, this API along is not enough, it also needs a software called "PC Suite" which is specilized to each single phone type, actually there is no software called "PC Suite", for Nokia 6600, the full name is "Nokia 6600 PC Suite". This limitation makes it impossible to develope a common symbian application communicating with Windows.
There maybe a chance bypassing the "PC Suite" by using local windows bluetooth API, but I met a problem when going down this way, the bluetooth service ID in windows BT API is a 128 bits GUID, while in symbian API it's 32 bits long. Anybody interested in this topic can send me email directly: yanl@huawei.com
Last edited by rayking : 2006-04-08 at 14:49.
Reason: spell error
|
|
I've managed to connect from the PC to nokia 3650 by bluetooth. On the 3650 i've run btpointtopoint example in the receiver mode. And on the pc side i've used the example from platform sdk for xp sp2(\Microsoft Platform SDK for Windows XP SP2\Samples\NetDS\Bluetooth). So i've managed to send a test string from the pc and receive it on the phone.
The main question now is how to discover the service that btpointtopoint runs on the phone. Now, to connect from the PC i look at the device. In the receiver mode, btpointtopoint example shows: "Get Port = 4". I.e. that's a port to connect to from the PC. Then i have to modyfy my code on the pc: SockAddrBthServer.port=4; I've found the code that should return the port number for service with the specified guid. But how can find that guid for the service that btpointtopoint runs on the phone? |
|
I've solved that!!! I don't know why, but the fact is that you won't be able to find the bluetooth service started by btpointtopoint using service discovery api(winsock) from the PC, though you can connect it if you know the port. May be it's a bug of Microsoft bluetooth stack. Anyway, if you try to use the the BtPointToPoint example to connect from the phone to the PC it works! You'll have to change the GUID of service on the PC to SerialPortServiceClass_UUID and run the PSDK example in server mode.
P.S. The devices must be paired.
Last edited by Hexxx : 2006-04-13 at 19:18.
|
|
Thank you , Hexxx. i'll try it as you said. Hope it works
![]() |
|
Hexxx thanks for tips.
I have tested with SockAddrBthServer.port=0; and it works. You have to specify either zero or actual port number. If you specify wrong port number connect() fails. |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Unable to Connect. Maximum number of bluetooth connections already in use." Error | rmuralidharan | Symbian Networking & Messaging | 7 | 2008-12-09 15:00 |
| How to get a device's bluetooth address before I connect to it. | doglovecat527 | Symbian Networking & Messaging | 0 | 2005-09-02 08:50 |
| HELP : how to connect a midlet to pc via bluetooth on 6600 | pons@ifrance.com | Bluetooth Technology | 0 | 2004-05-13 17:20 |
| Nokia 7650 support Bluetooth audo? | ovjo12 | Bluetooth Technology | 5 | 2003-07-17 19:50 |
| Why bluetooth on Nokia 7650??, if you can't connect to any deveices???? | ovjo12 | Bluetooth Technology | 4 | 2002-12-24 11:35 |