CN104754635B - AP system monitoring method and baseband simulator - Google Patents

AP system monitoring method and baseband simulator Download PDF

Info

Publication number
CN104754635B
CN104754635B CN201310753158.1A CN201310753158A CN104754635B CN 104754635 B CN104754635 B CN 104754635B CN 201310753158 A CN201310753158 A CN 201310753158A CN 104754635 B CN104754635 B CN 104754635B
Authority
CN
China
Prior art keywords
baseband
service
connection
socket
service request
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
CN201310753158.1A
Other languages
Chinese (zh)
Other versions
CN104754635A (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.)
Keen (Chongqing) Microelectronics Technology Co., Ltd.
Original Assignee
Keen Chongqing Microelectronics Technology 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 Keen Chongqing Microelectronics Technology Co ltd filed Critical Keen Chongqing Microelectronics Technology Co ltd
Priority to CN201310753158.1A priority Critical patent/CN104754635B/en
Publication of CN104754635A publication Critical patent/CN104754635A/en
Application granted granted Critical
Publication of CN104754635B publication Critical patent/CN104754635B/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/06Testing, supervising or monitoring using simulated traffic

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention discloses an AP system monitoring method and a baseband simulator, aiming at shortening the research and development period of a mobile terminal and further reducing the research and development cost of the mobile terminal. The method provided by the embodiment of the invention comprises the following steps: the baseband simulator establishes connection with the AP system; the baseband simulator is in baseband communication with the AP system; the baseband simulator monitors the baseband communication process of the baseband simulator and the AP system, judges whether the baseband communication process is abnormal or not, and executes processing operation corresponding to the abnormality if the baseband communication process is abnormal. The embodiment of the invention can shorten the research and development period of the mobile terminal, thereby reducing the research and development cost of the mobile terminal.

Description

AP system monitoring method and baseband simulator
Technical Field
The present invention relates to the field of communications, and in particular, to an AP system monitoring method and a baseband simulator.
Background
With the continuous development of communication technology, the communication technology is continuously updated, and mobile phones become necessities for users to live. Along with the continuous popularization of mobile phones, users have higher requirements on the comfort level and the convenience of using the mobile phones, and in order to continuously meet the requirements of the users, various mobile phone developers also continuously update various functions of the mobile phones so as to improve the comfort level and the convenience of the mobile phones. In the process of research and development of the mobile phone, a mobile phone research and development company needs to debug the researched and developed functions of the mobile phone so as to detect whether the functions of the mobile phone are normal or not.
In the prior art, because Application Processor (AP) system software is generally developed and debugged in advance independently of hardware devices or baseband system software, when a mobile phone developer debugged a developed mobile phone, the mobile phone developer generally provides a simulation function of a mobile phone display system for debugging through an AP system simulator, for example, after a mobile phone AP system is connected to an AP system simulator, the AP system simulator simulates an operating environment of an AP system application program, the AP system runs the application program in the AP system, and the AP system simulator detects whether a process of the AP system running the application program in the AP system is normal, and if so, the mobile phone is determined to be a qualified mobile phone.
However, the AP system in the mobile phone needs to perform service interaction with the baseband in addition to running the application program in the AP system, and the existing AP system simulator is limited to debugging the application program in the AP system, and cannot realize simulation of service interaction between the AP system and the baseband, which results in that it cannot be determined whether the AP system is working normally when the AP system performs service interaction with the baseband, so that a mobile phone developer needs to perform service interaction verification on the AP system and the baseband of the mobile phone on a specific hardware device or application platform, which will increase the development cycle of the mobile phone, thereby increasing the development cost.
Disclosure of Invention
The embodiment of the invention provides an AP system monitoring method, which aims to shorten the research and development period of a mobile terminal and further reduce the research and development cost of the mobile terminal.
The AP system monitoring method provided by the embodiment of the invention can comprise the following steps:
the baseband simulator establishes connection with the AP system;
the baseband simulator is in baseband communication with the AP system;
the baseband simulator monitors the baseband communication process of the baseband simulator and the AP system, judges whether the baseband communication process is abnormal or not, and executes processing operation corresponding to the abnormality if the baseband communication process is abnormal.
According to the technical scheme, the embodiment of the invention has the following advantages: the baseband simulator establishes connection with the AP system; the baseband simulator is in baseband communication with the AP system; the baseband simulator monitors the baseband communication process of the baseband simulator and the AP system, judges whether the baseband communication process is abnormal or not, and executes processing operation corresponding to the abnormality if the baseband communication process is abnormal. After the baseband simulator is connected with the AP system, the baseband simulator simulates baseband communication between the baseband and the AP system, and the baseband simulator monitors whether the baseband communication process is abnormal or not and carries out corresponding processing. Therefore, a mobile phone developer can determine whether the AP system works normally when the AP system and the baseband carry out service interaction without verifying the service interaction between the AP system and the baseband of the mobile phone on a specific hardware device or an application platform, thereby shortening the development cycle of the mobile terminal and further reducing the development cost of the mobile terminal.
Drawings
Fig. 1 is a schematic flow chart of an AP system monitoring method according to an embodiment of the present invention;
fig. 2 is another schematic flow chart of an AP system monitoring method according to an embodiment of the present invention;
fig. 3 is another schematic flow chart of an AP system monitoring method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a baseband simulator according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a baseband simulator according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a baseband simulator according to an embodiment of the present invention;
fig. 7 is a schematic flowchart of a baseband simulation method according to an embodiment of the present invention;
fig. 8 is a schematic flow chart of a baseband simulation method according to an embodiment of the present invention;
fig. 9 is a schematic flow chart of a baseband simulation method according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a baseband analog system according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides an AP system monitoring method, which aims to shorten the research and development period of a mobile terminal and further reduce the research and development cost of the mobile terminal.
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. Based on the embodiments of the present invention, those skilled in the art can obtain other embodiments without creative efforts, and all the other embodiments should fall within the protection scope of the present invention.
The following are detailed below.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein.
Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Referring to fig. 1, fig. 1 is a schematic flow chart of an AP system monitoring method according to an embodiment of the present invention, and as shown in fig. 1, an embodiment of the AP system monitoring method according to the embodiment of the present invention may include the following:
101. the baseband simulator establishes connection with the AP system;
in the development process of an Application Processor (AP) system of a terminal, a terminal developer needs to detect whether the AP system is working normally when the AP system and a baseband are subjected to data interaction. When a terminal developer needs to detect the AP system, the terminal developer starts the AP system, a baseband simulator is started by using an independent process or thread, and the baseband simulator is connected with the AP system through a transmission channel.
102. The baseband simulator is in baseband communication with the AP system;
after the baseband simulator is connected with the AP system through a transmission channel, the baseband simulator simulates a baseband to communicate with the AP system.
It is understood that the above-mentioned baseband simulator simulating the baseband to communicate with the AP system may include: the baseband simulator simulates a baseband to send a service request to the AP system; the base band simulator receives a service request sent by the AP system, and simulates a base band to send a response of the service request to the AP system.
103. Monitoring a baseband communication process between the baseband simulator and the AP system by the baseband simulator;
and when the baseband simulator carries out the baseband communication with the AP system, the baseband simulator monitors the process of the baseband communication.
104. Judging whether the baseband communication process is abnormal, if so, executing a step 105, and if not, executing a step 106;
and the baseband simulator monitors the process of the baseband communication and judges whether the process of the baseband communication is abnormal, if so, the step 105 is executed, and if not, the step 106 is executed.
It can be understood that, the specific way for the baseband simulator to determine whether the process of the baseband communication is abnormal may be: and judging whether the communication process of the AP system and the baseband simulator is inconsistent with the communication process of the AP system and the baseband.
105. Executing processing operation corresponding to the exception;
after the baseband simulator determines that the baseband communication process is abnormal, the baseband simulator can execute processing operation corresponding to the abnormality according to the abnormality.
It is to be understood that different exceptions may correspond to different processing operations, may also correspond to the same processing operation, and may be specifically set according to actual situations, and are not limited herein.
106. And determining that the AP system works normally.
And after the baseband simulator determines that the baseband communication process is not abnormal, the baseband simulator can determine that the AP system works normally.
In this embodiment, the baseband simulator establishes a connection with the AP system; the baseband simulator is in baseband communication with the AP system; the baseband simulator monitors the baseband communication process of the baseband simulator and the AP system, judges whether the baseband communication process is abnormal or not, and executes processing operation corresponding to the abnormality if the baseband communication process is abnormal. After the baseband simulator is connected with the AP system, the baseband simulator simulates baseband communication between the baseband and the AP system, and the baseband simulator monitors whether the baseband communication process is abnormal or not and carries out corresponding processing. Therefore, a mobile phone developer can determine whether the AP system works normally when the AP system and the baseband carry out service interaction without verifying the service interaction between the AP system and the baseband of the mobile phone on a specific hardware device or an application platform, thereby shortening the development cycle of the mobile terminal and further reducing the development cost of the mobile terminal.
In the embodiment shown in fig. 1, after the connection between the baseband simulator and the AP system is established, the baseband simulator performs baseband communication with the AP system, monitors whether the baseband communication process is abnormal, and performs corresponding processing if the baseband communication process is abnormal. For ease of understanding, the following detailed description is given in terms of a specific embodiment. Referring to fig. 2, fig. 2 is another schematic flow chart of an AP system monitoring method according to an embodiment of the present invention, and as shown in fig. 2, an embodiment of the AP system monitoring method according to the embodiment of the present invention may include the following:
201. the baseband simulator takes socket service connection as a transmission channel to establish connection with the AP system
In the research and development process of the AP system of the terminal, when a terminal research and development person needs to perform data interaction on the AP system and the baseband, whether the AP system works normally is detected. When a terminal developer needs to detect the AP system, the terminal developer starts the AP system, the baseband simulator is started by using an independent process or thread, the baseband simulator establishes a socket service connection, and the socket service connection is used as a transmission channel to be connected with the AP system.
It should be noted that the process of creating a socket service connection by the baseband simulator may specifically include: the baseband simulator creates N service threads; each service thread corresponds to the SIM card started by the AP system, and the baseband simulator establishes a socket service connection for each service thread as a transmission channel to establish connection with the AP system; the socket service connection at least comprises a socket client connecting channel, and each service thread and the socket service connection connected with the service thread have the same identification mark.
202. The baseband simulator is in baseband communication with the AP system;
after the baseband simulator is connected with the AP system through the socket service connection, the baseband simulator simulates a baseband to communicate with the AP system.
It is understood that the above-mentioned baseband simulator simulating the baseband to communicate with the AP system may include: the baseband simulator simulates a baseband to send a service request to the AP system; the base band simulator receives a service request sent by the AP system, and simulates a base band to send a response of the service request to the AP system.
203. Monitoring a baseband communication process between the baseband simulator and the AP system by the baseband simulator;
and when the baseband simulator carries out the baseband communication with the AP system, the baseband simulator monitors the process of the baseband communication.
204. Judging whether the baseband communication process is abnormal, if so, executing a step 205, and if not, executing a step 206;
the baseband simulator monitors the process of the baseband communication and determines whether the process of the baseband communication is abnormal, if so, step 205 is executed, and if not, step 206 is executed.
It can be understood that, the specific way for the baseband simulator to determine whether the process of the baseband communication is abnormal may be: and judging whether the communication process of the AP system and the baseband simulator is inconsistent with the communication process of the AP system and the baseband.
205. Executing processing operation corresponding to the exception;
after the baseband simulator determines that the baseband communication process is abnormal, the baseband simulator can execute processing operation corresponding to the abnormality according to the abnormality.
It is to be understood that different exceptions may correspond to different processing operations, may also correspond to the same processing operation, and may be specifically set according to actual situations, and are not limited herein.
206. And determining that the AP system works normally.
And after the baseband simulator determines that the baseband communication process is not abnormal, the baseband simulator can determine that the AP system works normally.
In the embodiment of the invention, a baseband simulator takes socket service connection as a transmission channel to establish connection with an AP system; the baseband simulator is in baseband communication with the AP system; the baseband simulator monitors the baseband communication process of the baseband simulator and the AP system, judges whether the baseband communication process is abnormal or not, and executes processing operation corresponding to the abnormality if the baseband communication process is abnormal. After the baseband simulator is connected with the AP system, the baseband simulator simulates baseband communication between the baseband and the AP system, and the baseband simulator monitors whether the baseband communication process is abnormal or not and carries out corresponding processing. Therefore, a mobile phone developer can determine whether the AP system works normally when the AP system and the baseband carry out service interaction without verifying the service interaction between the AP system and the baseband of the mobile phone on a specific hardware device or an application platform, thereby shortening the development cycle of the mobile terminal and further reducing the development cost of the mobile terminal.
In the embodiment shown in fig. 2, after the baseband simulator establishes connection with the AP system using the socket service connection as a transmission channel, the baseband simulator performs baseband communication with the AP system, monitors whether the baseband communication process is abnormal, and performs corresponding processing if the baseband communication process is abnormal. In practical applications, the baseband simulator can determine whether the baseband communication process is abnormal in a plurality of ways, and the following detailed description is provided with a specific embodiment. Referring to fig. 3, fig. 3 is another schematic flow chart of an AP system monitoring method according to an embodiment of the present invention, and as shown in fig. 3, an embodiment of the AP system monitoring method according to the embodiment of the present invention may include the following:
301. the baseband simulator takes socket service connection as a transmission channel to establish connection with the AP system
In the research and development process of the AP system of the terminal, when a terminal research and development person needs to perform data interaction on the AP system and the baseband, whether the AP system works normally is detected. When a terminal developer needs to detect the AP system, the terminal developer starts the AP system, the baseband simulator is started by using an independent process or thread, the baseband simulator establishes a socket service connection, and the socket service connection is used as a transmission channel to be connected with the AP system.
It should be noted that the process of creating a socket service connection by the baseband simulator may specifically include: the baseband simulator creates N service threads; each service thread corresponds to the SIM card started by the AP system, and the baseband simulator establishes a socket service connection for each service thread as a transmission channel to establish connection with the AP system; the socket service connection at least comprises a socket client connecting channel, and each service thread and the socket service connection connected with the service thread have the same identification mark.
302. The baseband simulator is in baseband communication with the AP system;
after the baseband simulator is connected with the AP system through the socket service connection, the baseband simulator simulates a baseband to communicate with the AP system.
It is understood that the above-mentioned baseband simulator simulating the baseband to communicate with the AP system may include: the baseband simulator simulates a baseband to send a service request to the AP system; the base band simulator receives a service request sent by the AP system, and simulates a base band to send a response of the service request to the AP system.
303. Monitoring a baseband communication process between the baseband simulator and the AP system by the baseband simulator;
and when the baseband simulator carries out the baseband communication with the AP system, the baseband simulator monitors the process of the baseband communication.
It is to be understood that the monitoring of the baseband communication by the baseband simulator may specifically include: the baseband simulator monitors data exchange, signaling interaction, or connection state between the baseband simulator and the AP system during the baseband communication process, and the specific language is not limited.
304. Judging whether the data interaction in the baseband communication process is abnormal, if so, executing a step 305, and if not, executing a step 306;
the baseband simulator monitors the process of the baseband communication and determines whether data exchange between the baseband simulator and the AP system is abnormal during the process of the baseband communication, if so, step 305 is executed, and if not, step 306 is executed.
It should be noted that, while monitoring the baseband communication process, the baseband simulator may also determine whether the connection state between the baseband simulator and the AP system is abnormal during the baseband communication process, if so, step 305 is executed, and if not, step 306 is executed.
It should be noted that, while monitoring the baseband communication process, the baseband simulator may also determine whether signaling interaction between the baseband simulator and the AP system is abnormal in the baseband communication process, if so, perform step 305, and if not, perform step 306.
It can be understood that, the specific way for the baseband simulator to determine whether the process of the baseband communication is abnormal may be: and judging whether the data interaction, the signaling interaction or the connection state in the communication process of the AP system and the baseband simulator is respectively inconsistent with the data interaction, the signaling interaction or the connection state in the communication process of the AP system and the baseband.
305. Executing processing operation corresponding to the exception;
after the baseband simulator determines that data interaction, signaling interaction or connection state is abnormal in the baseband communication process, the baseband simulator can execute processing operation corresponding to the abnormality according to the abnormality.
It is to be understood that, the performing, by the baseband simulator, processing operations corresponding to the exception specifically may include: the baseband simulator records the abnormity in the baseband communication process and generates an abnormity log; or when the baseband simulator monitors the abnormity, an alarm prompt is sent out.
306. And determining that the AP system works normally.
And after the baseband simulator determines that the baseband communication process is not abnormal, the baseband simulator can determine that the AP system works normally.
In this embodiment, the baseband simulator determines whether the baseband communication process is abnormal by determining whether data interaction, signaling interaction, or connection state in the baseband communication process is abnormal, and if so, generates an abnormal log or sends an alarm prompt.
For convenience of understanding, the following describes the AP system monitoring method provided in the embodiment of the present invention in a specific application scenario in detail.
In the research and development process of the AP system of the terminal, when a terminal research and development person needs to perform data interaction on the AP system and the baseband, whether the AP system works normally is detected. When a terminal developer needs to detect the AP system, the terminal developer starts the AP system, a baseband simulator uses an independent process or thread for starting and loading, and the baseband simulator creates N service threads; each service thread corresponds to the SIM card started by the AP system, and the baseband simulator establishes a socket service connection for each service thread as a transmission channel to establish connection with the AP system; the socket service connection at least comprises a socket client connecting channel, and each service thread and the socket service connection connected with the service thread have the same identification mark. For example, the baseband simulator creates a Modem service thread 1, a Modem service thread 2, a SIM card 1, a SIM card 2 corresponding to the mobile phone, and the baseband simulator creates a socket service connection a for the Modem service thread 1, the baseband simulator creates a socket service connection B for the Modem service thread 2, the Modem service thread 1 and the socket service connection a have the same identifier, such as the card number 13122332323 of the SIM card 1, the Modem service thread 2 and the socket service connection B have the same identifier, such as the card number 13222332323 of the SIM card 2, each socket service connection may include one socket client connection channel or a plurality of socket client connection channels, such as the socket service connection a, which may include the socket client connection channel a and the socket client connection channel B, the socket service connection B may include the socket client connection channel n and the socket client connection channel m, and the socket service connection a and the socket service connection B may only have one socket and a socket connection capability in the same time slot The system performs service interaction, the socket service connection a and the socket service connection B can also perform service interaction with the AP system simultaneously, the socket client connection channel a and the socket client connection channel B can respectively correspond to a baseband service, for example, the socket client connection channel a is a calling service of the SIM card 1, the socket client connection channel B is a called service of the SIM card 1, and the socket client connection channel n and the socket client connection channel m can also respectively correspond to a calling service of the SIM card 2 and a called service of the SIM card 2. After the baseband simulator is connected with the AP system through the socket service connection, the baseband simulator simulates a baseband to communicate with the AP system. For example, the baseband simulator receives a call service initiated by the AP system, and the baseband simulator simulates a baseband return call service response. The baseband simulator monitors the communication process of the call service to determine whether the communication process is abnormal, for example, the baseband simulator may determine whether data interaction between the AP system and the baseband simulator corresponds to data interaction during the communication process of the AP system and the baseband, the data may include a SIM card number during the communication process of the call service, or the baseband simulator may determine whether signaling interaction between the AP system and the baseband simulator corresponds to signaling interaction during the communication process of the AP system and the baseband, the signaling may include a call initiation instruction during the communication process of the call service, or the baseband simulator may determine whether a connection state between the AP system and the baseband simulator corresponds to a connection state during the communication process of the AP system and the baseband during the communication process of the call service, the connection state may be connection stable, or connection disconnected. If not, the baseband simulator can generate a corresponding abnormal log according to the abnormality or initiate an alarm prompt. If yes, the AP system can be determined to work normally. For example, if the connection state is disconnected and does not match the connection state in the communication process between the AP system and the baseband, the baseband simulator determines that the connection state is abnormal, generates an abnormal log of the disconnection, or initiates an alarm prompt.
The AP system monitoring method provided by the embodiment of the present invention is described above, and the baseband simulator provided by the embodiment of the present invention is described below. Referring to fig. 4, fig. 4 is a schematic structural diagram of a baseband simulator according to an embodiment of the present invention; as shown in fig. 4, an embodiment of a baseband simulator provided in an embodiment of the present invention may include:
a first connection unit 401, configured to establish a connection with an AP system;
a communication unit 402 configured to perform baseband communication with the AP system;
a monitoring unit 403, configured to monitor a baseband communication process between the baseband simulator and the AP system;
a determining unit 404, configured to determine whether the baseband communication process is abnormal;
the execution unit 405 is configured to, if the baseband communication process is abnormal, execute a processing operation corresponding to the abnormality.
In this embodiment, the first connection unit 401 establishes connection with the AP system; the communication unit 402 performs baseband communication with the AP system; the monitoring unit 403 monitors a baseband communication process between the baseband simulator and the AP system, and the determining unit 404 determines whether the baseband communication process is abnormal, and if so, the executing unit 405 executes a processing operation corresponding to the abnormality. After the first connection unit 401 establishes connection with the AP system, the communication unit 402 simulates a baseband to perform baseband communication with the AP system, the determination unit 404 determines whether the baseband communication process is abnormal, and the execution unit 405 performs corresponding processing. Therefore, a mobile phone developer can determine whether the AP system works normally when the AP system and the baseband carry out service interaction without verifying the service interaction between the AP system and the baseband of the mobile phone on a specific hardware device or an application platform, thereby shortening the development cycle of the mobile terminal and further reducing the development cost of the mobile terminal.
In the embodiment shown in fig. 4, after the first connection unit 401 establishes connection with the AP system, the communication unit 402 performs baseband communication with the AP system, the monitoring unit 403 monitors a baseband communication process, the determining unit 404 determines whether the communication process is abnormal, and if the communication process is abnormal, the executing unit 405 performs corresponding processing. In practical applications, the first connection unit 401 may include a plurality of units for establishing a connection between the baseband simulator and the AP system, which is described in detail in a specific embodiment below. Referring to fig. 5, fig. 5 is a schematic structural diagram of a baseband simulator according to an embodiment of the present invention; as shown in fig. 5, another embodiment of the baseband simulator provided by the embodiment of the present invention may include:
a first connection unit 501, configured to establish a connection with an AP system;
a communication unit 502, configured to perform baseband communication with the AP system;
a monitoring unit 503, configured to monitor a baseband communication process between the baseband simulator and the AP system;
a determining unit 504, configured to determine whether the baseband communication process is abnormal;
the execution unit 505 is configured to, if the baseband communication process is abnormal, execute a processing operation corresponding to the abnormality.
The first connection unit 501 provided in the embodiment of the present invention may further include:
the first connection subunit 5011 is configured to establish a connection with the AP system using the socket service connection as a transmission channel.
The first connector sub-unit 5011 provided by the embodiment of the present invention may further include:
a first creating unit 50111 for creating N service threads; each service thread corresponds to the SIM card started by the AP system;
the second connection subunit 50112 is configured to create a socket service connection for each service thread, where the socket service connection is used as a transmission channel to establish a connection with the AP system; the socket service connection at least comprises a socket client connecting channel, and each service thread and the socket service connection connected with the service thread have the same identification mark.
In the embodiment of the present invention, the first connection unit 501 establishes connection with the AP system by using socket service connection as a transmission channel; the communication unit 502 performs baseband communication with the AP system; the monitoring unit 503 monitors the baseband communication process between the baseband simulator and the AP system, and the determining unit 504 determines whether the baseband communication process is abnormal, if so, the executing unit 505 executes a processing operation corresponding to the abnormality. After the first connection unit 501 establishes connection with the AP system, the communication unit 502 simulates a baseband to perform baseband communication with the AP system, the monitoring unit 503 monitors whether the baseband communication process is abnormal, and the execution unit 506 performs corresponding processing. Therefore, a mobile phone developer can determine whether the AP system works normally when the AP system and the baseband carry out service interaction without verifying the service interaction between the AP system and the baseband of the mobile phone on a specific hardware device or an application platform, thereby shortening the development cycle of the mobile terminal and further reducing the development cost of the mobile terminal.
In the embodiment shown in fig. 5, after the first connection unit 501 establishes a connection with the AP system by using a socket service connection as a transmission channel, the communication unit 502 performs baseband communication with the AP system, the monitoring unit 503 monitors whether the baseband communication process is abnormal, and if the baseband communication process is abnormal, the execution unit 505 performs corresponding processing. In practical applications, the determining unit 504 may include a plurality of units for determining different abnormal situations, and the executing unit 506 may also include a plurality of units for performing various abnormal processes. The following is a detailed description of a specific embodiment. Referring to fig. 6, fig. 6 is a schematic structural diagram of a baseband simulator according to an embodiment of the present invention; as shown in fig. 6, another embodiment of the baseband simulator provided in the embodiment of the present invention may include:
a first connection unit 601, configured to establish a connection with an AP system;
a communication unit 602, configured to perform baseband communication with the AP system;
a monitoring unit 603, configured to monitor a baseband communication process between the baseband simulator and the AP system;
a determining unit 604, configured to determine whether the baseband communication process is abnormal;
the execution unit 605 is configured to, if the baseband communication process is abnormal, execute a processing operation corresponding to the abnormality.
The first connection unit 601 provided in the embodiment of the present invention may further include:
a first connection subunit 6011, configured to establish a connection with the AP system by using a socket service connection as a transmission channel.
The first connector unit 6011 provided in this embodiment of the present invention may further include:
a first creating unit 60111, configured to create N service threads; each service thread corresponds to the SIM card started by the AP system;
a second connection subunit 60112, configured to create a socket service connection for each service thread, where the socket service connection is used as a transmission channel to establish a connection with the AP system; the socket service connection at least comprises a socket client connecting channel, and each service thread and the socket service connection connected with the service thread have the same identification mark.
The first connection subunit determining unit 604 provided in the embodiment of the present invention may further include:
a first determining subunit 6041, configured to determine whether data interaction in the baseband communication process is abnormal;
and/or (c) and/or,
a second determining subunit 6042, configured to determine whether signaling interaction in the baseband communication process is abnormal;
and/or (c) and/or,
a third judgment sub-unit 6043, configured to judge whether the connection state in the baseband communication process is abnormal.
The first connection subunit execution unit 605 provided in the embodiment of the present invention may further include:
the first execution subunit is used for generating an exception log according to the monitored exception;
and/or (c) and/or,
and the second execution subunit is used for sending out an alarm prompt according to the monitored abnormality.
In this embodiment, the first determining subunit 6041, the second determining subunit 6042 and the third determining subunit 6043 determine whether the baseband communication process is abnormal by determining whether data exchange, signaling exchange or connection state in the baseband communication process is abnormal, and if so, the unit executing unit 605 generates an abnormal log or sends an alarm prompt.
For ease of understanding, the following describes the switching of each unit in the baseband simulator provided in the embodiment of the present invention in a specific application scenario.
In the research and development process of the AP system of the terminal, when a terminal research and development person needs to perform data interaction on the AP system and the baseband, whether the AP system works normally is detected. When a terminal developer needs to detect the AP system, the terminal developer starts the AP system, the baseband simulator uses an independent process or thread to start and load, and the first creating unit 60111 creates N service threads; each service thread corresponds to a SIM card enabled by the AP system, and the second connection subunit 60112 creates a socket service connection for each service thread as a transmission channel to establish connection with the AP system; the socket service connection at least comprises a socket client connecting channel, and each service thread and the socket service connection connected with the service thread have the same identification mark. For example, the first creating unit 60111 creates a Modem service thread 1, a Modem service thread 2, and a SIM card 1, a SIM card 2, and a second connector subunit 60112 corresponding to the mobile phone, respectively, create a socket service connection a for the Modem service thread 1, the second connector subunit 60112 creates a socket service connection B for the Modem service thread 2, the Modem service thread 1 and the socket service connection a have the same identifier, for example, the identifier is a card number 13122332323 of the SIM card 1, the Modem service thread 2 and the socket service connection B have the same identifier, for example, the identifier is a card number 13222332323 of the SIM card 2, each socket service connection may include one socket client connection channel and may also include multiple socket client connection channels, for example, the socket service connection a may include a socket client connection channel a and a socket client connection channel B, the socket service connection B may include a socket client connection channel n and a socket client connection channel m, the socket service connection A and the socket service connection B can only have one socket service connection capable of performing service interaction with the AP system in the same time period, and the socket service connection A and the socket service connection B can also perform service interaction with the AP system at the same time, and the socket client connection channel a and the socket channel client connection B can respectively correspond to a baseband service, for example, the socket client connection channel a is a calling service of the SIM card 1, the socket client connection channel B is a called service of the SIM card 1, and the socket channel client connection n and the socket channel client connection m can also respectively correspond to a calling service of the SIM card 2 and a called service of the SIM card 2. After the baseband simulator establishes connection with the AP system through the socket service connection, the communication unit 602 simulates a baseband to communicate with the AP system. For example, the communication unit 602 receives a call service initiated by the AP system, and the communication unit 602 simulates a baseband return call service response. The monitoring unit 603 monitors the communication process of the call service, and the determining unit 604 determines whether the communication process is abnormal, for example, the monitoring unit 603 may determine whether data interaction between the AP system and the baseband simulator corresponds to data interaction during the communication process of the AP system and the baseband, the data may include a SIM card number during the communication process of the call service, or the monitoring unit 603 may determine whether signaling interaction between the AP system and the baseband simulator corresponds to signaling interaction during the communication process of the AP system and the baseband, the signaling may include a call initiation instruction during the communication process of the call service, or the monitoring unit 603 may determine whether a connection state between the AP system and the baseband simulator corresponds to a connection state during the communication process of the AP system and the baseband during the communication process of the call service, the connection state may be connection stable, or connection disconnected. If not, the execution unit 605 may generate a corresponding exception log according to the exception, or initiate an alert. If so, execution unit 605 may determine that the AP system is operating properly. For example, if the connection state is disconnected and does not match the connection state in the communication process between the AP system and the baseband, the execution unit 605 determines that the connection state is abnormal, generates an abnormal log of the disconnection, or initiates an alarm prompt.
The AP system monitoring method and the baseband simulator provided in the embodiments of the present invention are described above, and the baseband simulation method provided in the embodiments of the present invention is described below. Referring to fig. 7, fig. 7 is a schematic flowchart of a baseband simulation method according to an embodiment of the present invention; as shown in fig. 7, an embodiment of the baseband simulation method according to the present invention may include the following steps:
701. the baseband simulation system establishes connection with the AP system;
in the research and development process of the AP system of the terminal, when a terminal research and development person needs to perform data interaction on the AP system and the baseband, whether the AP system works normally is detected. When a terminal developer needs to detect the AP system, the terminal developer starts the AP system, a baseband simulation system is started by using an independent process or thread, and the baseband simulation system and the AP system establish a transmission channel for connection.
702. A baseband simulation system receives a first service request sent by an AP system;
after the baseband analog system establishes connection with the AP system, a first service request sent by the AP system may be received.
It should be noted that the first service request may include only one service request, or may include a plurality of service requests, and the details are not limited herein.
703. The baseband simulation system processes the first service request in a preset mode;
after receiving the first service request, the baseband analog system can process the first service according to a preset mode.
It should be noted that the preset mode may be set differently according to different services, and is not limited herein.
704. The baseband analog system sends a response to the first service request to the AP system.
After the baseband simulation system processes the first service request, a response of the first service request can be obtained, and the baseband simulation system sends the response of the first service request to the AP system.
In this embodiment, after the connection between the baseband analog system and the AP system is established, the baseband analog system receives a first service request sent by the AP system, processes the first service request according to a preset manner, and sends a response of the first service request obtained by the processing to the AP system. Therefore, after the baseband simulation system is connected with the AP system, the service request sent by the AP system is received, the service request is processed according to a preset mode, the response for processing the service request is sent to the AP system, and the communication mode of the baseband and the AP system is simulated.
For convenience of understanding, the baseband simulation method provided in the embodiment of the present invention is described in detail below with reference to fig. 8, where fig. 8 is another schematic flow chart of the baseband simulation method provided in the embodiment of the present invention; as shown in fig. 8, another embodiment of the baseband simulation method according to the embodiment of the present invention may include the following steps:
801. the baseband simulation system establishes connection with the AP system;
in the research and development process of the AP system of the terminal, when a terminal research and development person needs to perform data interaction on the AP system and the baseband, whether the AP system works normally is detected. When a terminal developer needs to detect the AP system, the terminal developer starts the AP system, the baseband simulation system is started by using an independent process or thread, the baseband simulation system creates a socket service connection, and the socket service connection is used as a transmission channel to be connected with the AP system.
It should be noted that the process of creating a socket service connection by the baseband analog system specifically includes: the baseband simulation system creates N service threads; each service thread corresponds to the SIM card started by the AP system, and the baseband simulation system creates a socket service connection for each service thread to be used as a transmission channel to establish connection with the AP system; the socket service connection at least comprises a socket client connecting channel, and each service thread and the socket service connection connected with the service thread have the same identification mark.
802. The base band simulation system monitors a first service request sent by an AP system of a socket client connecting channel;
after the baseband simulation system establishes a socket service connection with the AP system, the AP system may send a first service request to the baseband simulation system, where the first service request is sent to a server of a socket client connection channel at the baseband simulation system side through a client of the socket client connection channel at the AP system side. The base band analog system monitors the client of the socket client connecting channel to obtain a first service request.
It is to be understood that the first service request may include only one service request, or may include a plurality of service requests, and is not limited herein.
803. The base band analog system determines the service type of the first service request;
after monitoring a first service request sent by an AP system of a client of the socket client connection channel, the baseband simulation system can determine the service type of the first service request.
It is understood that the service type may be one service type or a plurality of service types.
804. The baseband simulation system receives a first service request through a socket client connecting channel corresponding to the service type.
After determining the service type of the first service request, the baseband simulation system may determine a socket client connection channel corresponding to the service type, and receive the first service request through the socket client connection channel corresponding to the service type.
805. Filtering and identifying a first service request by a general AT instruction table of a baseband simulation system;
and after receiving the first service request, the baseband simulation system filters and identifies the first service request through a stored AT instruction list, and determines a processing mode corresponding to the first service request.
It can be understood that the first service request may correspond to one processing manner, or may correspond to multiple processing manners, and is not limited herein.
806. The baseband simulation system generates a response result of the first service request according to a preset response mode;
and after determining a processing mode corresponding to the first service request, the baseband simulation system processes the first service request according to the corresponding processing mode to obtain a processing result of the first service request, and generates a response result of the first service request according to a preset response mode by using the processing result.
807. The baseband simulation system converts the first service request response result into an AT response instruction;
and after the baseband analog system generates a response result of the first service request, converting the response result of the first service request into an AT response instruction, and using the AT response instruction as the response of the first service request.
808. The baseband analog system sends a response to the first service request to the AP system.
The baseband simulation system converts the response result of the first service request into an AT response instruction to obtain a response of the first service request, and sends the response of the first service request to the AP system.
In this embodiment, after establishing a connection with an AP system through a socket service connection, a baseband simulation system determines a service type of a first service request sent by the AP system, receives the first service request through a socket client connection channel corresponding to the service type, processes the first service request, and sends a response to the first service request to the AP system. Therefore, the baseband simulation system receives the service request sent by the AP system, correspondingly processes the service request and generates a response of the service request, thereby simulating the service request of the AP system received by the baseband and returning a corresponding communication mode of the corresponding service request.
In practical applications, the baseband analog system may further send a second service request to the AP system, which is described in a specific embodiment below. Referring to fig. 9, fig. 9 is another schematic flow chart of a baseband simulation method according to an embodiment of the present invention; as shown in fig. 9, another embodiment of the baseband simulation method according to the embodiment of the present invention may include the following steps:
901. the baseband simulation system establishes connection with the AP system;
in the research and development process of the AP system of the terminal, when a terminal research and development person needs to perform data interaction on the AP system and the baseband, whether the AP system works normally is detected. When a terminal developer needs to detect the AP system, the terminal developer starts the AP system, the baseband simulation system is started by using an independent process or thread, the baseband simulation system creates a socket service connection, and the socket service connection is used as a transmission channel to be connected with the AP system.
It should be noted that the process of creating a socket service connection by the baseband analog system specifically includes: the baseband simulation system creates N service threads; each service thread corresponds to the SIM card started by the AP system, and the baseband simulation system creates a socket service connection for each service thread to be used as a transmission channel to establish connection with the AP system; the socket service connection at least comprises a socket client connecting channel, and each service thread and the socket service connection connected with the service thread have the same identification mark.
902. The base band simulation system monitors a first service request sent by an AP system of a socket client connecting channel;
after the baseband simulation system establishes a socket service connection with the AP system, the AP system may send a first service request to the baseband simulation system, where the first service request is sent to a server of a socket client connection channel at the baseband simulation system side through a client of the socket client connection channel at the AP system side. The base band analog system monitors the client of the socket client connecting channel to obtain a first service request.
It is to be understood that the first service request may include only one service request, or may include a plurality of service requests, and is not limited herein.
903. The base band analog system determines the service type of the first service request;
after monitoring a first service request sent by an AP system of a client of the socket client connection channel, the baseband simulation system can determine the service type of the first service request.
It is understood that the service type may be one service type or a plurality of service types.
904. The baseband simulation system receives a first service request through a socket client connecting channel corresponding to the service type.
After determining the service type of the first service request, the baseband simulation system may determine a socket client connection channel corresponding to the service type, and receive the first service request through the socket client connection channel corresponding to the service type.
905. Filtering and identifying a first service request by a general AT instruction table of a baseband simulation system;
and after receiving the first service request, the baseband simulation system filters and identifies the first service request through a stored AT instruction list, and determines a processing mode corresponding to the first service request.
It can be understood that the first service request may correspond to one processing manner, or may correspond to multiple processing manners, and is not limited herein.
906. The baseband simulation system generates a response result of the first service request according to a preset response mode;
and after determining a processing mode corresponding to the first service request, the baseband simulation system processes the first service request according to the corresponding processing mode to obtain a processing result of the first service request, and generates a response result of the first service request according to a preset response mode by using the processing result.
907. The baseband simulation system converts the first service request response result into an AT response instruction;
and after the baseband analog system generates a response result of the first service request, converting the response result of the first service request into an AT response instruction, and using the AT response instruction as the response of the first service request.
908. The baseband analog system sends a response to the first service request to the AP system.
The baseband simulation system converts the response result of the first service request into an AT response instruction to obtain a response of the first service request, and sends the response of the first service request to the AP system.
909. The baseband simulation system sends a second service request to the AP system;
after the baseband simulation system and the AP system are connected through the socket service connection, the second service request can be sent to the AP system through the socket client connecting channel corresponding to the second service request.
It is to be understood that the second service request may comprise only one service request or may comprise a plurality of service requests.
910. And the baseband simulation system receives a response result of the second service request sent by the AP system.
After the baseband analog system sends the second service request to the AP system, the baseband analog system may receive a response result of the second service request sent by the AP system.
In this embodiment, the baseband simulator may receive the first service request sent by the AP system, send a response result of the first service request to the AP system, send the second service request to the AP system, and receive a response result of the second service request returned by the AP system. Therefore, the service interaction process of the baseband and the AP system is simulated by the service interaction process in the communication process of the baseband simulation system and the AP system. Therefore, when debugging the AP system, a developer of the mobile phone can debug the AP system of the mobile phone and the baseband through service interaction without specific hardware equipment or an application platform, so that the research and development period of the mobile terminal is shortened, and the research and development cost of the mobile terminal is reduced.
For convenience of understanding, the baseband simulation method provided by the embodiment of the present invention is described in detail in a specific application scenario.
In the research and development process of the AP system of the terminal, when a terminal research and development person needs to perform data interaction on the AP system and the baseband, whether the AP system works normally is detected. When a terminal developer needs to detect the AP system, the terminal developer starts the AP system, the baseband simulation system uses an independent process or thread for starting and loading, and the baseband simulation system creates N service threads; each service thread corresponds to the SIM card started by the AP system, and the baseband simulation system creates a socket service connection for each service thread to be used as a transmission channel to establish connection with the AP system; the socket service connection at least comprises a socket client connecting channel, and each service thread and the socket service connection connected with the service thread have the same identification mark. For example, the baseband simulation system creates a Modem service thread 1, a Modem service thread 2, a SIM card 1, a SIM card 2 corresponding to the mobile phone, and the baseband simulation system creates a socket service connection a for the Modem service thread 1, the baseband simulation system creates a socket service connection B for the Modem service thread 2, the Modem service thread 1 and the socket service connection a have the same identifier, for example, the identifier is the card number 13122332323 of the SIM card 1, the Modem service thread 2 and the socket service connection B have the same identifier, for example, the identifier is the card number 13222332323 of the SIM card 2, each socket service connection may include a socket client connection channel or a plurality of socket client connection channels, for example, the socket service connection a may include a socket client connection channel a and a socket channel client connection B, the socket service connection B may include a socket client connection channel n and a socket client connection channel m, and only one socket service connection may be connected in the same time slot The method comprises the steps of performing service interaction with an AP (access point) system, performing service interaction with the AP system simultaneously by a socket service connection A and a socket service connection B, wherein the socket client connection channel a and the socket client connection channel B can respectively correspond to a baseband service, for example, the socket client connection channel a is a calling service of an SIM (subscriber identity module) card 1, the socket client connection channel B is a called service of the SIM card 1, and the socket client connection channel n and the socket client connection channel m can also respectively correspond to a calling service of the SIM card 2 and a called service of the SIM card 2. After the baseband simulation system establishes socket service connection with the AP system, the baseband simulation system monitors a client of a socket client connection channel to obtain a first service request, determines that the service type of the first service request is a call service request of an SIM card 1 initiated by the AP system, determines that a socket client connection channel corresponding to the call service request is a socket client connection channel a in a socket service connection A, receives the call service request through the socket client connection channel a, transfers the call service request to a corresponding Modem service thread, and the Modem service thread filters and identifies the call service request by using a request data general AT instruction list and determines that the processing mode of the call service request is a call service processing mode. And processing the first service request according to the corresponding call service processing mode to obtain a processing result of the call service request, for example, judging whether the call service of the SIM card 1 is limited by the baseband simulation system, if so, generating a processing result of call limitation, converting the processing result of call limitation into an AT response instruction by the baseband simulation system, and sending the AT response instruction of call limitation to the AP system. The baseband simulation system can also send a called service request to the AP system through the socket client connecting channel b, the called service request can return a response of the called service request to the baseband simulation system after being processed by the AP system, and the baseband simulation system can receive the response of the called service request through the socket client connecting channel b.
The baseband simulation method provided by the embodiment of the present invention is described above, and the baseband simulation system provided by the embodiment of the present invention is described in detail below. Referring to fig. 10, fig. 10 is a schematic structural diagram of a baseband analog system according to an embodiment of the present invention; as shown in fig. 10, an embodiment of a baseband analog system provided by the embodiment of the present invention may include the following:
a second connection unit 1001 configured to establish a connection with the AP system;
a first receiving unit 1002, configured to receive a first service request sent by an AP system;
a processing unit 1003, configured to process the first service request in a preset manner;
a first sending unit 1004, configured to send a response to the first service request to the AP system.
The second connection unit 1001 provided in the embodiment of the present invention may further include:
a second creating unit 10011, configured to create N service threads; each service thread corresponds to the SIM card started by the AP system;
a third connection subunit 10012, configured to create a socket service connection for each service thread, where the socket service connection is used as a transmission channel to establish a connection with the AP system; the socket service connection at least comprises a socket client connecting channel, and each service thread and the socket service connection connected with the service thread have the same identification mark.
The first receiving unit 1002 provided in the embodiment of the present invention may further include:
a monitoring unit 10021, configured to monitor a first service request sent by an AP system of the socket client connection channel;
a determining unit 10022, configured to determine a service type of the first service request;
the receiving subunit 10023 is configured to receive the first service request through a socket client connection channel corresponding to the service type.
The processing unit 1003 provided in the embodiment of the present invention may further include:
an identifying unit 10031, configured to filter and identify the first service request through the general AT instruction list;
a response unit 10032, configured to generate a response result of the first service request according to a preset response mode;
a conversion unit 10033, configured to forward the response result to an AT response instruction, where the AT response instruction is a response to the first service request.
The baseband analog system provided by the embodiment of the invention can further comprise:
a second sending unit 1005, configured to send a second service request to the AP system;
a second receiving unit 1006, configured to receive a response result of the second service request sent by the AP system.
In this embodiment, the first receiving unit 1002 may receive a first service request sent by the AP system, the first sending unit 1004 may send a response result of the first service request to the AP system, the second sending unit 1005 may also send a second service request to the AP system, and the second receiving unit 1006 receives a response result of the second service request returned by the AP system. Therefore, the service interaction process of the baseband and the AP system is simulated by the service interaction process in the communication process of the baseband simulation system and the AP system. Therefore, when debugging the AP system, a developer of the mobile phone can debug the AP system of the mobile phone and the baseband through service interaction without specific hardware equipment or an application platform, so that the research and development period of the mobile terminal is shortened, and the research and development cost of the mobile terminal is reduced.
For convenience of understanding, the following describes in detail the interaction of each unit in the baseband analog system provided by the embodiment of the present invention in a specific application scenario.
In the research and development process of the AP system of the terminal, when a terminal research and development person needs to perform data interaction on the AP system and the baseband, whether the AP system works normally is detected. When a terminal developer needs to detect the AP system, the terminal developer starts the AP system, the baseband simulation system uses an independent process or thread to start and load, and the second creating unit 10011 creates N service threads; each service thread corresponds to a SIM card enabled by the AP system, and the third connection subunit 10012 creates a socket service connection for each service thread as a transmission channel to establish connection with the AP system; the socket service connection at least comprises a socket client connecting channel, and each service thread and the socket service connection connected with the service thread have the same identification mark. For example, the second creating unit 10011 creates a Modem service thread 1, a Modem service thread 2, and a socket service connection a for the Modem service thread 1, a SIM card 2, and a third connection subunit 10012 of the handset, respectively, and the third connection subunit 10012 creates a socket service connection B for the Modem service thread 2, where the Modem service thread 1 and the socket service connection a have the same identifier, such as the card number 13102332323 of the SIM card 1, and the Modem service thread 2 and the socket service connection B have the same identifier, such as the card number 13222332323 of the SIM card 2, and each socket service connection may include one socket client connection channel and may also include multiple socket client connection channels, such as the socket service connection a, may include a socket client connection channel a and a socket client connection channel B, and the socket service connection B may include a socket client connection channel n and a socket client connection channel m, the socket service connection a and the socket service connection B may have only one of them capable of performing service interaction with the AP system in the same time period, and the socket service connection a and the socket service connection B may also perform service interaction with the AP system at the same time, and the socket client connection channel a and the socket client connection channel B may respectively correspond to a baseband service, for example, the socket client connection channel a is a calling service of the SIM card 1, the socket client connection channel B is a called service of the SIM card 1, and the socket client connection channel n and the socket client connection channel m may also respectively correspond to a calling service of the SIM card 2 and a called service of the SIM card 2. After the second connection unit 1001 establishes a socket service connection with the AP system, the monitoring unit 10021 monitors the client of the socket client connection channel to obtain a first service request, the determining unit 10022 determines that the service type of the first service request is a call service request of the SIM card 1 initiated by the AP system, then the receiving subunit 10023 determines that the socket client connection channel corresponding to the call service request is a socket client connection channel a in the socket service connection a, the receiving subunit 10023 receives the call service request through the socket client connection channel a, the identifying unit 10031 forwards the call service request to a corresponding Modem service thread, the Modem service thread filters and identifies the call service request by using a request data general AT instruction table, and determines that the processing mode of the call service request is a call service processing mode. The response unit 10032 processes the first service request according to the corresponding call service processing mode to obtain a processing result of the call service request, for example, the response unit 10032 determines whether the call service of the SIM card 1 is limited, if so, the generated processing result is call limited, the conversion unit 10033 converts the processing result "call limited" into an AT response instruction, and the first sending unit 1004 sends the AT response instruction of "call limited" to the AP system. The second sending unit 1005 may also send a called service request to the AP system through the socket client connection channel b, where the called service request may return a response of the called service request to the baseband simulation system after being processed by the AP system, and the second receiving unit 1006 may receive the response of the called service request through the socket client connection channel b.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (12)

1. A baseband simulation method, comprising:
establishing connection between a baseband simulation system and an application processor AP system;
the baseband simulation system receives a first service request sent by the AP system;
the baseband simulation system processes the first service request in a preset mode;
the baseband simulation system sends a response of the first service request to the AP system;
the baseband simulation system is used for simulating a communication mode between a baseband and the AP system;
the connection between the baseband analog system and the AP system is established, and the connection comprises the following steps:
the base band simulation system creates socket service connection, the socket service connection is used as a transmission channel to establish connection with the AP system, the socket service connection at least comprises a socket client connection channel, and when the socket service connection comprises a plurality of socket client connection channels, each socket client connection channel corresponds to a base band service;
the receiving, by the baseband analog system, the first service request sent by the AP system specifically includes: the base band simulation system monitors a first service request sent by the AP system through the socket client connecting channel; the baseband simulation system determines the service type of the first service request; the baseband simulation system receives the first service request through a socket client connecting channel corresponding to the service type;
the establishing of the connection between the baseband analog system and the AP system specifically includes: the baseband simulation system creates N service threads; each service thread corresponds to the SIM card started by the AP system, and each service thread takes a socket service connection as a transmission channel to establish connection with the AP system; each service thread has the same identification with the socket service connection to which the service thread is connected.
2. The method of claim 1, wherein the processing the first service request by the baseband analog system through a preset manner comprises:
filtering and identifying the first service request by the general AT instruction list of the baseband simulation system;
the baseband simulation system generates a response result of the first service request according to a preset response mode;
and the baseband simulation system forwards the first service request response result to an AT response instruction, wherein the AT response instruction is the response of the first service request.
3. The method of claim 2, further comprising:
the baseband simulation system sends a second service request to the AP system;
and the baseband simulation system receives a response result of the second service request sent by the AP system.
4. The method of claim 1, further comprising: and the baseband simulation system monitors the baseband communication process of the baseband simulation system and the AP system, judges whether the baseband communication process is abnormal or not, and executes processing operation corresponding to the abnormality if the baseband communication process is abnormal.
5. The method according to claim 4, wherein the determining whether the baseband communication process is abnormal specifically comprises:
judging whether the data interaction in the baseband communication process is abnormal or not;
and/or (c) and/or,
judging whether the signaling interaction in the baseband communication process is abnormal or not;
and/or (c) and/or,
and judging whether the connection state in the baseband communication process is abnormal or not.
6. The method according to claim 5, wherein the executing the processing operation corresponding to the exception specifically comprises:
generating an anomaly log according to the monitored anomalies;
and/or (c) and/or,
and sending out an alarm prompt according to the monitored abnormality.
7. A baseband analog system, comprising:
the second connection unit is used for establishing connection with the AP system;
a first receiving unit, configured to receive a first service request sent by an AP system;
the processing unit is used for processing the first service request in a preset mode;
a first sending unit, configured to send a response to the first service request to an AP system;
the baseband simulation system is used for simulating a communication mode between a baseband and the AP system;
the second connection unit is further configured to create a socket service connection, establish a connection with the AP system using the socket service connection as a transmission channel, where the socket service connection at least includes one socket client connection channel, and when the socket service connection includes a plurality of socket client connection channels, each socket client connection channel corresponds to one baseband service;
the first receiving unit specifically includes:
the monitoring unit is used for monitoring a first service request sent by the AP system through the socket client connecting channel;
a determining unit, configured to determine a service type of the first service request;
a receiving subunit, configured to receive the first service request through a socket client connection channel corresponding to the service type;
the second connection unit specifically includes:
the second establishing unit is used for establishing N service threads; each service thread corresponds to the SIM card started by the AP system;
the third connection subunit is used for establishing a socket service connection for each service thread, and the socket service connection is used as a transmission channel to establish connection with the AP system; each service thread has the same identification with the socket service connection to which the service thread is connected.
8. The baseband analog system according to claim 7, wherein the processing unit specifically comprises:
the identification unit is used for filtering and identifying the first service request by a general AT instruction list;
a response unit, configured to generate a response result of the first service request according to a preset response mode;
a conversion unit, configured to forward the response result to an AT response instruction, where the AT response instruction is a response to the first service request.
9. The baseband analog system of claim 8, further comprising:
a second sending unit, configured to send a second service request to the AP system;
a second receiving unit, configured to receive a response result of the second service request sent by the AP system.
10. The baseband analog system of claim 7, further comprising:
the judging unit is used for judging whether the baseband communication process is abnormal or not;
and the execution unit is used for executing the processing operation corresponding to the exception if the baseband communication process is abnormal.
11. The baseband analog system according to claim 10, wherein the determining unit specifically includes:
the first judgment subunit is used for judging whether data interaction in the baseband communication process is abnormal or not;
and/or (c) and/or,
the second judgment subunit is used for judging whether the signaling interaction in the baseband communication process is abnormal or not;
and/or (c) and/or,
and the third judgment subunit is used for judging whether the connection state in the baseband communication process is abnormal or not.
12. The baseband analog system according to claim 11, wherein said execution unit comprises:
the first execution subunit is used for generating an exception log according to the monitored exception;
and/or (c) and/or,
and the second execution subunit is used for sending out an alarm prompt according to the monitored abnormality.
CN201310753158.1A 2013-12-31 2013-12-31 AP system monitoring method and baseband simulator Active CN104754635B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310753158.1A CN104754635B (en) 2013-12-31 2013-12-31 AP system monitoring method and baseband simulator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310753158.1A CN104754635B (en) 2013-12-31 2013-12-31 AP system monitoring method and baseband simulator

Publications (2)

Publication Number Publication Date
CN104754635A CN104754635A (en) 2015-07-01
CN104754635B true CN104754635B (en) 2020-09-01

Family

ID=53593593

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310753158.1A Active CN104754635B (en) 2013-12-31 2013-12-31 AP system monitoring method and baseband simulator

Country Status (1)

Country Link
CN (1) CN104754635B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101493765A (en) * 2008-01-23 2009-07-29 希姆通信息技术(上海)有限公司 AT command debugging method and apparatus based on WINDOWS MOBILE
CN102664836A (en) * 2012-03-29 2012-09-12 中国科学院计算技术研究所 Prototype verification platform for broadband wireless communication digital baseband processor

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101493791A (en) * 2008-01-23 2009-07-29 希姆通信息技术(上海)有限公司 Computer debugging method and apparatus based on AT command of WINDOWS MOBILE
CN101789996A (en) * 2010-01-19 2010-07-28 深圳市同洲电子股份有限公司 Communication module starting method for intelligent mobile phone
CN101977412B (en) * 2010-07-23 2013-01-09 展讯通信(上海)有限公司 Application processor, modem and communication method therebetween
CN101931700B (en) * 2010-08-20 2012-12-19 北京天碁科技有限公司 Method for realizing communication between smart mobile phone chips and smart mobile phone
US8725112B2 (en) * 2011-06-05 2014-05-13 Apple Inc. Activation solution

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101493765A (en) * 2008-01-23 2009-07-29 希姆通信息技术(上海)有限公司 AT command debugging method and apparatus based on WINDOWS MOBILE
CN102664836A (en) * 2012-03-29 2012-09-12 中国科学院计算技术研究所 Prototype verification platform for broadband wireless communication digital baseband processor

Also Published As

Publication number Publication date
CN104754635A (en) 2015-07-01

Similar Documents

Publication Publication Date Title
CN107948744B (en) Interface detection method, interface detection device, and computer-readable storage medium
EP2706787A1 (en) Method and device for automatic dialling of access point
CN110493812B (en) Distribution network test processing method, device and system, processor and master control equipment
CN105487966A (en) Program testing method, device and system
CN102724322B (en) A kind of method and device for realizing remote control
CN106201783B (en) A kind of data reconstruction method and device
CN103699481A (en) Code debugging method and code debugging system
CN103065083A (en) Method and system for monitoring application program interface of intelligent mobile terminal
CN110908704A (en) Method and device for calling cross-platform native function of mobile terminal
CN105653451A (en) Software performance testing method and device
CN110688319B (en) Application keep-alive capability test method and related device
CN104581668A (en) Emergency calling method and electronic equipment
CN105515887A (en) Application test method, server and system
CN111061448A (en) Log information display method and device, electronic equipment and storage medium
CN105988882B (en) A kind of application software fault repairing method and terminal device
CN105430319A (en) Video communication termination method and device
CN105657701B (en) A kind of call method and device based on eSIM card
CN104754635B (en) AP system monitoring method and baseband simulator
CN115276844B (en) Communication module testing method and device, storage medium and electronic equipment
CN105163336B (en) Optimize the method and system of wireless network stability
CN105228139B (en) A kind of call processing method, device and equipment based on smart machine
CN110213795A (en) A kind of method, mobile terminal and storage medium that double SIM card communicates simultaneously
CN102377243B (en) Collocation method of 101 protocol parameter, collocation device thereof and collocation system thereof
CN101714995A (en) Method for completely testing iSCSI target and generating report
CN109981796B (en) Connection method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20170214

Address after: 401336 Chongqing Nan'an District Tea Garden Road, No. 8, software Incubation Park, building 1

Applicant after: Keen (Chongqing) Microelectronics Technology Co., Ltd.

Address before: 400065 Chongqing Nan'an District huangjuezhen pass Fort Park No. 1

Applicant before: Chongqing City Communication & Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant