You Are Here:

Community: Developer Discussion Boards

#1 Old Question How to use bluetooth to connect to my pc - 2006-04-07, 09:26

Join Date: Mar 2005
Posts: 4
woailuo
Offline
Registered User
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
Reply With Quote

#2 Old Red face Re: How to use bluetooth to connect to my pc - 2006-04-08, 14:45

Join Date: Oct 2004
Posts: 1
rayking
Offline
Registered User
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
Reply With Quote

#3 Old Re: How to use bluetooth to connect to my pc - 2006-04-13, 10:20

Join Date: Sep 2005
Posts: 32
Location: Ukraine
Send a message via ICQ to Hexxx
Hexxx
Offline
Registered User
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?
Reply With Quote

#4 Old Re: How to use bluetooth to connect to my pc - 2006-04-13, 18:31

Join Date: Sep 2005
Posts: 32
Location: Ukraine
Send a message via ICQ to Hexxx
Hexxx
Offline
Registered User
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.
Reply With Quote

#5 Old Re: How to use bluetooth to connect to my pc - 2006-04-14, 16:35

Join Date: Mar 2005
Posts: 4
woailuo
Offline
Registered User
Thank you , Hexxx. i'll try it as you said. Hope it works
Reply With Quote

#6 Old Re: How to use bluetooth to connect to my pc - 2006-04-20, 14:24

Join Date: Feb 2006
Posts: 23
Zdenko61
Offline
Registered User
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 With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
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

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia