CN113778774A - Test data transmission method and device, test method and communication module - Google Patents

Test data transmission method and device, test method and communication module Download PDF

Info

Publication number
CN113778774A
CN113778774A CN202111066132.0A CN202111066132A CN113778774A CN 113778774 A CN113778774 A CN 113778774A CN 202111066132 A CN202111066132 A CN 202111066132A CN 113778774 A CN113778774 A CN 113778774A
Authority
CN
China
Prior art keywords
interface
mbim
response information
test instruction
shared memory
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.)
Pending
Application number
CN202111066132.0A
Other languages
Chinese (zh)
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.)
Quectel Wireless Solutions Co Ltd
Original Assignee
Quectel Wireless Solutions 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 Quectel Wireless Solutions Co Ltd filed Critical Quectel Wireless Solutions Co Ltd
Priority to CN202111066132.0A priority Critical patent/CN113778774A/en
Publication of CN113778774A publication Critical patent/CN113778774A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/263Generation of test inputs, e.g. test vectors, patterns or sequences ; with adaptation of the tested hardware for testability with external testers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/273Tester hardware, i.e. output processing circuits

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application provides a test data transmission method, a test data transmission device, a test method and a communication module. The test data transmission method comprises the following steps: receiving a test instruction sent by terminal equipment through an MBIM interface; adding the test instruction to the first interface so as to store the test instruction in the shared memory through the first interface; the baseband chip is used for executing the test instruction in the shared memory and storing the response information into the shared memory; when the response information is read from the first interface, packaging the response information into MBIM response information; and transmitting the MBIM response information to the terminal equipment through the MBIM interface. In the embodiment of the application, the application chip includes an MBIM interface, receives a test instruction sent by the terminal device through the MBIM interface, and encapsulates response information corresponding to the test into MBIM response information, so that the terminal device can obtain complete test data.

Description

Test data transmission method and device, test method and communication module
Technical Field
The present application relates to the field of communications technologies, and in particular, to a test data transmission method, an apparatus, a test method, and a communication module.
Background
Along with the rapid development of science and technology, internet of things modules such as communication modules go deep into each trade, and the helping hand trade is reformed transform and is upgraded.
Currently, in the mainstream test method, the communication module needs to be connected to a terminal device, such as a PC (Personal Computer) terminal, through a USB (Universal Serial Bus). The testing instruction is issued by the terminal equipment to carry out testing, the mode must ensure that the USB interface of the communication module can be normally loaded, and meanwhile, the mode needs to carry out state switching inside the communication module, such as switching the state of the communication module to a debug state. Therefore, the method has limited application conditions, and if the USB interface cannot be normally loaded or the communication module state is switched to be in a problem, the information is easily lost.
Disclosure of Invention
An object of the embodiments of the present application is to provide a test data transmission method, a test device, a test method, and a communication module, which perform a test through an MBIM interface, so that a terminal device can obtain complete test data conveniently, and the test mode is simpler and easier to implement.
The invention is realized by the following steps:
in a first aspect, an embodiment of the present application provides a test data transmission method, which is applied to an application chip in a communication module, where the communication module further includes a baseband chip and a shared memory; the application chip is connected with the shared memory through a first interface, the baseband chip is connected with the shared memory, the application chip further comprises an MBIM interface, and the method comprises the following steps: receiving a test instruction sent by terminal equipment through the MBIM interface; adding the test instruction to the first interface so as to store the test instruction in the shared memory through the first interface; the baseband chip is used for executing the test instruction in the shared memory and storing response information into the shared memory; when the response information is read from the first interface, packaging the response information into MBIM response information; and sending the MBIM response information to the terminal equipment through the MBIM interface.
In the embodiment of the application, the application chip includes an MBIM interface, receives a test instruction sent by the terminal device through the MBIM interface, and encapsulates response information corresponding to the test into MBIM response information, so that the terminal device can obtain complete test data. In addition, the mode does not need to switch the state of the communication module into a special debugging state, and the extraction of the test data only needs to read the information in the shared memory through the first interface, so that the mode is simple and easy to realize.
With reference to the technical solution provided by the first aspect, in some possible implementation manners, the receiving, by the MBIM interface, the test instruction sent by the terminal device includes: receiving a first signaling sent by the terminal equipment through the MBIM interface; and analyzing the first signaling, and extracting the test instruction from the first signaling.
In this application embodiment, can directly carry out the analysis through the first signaling that acquires to MBIM interface to in extract the test instruction in this signaling, and then only need add test instruction to first interface, make the baseband chip can directly test based on test instruction, improved the inside response efficiency of communication module.
With reference to the technical solution provided by the first aspect, in some possible implementation manners, after the test instruction is extracted from the first signaling, the method further includes: determining the test instruction to be a valid instruction.
In the embodiment of the application, the validity of the instruction is determined, so that the occurrence of a result that the communication module is determined to be abnormal due to the fact that the subsequent invalid instruction is tested is avoided.
With reference to the technical solution provided by the first aspect, in some possible implementation manners, the analyzing the first signaling and extracting the test instruction from the first signaling includes: calling an MBIM thread to analyze the first signaling, and extracting the test instruction from the first signaling; the adding the test instruction to the first interface comprises: calling a write thread to add the test instruction to the first interface; when the response information is read from the first interface, encapsulating the response information into MBIM response information, including: calling a reading thread to read the information in the first interface, and packaging the response information into MBIM response information when the response information is read from the first interface; the sending the MBIM response information to the terminal equipment through the MBIM interface comprises: and calling the MBIM thread to send the MBIM response information to the terminal equipment through the MBIM interface.
In the embodiment of the application, the resource utilization rate of the application chip can be improved and the response rate of the application chip can be increased in a multithreading mode.
With reference to the technical solution provided by the first aspect, in some possible implementation manners, after the invoking an MBIM thread to analyze the first signaling and extracting the test instruction from the first signaling, the method further includes: storing the test instruction in a first list; the invoking the write thread to add the test instruction to the first interface, comprising: calling the write thread to read an instruction from the first list; and after the test instruction is read from the first list, adding the test instruction to the first interface.
Because different threads have different processing contents, in the embodiment of the present application, after extracting the test instruction from the first signaling, the MBIM thread stores the test instruction into the first list, so that the write thread can directly read the instruction from the first list. In this way, interaction between two threads is facilitated.
With reference to the technical solution provided by the first aspect, in some possible implementation manners, before the adding the test instruction to the first interface, the method further includes: determining the test instruction to be a valid instruction.
In the embodiment of the application, the validity of the instruction is determined, so that the occurrence of a result that the communication module is determined to be abnormal due to the fact that the subsequent invalid instruction is tested is avoided. In addition, the validity of the instruction is judged in the process of calling the MBIM thread and the process of writing the thread, and invalid instructions can be further eliminated.
With reference to the technical solution provided by the first aspect, in some possible implementation manners, when the first signaling is received by the communication module for the first time, before the invoking an MBIM thread to analyze the first signaling, the method further includes: creating the write thread and the read thread.
In a second aspect, an embodiment of the present application provides a testing method, which is applied to a communication module, where the communication module includes an application chip, a baseband chip, and a shared memory; the application chip is connected with the shared memory through a first interface, the baseband chip is connected with the shared memory, the application chip further comprises an MBIM interface, and the method comprises the following steps: receiving a test instruction sent by terminal equipment through the MBIM interface; adding the test instruction to the first interface so as to store the test instruction in the shared memory through the first interface; executing the test instruction in the shared memory through the baseband chip, and storing response information into the shared memory; reading the information of the shared memory through the first interface, and packaging the response information into MBIM response information when the response information is read from the first interface; and sending the MBIM response information to the terminal equipment through the MBIM interface.
In a second aspect, an embodiment of the present application provides a test data transmission device, which is applied to an application chip in a communication module, where the communication module further includes a baseband chip and a shared memory; the application chip is connected with the shared memory through a first interface, the baseband chip is connected with the shared memory, the application chip further comprises an MBIM interface, and the device comprises: the receiving module is used for receiving a test instruction sent by the terminal equipment through the MBIM interface; the adding module is used for adding the test instruction to the first interface so as to store the test instruction to the shared memory through the first interface; the baseband chip is used for executing the test instruction in the shared memory and storing response information to the shared memory; the reading module is used for packaging the response information into MBIM response information when the response information is read from the first interface; and the sending module is used for sending the MBIM response information to the terminal equipment through the MBIM interface.
In a third aspect, an embodiment of the present application provides a communication module, including: an application chip, a baseband chip and a shared memory; the application chip comprises an MBIM interface and a first interface, wherein the MBIM interface is used for communicating with terminal equipment, and the first interface is used for being connected with the shared memory; the baseband chip is connected with the shared memory; the application chip is configured to perform the method as provided in the above-described first aspect embodiment and/or in combination with some possible implementations of the above-described first aspect embodiment.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, performs the method as set forth in the above first aspect embodiment and/or in combination with some possible implementations of the above first aspect embodiment.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic view of a communication module and a terminal device according to an embodiment of the present disclosure.
Fig. 2 is a flowchart illustrating steps of a test data transmission method according to an embodiment of the present disclosure.
Fig. 3 is a schematic diagram of another test data transmission method according to an embodiment of the present application.
Fig. 4 is a flowchart illustrating steps of a testing method according to an embodiment of the present disclosure.
Fig. 5 is a block diagram of a test data transmission device according to an embodiment of the present disclosure.
Icon: 100-a communication module; 10-application chip; 11-MBIM interface; 12-a first interface; 20-baseband chip; 30-shared memory; 400-test data transmission means; 410-a receiving module; 420-add module; 430-a reading module; 440-sending module.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
Referring to fig. 1, an embodiment of the present application provides a communication module 100, where the communication module 100 includes: an application chip 10, a baseband chip 20 and a shared memory 30.
The application chip 10 includes an MBIM (Mobile Broadband Interface Module) Interface 11 and a first Interface 12. The MBIM interface 11 is used for communicating with an external terminal device, so that the terminal device issues a test instruction for testing. The application chip 10 is connected to the shared memory 30 through the first interface 12. After receiving the test command, the application chip 10 stores the test command in the shared memory 30 through the first interface 12.
The baseband chip 20 is also connected to the shared memory 30. The baseband chip 20 is used to synthesize a baseband signal to be transmitted or decode a received baseband signal. Specifically, the baseband chip 20 mainly performs an information processing function of the communication module 100. As in the embodiment of the present application, the baseband chip 20 is configured to read data in the shared memory 30, and after the baseband chip 20 reads a test instruction in the shared memory 30, perform a test based on the test instruction, and store response information in the shared memory 30. The application chip 10 may be further configured to obtain response information in the shared memory 30 through the first interface 12. Structurally, the baseband chip may be divided into five modules: a CPU (Central Processing Unit), a channel encoder, a digital signal processor, a modem, and an interface module. Since the above modules are well known in the art, they will not be described in detail here.
The application chip 10 may also be an integrated circuit chip with signal processing capabilities. The Application chip 10 may also be a general-purpose Processor, such as a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a discrete gate or transistor logic device, or a discrete hardware component, which can implement or execute the methods, steps, and logic blocks disclosed in the embodiments of the present Application. Further, a general purpose processor may be a microprocessor or any conventional processor or the like.
The shared Memory 30 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), and an electrically Erasable Programmable Read-Only Memory (EEPROM). In addition, the shared memory 30 may also be used to store programs, and of course, the programs may also be directly written into the application chip 10 and the baseband chip 20, which is not limited in this application.
It should be noted that the structure of the communication module 100 shown in fig. 1 is merely an illustration, and the communication module 100 provided in the embodiment of the present application may have fewer or more components than those shown in fig. 1, or have a different configuration from that shown in fig. 1. Further, the components shown in fig. 1 may be implemented by software, hardware, or a combination thereof.
Referring to fig. 2, fig. 2 is a flowchart illustrating steps of a test data transmission method according to an embodiment of the present application, where the method is applied to the application chip 10 in the communication module 100 shown in fig. 1. It should be noted that, the test data transmission method provided in the embodiment of the present application is not limited by the sequence shown in fig. 2 and the following, and the method includes: step S101-step S104.
Step S101: and receiving a test instruction sent by the terminal equipment through the MBIM interface.
Because the application chip is provided with the MBIM interface, in the embodiment of the application, the communication module communicates with the external terminal device through the MBIM interface, so that the communication module can receive the test instruction issued by the terminal device and test based on the test instruction.
Optionally, the test instruction provided in the embodiment of the present application is an AT (Attention) instruction, and the step S101 may specifically include: receiving a first signaling sent by terminal equipment through an MBIM interface; and analyzing the first signaling, and extracting a test instruction from the first signaling.
The first signaling comprises one or more AT commands. After receiving the first signaling sent by the terminal device through the MBIM interface, the communication module needs to analyze the first signaling to extract the AT instruction in the first signaling.
Therefore, in the embodiment of the application, the first signaling acquired by the MBIM interface can be directly analyzed, so that the test instruction in the signaling can be extracted, and then only the test instruction needs to be added to the first interface, so that the baseband chip can be directly tested based on the test instruction, and the response efficiency inside the communication module is improved.
In addition, after the AT command in the first signaling is extracted, the method further includes: and judging whether the instruction is valid, if the instruction is invalid, acquiring the first signaling again and analyzing, and if the instruction is valid, executing the step S102.
It should be noted that, the manner of determining whether the instruction is valid may be determining whether there is a syntax error in the instruction or whether the instruction is empty. And when the wrong grammar exists in the instruction or the instruction is null, the representation instruction is invalid, otherwise, the representation instruction is valid.
Of course, the judging mode of whether the instruction is valid or not can also be determined according to actual requirements. The terminal equipment can also directly send an AT instruction to the communication module, and the application is not limited.
Step S102: and adding the test instruction to the first interface so as to store the test instruction in the shared memory through the first interface.
After the test instruction is acquired, the test instruction is added to the first interface, so that the test instruction is stored in the shared memory through the first interface. It should be noted that, the baseband chip is also connected to the shared memory. Therefore, after the baseband chip reads the test instruction in the shared memory, the baseband chip may execute the test instruction and store the execution result (i.e., the response information) in the shared memory.
Step S103: and when the response information is read out from the first interface, packaging the response information into MBIM response information.
After the application chip adds the test instruction to the first interface, the information can be read through the first interface, that is, the information in the shared memory is read through the first interface. When the response information is read from the first interface, the response information is extracted and packaged to meet the transmission format requirement of the MBIM interface.
Step S104: and transmitting the MBIM response information to the terminal equipment through the MBIM interface.
And finally, sending the encapsulated MBIM response information to the terminal equipment through an MBIM interface so that the terminal equipment receives complete test data.
In summary, in the embodiment of the present application, the application chip further includes an MBIM interface, the test instruction sent by the terminal device is received through the MBIM interface, and the response information corresponding to the test is encapsulated as the MBIM response information, so that the terminal device obtains complete test data.
In addition, the embodiment of the application also provides a multithreading implementation mode. Specifically, the application chip comprises an MBIM thread, a write thread and a read thread.
Referring to fig. 3, fig. 3 is a logic diagram of execution of each thread, and the test data transmission method may be further implemented by the following steps: receiving a first signaling sent by terminal equipment through an MBIM interface; calling an MBIM thread to analyze the first signaling, and extracting a test instruction from the first signaling; calling a write thread to add a test instruction to the first interface; calling a reading thread to read information in the first interface, and packaging response information into MBIM response information when the response information is read from the first interface; and calling the MBIM thread to send the MBIM response information to the terminal equipment through the MBIM interface.
The reading of the information in the first interface by the calling read thread may be reading the information from the first interface by the calling read thread through a poll function. It should be noted that the poll function is a function in the character device driver, and is well known in the art and will not be described herein too much.
In the embodiment of the application, the resource utilization rate of the application chip can be improved and the response rate of the application chip can be increased in a multithreading mode.
In addition, after the testing instruction in the first signaling is extracted by invoking the MBIM thread, the method further comprises the following steps: and judging whether the instruction is valid, if the instruction is invalid, acquiring the first signaling again and analyzing, and if the instruction is valid, calling the write thread.
The manner for determining whether the instruction is valid is described in the foregoing embodiments, and is not described herein.
It should be noted that the write thread and the read thread are created during the first test. Specifically, when the first signaling is received by the communication module for the first time, before the MBIM thread is invoked to analyze the first signaling, a write thread and a read thread are created, so that corresponding steps are executed through the write thread and the read thread subsequently.
Optionally, after the MBIM thread is invoked to parse the first signaling and the test instruction is extracted from the first signaling, the method further includes: the test instructions are stored in a first list.
Correspondingly, calling a write thread to add the test instruction to the first interface includes: calling a write thread to read an instruction from the first list; and after the test instruction is read from the first list, adding the test instruction to the first interface.
It should be noted that the test process may be performed in real time or non-real time, for example, after the test instruction is stored in the first list by the MBIM thread. The write thread may be called to read the instructions in the first list in real time, or may be called once every preset time to read the instructions in the first list. The preset time period may be determined according to requirements, such as 5 seconds, 30 seconds, and the like, and the application is not limited.
Because different threads have different processing contents, in the embodiment of the present application, after extracting the test instruction from the first signaling, the MBIM thread stores the test instruction into the first list, so that the write thread can directly read the instruction from the first list. This facilitates interaction between the two threads and also facilitates the write thread to use different rules to read instructions (such as real-time reading or reading every predetermined time interval as described above).
Further, before invoking the write thread to add the test instruction to the first interface, the method further comprises: and calling the write thread to judge whether the instruction is valid, if the instruction is invalid, reading the instruction from the first list again, and if the instruction is valid, adding the instruction to the first interface.
The manner for determining whether the instruction is valid is described in the foregoing embodiments, and is not described herein.
In the embodiment of the application, the validity of the instruction is determined, so that the occurrence of a result that the communication module is determined to be abnormal due to the fact that the subsequent invalid instruction is tested is avoided. In addition, the validity of the instruction is judged in the process of calling the MBIM thread and the process of writing the thread, and invalid instructions can be further eliminated.
Referring to fig. 4, based on the same inventive concept, an embodiment of the present invention further provides a testing method, which is applied to the communication module shown in fig. 1. It should be noted that the test method provided in the embodiment of the present application is not limited by the sequence shown in fig. 4 and the following, and the method includes: step S201-step S205.
Step S201: and receiving a test instruction sent by the terminal equipment through the MBIM interface.
Step S202: and adding the test instruction to the first interface so as to store the test instruction in the shared memory through the first interface.
Step S203: and executing the test instruction in the shared memory through the baseband chip, and storing the response information into the shared memory.
Step S204: and reading the information of the shared memory through the first interface, and packaging the response information into MBIM response information when the response information is read from the first interface.
Step S205: and transmitting the MBIM response information to the terminal equipment through the MBIM interface.
The specific process from step S201 to step S205 has already been described from step S101 to step S104, and will not be described repeatedly here.
Referring to fig. 5, based on the same inventive concept, an embodiment of the present invention further provides a test data transmission apparatus 400, including:
a receiving module 410, configured to receive, through the MBIM interface, a test instruction sent by a terminal device.
An adding module 420, configured to add the test instruction to the first interface, so as to store the test instruction to the shared memory through the first interface; the baseband chip is used for executing the test instruction in the shared memory and storing the response information to the shared memory.
A reading module 430, configured to encapsulate the response information into MBIM response information when the response information is read from the first interface.
A sending module 440, configured to send the MBIM response message to the terminal device through the MBIM interface.
Optionally, the receiving module 410 is further specifically configured to receive, through the MBIM interface, a first signaling sent by the terminal device; and analyzing the first signaling, and extracting the test instruction from the first signaling.
Optionally, the receiving module 410 is further specifically configured to determine that the test instruction is a valid instruction after the test instruction is extracted from the first signaling.
Optionally, the receiving module 410 is further specifically configured to invoke an MBIM thread to parse the first signaling, and extract the test instruction from the first signaling.
Correspondingly, the adding module 420 is specifically configured to invoke a write thread to add the test instruction to the first interface.
Correspondingly, the reading module 430 is specifically configured to invoke a reading thread to read information in the first interface, and when the response information is read from the first interface, encapsulate the response information as the MBIM response information.
Correspondingly, the sending module 440 is further configured to invoke the MBIM thread to send the MBIM response message to the terminal device through the MBIM interface.
Optionally, the receiving module 410 is further configured to store the test instruction in a first list after the invoking MBIM thread parses the first signaling and extracts the test instruction from the first signaling.
Correspondingly, the adding module 420 is further configured to call the write thread to read an instruction from the first list; and after the test instruction is read from the first list, adding the test instruction to the first interface.
Optionally, the adding module 420 is further configured to determine that the test instruction is a valid instruction before the adding the test instruction to the first interface.
Optionally, the apparatus further comprises a creation module. The creating module is configured to create the write thread and the read thread before the MBIM thread is invoked to analyze the first signaling when the first signaling is received by the communication module for the first time.
It should be noted that, as those skilled in the art can clearly understand, 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.
Based on the same inventive concept, embodiments of the present application further provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed, the computer program performs the methods provided in the above embodiments.
The storage medium may be any available medium that can be accessed by a computer or a data storage device including one or more integrated servers, data centers, and the like. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and 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 of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
In addition, 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.
Furthermore, the functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A test data transmission method is characterized in that the test data transmission method is applied to an application chip in a communication module, and the communication module further comprises a baseband chip and a shared memory; the application chip is connected with the shared memory through a first interface, the baseband chip is connected with the shared memory, the application chip further comprises an MBIM interface, and the method comprises the following steps:
receiving a test instruction sent by terminal equipment through the MBIM interface;
adding the test instruction to the first interface so as to store the test instruction in the shared memory through the first interface; the baseband chip is used for executing the test instruction in the shared memory and storing response information into the shared memory;
when the response information is read from the first interface, packaging the response information into MBIM response information;
and sending the MBIM response information to the terminal equipment through the MBIM interface.
2. The method according to claim 1, wherein the receiving, through the MBIM interface, the test instruction sent by the terminal device comprises:
receiving a first signaling sent by the terminal equipment through the MBIM interface;
and analyzing the first signaling, and extracting the test instruction from the first signaling.
3. The method of claim 2, wherein after said extracting the test instruction from the first signaling, the method further comprises:
determining the test instruction to be a valid instruction.
4. The method of claim 2, wherein parsing the first signaling and extracting the test instruction from the first signaling comprises:
calling an MBIM thread to analyze the first signaling, and extracting the test instruction from the first signaling;
the adding the test instruction to the first interface comprises:
calling a write thread to add the test instruction to the first interface;
when the response information is read from the first interface, encapsulating the response information into MBIM response information, including:
calling a reading thread to read the information in the first interface, and packaging the response information into MBIM response information when the response information is read from the first interface;
the sending the MBIM response information to the terminal equipment through the MBIM interface comprises:
and calling the MBIM thread to send the MBIM response information to the terminal equipment through the MBIM interface.
5. The method according to claim 4, wherein after the invoking MBIM thread parses the first signaling, extracting the test instruction from the first signaling, the method further comprises:
storing the test instruction in a first list;
the invoking the write thread to add the test instruction to the first interface, comprising:
calling the write thread to read an instruction from the first list;
and after the test instruction is read from the first list, adding the test instruction to the first interface.
6. The method of claim 5, wherein prior to said adding the test instruction to the first interface, the method further comprises:
determining the test instruction to be a valid instruction.
7. The method of claim 4, wherein when the first signaling is first received by the communication module, before the invoking the MBIM thread parses the first signaling, the method further comprises:
creating the write thread and the read thread.
8. A test method is characterized in that the test method is applied to a communication module, wherein the communication module comprises an application chip, a baseband chip and a shared memory; the application chip is connected with the shared memory through a first interface, the baseband chip is connected with the shared memory, the application chip further comprises an MBIM interface, and the method comprises the following steps:
receiving a test instruction sent by terminal equipment through the MBIM interface;
adding the test instruction to the first interface so as to store the test instruction in the shared memory through the first interface;
executing the test instruction in the shared memory through the baseband chip, and storing response information into the shared memory;
reading the information of the shared memory through the first interface, and packaging the response information into MBIM response information when the response information is read from the first interface;
and sending the MBIM response information to the terminal equipment through the MBIM interface.
9. A test data transmission device is characterized in that the test data transmission device is applied to an application chip in a communication module, and the communication module further comprises a baseband chip and a shared memory; the application chip is connected with the shared memory through a first interface, the baseband chip is connected with the shared memory, the application chip further comprises an MBIM interface, and the device comprises:
the receiving module is used for receiving a test instruction sent by the terminal equipment through the MBIM interface;
the adding module is used for adding the test instruction to the first interface so as to store the test instruction to the shared memory through the first interface; the baseband chip is used for executing the test instruction in the shared memory and storing response information to the shared memory;
the reading module is used for packaging the response information into MBIM response information when the response information is read from the first interface;
and the sending module is used for sending the MBIM response information to the terminal equipment through the MBIM interface.
10. A communication module, comprising: an application chip, a baseband chip and a shared memory;
the application chip comprises an MBIM interface and a first interface, wherein the MBIM interface is used for communicating with terminal equipment, and the first interface is used for being connected with the shared memory;
the baseband chip is connected with the shared memory;
the application chip is for performing the method of any one of claims 1-7.
CN202111066132.0A 2021-09-13 2021-09-13 Test data transmission method and device, test method and communication module Pending CN113778774A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111066132.0A CN113778774A (en) 2021-09-13 2021-09-13 Test data transmission method and device, test method and communication module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111066132.0A CN113778774A (en) 2021-09-13 2021-09-13 Test data transmission method and device, test method and communication module

Publications (1)

Publication Number Publication Date
CN113778774A true CN113778774A (en) 2021-12-10

Family

ID=78842923

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111066132.0A Pending CN113778774A (en) 2021-09-13 2021-09-13 Test data transmission method and device, test method and communication module

Country Status (1)

Country Link
CN (1) CN113778774A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116405421A (en) * 2023-03-15 2023-07-07 珠海芯业测控有限公司 Communication test method, system and storage medium of simulation chip test sorting machine

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018041034A1 (en) * 2016-08-29 2018-03-08 深圳创维数字技术有限公司 Cec analogue test method and test system
CN111722938A (en) * 2020-05-08 2020-09-29 深圳市广和通无线股份有限公司 AT instruction processing method, AT instruction processing device, computer equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018041034A1 (en) * 2016-08-29 2018-03-08 深圳创维数字技术有限公司 Cec analogue test method and test system
CN111722938A (en) * 2020-05-08 2020-09-29 深圳市广和通无线股份有限公司 AT instruction processing method, AT instruction processing device, computer equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116405421A (en) * 2023-03-15 2023-07-07 珠海芯业测控有限公司 Communication test method, system and storage medium of simulation chip test sorting machine
CN116405421B (en) * 2023-03-15 2024-02-06 珠海芯业测控有限公司 Communication test method, system and storage medium of simulation chip test sorting machine

Similar Documents

Publication Publication Date Title
CN109558290B (en) Server, interface automatic test method and storage medium
CN110417766B (en) Protocol analysis method and device
US20130326280A1 (en) Debugging method, chip, board, and system
CN107404418B (en) Internet product testing method, device, equipment and storage medium
CN113778611B (en) Data transmission method, device, system and storage medium
CN106294102A (en) The method of testing of application program, client, server and system
CN109873735B (en) Performance test method and device for H5 page and computer equipment
CN104821954A (en) Cross-platform remote procedure call method
CN110096380B (en) Android internal communication method, system, device and storage medium
US7385927B2 (en) Methods and structure for improved testing of embedded systems
CN112631924A (en) Automatic testing method and device, computer equipment and storage medium
CN113360301A (en) Message transmission system and method
CN105404574B (en) Smart card and mobile terminal consistency test method and device
CN116720462A (en) Device, method and equipment for constructing chip simulation system and chip simulation system
CN113778774A (en) Test data transmission method and device, test method and communication module
CN113535578B (en) CTS test method, CTS test device and CTS test equipment
CN107733866A (en) RPC requests, RPC request processing methods, device and equipment
CN101466163B (en) Method and system for processing information and relevant equipment
CN106815128A (en) Log-output method and device, electronic equipment
CN111752820A (en) Pressure testing method of gPC interface, computer equipment and storage medium
CN114328183A (en) Debugging method, device, equipment and computer readable storage medium
CN106776285B (en) Webpage front end debugging method and device
CN112015496A (en) Interface calling method and device, computer equipment and storage medium
CN106686037B (en) Page detection method, device, equipment and system
CN114116520B (en) Algorithm evaluation method, device, gateway and storage medium

Legal Events

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