Simulation serial port testing method and device

A technology for simulating serial ports and testing devices, applied in the field of communication, can solve the problems affecting development progress, client development and debugging cannot be debugged, and there is no hardware or baseband software client synchronous debugging, etc., to achieve the effect of improving development progress

Active Publication Date: 2014-02-12
SPREADTRUM COMM (SHANGHAI) CO LTD
View PDF3 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In the actual development of software/hardware, the client software system, wireless network card hardware, and baseband software are generally developed at the same time. Due to the development progress, there may be no hardwa

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Simulation serial port testing method and device
  • Simulation serial port testing method and device
  • Simulation serial port testing method and device

Examples

Experimental program
Comparison scheme
Effect test

example 1

[0133] Example 1: This example implements AT commands and responses, and URC reporting, as follows:

[0134] The AT command receiving processing unit is used to adopt D-Bus Method Reply (soft bus response program), receive and extract the AT command from the client, and issue the AT command to the AT process control unit.

[0135] The AT process control unit is used to read the current node information from the XML file through the XML parser unit, if the current node is a URC command, then transfer the URC command to the AT command response processing unit; otherwise, after receiving the AT command receiving processing unit After sending the AT command, use the AT command to match the expected AT command of the current node in the current XML file. If the match fails, use the unknown content to pass to the AT command response processing unit; if the match is successful, use the current node in the XML file. The response content of recv_hex (AT response) is passed to the AT co...

example 2

[0140] Example 2: This example further implements the response and timeout processing of AT commands on the basis of Example 1, as follows:

[0141] The AT command receiving processing unit is used to receive and extract the AT command from the client by using D-Bus Method Reply, and send the AT command to the AT process control unit.

[0142] The AT process control unit is used to read the current node information from the XML file through the XML parser unit. If the current node is a URC command, then control the AT timeout simulation unit to start the timer; otherwise, after receiving the AT command, the receiving processing unit issues After the AT command, use the AT command to match the expected AT command of the current node in the current XML file, if the match fails, use the unknown content to pass to the AT command response processing unit; if the match is successful, control the AT timeout simulation unit to start timer;

[0143] The AT timeout simulation unit star...

example 3

[0147] Example 3: This example further implements the response and Abort processing of AT commands on the basis of Example 2, as follows:

[0148] The AT command receiving processing unit is used to receive and extract the AT command from the client by using D-Bus Method Reply, and send the AT command to the AT process control unit.

[0149] The AT process control unit, after receiving the AT command issued by the AT command receiving processing unit, uses the AT command to match the expected AT command of the current node in the current XML file, and if the match fails, uses the unknown content to pass to the AT command Response processing unit; if the match is successful, then control the AT timeout simulation unit to start the timer;

[0150] The AT timeout simulation unit starts the timer according to the delay requirement of the current node in the XML configuration file, and when the timer overflows, the recv_hex content is passed to the AT command response processing un...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The embodiment of the invention discloses a simulation serial port testing method and device. The simulation serial port testing method includes the steps of receiving a modulator-demodulator command language AT command sent by a client terminal, reading and analyzing various presorted testing data files, obtaining testing commands in the testing data files, determining whether the testing commands are initiatively-reported result coded message URC commands or not, sending the URC commands to the client terminal if the testing commands are the initiatively-reported result coded message URC commands, determining whether the AT command is contained in the testing commands in the testing data files or not if the testing commands are not the initiatively-reported result coded message URC commands, sending response contents of the testing commands corresponding to the AT command to the client terminal if the AT command is contained in the testing commands in the testing data files, and sending information which is not successfully matched to the client terminal if the AT command is not contained in the testing commands in the testing data files. According to the scheme, debugging of the development process can be timely obtained through the development and the debugging of the client terminal, and the integrated development schedule is quickened.

Description

technical field [0001] The invention relates to the communication field, in particular to an analog serial port testing method and device. Background technique [0002] The use of wireless network card needs to be supported by the client, see figure 1 , which includes wireless network card devices and clients. The information exchange between them adopts the general communication interface ATTENTION command (modem command language, referred to as AT command) to communicate, and the communication connection method adopts USB (Universal Serial BUS, Universal Serial Bus) / RS232 (American Electronics Co., Ltd.) in the prior art. The industry association EIA recommends standard 232, Electronic Industry Association,) and other physical ports to control. [0003] The AT command between the wireless network card and the client includes three categories. The first is the AT command (Request, request) sent by the client to the wireless network card; the second is the AT command proce...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): H04L12/26
Inventor 刘桥
Owner SPREADTRUM COMM (SHANGHAI) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products