You Are Here:

Community: Developer Discussion Boards

#1 Old Initiate connection to an existing and paired HF device - 2008-11-29, 01:00

Join Date: Nov 2008
Posts: 2
romci
Offline
Registered User
I have a HF device which is not entirely compatible with my Nokia E66.
Then the HF device initiates the connection (and it always does as soon as it is turned on), the connection to the phone is successful but after about 10 seconds the connection is dropped.
If however I manually initiate the connection via "Connect to audio device" menu, the connection is persistent and everything works as it should.

So instead of throwing my HF device away I've thought of writing a simple Symbian application which sits idle in the background and when it detects a connection and then a subsequent disconnection from the HF device it initiates the connection from the phone as if I chose the Connect to audio device" menu.

I've never really developed for Symbian before, though seeing as it uses Eclipse and C++ I expect there shouldn't be much of a problem for me to learn some basics in a couple of weeks but I'd just like some pointers in the right direction for this particular case. My preliminary forum search revealed no similar cases...
Which methods would be most appropriate to accomplish my goal if it's even possible?

Thanks for all the help I can get,
Reply With Quote

#2 Old Re: Initiate connection to an existing and paired HF device - 2008-12-01, 15:19

Join Date: Mar 2008
Posts: 577
mahbub_s60's Avatar
mahbub_s60
Offline
Forum Nokia Expert
In wiki there are some example, I think you need these sequences.


1. Detect the address of HF device and store it in your code.

Code:
               	TBTSockAddr OtherDevice;
           		iSendingSocket.RemoteName(OtherDevice);

		    	TBTDevAddr BDAddress = OtherDevice.BTAddr();
		    	TBuf<12> BtHumanReadable;
				BDAddress.GetReadable( BtHumanReadable );		   								        		        
				TBuf8<30> buf8;
		    	buf8.Copy(BtHumanReadable);
2. Connect the device.
how to connect remote device.


-Mahbub
Reply With Quote

#3 Old Re: Initiate connection to an existing and paired HF device - 2008-12-02, 01:28

Join Date: Nov 2008
Posts: 2
romci
Offline
Registered User
Thank you, amidst all of available information this will be a great starting point.
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
Palm 5xx with BT card and Nokia 6310 HOWTO... vanuda Bluetooth Technology 2 2002-07-02 12:24

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