| Reply | « Previous Thread | Next Thread » |
|
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. |
|
Connect to spp and read AT*KEY=10 messages?
|
|
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 |
|
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 | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| 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 |