You Are Here:

Community: Developer Discussion Boards

#1 Old Call answer/reject using bluetooth headset button - 2008-12-23, 13:37

Join Date: May 2007
Posts: 128
Location: India
Send a message via Yahoo to raj_rr7 Send a message via Skype™ to raj_rr7
raj_rr7
Offline
Regular Contributor
Hi,

I am developing VoIP client application on S60 3rd Edition MR/FP1. Currently i am trying to support bluetooth headset for audio routing. But VoIP client application does not receive command/event when try to answer/reject call using bluetooth headset. I dont get the key event in OfferKeyEventL nor in WsEvent. How does client get bluetooth headset button command/event? Is there any trick/hack for this or simply not possible?


Thanks
-Rajat

P.S. - Zabra bluetooth headset is used for testing.
Reply With Quote

#2 Old Re: Call answer/reject using bluetooth headset button - 2008-12-24, 09:37

Join Date: Dec 2008
Posts: 104
Unit1ed
Offline
Regular Contributor
Connect to spp and read AT*KEY=10 messages?
Reply With Quote

#3 Old Re: Call answer/reject using bluetooth headset button - 2009-01-02, 06:41

Join Date: May 2007
Posts: 128
Location: India
Send a message via Yahoo to raj_rr7 Send a message via Skype™ to raj_rr7
raj_rr7
Offline
Regular Contributor
Hi,

VoIP client needs to read Bluetooth AT command during voice streaming. Is it possible to read AT command during VoIP call is active with voice streaming?

Regards
-Rajat
Reply With Quote

#4 Old Re: Call answer/reject using bluetooth headset button - 2009-01-02, 12:57

Join Date: May 2007
Posts: 128
Location: India
Send a message via Yahoo to raj_rr7 Send a message via Skype™ to raj_rr7
raj_rr7
Offline
Regular Contributor
Hi,

I am able to connect to BT serial port but application is crashing on calling RComm::Read. Can anybody guide me what is going wrong in this code. BT headset is connected to E51 when executing the code.

source file:

_LIT(KCsyName, "BTCOMM");
_LIT(KDataPort, "BTCOMM::0");

CAtCommandEngine::CAtCommandEngine() :
CActive(EPriorityStandard) // Standard priority
{
}

CAtCommandEngine* CAtCommandEngine::NewLC()
{
CAtCommandEngine* self = new (ELeave) CAtCommandEngine();
CleanupStack::PushL(self);
self->ConstructL();
return self;
}

CAtCommandEngine* CAtCommandEngine::NewL()
{
CAtCommandEngine* self = CAtCommandEngine::NewLC();
CleanupStack::Pop(); // self;
return self;
}

void CAtCommandEngine::ConstructL()
{
//User::LeaveIfError(iTimer.CreateLocal()); // Initialize timer
CActiveScheduler::Add(this); // Add to scheduler

//User::LeaveIfError(StartC32());
TRAPD( err1, StartC32() );

// Connect the server
//User::LeaveIfError(iCommServer.Connect());
TRAPD( err2, iCommServer.Connect() );

// Load the CSY module
//User::LeaveIfError(iCommServer.LoadCommModule(KCsyName()));
TRAPD( err3, iCommServer.LoadCommModule(KCsyName()) );

// Open the port
//User::LeaveIfError(iComm.Open (iCommServer, KDataPort, ECommShared));
TRAPD( err4, iComm.Open (iCommServer, KDataPort, ECommExclusive) );

//Port is successfully open
}

CAtCommandEngine::~CAtCommandEngine()
{
Cancel(); // Cancel any request, if outstanding
iComm.Close();
iCommServer.Close();
}

void CAtCommandEngine:oCancel()
{
iComm.Cancel();
}

void CAtCommandEngine::RunL()
{
if( KErrNone == iStatus.Int() )
{
//StartListening();
iComm.ReadOneOrMore( iStatus, iReplyData );
SetActive();
}
}

TInt CAtCommandEngine::RunError(TInt aError)
{
return aError;
}


TInt CAtCommandEngine::StartListening()
{
// Crashing on calling Read API
iComm.Read( iStatus, iReplyData );
SetActive();
return KErrNone;
}


header file:

class CAtCommandEngine : public CActive
{
public:
// Cancel and destroy
virtual ~CAtCommandEngine();

// Two-phased constructor.
static CAtCommandEngine* NewL();

// Two-phased constructor.
static CAtCommandEngine* NewLC();

public:
// New functions
TInt StartListening();

private:
// C++ constructor
CAtCommandEngine();

// Second-phase constructor
void ConstructL();

private:
// From CActive
// Handle completion
void RunL();

// How to cancel me
void DoCancel();

// Override to handle leaves from RunL(). Default implementation causes
// the active scheduler to panic.
TInt RunError(TInt aError);

private:
RCommServ iCommServer;
RComm iComm;
TBuf8<256> iReplyData;
};


Regards
-Rajat
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
Handle Call Button( Green key) and End Button (Red key) Aliencse General Symbian C++ 8 2009-07-17 11:31
Bluetooth Headset Connection bugmenup Bluetooth Technology 0 2008-12-17 10:00
E-61 not connecting to BH 800 Bluetooth headset rvaccha Bluetooth Technology 0 2007-02-20 08:11
bluetooth / headset button adigadish General Symbian C++ 0 2004-04-19 14:06
Nokia 7650 support Bluetooth audo? ovjo12 Bluetooth Technology 5 2003-07-17 19:50

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