CN1992709B - Method for processing AT command between terminal device and terminal adapter - Google Patents

Method for processing AT command between terminal device and terminal adapter Download PDF

Info

Publication number
CN1992709B
CN1992709B CN2005101307499A CN200510130749A CN1992709B CN 1992709 B CN1992709 B CN 1992709B CN 2005101307499 A CN2005101307499 A CN 2005101307499A CN 200510130749 A CN200510130749 A CN 200510130749A CN 1992709 B CN1992709 B CN 1992709B
Authority
CN
China
Prior art keywords
port
parallel
order
data
serial
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.)
Expired - Fee Related
Application number
CN2005101307499A
Other languages
Chinese (zh)
Other versions
CN1992709A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2005101307499A priority Critical patent/CN1992709B/en
Publication of CN1992709A publication Critical patent/CN1992709A/en
Application granted granted Critical
Publication of CN1992709B publication Critical patent/CN1992709B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Communication Control (AREA)

Abstract

The invention relates to a method for processing AT command between terminal and terminal adaptor, wherein it uses the parallel/serial converter before the AT processing module to convert parallel AT into single-port serial AT; when there is data on one port, said port will transmit data to the converter, to be analyzed, buffered and sent to AT processing module, then send feedback result to the converter; the converter will output result to relative port, to realize parallel sending between terminal and terminal adaptor. The invention can use several ports to send AT together, without redefining communication protocol, with wide application.

Description

Handle the method for AT order between a kind of terminal equipment and terminal adapter
Technical field
The present invention relates to handle between a kind of terminal equipment and terminal adapter the method for AT order, particularly relate to the method for concurrent processing AT order between a kind of terminal equipment and terminal adapter.
Background technology
AT (Attention, 2 initial characters that TE orders to TA) order is used for the (TerminalEquipment at TE, terminal equipment) and TA (Terminal Adaptor, terminal adapter) realizes control between, generally initiate an AT order by TE to TA, TA returns the response to this AT order with command analysis, after carrying out.With the portable terminal is example, and portable terminal can regard that computer can be regarded TE as in conjunction with the entity of TA and MT function as.The AT order is generally finished by serial communication, and an AT process of commands process can be regarded as a session, as shown in Figure 1.
General AT command process mechanism as shown in Figure 2, TA is from the serial device reading of data, give the AT command analyzer then, the data that the analysis of AT command analyzer is read, whether judgment data is the AT order, if which bar AT order judges so is, gives corresponding AT command processor again.The AT command processor is carried out preset operation according to the parameter of order, treats again the result to be turned back to serial device after operation is finished.As can be seen, this is a serialized flow process.Along with computer and development of Communication Technique, physical interface between TE and TA is also varied, use now USB (Universal Serial Bus is arranged more widely, USB), PCMCIA interfaces such as (Personal Computer Memory Card International Association, PCMCIA (personal computer memory card international association)).On these interfaces, can support equipment complex, promptly can on a physical interface, support experimental process equipment.Such as, the wireless modem of a USB (MOdulator/DEModulator, modulator-demodulator) network interface card may be mapped to the equipment complex of a modem subset and several serial ports subsets in computer.TE and TA may utilize these several subsets to carry out communication simultaneously so, and further, TE and TA may utilize these several subsets to carry out the communication of AT order simultaneously.The example of a reality is that computer utilizes AT to order the connection of surfing the Net on the modem mouth, the operation that utilizes the AT order to read signal strength signal intensity simultaneously on a serial ports.
AT command analyzer, AT command processor all are serial process logically, have no idea to handle simultaneously from the concurrent AT order of a plurality of ports.So general way is to use the AT order on a port, and uses other session protocol on other port.Such method can satisfy above-mentioned voice and packet data concurrent service demand, but needs the another set of session protocol of definition, and the increase that had both brought the development amount is also bad on versatility.
Summary of the invention
Technical problem to be solved by this invention is to provide the method for handling AT between a kind of terminal equipment and terminal adapter, (the port here can be an independently serial device to have overcome the shortcoming that an AT processor of the prior art can only a corresponding port, also can be the serial subset in the above-mentioned equipment complex), make it on function, can support the request of the concurrent AT session of a plurality of ports simultaneously.
To achieve these goals, the invention provides the method for handling the AT order between a kind of terminal equipment and terminal adapter, its characteristics are, one of being arranged on before the AT processing module of utilization has the parallel/serial transducer that the AT that multiport is concurrent converts the AT function of single port serial to, when any one port has data, this port is delivered to this parallel/serial transducer with data, analyze, buffer memory, giving the AT processing module again handles, obtain return results, and return results sent it back this parallel/serial transducer, and by this parallel/serial transducer the result is outputed to corresponding port, realize the concurrent processing of AT between terminal equipment and terminal adapter;
Wherein, this method specifically comprises the steps:
Step 1 was provided with the parallel/serial transducer that a concurrent AT of multiport is transformed into the AT of single port serial before the AT processing module, be used to safeguard a port status, and what write down current AT processing module processing is the AT order of which port;
Step 2, when any one port had data, this port was delivered to parallel/serial transducer with data;
When step 3, parallel/serial transducer are received from the data of certain port,, promptly handling, upgrading port status, then data are being sent to the AT processing module and handle for sending the port of corresponding data without any the AT order of a port if port status is empty; If port status is not empty, promptly there is the AT order of certain port handling, then this AT order is cached to the buffering area of this port of correspondence;
After step 4, AT processing module received the AT order from parallel/serial transducer, device and processor obtained return results by analysis, and the result is sent it back parallel/serial transducer;
After step 5, parallel/serial transducer are received return results from the AT command module, according to working as of port status
Step 6 after step 5 finishes, if command buffer is sky, is then waited for the data of port; If the port command buffering area is not empty, then from the command buffer of different ports, takes out an AT and order and carry out, and port status is changed to corresponding port.
Handle the method for AT order between above-mentioned terminal equipment and terminal adapter, its characteristics are, in step 6, this parallel/serial transducer takes out an AT according to priority height principle and orders and carry out from the command buffer of different ports.
Adopt the method for the invention, compared with prior art, both satisfied the demand of voice and packet data concurrent service, need not to redefine a cover session protocol again, saved the development time, and had good versatility, standard, can be widely used in the application of the network equipment, as products such as mobile phone, network interface cards.
Describe the present invention below in conjunction with the drawings and specific embodiments, but not as a limitation of the invention.
Description of drawings
Fig. 1 is an AT order session diagram in the prior art;
Fig. 2 is the realization mechanism schematic diagram that AT general in the prior art orders;
Fig. 3 is in the connection diagram of the parallel/serial transducer of AT processing module and dual serial equipment room among the present invention;
Fig. 4 is that the workflow of the parallel/serial transducer of the present invention is an intention.
Embodiment
Core concept of the present invention is to use the staticizer and the caching mechanism of a software, supports the request of the concurrent AT session of a plurality of serial devices or subset.
The method of concurrent processing AT comprises following job step between TE of the present invention and TA:
Step 1 is provided with the parallel/serial transducer that a concurrent AT of multiport is transformed into the AT of single port serial, and this transducer is safeguarded a port status, and what write down current AT processing module processing is the AT order of which port.
Step 2, when any one port had data, this port was delivered to parallel/serial transducer with data.
When step 3, parallel/serial transducer are received from the data of certain port,, promptly handling, upgrading port status, then data are being sent to the AT processing module and handle for sending the port of corresponding data without any the AT order of a port if port status is empty; If port status is not empty, promptly there is the AT order of certain port handling, then this AT order is cached to the buffering area of this port of correspondence.
After step 4, AT processing module received the AT order from parallel/serial transducer, device and processor obtained return results by analysis, and the result is sent it back parallel/serial transducer.
After step 5, parallel/serial transducer were received return results from the AT command module, the currency according to port status sent to corresponding port with return results, and the value of port status is changed to sky.
Step 6 after step 5 finishes, if command buffer is sky, is then waited for the data of port; If the port command buffering area is not empty, then can from the command buffer of different ports, takes out an AT and order and carry out, and port status is changed to corresponding port according to the principle of priority or other principles.
In the present invention, we have dual serial equipment with this parallel/serial transducer called after Serializer in Fig. 3, but be understandable that, method of the present invention is not limited to two equipment, and it can expand on a plurality of equipment, uses two equipment here in order that simple explanation problem more.Serializer be responsible for the data of coming from a plurality of ports analyze, buffer memory, giving the AT processing module again handles, after the processing of AT processing module finishes, again the result is returned to Serializer, by Serializer the result is outputed on certain concrete port.Therefore, concerning the AT processing module, it can't see a plurality of ports, and it can only see a Serializer, thereby realizes must handling concurrent AT conversation request.
With index map 4, describe the operation principle of Serializer of the present invention in detail below:
(1) Serializer safeguards a state which_port, and what write down current AT resume module is the AT order of which port, as null_port, PortA, PortB, or the like.
(2) when any one port has data, data are delivered to Serializer.
When (3) Serializer receives data from certain port,, promptly do not have the AT order of port handling, upgrade which_port, then data are sent to the AT processing module and handle for sending the port of corresponding data if which_port is null_port.
When (4) Serializer receives data from certain port,, promptly there is the AT order of certain port handling, then this AT order is cached to the buffering area of this port of correspondence if which_port is not null_port.
(5) after the AT processing module received the AT order from Serializer, device and processor obtained return results by analysis, and the result is sent it back Serializer.
(6) after Serializer received return results from the AT processing module, the currency according to which_port sent to corresponding port with return results, and the value of which_port is changed to null_port.
(7) after finish (6),, then wait for the data of port if command buffer is sky.
(8) after finish (6),, then can from the command buffer of different ports, take out an AT and order and carry out, and which_port is changed to corresponding port according to the principle of priority or other principles if the port command buffering area be a sky.
Above whole workflow can be with reference to figure 4.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.

Claims (2)

1. handle the method for AT order between terminal equipment and terminal adapter, it is characterized in that, one of being arranged on before the AT processing module of utilization has the parallel/serial transducer that the AT that multiport is concurrent converts the AT function of single port serial to, when any one port has data, this port is delivered to this parallel/serial transducer with data, analyze, buffer memory, giving the AT processing module again handles, obtain return results, and return results sent it back this parallel/serial transducer, by this parallel/serial transducer the result is outputed to corresponding port, realize the concurrent processing of AT order between terminal equipment and terminal adapter;
Wherein, this method comprises the steps:
Step 1 was provided with the parallel/serial transducer that a concurrent AT of multiport is transformed into the AT of single port serial before the AT processing module, be used to safeguard a port status, and what write down current AT processing module processing is the AT order of which port;
Step 2, when any one port had data, this port was delivered to parallel/serial transducer with data;
When step 3, parallel/serial transducer are received from the data of certain port,, promptly handling, upgrading port status, then data are being sent to the AT processing module and handle for sending the port of corresponding data without any the AT order of a port if port status is empty; If port status is not empty, promptly there is the AT order of certain port handling, then this AT order is cached to the buffering area of this port of correspondence;
After step 4, AT processing module received the AT order from parallel/serial transducer, device and processor obtained return results by analysis, and the result is sent it back parallel/serial transducer;
After step 5, parallel/serial transducer were received return results from the AT command module, the currency according to port status sent to corresponding port with return results, and the value of port status is changed to sky;
Step 6 after step 5 finishes, if command buffer is sky, is then waited for the data of port; If the port command buffering area is not empty, then from the command buffer of different ports, takes out an AT and order and carry out, and port status is changed to corresponding port.
2. handle the method for AT order between terminal equipment according to claim 1 and terminal adapter, it is characterized in that, in step 6, this parallel/serial transducer takes out an AT according to priority height principle and orders and carry out from the command buffer of different ports.
CN2005101307499A 2005-12-27 2005-12-27 Method for processing AT command between terminal device and terminal adapter Expired - Fee Related CN1992709B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2005101307499A CN1992709B (en) 2005-12-27 2005-12-27 Method for processing AT command between terminal device and terminal adapter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2005101307499A CN1992709B (en) 2005-12-27 2005-12-27 Method for processing AT command between terminal device and terminal adapter

Publications (2)

Publication Number Publication Date
CN1992709A CN1992709A (en) 2007-07-04
CN1992709B true CN1992709B (en) 2011-05-11

Family

ID=38214656

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2005101307499A Expired - Fee Related CN1992709B (en) 2005-12-27 2005-12-27 Method for processing AT command between terminal device and terminal adapter

Country Status (1)

Country Link
CN (1) CN1992709B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030975B (en) * 2007-02-15 2010-05-26 重庆重邮信科通信技术有限公司 Processing method for increasing responding speed of protocol AT commands
CN101127775B (en) * 2007-09-24 2010-06-02 中兴通讯股份有限公司 A transformation method for transmission channel status of communication devices and communication device
CN101442739B (en) * 2007-11-20 2011-01-19 展讯通信(上海)有限公司 Method for protecting AT instruction
CN101227469B (en) * 2008-01-23 2010-12-08 中兴通讯股份有限公司 Method for implementing mobile terminal parallel business processing
CN101917704B (en) * 2010-06-25 2014-11-05 中兴通讯股份有限公司 Adapting method and device of multiple terminal devices and mobile terminal
CN102665298B (en) * 2012-02-06 2014-07-30 福建三元达软件有限公司 Wireless communication module multiple return state processing method in foreground-background design
CN105592163B (en) * 2016-01-25 2018-07-17 上海斐讯数据通信技术有限公司 A kind of communication means and system

Also Published As

Publication number Publication date
CN1992709A (en) 2007-07-04

Similar Documents

Publication Publication Date Title
CN1992709B (en) Method for processing AT command between terminal device and terminal adapter
TW522335B (en) Apparatus and method for wireless communication
CN1685326B (en) Bus connection system
EP1233337A2 (en) Peripheral devices which manage application upload to computing devices
CA2323649A1 (en) Reconfigurable network interface
CN101287221A (en) Information transferring method between intelligent bi-mode mobile phone and wireless modem
CN101452430B (en) Communication method between multi-processors and communication device comprising multi-processors
CN101052031B (en) Data interaction method for Apple computer and radio communication terminal
US7802047B2 (en) Universal serial bus device and universal serial bus system including the same
US6501576B1 (en) Wireless data transfer using a remote media interface
US20150046606A1 (en) Block device management
US7970976B2 (en) Remote memory access using reversible host/client interface
CN101430671B (en) Mobile terminal peripherals coexisting apparatus
CN1812608A (en) Mobile terminal and starting method thereof
CN105472290A (en) Processing method and device for data transmitting and receiving operation modes
US20090023440A1 (en) Communication mediation apparatus and communication mediation method
JP4255711B2 (en) Small card adapter and host device with small card adapter
CN102301354A (en) System and method for managing a wireless device from removable media with processing capability
EP2506659B1 (en) Device and method for enhancing flexibility of interface between 3g communication module and application processor
CN101119561A (en) Method for communication between GSM mobile communication terminal and SIM card
CN102033834B (en) Remote control device as well as server and client applying same
CN101894082A (en) Storage device and smartphone system
CN1610302A (en) Double-mode radio data card uith PHS and WLAN function
CN203243351U (en) Router possessing near field communication function and near field communication system
KR100917193B1 (en) Device for sharing input means of mobile phone and computer and thereof method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110511

Termination date: 20141227

EXPY Termination of patent right or utility model