CN107172640B - Method for simulating Modem to report message, storage medium and terminal - Google Patents

Method for simulating Modem to report message, storage medium and terminal Download PDF

Info

Publication number
CN107172640B
CN107172640B CN201710569609.4A CN201710569609A CN107172640B CN 107172640 B CN107172640 B CN 107172640B CN 201710569609 A CN201710569609 A CN 201710569609A CN 107172640 B CN107172640 B CN 107172640B
Authority
CN
China
Prior art keywords
message
ril
java
modem
common
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
Application number
CN201710569609.4A
Other languages
Chinese (zh)
Other versions
CN107172640A (en
Inventor
杜凯
杨丽娜
张锐华
曹诗凤
李涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201710569609.4A priority Critical patent/CN107172640B/en
Publication of CN107172640A publication Critical patent/CN107172640A/en
Application granted granted Critical
Publication of CN107172640B publication Critical patent/CN107172640B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/06Testing, supervising or monitoring using simulated traffic

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a method, a storage medium and a terminal for simulating Modem report messages, wherein the method comprises the following steps: when receiving an operation instruction of a user, the terminal acquires an SIM card file and a network message which are configured on a UI interface and need to be simulated, and marks the SIM card file and the network message as a simulated AT message and sends the simulated AT message to a service process; the service process receives the simulation AT message, converts the simulation AT message into a corresponding common AT message and reports the common AT message to the ril-java message agent module; ril-java message agent module judges the type of received common AT message and processes it, then reports it to ril-java module; ril-java module controls the UI interface to update the corresponding message. By simulating the report message of the Modem, the invention ensures that a development and test engineer can simulate a network or an SIM card only by configuring corresponding network data or SIM data on a user UI interface without occupying the resources of a network instrument and an SIM card instrument of a laboratory in the laboratory, thereby improving the development efficiency of the development engineer and the test efficiency of the test engineer and saving the resources of the network instrument and the SIM card instrument of the laboratory.

Description

Method for simulating Modem to report message, storage medium and terminal
Technical Field
The invention relates to the technical field of communication, in particular to a method, a storage medium and a terminal for simulating Modem report messages.
Background
The mobile phone system can be divided into two parts, namely an Access Point (AP), a wireless Access node (WAP), a session Point (SIP) or an Access bridge (SCB), and a Modem (a computer hardware, commonly called as a cat), wherein the AP is mainly responsible for the display function of a User Interface (UI), the Modem comprises a network protocol stack and a Subscriber Identity Module (SIM) for interaction, the Modem is mainly responsible for interaction with a network and the SIM, and when the Modem is registered to the network or the SIM card is loaded, the AP is informed, and the AP updates the UI and presents the UI to the user terminal. The AT information reported to the AP end by the Modem is divided into active reporting and request response AT information, the Modem transmits the AT information to the AP end through a CCC serial port, a rild process of the AP end is responsible for receiving the AT information, the received information is transmitted to an ril-java part through a socket, the received information of the rild-java is packaged into a Parcel (data packet) and processed, and finally, a UI updating interface is controlled to display.
In actual development, engineers usually need to insert a specific operator card into a terminal (handset) and register the specific operator network to test the performance of the terminal (handset) when developing a UI interface related to a network and a SIM card. After a development engineer modifies codes, the development engineer needs to go to a laboratory to simulate a network and simulate a SIM card to perform interactive testing on the information of the AP end and the Modem end so as to detect the performance of the developed UI (user interface) interface, but the resources of instruments in the laboratory are very precious (the instruments in the laboratory usually need hundreds of thousands of RMB, the resources are very rare), and therefore, the development cost is high and the development efficiency is low.
The prior art is therefore subject to further improvement.
Disclosure of Invention
In view of the above-mentioned shortcomings in the prior art, the present invention aims to provide a method, a storage medium, and a terminal for simulating a Modem report message for a user, so that a development and test engineer can simulate a network or an SIM card to perform a performance test by only configuring corresponding network data or SIM card data on a user UI interface without occupying network instrument and SIM card instrument resources in a laboratory, thereby improving development efficiency.
The technical scheme adopted by the invention for solving the technical problem is as follows:
a method for simulating Modem report message, wherein the method comprises the following steps:
A. when receiving an operation instruction of a user, the terminal acquires an SIM card file and a network message which are configured on a UI interface and need to be simulated, and marks the SIM card file and the network message as a simulated AT message and sends the simulated AT message to a service process;
B. the service process receives the simulation AT message, converts the simulation AT message into a corresponding common AT message and reports the common AT message to the ril-java message agent module;
C. ril-java message agent module judges the type of received common AT message and processes it, and reports it to its upper layer ril-java module;
D. ril-java module controls the UI interface to update the corresponding message.
The method for simulating Modem report messages is characterized in that the simulated AT messages comprise simulated active report AT messages and simulated request response AT messages.
The method for simulating Modem report messages is characterized in that the common AT messages comprise common active report AT messages and common request response AT messages.
The method for simulating a Modem to report a message, wherein the step B specifically includes:
b1, the service process receives the simulation AT message and converts the simulation AT message into a corresponding common AT message;
b2, if the ordinary AT message is an ordinary active reporting AT message, directly reporting the ordinary AT message to the ril-java message agent module;
b3, if the ordinary AT message is an ordinary request response AT message, the request ril-java message code module caches the ordinary request response AT message and reports the ordinary request response AT message to the ril-java message agent module.
The method for simulating a Modem to report a message, wherein the step C specifically includes:
the C1 and ril-java message agent module judges the type of the received common AT message;
c2, if the ril-java message agent module judges that the received AT message is a common active report AT message, the AT message is directly reported to the ril-java module;
and C3, if the ril-java message agent module judges that the received message is a common request response AT message, acquiring a simulation request response AT message of the SIM card and the network message configured by the user from the cache, replacing the common request response AT message reported by the Modem with the simulation request response AT message configured by the user, and reporting the simulation request response AT message to the ril-java module.
In the method for simulating a Modem to report a message, in step C3, if there is no simulation request response AT message of the SIM card configured by the user and the network message in the cache, the simulation request response AT message is directly reported to the ril-java module.
In the method for simulating Modem to report the message, in the step D, the ril-java module informs the UI interface to update the corresponding message through a handler mechanism.
The method for simulating the Modem to report the message is characterized in that the UI is used for loading the SIM card and the network data which are needed to be configured by the user.
A storage medium, wherein the storage medium stores a computer program executable to implement a method as claimed in any one of the above.
A terminal, comprising: a processor, a memory communicatively connected to the processor, the memory storing a computer program for, when executed, implementing the method of any of the above; the processor is configured to invoke a computer program in the memory to implement the method of any of the above.
Has the advantages that: the invention provides a method, a storage medium and a terminal for simulating Modem report messages, wherein the method comprises the following steps: when receiving an operation instruction of a user, the terminal acquires an SIM card file and a network message which are configured on a UI interface and need to be simulated, and marks the SIM card file and the network message as a simulated AT message and sends the simulated AT message to a service process; the service process receives the simulation AT message, converts the simulation AT message into a corresponding common AT message and reports the common AT message to the ril-java message agent module; ril-java message agent module judges the type of received common AT message and processes it, and reports it to its upper layer ril-java module; ril-java module controls the UI interface to update the corresponding message. According to the invention, by simulating the report message of the Modem, development and test engineers do not need to occupy resources of network instruments and SIM cards in a laboratory, but only need to configure corresponding network data or SIM data on a user UI interface, so that the network or SIM cards can be simulated, the engineers can conveniently and efficiently simulate the network instruments and the SIM cards on a mobile phone UI interface, the efficiency of the development engineers in developing Android UI and Framework is improved, the efficiency of the test engineers in executing test cases is improved, and the resources of the network instruments and SIM cards in the laboratory can be saved.
Drawings
Fig. 1 is a flowchart of a method for simulating Modem report message according to a preferred embodiment of the present invention.
Fig. 2 is a flowchart illustrating a relationship between the method for simulating a Modem report message and the existing communication AP and Modem according to the present invention.
Fig. 3 is a flowchart of a method for simulating Modem active report message according to the preferred embodiment of the present invention.
Fig. 4 is a flowchart of a method for simulating a Modem report message according to a preferred embodiment of the present invention.
Fig. 5 is a flowchart of a service process in the preferred embodiment of the method for simulating Modem report message according to the present invention.
FIG. 6 is a flowchart of the ril-java message broker module according to the preferred embodiment of the method for simulating Modem report message in the present invention.
Fig. 7 is a functional block diagram of a terminal according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for simulating Modem report messages according to a preferred embodiment of the present invention. As shown in fig. 1, the method comprises the steps of:
and S100, when the terminal receives an operation instruction of a user, acquiring SIM card files and network messages to be simulated configured on the UI interface, marking the SIM card files and the network messages as simulated AT messages, and sending the simulated AT messages to a service process.
And step S200, the service process receives the simulation AT message, converts the simulation AT message into a corresponding common AT message and reports the common AT message to the ril-java message agent module.
And S300, ril-java message agent module judges the type of the received common AT message, processes the common AT message and reports the common AT message to ril-java module.
And S400, ril-the java module controls the UI interface to update corresponding messages.
It should be noted that the Modem is a computer hardware, and is a device that converts a digital signal into an analog signal by modulation at a transmitting end and converts the analog signal into a digital signal by demodulation at a receiving end, according to a harmonic tone of the Modem, which is generally called "cat". AT (generally written as AT in the protocol) messages are a computer term, also generally called AT commands, generally applied to the connection and communication between a terminal device and a PC application. The service process, computer terminology, is responsible for translating the SIM card and network data configured by the user into corresponding AT messages and reporting them to the ril-java message broker module. The UI (User Interface) generally refers to an operation Interface of a User, and includes a mobile APP, a web page, an intelligent wearable device, and the like. In popular terms, the mobile phone can be divided into a CPU chip and a Modem, wherein the Modem is mainly responsible for a specific communication module and is responsible for communication with a base station, such as registering 2/3/4G network, sending short messages and making calls; the CPU chip is responsible for the UI display section of the upper layer. The communication message between the CPU chip and the Modem is an AT message. The AT message can be divided into two types, the first type is a request response, such as an AT making a call, the CPU chip sends the AT message making a call: ATD133345555 (ATD telephone number) to the Modem, the Modem executes a specific call dialing process, after the call dialing is successful, the Modem returns a successful message to the CPU chip, and the UI is uploaded and displayed successfully; the second message is an active report message, for example, the signal strength of the mobile phone, the CPU chip does not need to send any message to the Modem, the Modem actively reports the signal strength to the CPU chip once detecting that the signal strength of the mobile phone changes, and the UI updates the signal strength display. AT message interaction between the Modem and the CPU chip mainly passes through an ril-java module and a ril-c module, and the ril-java module mainly has the functions of sending AT messages to the Modem and receiving AT messages of the Modem; ril-java message agent module is mainly AT message simulating Modem.
In specific implementation, in step S100, the analog AT message includes an analog active report AT message and an analog request response AT message, and in step S200, the common AT message includes a common active report AT message and a common request response AT message. When the terminal receives an operation instruction of a user, SIM card files and network messages which need to be simulated and are configured on a UI interface are obtained, and the SIM card files and the network messages are marked to be sent to a service process after AT messages are actively reported in a simulation mode and AT messages are responded by a simulation request. The service process receives the analog AT message, converts the analog AT message into a corresponding common AT message and reports the common AT message to the ril-java message agent module, wherein the common AT message refers to the AT message in normal communication. ril-java message agent module judges the type of the received ordinary AT message and processes it accordingly, then reports it to ril-java module, finally ril-java module controls UI interface to update the corresponding message. In step S400, the ril-java module notifies the UI interface to update the corresponding message through the handler mechanism. Handler is a communication mechanism, mainly used for the processing of asynchronous messages.
Therefore, the invention realizes the function of simulating the development and test of the network instrument and the SIM card instrument by simulating the AT message reported to the AP end by the Modem. The invention can simulate the SIM card file and the network information only by configuring the corresponding SIM card data and the data of the network information on a user interface, thereby not only improving the efficiency of the development engineer for developing android system UI and Framework layers and improving the efficiency of the test engineer for executing certain test cases, but also saving the resources of laboratory network instruments and SIM card instruments. For example, when a development engineer develops a PLMN and SPN display rule or a test engineer tests a case of the PLMN display rule, the PLMN and SPN are finally displayed on a user interface as determined by SIM card files EF _ IMSI (6F07), EF _ SPN (6F46), EF _ PNN (6FC5), EF _ OPL (6FC6) and the registered networks mcc and mnc of the mobile phone. Obviously, this operation is very cumbersome, and if a test engineer performs all cases, it usually takes at least one day. If the method for simulating Modem report messages is adopted, the test engineer can simulate the mcc and mnc of SIM card files and the registered network only by configuring the information of the SIM card and the network on the user interface of the mobile phone, and the test case can be efficiently executed. The same is true for a development engineer, which can improve the efficiency of developing android UI or Framework by simulating the information of the SIM card and the network on the user interface.
At present, an Android mobile phone system in the market is divided into an AP (Access Point, wireless Access node, session Point or Access bridge) end and a Modem end, and the AP mainly receives a message of the Modem and updates the received message to a user interface; the Modem mainly comprises a network protocol stack and is responsible for realizing the function of interacting with a network and an SIM card. The AP and the Modem communicate with each other through a Computer Communication Converter (CCC), a rild (RIL Demon, upper cat) process is responsible for communicating with the Modem at the AP end, and the rild process can be divided into rild-java and rild-c parts. When the Modem terminal registers to the network or the SIM card is changed in a modified mode, the Modem informs the rild process through the CCC channel, and the rild process informs the android UI to update the user interface. Therefore, in order to simulate Modem messages, a new process can be started at the AP end and communicated with the rild-java process, so that the new process simulates message data of the Modem and sends the simulated Modem data to the rild-java process, and the rild-java process informs the android UI to update the user interface, thereby simulating network or SIM card information reported by the Modem. As shown in fig. 2, the existing communication is implemented by communicating between an AP end and a Modem end through an APP (such as System UI, Settings, etc.), a mobile Phone process (also called Phone process), a rild-java message broker module, and a rild-c, where the rild-java message broker module communicates with the rild-c through a Socket, and the Modem end and the rild-c complete data transmission through a CCC serial port, an active report of AT messages, and a request response of AT messages. The method includes the steps that SIM card files and network messages which need to be simulated and are configured on a UI interface are marked as simulated AT messages and sent to a service process, the service process converts the simulated AT messages into corresponding common AT messages and reports the common AT messages to an ril-java message agent module, then the ril-java message agent module forwards the corresponding AT messages to an upper layer ril-java module, and then a handler mechanism informs the UI interface to update the corresponding messages, so that the simulated Modem report messages are completed.
Specifically, the Modem is a network protocol stack, and comprises an L4 layer, an NAS layer, and an AS layer, and the main function of the Modem is responsible for interaction with the network and the SIM card; RIL-C is the C portion of the rild process; the RIL-Java message agent module is used as a rild-c and rild-Java message agent module and used for receiving AT messages transmitted from a service process, wherein the AT messages are the SIM card simulated by a user and network data AT, and if the received messages configured by the user are active report messages, the AT messages are directly forwarded to the rild-Java module so as to realize the purpose of simulating the modem to report the AT messages of the SIM card and the network; if the received message configured by the user is a request response AT, the AT message is cached, and when the Modem reports the message, the SIM card and the network data configured by the user are read from the cache and then forwarded to the ril-java module. The RIL-Java module is a Java part of the rild process and belongs to a framework layer; a Phone process is a mobile Phone process, and interfaces related to VoWIFI, such as a button for displaying VoWIFI on a dialing interface and a switch for displaying VoWIFI on a setting interface; the APPs such as Android System UI and Settings are user interfaces for displaying the SIM card and the network state; SIM card and network messaging UI, i.e. UI providing user configuration of SIM card and network data; and the Service process, namely the Service process, is responsible for converting the SIM card and the network data configured by the user into corresponding AT messages and reporting the AT messages to the RIL-Java message agent module.
Further, as shown in fig. 3, the process of simulating Modem report message is as follows: the method comprises the steps that a user configures SIM card files or network messages needing to be reported on a UI interface, the SIM card files or the network messages are marked as simulation active reporting AT messages and sent to a Service process, the Service process converts the AT messages into common active reporting AT messages and reports the common active reporting AT messages to an ril-java message agent module, the ril-java message agent module judges that the AT messages are the common active reporting AT messages, the common active reporting AT messages are directly reported to a ril-java message agent module, and then the mobile phone process informs the UI interface to update an application APP (such as System UI, Settings and the like).
Further, as shown in fig. 4, the procedure of simulating the Modem request response message is as follows: a user configures SIM card files or network messages needing to request for response on a UI interface, identifies the SIM card files or the network messages as simulation request response AT messages, sends the simulation request response AT messages to a Service process, the Service process converts the simulation request response AT messages into common request response AT messages, requests ril-java message module to cache the common request response AT messages and reports the common request response AT messages to a ril-java message agent module, AT the moment, the ril-java message agent module needs to judge whether the cached common AT messages returned by a Modem exist, and if the cache exists, obtains the common AT messages returned by the Modem from the cache to replace the common request response AT messages which are cached by the ril-java message module and are converted by the simulation request response AT messages, and reports the common AT messages to the ril-java module; if the cache does not exist, the data is directly reported to the ril-java module, and then the mobile phone process informs the UI interface to update the application APP (such as System UI, Settings and the like).
Further, as shown in fig. 5, the step S200 specifically includes:
step S201, the service process receives the analog AT message and converts it into a corresponding ordinary AT message.
Step S202, if the ordinary AT message is an ordinary active reporting AT message, the ordinary AT message is directly reported to the ril-java message agent module.
Step S203, if the ordinary AT message is an ordinary request response AT message, the request ril-java message code module caches the ordinary request response AT message and reports the ordinary request response AT message to the ril-java message agent module.
In a specific implementation, in a preferred embodiment of the present invention, when receiving the analog AT message, the service process first converts the analog AT message into a corresponding ordinary AT message, that is, into an ordinary active reporting AT message or an ordinary request response AT message. When judging that the common AT message is a common active reporting AT message, the common AT message can be directly reported to the ril-java message agent module, and when judging that the converted common AT message is a common request response AT message, the ril-java message code module is requested to cache the common request response AT message, and then the common AT message returned by the cached Modem is processed and reported to the ril-java message agent module.
In a further embodiment, as shown in fig. 6, the step S300 specifically includes:
step S301, ril-java message agent module judges the type of the received ordinary AT message.
And S302, if the ril-java message agent module judges that the received AT message is a common active report AT message, the AT message is directly reported to the ril-java module.
Step S303, if the ril-java message agent module judges that the received message is a common request response AT message, the simulation request response AT message of the SIM card and the network message configured by the user is obtained from the cache, the common request response AT message reported by the Modem is replaced by the simulation request response AT message configured by the user, and then the simulation request response AT message is reported to the ril-java module. And if the simulation request response AT message of the SIM card and the network message configured by the user does not exist in the cache, directly reporting to the ril-java module.
In specific implementation, firstly, the ril-java message agent module determines the type of the received ordinary AT message, and since the two types of AT messages are processed differently, the type determination needs to be performed first. If the received AT message is judged to be a common active report AT message, the AT message is directly reported to the ril-java module, and if the received AT message is judged to be a common request response AT message, whether the common AT message returned by the cached Modem exists needs to be judged, if the common AT message exists, a simulation request response AT message of a SIM card configured by a user and a network message is obtained from the cache, the common request response AT message reported by the Modem is replaced by the simulation request response AT message configured by the user, and then the simulation request response AT message is reported to the ril-java module. And if the simulation request response AT message of the SIM card and the network message configured by the user does not exist in the cache, directly reporting to the ril-java module.
The present invention also provides a terminal, as shown in fig. 7, the terminal includes: a processor (processor)10, a memory (memory)20, a communication Interface (Communications Interface)30, and a bus 40; wherein the content of the first and second substances,
the processor 10, the memory 20 and the communication interface 30 complete mutual communication through the bus 40;
the communication interface 30 is used for information transmission between communication devices of the terminal;
the processor 10 is configured to call the computer program in the memory 20 to execute the method provided by the above method embodiments, for example, including: when receiving an operation instruction of a user, the terminal acquires an SIM card file and a network message which are configured on a UI interface and need to be simulated, and marks the SIM card file and the network message as a simulated AT message and sends the simulated AT message to a Service process; the Service process receives the simulation AT message, converts the simulation AT message into a corresponding common AT message and reports the common AT message to the ril-java message agent module; ril-java message agent module judges the type of received common AT message and processes it, then reports it to ril-java module; ril-java module controls the UI interface to update the corresponding message.
The invention also provides a storage medium, wherein the storage medium stores a computer program, and the computer program can be executed to implement the method for simulating the Modem to report the message.
In summary, the method, the storage medium, and the terminal for simulating a Modem report message provided by the present invention include: when receiving an operation instruction of a user, the terminal acquires an SIM card file and a network message which are configured on a UI interface and need to be simulated, and marks the SIM card file and the network message as a simulated AT message and sends the simulated AT message to a Service process; the Service process receives the simulation AT message, converts the simulation AT message into a corresponding common AT message and reports the common AT message to the ril-java message agent module; ril-java message agent module judges the type of received common AT message and processes it, then reports it to ril-java module; ril-java module controls the UI interface to update the corresponding message. According to the invention, by simulating the report message of the Modem, development and test engineers do not need to occupy resources of network instruments and SIM cards in a laboratory, but only need to configure corresponding network data or SIM data on a user UI interface, so that the network or SIM cards can be simulated, the engineers can conveniently and efficiently simulate the network instruments and the SIM cards on a mobile phone UI interface, the efficiency of the development engineers in developing Android UI and Framework is improved, the efficiency of the test engineers in executing test cases is improved, and the resources of the network instruments and SIM cards in the laboratory can be saved.
Of course, it will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by a computer program instructing relevant hardware (such as a processor, a controller, etc.), and the program may be stored in a computer readable storage medium, and when executed, the program may include the processes of the above method embodiments. The storage medium may be a memory, a magnetic disk, an optical disk, etc.
It should be understood that equivalents and modifications of the technical solution and inventive concept thereof may occur to those skilled in the art, and all such modifications and alterations should fall within the scope of the appended claims.

Claims (9)

1. A method for simulating Modem report message is characterized in that the method comprises the following steps:
A. when receiving an operation instruction of a user, a terminal acquires an SIM card file or a network message which is configured on a UI interface and needs to be reported by a simulation Modem, and the SIM card file or the network message is identified as a simulation AT message and sent to a service process, wherein the SIM card file or the network message is information configured on the UI interface by the user;
B. the service process receives the simulation AT message, converts the simulation AT message into a corresponding common AT message and reports the common AT message to the ril-java message agent module;
the step B specifically comprises the following steps:
b1, the service process receives the simulation AT message and converts the simulation AT message into a corresponding common AT message;
b2, if the ordinary AT message is an ordinary active reporting AT message, directly reporting the ordinary AT message to the ril-java message agent module;
b3, if the ordinary AT message is an ordinary request response AT message, the request ril-java message code module caches the ordinary request response AT message and reports the ordinary request response AT message to the ril-java message agent module;
C. ril-java message agent module judges the type of received common AT message and processes it, and reports it to its upper layer ril-java module;
D. ril-java module controls the UI interface to update the corresponding message.
2. The method of claim 1, wherein the simulating AT messages includes simulating active reporting AT messages and simulating request response AT messages.
3. The method of claim 1, wherein the normal AT message comprises a normal active report AT message and a normal request response AT message.
4. The method for simulating Modem report messages according to claim 1, wherein the step C specifically includes:
the C1 and ril-java message agent module judges the type of the received common AT message;
c2, if the ril-java message agent module judges that the received AT message is a common active report AT message, the AT message is directly reported to the ril-java module;
and C3, if the ril-java message agent module judges that the received common request response AT message is a common request response AT message, acquiring the common request response AT message returned by the Modem from the cache, replacing the common request response AT message which is cached by the ril-java message module and is converted from the simulation request response AT message, and reporting the common request response AT message to the ril-java module.
5. The method for simulating Modem report message as claimed in claim 4, wherein in step C3, if there is no ordinary request response AT message returned by Modem in the buffer, the message is directly reported to ril-java module.
6. The method for simulating Modem message reporting according to claim 1, wherein in step D, the ril-java module notifies the UI interface to update the corresponding message through a handler mechanism.
7. The method for simulating Modem report message as claimed in claim 1, wherein said UI interface is used for loading the SIM card configured by the user and the network data.
8. A storage medium, characterized in that the storage medium stores a computer program executable to implement the method according to any one of claims 1-7.
9. A terminal, comprising: a processor, a memory communicatively connected to the processor, the memory storing a computer program for, when executed, implementing the method of any of claims 1-7; the processor is configured to invoke a computer program in the memory to implement the method of any one of claims 1-7.
CN201710569609.4A 2017-07-13 2017-07-13 Method for simulating Modem to report message, storage medium and terminal Active CN107172640B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710569609.4A CN107172640B (en) 2017-07-13 2017-07-13 Method for simulating Modem to report message, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710569609.4A CN107172640B (en) 2017-07-13 2017-07-13 Method for simulating Modem to report message, storage medium and terminal

Publications (2)

Publication Number Publication Date
CN107172640A CN107172640A (en) 2017-09-15
CN107172640B true CN107172640B (en) 2021-06-22

Family

ID=59824025

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710569609.4A Active CN107172640B (en) 2017-07-13 2017-07-13 Method for simulating Modem to report message, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN107172640B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100579261C (en) * 2007-08-22 2010-01-06 中兴通讯股份有限公司 Method for simulating AT command report
US20090310565A1 (en) * 2008-06-13 2009-12-17 Fujitsu Microelectronics Limited System And Method For Selecting Parameters In Wireless Communication
CN102761988B (en) * 2011-04-29 2018-04-20 深圳市云通时代科技开发有限公司 The short-distance movement terminal and repeater that can coordinate
CN103002492B (en) * 2012-11-30 2015-06-24 北京百度网讯科技有限公司 Communication test method and device for mobile terminal (MT)
CN106231570B (en) * 2016-07-22 2019-09-13 Oppo广东移动通信有限公司 A kind of automatic repeating method of data of unstructured supplementary data traffic and device

Also Published As

Publication number Publication date
CN107172640A (en) 2017-09-15

Similar Documents

Publication Publication Date Title
KR101882426B1 (en) Software updating method, system, and device
KR100735364B1 (en) System and method for performing diagnostics on a mobile station using over-the-air transfer of interpreted byte-code program
EP1859638B1 (en) Apparatus and methods for product acceptance testing on a wireless device
US7277700B2 (en) System and method for emulating a telephony driver
EP3614654A1 (en) Ims parameter configuration method, system and mobile terminal
KR100814428B1 (en) Short message processing method and apparatus
CN102158350A (en) Mobile broadband equipment and mobile broadband equipment management method
US8700030B1 (en) Handset diagnostic tool
CN111405635B (en) Method, device and equipment for realizing capability opening and computer readable storage medium
CN115103336A (en) Card information activation method and device and storage medium
CN110941563A (en) Automatic script testing method and device
JP4440185B2 (en) Scenario editing apparatus, pseudo base station test system, pseudo terminal test system, scenario editing method and test processing method, and storage medium storing computer-readable program and program
AU4664099A (en) Changing functionality of a module terminal in a wireless network
CN103002492A (en) Communication test method and device for mobile terminal (MT)
US20180310165A1 (en) APPARATUS AND METHOD OF LOCAL PROFILE ASSISTANT eUICC LOGGING
CN107135516B (en) Parameter test processing method, mobile terminal and computer readable storage medium
KR100818962B1 (en) Method for managing remote mobile device
CN107172640B (en) Method for simulating Modem to report message, storage medium and terminal
CN112416617A (en) Control method and device of Bluetooth equipment, storage medium and electronic device
CN106648805A (en) Intelligent device, intelligent system, and method for intelligently installing application
CN108307286B (en) Method and system for realizing communication between android devices based on NFC
EP2536215A1 (en) System, method and base station subsystem for realizing handover in local switch
US9332374B2 (en) Communication interface method for SE equipped on mobile terminal and SE using the same
CN105357272A (en) OTA (Over the Air) upgrading method and device
CN117440360B (en) eSIM realization method and system of CPE, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant