EasyDgm

所属分类:Symbian
开发工具:C/C++
文件大小:232KB
下载次数:19
上传日期:2009-08-11 09:34:58
上 传 者chenzb_2008
说明:  symbian手机开发平台上,拦截数据报的讲解书籍;
(symbian mobile phone development platform, the interception of data reported on the books )

文件列表:
DatagramService\.cdtproject (1256, 2008-04-14)
DatagramService\.project (740, 2008-04-14)
DatagramService\.settings\.carbide_build_settings (834, 2008-04-14)
DatagramService\.settings\org.eclipse.cdt.core.prefs (106, 2008-04-14)
DatagramService\BWINS\DATAGRAMSERVICEU.DEF (1288, 2008-04-14)
DatagramService\DATAGRAMSERVICEU.DEF (676, 2008-04-14)
DatagramService\DATAGRAMSERVICEU2.DEF (1281, 2007-06-20)
DatagramService\EABI\DatagramServiceU.DEF (644, 2008-04-14)
DatagramService\group\ABLD.BAT (321, 2008-04-14)
DatagramService\group\bld.inf (104, 2007-06-20)
DatagramService\group\DatagramService.mmp (434, 2007-06-20)
DatagramService\inc\DatagramService.h (2847, 2008-04-14)
DatagramService\sis\datagramservice_S60v2.pkg (227, 2007-06-20)
DatagramService\sis\datagramservice_S60v2.sis (3359, 2007-06-20)
DatagramService\sis\datagramservice_UIQ2.pkg (215, 2007-06-20)
DatagramService\sis\datagramservice_UIQ2.sis (3352, 2007-06-20)
DatagramService\sis\datagramservice_v9.1.pkg (368, 2007-06-20)
DatagramService\sis\datagramservice_v9.1.sis (3256, 2007-07-12)
DatagramService\src\Datagram.cpp (2374, 2008-04-14)
DatagramService\src\DatagramService.cpp (671, 2007-06-20)
SMSDatagramService\.cdtproject (1300, 2008-04-14)
SMSDatagramService\.project (743, 2008-04-14)
SMSDatagramService\.settings\.carbide_build_settings (834, 2008-04-14)
SMSDatagramService\.settings\org.eclipse.cdt.core.prefs (106, 2008-04-14)
SMSDatagramService\Bmarm\smsdatagramserviceu.def (819, 2007-06-20)
SMSDatagramService\Bmarm\smsdgramu.def (827, 2007-06-20)
SMSDatagramService\group\2000A305.rss (740, 2007-06-20)
SMSDatagramService\group\ABLD.BAT (324, 2008-04-14)
SMSDatagramService\group\bld.inf (649, 2007-06-20)
SMSDatagramService\group\SMSDatagramService.mmp (848, 2007-06-20)
SMSDatagramService\inc\etelmm.h (4281, 2007-06-20)
SMSDatagramService\inc\gsmuset.h (1197, 2007-06-20)
SMSDatagramService\inc\gsmuset.inl (972, 2007-06-20)
SMSDatagramService\inc\SMSDatagramService.h (1081, 2007-06-20)
SMSDatagramService\inc\SMSSendRecv.h (2686, 2008-04-14)
SMSDatagramService\inc\smsuaddr.H (3445, 2007-06-20)
SMSDatagramService\inc\smsustrm.h (1233, 2007-06-20)
SMSDatagramService\inc\smsustrm.inl (658, 2007-06-20)
SMSDatagramService\lib\arm4\urel\SMSU.LIB (30642, 2007-06-20)
SMSDatagramService\lib\armi\urel\SMSU.LIB (30770, 2007-06-20)
... ...

Datagram Service API and SMS Datagram Service --------------------------------------------- The Datagram Service API enables applications to silently (no inbox notification) send and receive datagrams. It consists of a generic ECOM framework for sending and receiving datagrams, and an implementation that supports the specific case of SMS datagrams. Its does not at this point support binary data or WAP SMS datagrams (ie with ports). This release comprises: * An ECOM-based datagram API framework * An implementation of that ECOM framework that provides easy sending and retrieving of SMS messages * A cut-down version of the non-public etelmm.h header for compilation consistency * LIB/DSO files and other public header files (for public APIs) that may not be present in particular manufacturer SDKs * a minimal text-based test exe (T_DatagramService) that demonstrates the usage of such services * a S60 v3 application (S60v3_EasyDgmTest) that shows API usage in an active object framework. This was required in order to pass Symbian Signed testing. * Signed SIS files - more detail below The release has been built and tested against UIQ2.0, UIQ2.1, UIQ3.0, S60 v2.0, and S60 v3.0 SDKs. This ECOM Datagram Service API allows an implementer to offer other such datagram services to a system or application. The SMS datagram implementation is not only immediately useful to apps but also is a good demonstrator of how similar such services could be implemented. The Datagram Service interface is minimal and cogent: void CDatagramService::SendL(CDatagram* aDatagram, TRequestStatus& aStatus) void CDatagramService::ReceiveL(CDatagram* aDatagram, const TDesC8& aRecvParams, TRequestStatus& aStatus) For details on instantiating the CDatagram and CDatagramService, see the T_DatagramService and S60v3_EasyDgmTest test code. For Symbian OS v9 note that ECOM requires FinalClose() to be called by client code - see SDK documentation for more information. There are Symbian Signed sis files included so you can install onto a Symbian OS based phone any of the following options: a) just the ECOM-based datagram API framework b) the above and the implementation for SMS You may redistribute these sis files embedded within your own application sis files, in accordance with the terms of the accompanying example source licence agreement. There are also SIS files for the text-based test exe and for the S60 v3 test application. These would need to be signed to run on Symbian OS v9 based phones. Building the projects --------------------- The frameworks can be build, in the following order, from the command line: \EasyDgm\DatagramService\group\ \EasyDgm\SMSDatagramService\group \EasyDgm\TestCode\T_DatagramService\group \EasyDgm\TestCode\S60v3_EasyDgmTest\group i.e. bldmake bldfiles abld build Note that T_DatagramService hardcodes the address that the SMS is sent to as an arbitrary number. Before building you should modify "KTestNumber" to point to your own test phone number. Building the SIS files ---------------------- Symbian Signed SIS files have been created for the framework and SMS datagram DLLs. PKG files are provided to allow you to rebuild the following SIS files: \EasyDgm\DatagramService\sis\ (Datagram framework) datagramservice_S60v2.pkg -S60v2 version datagramservice_UIQ2.pkg -UIQv2 version datagramservice_v9.1.pkg -UIQv3, S60v3 version \EasyDgm\SMSDatagramService\sis\ (SMS Datagram implementation) SMSDatagramService_S60v2.pkg -S60v2 version SMSDatagramService_UIQ2.pkg -UIQv2 version SMSDatagramService_v9.1.pkg -UIQv3, S60v3 version \EasyDgm\TestCode\T_DatagramService\sis\ (console test exe) T_DatagramService_S60v2.pkg -S60v2 version T_DatagramService_UIQ2.pkg -UIQv2 version T_DatagramService_v9.1.pkg -UIQv3, S60v3 version \EasyDgm\TestCode\S60v3_EasyDgmTest\sis (S60v3 test application) datagramtest_armv5.pkg File paths within the PKG files are SDK relative, so you must use the makesis -d command to rebuild for specific SDKs. i.e.: makesis -d%EPOCROOT% .pkg Note that the version of makesis in earlier SDKs may not support relative paths. In this case you may need to modify the PKG files. Deploy and test --------------- The test exe can installed on a phone using normal methods. For Symbian OS phones before Symbian OS v9 you should be able to launch it by browsing to and selecting it using a suitable file manager program. Alternatively, the exe can be launched explicitly (e.g. using RProcess) from a "launching" application in all versions of Symbian OS. The S60 v3 test application can be launched from the S60 GUI as for any other application. You can change the target phone number using menu "Options | SetPhone". You can turn the receiver on and off using "Options | SetRecv" and "Options | StopRecv" respectively (options will appear when valid). You can send test SMS to the current number with "Options | SendSMS". The GUI will display whenever a message is sent or received by the application. --------------------------------------------- Release Notes (1.2) --------------------------------------------- **Version contains following updates with respect to v1.0 - Fixed all known defects in 1.0 (see Release notes 1.0 below) - Added public dependencies required to build project against all Symbian OS based manufacturer SDKs from Symbian OS v7.0 to Symbian OS v9.1: gsmuset.inl, gsmuset.h, smsustrm.inl, smsustrm.h, smsuaddr.H, SMSU.Lib (variants for different Symbian OS versions) - Conditionally compile in following modifications to support Symbian OS v9: - New protected range UIDs from SymbianSigned website - Export LIBS/DSO files for ARMv5 SMSU - Add capabilities to MMP files and required capabilities to API documentation - ECOM changes: - rename 101FA9C2.rss to 2000A305.rss (new UID) - Additon of FinalClose() to test code - Remove DLL entry points - New mechanism for getting service centre address in SMSSendRecv.cpp - Changes test code exe code so sender/receiver are same phone - Added and updated PKG files to support variants for S60 v2, UIQ2.0 and combined UIQ3.0/S60v3 - Added S60v3 test application in order to pass Symbian Signed. Application shows correct usage of APIs in active object manner. **Known defects: None --------------------------------------------- Release Notes 1.0 --------------------------------------------- First published version Builds only against UIQ2.0 SDK ** Known defects: SMSDatagramService 1. class CSmsReceiver doesn't delete iSmsMsg in destructor 2. CSMSReceiver::ExtractMessageL() creates new iSmsMsg without first deleting any existing version 3. CSMSReceiver::ExtractMessageL() doesn't push readStream to CleanupStack prior to doing leaving operation (Internalise) 4. CSMSReceiver::ExtractMessageL() doesn't destroy readStream after use. 5. CSMSSender::CreateSMSMessageL() doesn't push writeStream to CleanupStack prior to doing leaving externalise operation 6. CSMSSender::CreateSMSMessageL() doesn't destory writeStream after use 7. SMS receiver failed to complete request in client in event of a Cancel() 8. SMS Send fails as service centre address is obtained incorrectly

近期下载者

相关文件


收藏者