You Are Here:

Community: Developer Discussion Boards

#1 Old activating bluetooth at charging - 2006-03-31, 13:34

Join Date: Nov 2005
Posts: 17
chrisi1002
Offline
Registered User
Hello!

I want to use my mobile with the bluetooth handsfree set in my car, but don't want to leave the bluetooth switched on.

So I think of activating the bluetooth at the charging, because the carholder charges the mobile if it is attached to the holder.

Is it possible to realize an application which detects the charging status and activates the bluetooth (the application would have to run all the time), or is there another way to activate the BT if it is plugged to the holder?

Thanks in advance!

PS: sorry for my bad english
Reply With Quote

#2 Old Re: activating bluetooth at charging - 2006-04-01, 00:27

Join Date: Mar 2006
Posts: 18
Location: Greece
mpierettis
Offline
Registered User
How you want to use your car's bluetooth handsfree set if you switch off your cell phone's bluetooth?
I haven't quite understand what you want.
Reply With Quote

#3 Old Re: activating bluetooth at charging - 2006-04-01, 11:41

Join Date: Nov 2005
Posts: 17
chrisi1002
Offline
Registered User
by default the bluetooth is switched off, but if i plug the phone to the holder the bluetooth should be activated.
so i'm searching for a way to switch the bluetooth on, if the mobile is attached to the holder
Reply With Quote

#4 Old Re: activating bluetooth at charging - 2006-04-01, 18:24

Join Date: Mar 2006
Posts: 18
Location: Greece
mpierettis
Offline
Registered User
So you want the bluetooth to be activated when you put your cell phone on your car holder.
I'm not sure if this can be happen. I haven't heard it before.
Search to the manual of your car holder if it refers to something like that.
Why don't you activate the bluetooth by your own? Put the bluetooth menu option on a shortcut key for an easier access.
Reply With Quote

#5 Old Re: activating bluetooth at charging - 2006-04-01, 19:48

Join Date: Nov 2005
Posts: 17
chrisi1002
Offline
Registered User
you seized it (don't now if it is well translated)

the holder is purchased but not shipped yet...it's a original Nokia Car-Holder

of course i can activate the bluetooth manually but then i have to push a button to go to the bluetooth menu - second push to activate it - and a third to close the menu...there must be a easier way!

the phone is charging while it is attached to the holder. is it possible to detect the charging status? then i would be able to switch the bluetooth on everytime the phone is charging
Reply With Quote

#6 Old Re: activating bluetooth at charging - 2006-04-10, 22:55

Join Date: Nov 2005
Posts: 17
chrisi1002
Offline
Registered User
i have found some source code, but i don't know to implement it in a application (Carbide C++ and SDK 3.0):

Code:
// Charging State
include: "saclient.h"
link against: " sysagt.lib"

RSystemAgent systemAgent;
User::LeaveIfError(systemAgent.Connect());
TInt strength = systemAgent.GetState(KUidChargerStatus);
if (strength == TSAChargerStatus::ESAChargerConnected )
{
// DO SOMTHING
}
--
Error: "saclient.h" is not found

Code:
//enable Bluetooth
TPckgBuf<TBool> pckg;
  RNotifier iNotifier;
  TPckgBuf<TBool> iNotifierResult;
  TRequestStatus status;

  User::LeaveIfError(iNotifier.Connect());
  iNotifier.StartNotifierAndGetResponse(status,KPowerModeSettingNotifierUid,pckg,iNotifierResult);
  User::WaitForRequest(status);
  User::LeaveIfError(status.Int());

  iNotifier.CancelNotifier(KPowerModeSettingNotifierUid);
  iNotifier.Close();
  User::LeaveIfError(iNotifierResult[0]);
is this correct code? or does anybody other examples?
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
Bluelet - Rapid Bluetooth App Development (Free source) huiben Mobile Java General 4 2008-07-25 16:52
PC Suite not detect 6600 with Bluetooth connection spinacle Bluetooth Technology 29 2004-03-15 00:24
Nokia 7650 support Bluetooth audo? ovjo12 Bluetooth Technology 5 2003-07-17 19:50
Suggestion for resolving PC suite connection via bluetooth Kazi Bluetooth Technology 0 2003-03-14 20:35
Activating Bluetooth on 7650 silvercom Bluetooth Technology 1 2002-11-13 11:18

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