A Bluetooth emulator to ease development of Bluetooth applications
25 janv. 2006 - 18:45
Keywords :

This is a utility to provide a simple Bluetooth API for application programmers. The API uses the same interface for Win32 emulator and target phone. This enables to debug the Bluetooth functionality within the Microsoft Visual C++ 6.0 IDE with the help of a simple Bluetooth emulator. The Bluetooth API only uses Symbian OS core functionality and is therefore phone independent.

btemulator.png

Get Bluetooth Emulator on Symbian Developer web site.

Find this news as well as a couple of other interesting stuff in the Symbian Developer Newsletter
Download posted janvier 25th, 2006 by eric

Soumis par Rajesh (non vérifié) le jeu, 2006-03-23 07:39.

I am working on Bluetooth on Symbian OS S60. I am novice on Symbian OS programming.

I have came across "The BlueWorld Example" sample code. I thought it will really help me in the situation where I can use two instanaces of epoc and use TheEmulator for communication between the same to observe Bluetooth functionality.

However, I am stuck in a situation where BlueWorld Application crashes with following reason:

Error:

====

Unhandled exception at 0x6002b03a (EUSER.DLL) in EPOC.EXE: 0xC0000005: Access violation reading location 0x00000027.

Build Environment details:

===================

Host OS: Windows XP Professional and Windows 2000 Server Symbian OS v 7.0s. Downloaded bluetooth demo code from: http://www.newlc.com/A-Bluetooth-emulator-to-ease

Visual Studio 2005 Professional Edition Code Warrior Development Studio for Symbian OS, v 3.1

Hurdles faced wile compiling

BTMsgPassser & BlueWorld:

=====================

1. SYSINCLUDE in BlueWorld.mmp file

SYSTEMINCLUDE \epoc32\include changed to SYSTEMINCLUDE \epoc32\include \epoc32\include\techview

for include file eikon.rh

2. Undefined i: ==> solved variable i declared as "for loop index" in CBTMsgPasser::ScanMessage () and AddConnectionPair() moved out of for loop

3. undefined EKetCBA1 and EKetCBA2

changed to hard coded constants like 115 (ASCII key 'S') and 99 (ASCII key 'C')

Call flow before exception:

==================

void CMessageServer::DisplayMessage(const void *msgBuffer,int msgLength) HBufC* text = HBufC::NewLC(msgLength); const char *line = (char *) msgBuffer; for(int i=0; iDes().Append(line[i]); iLog.LogL(*text); CleanupStack::PopAndDestroy(text);

If line ' iLog.LogL(*text);' in the above function is commented then no exception comes, however both client and server application does not respond after showing: Inviting Player ... and Searching for player... message from client and server.

Please see the attached image on my machine.

Please let me know what might be going wrong and your suggestions on the same.

I want to that Symbian Bluetooth stack should be loaded and I should be able to observe the bluetooth functionality.


Soumis par Rajesh (non vérifié) le jeu, 2006-03-23 11:15.

Thanks Andrew!!

Need to copy TheEmulator.exe to \epoc32\release\winscw\udeb or \epoc32\release\winscw\urel folder for shared section to work.

Enjoy. it works with Symbian v7.0s ;-))


Soumis par Rajesh (non vérifié) le jeu, 2006-03-23 10:45.

Wheather this is tested with Symbian OS v7.0s.

Are there any compatibility issues ?

What needs to be done to get it running with Symbian v 7.0s?

Thanks


Soumis par silver_csc (non vérifié) le lun, 2006-04-17 09:18.

Is that tested with Symbian OS v8.0a? Any compatibility issues ?

Thanks


Soumis par butching314 le mar, 2008-01-15 11:10.

hi

i'm creating a thesis right now where i'm trying to turn my symbian 60 phone into a bluetooth dongle mode that when i plug into the pc, the pc will only recognize it as a bluetooth peripheral. this way i will be able to use the bluetooth capabilities of my phone to connect to other pc.

basically my question is, what sdk should i look at? and what tools can you guys recommend. i am totally new in mobile programming but i've done applications/systems in java, .net, and c++.

-marvin



copyright 2003-2009 NewLC SARL