CN1992709A - 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
CN1992709A
CN1992709A CN 200510130749 CN200510130749A CN1992709A CN 1992709 A CN1992709 A CN 1992709A CN 200510130749 CN200510130749 CN 200510130749 CN 200510130749 A CN200510130749 A CN 200510130749A CN 1992709 A CN1992709 A CN 1992709A
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.)
Granted
Application number
CN 200510130749
Other languages
Chinese (zh)
Other versions
CN1992709B (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.
Handle the method for AT order between above-mentioned terminal equipment and terminal adapter, its characteristics are that 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.
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 (3)

1, handle the method for AT order between a kind of 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.
2, handle the method for AT order between terminal equipment according to claim 1 and terminal adapter, it is characterized in that 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.
3, handle the method for AT order between terminal equipment according to claim 2 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 true CN1992709A (en) 2007-07-04
CN1992709B 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)

Cited By (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
CN101227469B (en) * 2008-01-23 2010-12-08 中兴通讯股份有限公司 Method for implementing mobile terminal parallel business processing
CN101917704A (en) * 2010-06-25 2010-12-15 中兴通讯股份有限公司 Adapting method and device of multiple terminal devices and mobile terminal
CN101442739B (en) * 2007-11-20 2011-01-19 展讯通信(上海)有限公司 Method for protecting AT instruction
CN102665298A (en) * 2012-02-06 2012-09-12 福建三元达软件有限公司 Wireless communication module multiple return state processing method in foreground-background design
WO2017128789A1 (en) * 2016-01-25 2017-08-03 上海斐讯数据通信技术有限公司 Communication method and system

Cited By (10)

* 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
CN101917704A (en) * 2010-06-25 2010-12-15 中兴通讯股份有限公司 Adapting method and device of multiple terminal devices and mobile terminal
WO2011160458A1 (en) * 2010-06-25 2011-12-29 中兴通讯股份有限公司 Adaptation method and device between multiple terminal equipments and mobile termination
CN101917704B (en) * 2010-06-25 2014-11-05 中兴通讯股份有限公司 Adapting method and device of multiple terminal devices and mobile terminal
CN102665298A (en) * 2012-02-06 2012-09-12 福建三元达软件有限公司 Wireless communication module multiple return state processing method in foreground-background design
CN102665298B (en) * 2012-02-06 2014-07-30 福建三元达软件有限公司 Wireless communication module multiple return state processing method in foreground-background design
WO2017128789A1 (en) * 2016-01-25 2017-08-03 上海斐讯数据通信技术有限公司 Communication method and system

Also Published As

Publication number Publication date
CN1992709B (en) 2011-05-11

Similar Documents

Publication Publication Date Title
CN1992709A (en) Method for processing AT command between terminal device and terminal adapter
CN1294471C (en) Electronic apparatus capable of always executing noise canceling and voice input method for the apparatus
CN1622028A (en) Distributed peripheral device control system and method
CN1725200A (en) Be used for equipment and method in portable terminal storage and reading of data
CN1842073A (en) Method for realizing external device mapping of network computer
CN1350415A (en) Image data storage method
CN100337462C (en) Cellular radio telephone set
CN101075938A (en) System and method for converting between cell-phone telecommunication protocol and USB mass storage protocol
CN1638378A (en) Application and verb resource management
CN1615470A (en) Host extensible wireless application interface
CN1301472C (en) Data transferring system using usb
CN1474584A (en) Portable terminal using mobile phone as peripheral device
CN114880136A (en) Scanner using method and device, computing equipment and storage medium
CN1694375A (en) Multimedia communication system with a mobile handset coupled to a display device via a radio link
CN2876986Y (en) Blue tooth wireless memory
CN1916839A (en) Method for transmitting control command
CN2829012Y (en) Multifunction communication terminal
CN1610302A (en) Double-mode radio data card uith PHS and WLAN function
CN100338563C (en) Equipment simulating joystick with hand-held electronic installation
CN1768327A (en) Method and system for efficient character-based processing
CN200973126Y (en) Multifunction telephone
CN2770979Y (en) Blue-tooth printer adapting structure with dual interface
CN2706800Y (en) Portable MP3 media player with network function
US20080004013A1 (en) Mechanism for remotely accessing a portable computer including wireless communication functionality
CN1215408C (en) Method of transmitting multimedia data with infrared ray in electronic equipment

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