CN104333484B - Communication protocol method of testing and device - Google Patents
Communication protocol method of testing and device Download PDFInfo
- Publication number
- CN104333484B CN104333484B CN201410589156.8A CN201410589156A CN104333484B CN 104333484 B CN104333484 B CN 104333484B CN 201410589156 A CN201410589156 A CN 201410589156A CN 104333484 B CN104333484 B CN 104333484B
- Authority
- CN
- China
- Prior art keywords
- modem
- attribute value
- testing attribute
- registration service
- phone registration
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
Abstract
The present invention is applied to communication technical field there is provided communication protocol method of testing and device, and methods described includes:Under factory mode, the testing attribute value of modem is set, and starts modem trainup core library;Phone registration Service Instance is obtained by the modem trainup core library, and the phone registration Service Instance is loaded into system service, after loading is complete, runs the phone registration Service Instance to start phone registration service;After the phone registration service is started, telephony initialization interface is called, and the modem is initialized according to the testing attribute value of the modem, the modem is placed in networking state and communication protocol test is completed.Mobile terminal in the present invention is without normal boot-strap, without phone application is started, and greatly reduces mobile terminal and is placed in the time-consuming of networking state from start to by modem, improves the efficiency of communication protocol test.
Description
Technical field
The invention belongs to communication technical field, more particularly to communication protocol method of testing and device.
Background technology
The purpose of RF calibration test is that the radio-frequency performance for ensureing all mobile terminals dispatched from the factory meets standard.RF calibration
Test includes non-signaling test and signaling test.Non-signaling test does not need mobile terminal registered network, and main test is mobile eventually
The peak power at end, minimum power, ACLR (Adjacent Channel Leakage Ratio, adjacent channel leakage ratio) and
The indexs such as RSSI (Received Signal Strength Indication, the signal intensity of reception is indicated).Signaling test is adopted
With CMU200 comprehensive testers or 8960 comprehensive tester anolog base stations, set up and be connected with mobile terminal.Signaling test includes day
Line coupling measurement and communication protocol test.Wherein, antenna coupling measurement needs to insert SIM (Subscriber Identity
Module, client identification module) card tested, and communication protocol test does not need plug sim card to be tested.
The purpose of communication protocol test in signaling test is the correctness for ensureing communication protocol.Carrying out communication protocol survey
During examination, mobile terminal is needed modem being placed in networking state to connect comprehensive tester, and nothing is emulated by comprehensive tester
Line communication base station, so as to complete communication protocol test.
In the prior art, to modem is placed in into networking state, time-consuming from start for mobile terminal, generally requires 1 and arrives
4 minutes, therefore leverage the efficiency of communication protocol test.
The content of the invention
In consideration of it, the embodiments of the invention provide a kind of communication protocol method of testing and device, to solve existing communication
The efficiency of protocol test is low, from mobile terminal-opening to the problem of being placed in networking state by modem time-consuming.
The embodiment of the present invention is achieved in that based on a kind of communication protocol method of testing, including:
Under factory mode, the testing attribute value of modem is set, and starts modem trainup core library;
Phone registration Service Instance is obtained by the modem trainup core library, and the phone registration is serviced
Example is loaded into system service, after loading is complete, runs the phone registration Service Instance to start phone registration service;
After the phone registration service is started, telephony initialization interface is called, and according to the survey of the modem
Examination property value is initialized to the modem, and the modem is placed in into networking state and communication protocols are completed
View test.
The another object of the embodiment of the present invention is to provide a kind of communication protocol test device, including:
Testing attribute value setup module, under factory mode, setting the testing attribute value of modem, and starts
Modem trainup core library;
Phone registration services starting module, for obtaining phone registration service by the modem trainup core library
Example, and the phone registration Service Instance is loaded into system service, after loading is complete, run the phone registration clothes
Pragmatic example is to start phone registration service;
Initialization module, for after the phone registration service is started, calling telephony initialization interface, and according to described
The testing attribute value of modem is initialized to the modem, and the modem is placed in into networking shape
State simultaneously completes communication protocol test.
The beneficial effect that the embodiment of the present invention exists compared with prior art is:The embodiment of the present invention passes through in factory mode
It is lower that the testing attribute value of modem is set and starts modem trainup core library, then the activation system under factory mode
Phone registration service in service, calls telephony initialization interface to initialize modem, by the modulatedemodulate
Adjust device to be placed in networking state and complete communication protocol test, thus mobile terminal, should without phone is started without normal boot-strap
With greatly reducing mobile terminal and be placed in the time-consuming of networking state from start to by modem, improve communication protocol survey
The efficiency of examination.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art
In required for the accompanying drawing that uses be briefly described, it should be apparent that, drawings in the following description are only some of the present invention
Embodiment, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these
Accompanying drawing obtains other accompanying drawings.
Fig. 1 is the implementation process figure of communication protocol method of testing provided in an embodiment of the present invention;
Fig. 2 is the structured flowchart of communication protocol test device provided in an embodiment of the present invention.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
The embodiment of the present invention under factory mode by setting the testing attribute value of modem and starting modulation /demodulation
Device test core storehouse, then the phone registration service under factory mode in activation system service, call telephony initialization interface pair
Modem is initialized, and the modem is placed in into networking state and communication protocol test is completed, thus moved
Dynamic terminal is without normal boot-strap, without phone application is started, and greatly reduces mobile terminal from start to by modem
The time-consuming of networking state is placed in, the efficiency of communication protocol test is improved.
Fig. 1 shows the implementation process figure of communication protocol method of testing provided in an embodiment of the present invention.The flow chart is held
Row main body can be mobile terminal, be not limited thereto.Wherein, mobile terminal can include mobile phone (or for " honeycomb "
Phone) and computer with mobile terminal, for example, it may be portable, pocket, hand-held, built-in computer or
Vehicle-mounted mobile device, they exchange language and/or data with wireless access network.For example, PCS (Personal
Communication Service, PCS) phone, wireless phone, Session initiation Protocol (Session Initiation
Protocol, SIP) phone, WLL (Wireless Local Loop, WLL) stand, personal digital assistant
Equipment such as (Personal Digital Assistant, PDA), is not limited thereto.
Details are as follows for methods described:
In step S101, under factory mode, the testing attribute value of modem is set, and start modem
Test core storehouse.
In embodiments of the present invention, mobile terminal is without normal boot-strap, and only need to enter factory mode to carry out communication protocols
View test.Typically, the time of mobile terminal normal boot-strap is 1 to 4 minute.Mobile terminal in the embodiment of the present invention is without normal
Start, therefore substantially increase the efficiency of the communication protocol test of mobile terminal.The factory mode of mobile terminal be responsible for specially by
A large amount of classes for having common interface are instantiated, and need not know it is to instantiate the pattern of which class every time in advance.Factory's mould
Formula defines an interface for being used to create object, determines which class instantiated by subclass.Mobile terminal is opened under factory mode
Dynamic time-consuming about 15 seconds, relative to 1 to 4 minute needed for normal boot-strap, greatly reduce the startup time of mobile terminal.
In embodiments of the present invention, can be associated with modem trainup pattern by testing attribute value true (true),
I.e. when the testing attribute value of modem is true, show to be currently modem trainup pattern.Further, it is also possible to will
Testing attribute value 1 is associated with modem trainup pattern, is not limited thereto.
In step s 102, phone registration Service Instance is obtained by the modem trainup core library, and by institute
State phone registration Service Instance to be loaded into system service, after loading is complete, run the phone registration Service Instance to open
Mobile phone registration service.
Modem enters networking state, it is necessary to be initialized by phone application, and phone application is being carried out initially
, it is necessary to which System_Server (system service) starts Telephony.Registry services (phone registration service) before changing.So
And, system starts the Telephony.Registry services for not being deep into System_Server under factory mode, also
It is to say, without startup Telephony.Registry services under factory mode.Therefore, modem trainup core library is obtained
Telephony.Registry examples, and Telephony.Registry examples are loaded into System_Server, will
Telephony.Registry services are added in System_Server.After loading is complete, run
Telephony.Registry examples are serviced with starting Telephony.Registry.
Telephony.Registry services can be used for monitoring telephone state, when there is new state, to registering the service
Mobile terminal notified.Therefore, after mobile terminal registration Telephony.Registry services, talking state can be monitored
Change, the change of signal intensity, the change of call forwarding state and the change of data connection state.
In step s 103, after the phone registration service is started, telephony initialization interface is called, and adjust according to described
The testing attribute value of modulator-demodulator is initialized to the modem, and the modem is placed in into networking state
And complete communication protocol test.
Further, it is described to call telephony initialization interface, and according to the testing attribute value of the modem to institute
Modem is stated to be initialized specially:
The telephony initialization interface in phone generic service is called, and according to the testing attribute value pair of the modem
The modem is initialized
In embodiments of the present invention, Telephony-Common is called to service in (phone generic service) in core library
MakeDefaultPhones interfaces (telephony initialization interface) are initialized to modem.And Telephony-
MakeDefaultPhones interfaces in Common services are the interface that service is called in phone application initialization.Therefore, in this hair
In bright embodiment, phone application need to be only called in Telephony-Common services without starting
MakeDefaultPhones interfaces, so as to reduce startup depth.
The embodiment of the present invention is because mobile terminal is without normally starting, without startup phone application, and only in factory's mould
Start mobile terminal under formula and call the makeDefaultPhones interfaces in Telephony-Common services, therefore, move
Modem is placed in networking state and only needed 16 seconds to 18 seconds from starting to by dynamic terminal.By the present embodiment by modulation /demodulation
Device is placed in after networking state, then carries out communication protocol test, substantially increases the efficiency of communication protocol test.
Further, described in step S103 according to the testing attribute value of the modem to the modem
Carrying out initialization includes:
Contextual model, network mode and web search mode are set according to the testing attribute value of the modem.
Because mobile terminal starts under factory mode equivalent to the start of mobile terminal either shallow.In the start of mobile terminal either shallow
In the case of, many resources are not loaded.Therefore, if not adding comprising acquisition in the flow initialized to modem
The resource of load, then be unable to successful initialization.Therefore, when being initialized to modem, the money for obtaining and not loading is skipped
The step of source, and the value of these resources not loaded is directly specified, enable the modem to successful initialization.For example, directly
The contextual model and network mode of mobile terminal are set.For example, the contextual model for setting mobile terminal is vibration mode, sets and move
The network mode of dynamic terminal is WCDMA (Wideband Code Division Multiple Access, WCDMA),
The web search mode of mobile terminal is set to search net automatically.
It is described that contextual model, network mode and web search side are set according to the testing attribute value of the modem
Formula includes:
The testing attribute value of the modem is obtained, when the testing attribute value is true or 1, scene mould is set
Formula, network mode and web search mode.
Herein, after the makeDefaultPhones interfaces in calling Telephony-Common to service, modulation is obtained
The testing attribute value of demodulator, if the testing attribute value of the modem obtained is true or 1, skips and obtains what is do not loaded
The step of resource, and the value of these resources not loaded is directly specified, enable the modem to successful initialization.
The embodiment of the present invention under factory mode by setting the testing attribute value of modem and starting modulation /demodulation
Device test core storehouse, then the phone registration service under factory mode in activation system service, call telephony initialization interface pair
Modem is initialized, and the modem is placed in into networking state and communication protocol test is completed, thus moved
Dynamic terminal is without normal boot-strap, without phone application is started, and greatly reduces mobile terminal from start to by modem
The time-consuming of networking state is placed in, the efficiency of communication protocol test is improved.
Fig. 2 shows the structured flowchart of communication protocol test device provided in an embodiment of the present invention, and the device can be used for
Communication protocol method of testing described in service chart 1.For convenience of description, it illustrate only part related to the present embodiment.
Reference picture 2, described device includes:
Testing attribute value setup module 21, under factory mode, setting the testing attribute value of modem, and is opened
Dynamic modem trainup core library;
Phone registration services starting module 22, is taken for obtaining phone registration by the modem trainup core library
Pragmatic example, and the phone registration Service Instance is loaded into system service, after loading is complete, run the phone registration
Service Instance is to start phone registration service;
Initialization module 23, for after the phone registration service is started, calling telephony initialization interface, and according to institute
The testing attribute value for stating modem is initialized to the modem, and the modem is placed in into networking
State simultaneously completes communication protocol test.
Further, the initialization module 23 specifically for:
Contextual model, network mode and web search mode are set according to the testing attribute value of the modem.
Further, the initialization module 23 specifically for:
The testing attribute value of the modem is obtained, when the testing attribute value is true or 1, scene mould is set
Formula, network mode and web search mode.
Further, initialization module specifically for:
The telephony initialization interface in phone generic service is called, and according to the testing attribute value pair of the modem
The modem is initialized.
The embodiment of the present invention under factory mode by setting the testing attribute value of modem and starting modulation /demodulation
Device test core storehouse, then the phone registration service under factory mode in activation system service, call telephony initialization interface pair
Modem is initialized, and the modem is placed in into networking state and communication protocol test is completed, thus moved
Dynamic terminal is without normal boot-strap, without phone application is started, and greatly reduces mobile terminal from start to by modem
The time-consuming of networking state is placed in, the efficiency of communication protocol test is improved.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
Any modifications, equivalent substitutions and improvements made within refreshing and principle etc., should be included in the scope of the protection.
Claims (8)
1. a kind of communication protocol method of testing, it is characterised in that including:
Under factory mode, the testing attribute value of modem is set, and starts modem trainup core library;
Phone registration Service Instance is obtained by the modem trainup core library, and by the phone registration Service Instance
It is loaded into system service, after loading is complete, runs the phone registration Service Instance to start phone registration service;
After the phone registration service is started, telephony initialization interface is called, and belong to according to the test of the modem
Property value the modem is initialized, by the modem be placed in networking state and complete communication protocol survey
Examination;Wherein, the testing attribute value of the modem is that under factory mode, the modem is initialized
The value for the resource not loaded in flow.
2. the method as described in claim 1, it is characterised in that the testing attribute value according to the modem is to institute
Stating modem progress initialization includes:
Contextual model, network mode and web search mode are set according to the testing attribute value of the modem.
3. method as claimed in claim 2, it is characterised in that described to be set according to the testing attribute value of the modem
Contextual model, network mode and web search mode include:
The testing attribute value of the modem is obtained, when the testing attribute value is true or 1, setting contextual model,
Network mode and web search mode.
4. the method as described in claim 1, it is characterised in that described to call telephony initialization interface, and according to the modulation
The testing attribute value of demodulator is initialized specially to the modem:
Call the telephony initialization interface in phone generic service, and according to the testing attribute value of the modem to described
Modem is initialized.
5. a kind of communication protocol test device, it is characterised in that including:
Testing attribute value setup module, under factory mode, setting the testing attribute value of modem, and starts modulation
Demodulator test core storehouse;
Phone registration services starting module, real for obtaining phone registration service by the modem trainup core library
Example, and the phone registration Service Instance is loaded into system service, after loading is complete, run the phone registration service
Example is to start phone registration service;
Initialization module, for after the phone registration service is started, calling telephony initialization interface, and according to the modulation
The testing attribute value of demodulator is initialized to the modem, and the modem is placed in into networking state simultaneously
Complete communication protocol test;Wherein, the testing attribute value of the modem is under factory mode, to the modulation /demodulation
The value for the resource not loaded in the flow that device is initialized.
6. device as claimed in claim 5, it is characterised in that the initialization module specifically for:
Contextual model, network mode and web search mode are set according to the testing attribute value of the modem.
7. the device as described in claim 5 or 6, it is characterised in that the initialization module specifically for:
The testing attribute value of the modem is obtained, when the testing attribute value is true or 1, setting contextual model,
Network mode and web search mode.
8. device as claimed in claim 5, it is characterised in that initialization module specifically for:
Call the telephony initialization interface in phone generic service, and according to the testing attribute value of the modem to described
Modem is initialized.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410589156.8A CN104333484B (en) | 2014-10-28 | 2014-10-28 | Communication protocol method of testing and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410589156.8A CN104333484B (en) | 2014-10-28 | 2014-10-28 | Communication protocol method of testing and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104333484A CN104333484A (en) | 2015-02-04 |
CN104333484B true CN104333484B (en) | 2017-07-28 |
Family
ID=52408142
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410589156.8A Active CN104333484B (en) | 2014-10-28 | 2014-10-28 | Communication protocol method of testing and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104333484B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1519532A2 (en) * | 1998-09-28 | 2005-03-30 | Motorola Inc. | Radio communication device using API for telephony applications |
CN101005411A (en) * | 2006-12-29 | 2007-07-25 | 华为技术有限公司 | Automatic detecting system, device and method for circuit type data service automation |
CN103593289A (en) * | 2013-11-12 | 2014-02-19 | 浪潮齐鲁软件产业有限公司 | Design method for android set top box production testing software |
-
2014
- 2014-10-28 CN CN201410589156.8A patent/CN104333484B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1519532A2 (en) * | 1998-09-28 | 2005-03-30 | Motorola Inc. | Radio communication device using API for telephony applications |
CN101005411A (en) * | 2006-12-29 | 2007-07-25 | 华为技术有限公司 | Automatic detecting system, device and method for circuit type data service automation |
CN103593289A (en) * | 2013-11-12 | 2014-02-19 | 浪潮齐鲁软件产业有限公司 | Design method for android set top box production testing software |
Also Published As
Publication number | Publication date |
---|---|
CN104333484A (en) | 2015-02-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106658629B (en) | Method for switching network and device | |
US20110117963A1 (en) | Method and system for a fast cell recovery on suspended virtual modems within a multi-sim multi-standby communication device | |
CN110839106B (en) | Display control method and device | |
CN104902541B (en) | A kind of method for network access and mobile communication terminal | |
CN102036350A (en) | Protocol processing method for multi-sim terminal and apparatus for multi-sim terminal | |
CN105682081A (en) | Terminal and communication method | |
CN110972156A (en) | Interference measurement method and device | |
CN105873013A (en) | Method and device for selecting operator based on e-SIM () card and mobile terminal | |
CN103004258A (en) | UE handling of radioResourceConfigCommon information element at handover | |
CN107005832A (en) | Network registering method, register device and terminal for terminal | |
CN110839200A (en) | Emergency call implementation method and device | |
JP6347032B2 (en) | Anonymous paired device detection apparatus and method | |
CN104243605A (en) | Communication resource sharing method and system | |
WO2016123822A1 (en) | Data transmission method and device, and terminal | |
CN117376975A (en) | User equipment and method for performing cell measurement | |
CN112448779B (en) | Intelligent terminal equipment and method for carrying out talkback communication | |
CN104333484B (en) | Communication protocol method of testing and device | |
CN107613099A (en) | Load the method and device of emergency numbers | |
CN113079514B (en) | Network access verification method and device and computer readable storage medium | |
CN104902553B (en) | For controlling the method and apparatus and user equipment of user equipment power | |
CN106792580A (en) | The method and apparatus for sending multimedia message | |
US8249581B2 (en) | Method for testing working states of mobile phone | |
CN111246511A (en) | Call testing system, method and device | |
CN113366896B (en) | Reference signal receiving and sending method, device and system | |
WO2023165480A1 (en) | Data transmission method and apparatus, and terminal, device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd. Address before: Changan town in Guangdong province Dongguan 523841 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd. |