CN101883345B - Method and device for processing AT command - Google Patents
Method and device for processing AT command Download PDFInfo
- Publication number
- CN101883345B CN101883345B CN 201010216129 CN201010216129A CN101883345B CN 101883345 B CN101883345 B CN 101883345B CN 201010216129 CN201010216129 CN 201010216129 CN 201010216129 A CN201010216129 A CN 201010216129A CN 101883345 B CN101883345 B CN 101883345B
- Authority
- CN
- China
- Prior art keywords
- handle
- response
- receives
- instruction
- sent
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Abstract
The invention discloses a method and a device for processing an AT command, aiming to improve the efficiency of AT command processing. The method comprises the following steps: receiving a handle which is sent by an application and corresponds to the application, wherein the handle carries an AT command to be sent; queuing the received handle in a set handle processing queue; and extracting at least one handle from the handle processing queue according to the queuing sequence, placing the extracted handle into a set handle processing container for processing, and transmitting the AT command carried by the extracted handle. When in use, the invention can realize the parallel transmission of the AT commands of multiple handles, thereby enhancing the efficiency of AT command processing.
Description
Technical field
The present invention relates to the communications field, relate in particular to a kind of method and device of the AT of processing instruction.
Background technology
At present; Mobile double-standby terminal has gradually become main flow, because AT instruction standard of comparison, and nearly all platform supplier can both support the AT instruction of standard; Therefore; Most of mobile double-standby terminal all is to instruct the control and treatment dual-network and dual-standby through AT on the market, instructs through AT and controls two chips of principal and subordinate, thereby realize the control to dual-network and dual-standby.
At present, the mode of handling the AT instruction is mainly: all AT send Instructions Cache in command queue, adopt the AT in the formation of AT circular treatment mode processing command to send instruction; Use and directly to call AT and handle, the AT instruction is sent through the AT control module, during adopt the technology of blocking, only when receiving the corresponding AT response of this AT instruction, the next AT that just sends in the command queue instructs, the rest may be inferred.The AT processing module receives AT when response, rule of thumb sets type with the AT response and sends to and think and need the application of this AT response; When the application of calling this AT response more for a long time, use the event polling of adding response by each, and need each to use to remember whether to be in separately the state that sends the AT instruction and wait for the AT response.
Adopt the AT processing mode of prior art; To each AT instruction; After this AT of transmission instructs, need wait reception and this AT instruct corresponding AT to respond, only when the AT that receives this AT instruction correspondence responds; Instruction is handled to next bar AT again, the technological deficiency that it brought have following some:
(1) moves the slower of double-standby terminal from module responds; (as read SIM (Subscriber Identity Module carrying out some special processings; Client identification module) data, UIM (User Identity Model, subscriber identification module) block data) time seem particularly evident because longer from the resume module time; Response speed is slower; If current handling an AT comparatively consuming time instruction from module, when receiving the AT instruction (like the type conversation of this AT instruction) of higher priority, must wait for that the AT that could handle high priority after the last AT instruction process completion consuming time instructs.Because the AT instruction does not have priority, belong to the transmission (handling the Next mode of handling again afterwards for) of serial, thereby make when needs continue to handle the AT instruction; Be prone to cause the accumulation of AT instruction; Thereby can not dispose some important AT instruction timely, especially at frequent operation with two when treating relevant operation, can't be with the AT instruction transmission in time that needs in time to solve; Thereby cause double-standby terminal when frequent operation, slower for the Business Processing reaction.
(2) prior art does not carry handle owing to initiate the application of AT instruction, therefore to the processing of AT instruction; After the AT response that receives is resolved; AT after can accurately not resolving response sends to the application that needs this AT response, and therefore, the AT after needing to adopt the mode of state's poll to resolve responds and sends to a plurality of application; As using A, B, C, D, all to need type of receipt be the AT response of conversation; When receiving the AT response that first type is a call type when (representing) with AT response, need this AT response is sent to application A, B, C, D respectively, confirm by this application A, B, C, D whether AT response is self desired AT response; When AT response that to receive second type be call type when (representing) with the 2nd AT response, also need the 2nd AT responded and send to A, B, C, D respectively, the rest may be inferred.AT response after the mode of employing poll will be resolved sends to each and uses, and adopts this kind polling mode not only to strengthen the processing complexity of using, and also possibly cause same AT to respond maybe be by different application reprocessings; And this kind mode makes a plurality of application can not call identical AT response simultaneously, therefore, has strengthened AT processing controls difficulty.
Summary of the invention
The present invention provides a kind of method and device of the AT of processing instruction, to improve the treatment effeciency of AT instruction.
A kind of method of sending the AT instruction comprises:
What receive the application transmission uses corresponding handle handle with this, and this handle carries AT instruction to be sent;
The handle that receives is ranked in the handle processing queue of setting;
According to the queuing order, from the handle processing queue, extract at least one handle and put in the handle container handling of setting, and send the entrained AT instruction of handle of extracting.
A kind of method of handling the AT response comprises:
Receive the AT response, and from the handle container handling of setting, determine one or more handle that current expectation receives this AT response;
The AT response that receives is sent to one of them handle among the handle that determines.
A kind of device that sends the AT instruction comprises:
Receiver module, be used to receive use send use corresponding handle handle with this, this handle carries AT instruction to be sent;
Processing module, the handle that is used for said receiver module is received ranks in the handle processing queue of setting;
Sending module is used for according to the queuing order, from the handle processing queue, extracts at least one handle and puts in the handle container handling of setting, and send the entrained AT instruction of handle of extracting.
A kind of device of handling the AT response comprises:
Receiver module is used to receive the AT response;
Determination module is used for determining one or more handle that current expectation receives the AT response that said receiver module receives from the handle container handling of setting;
Sending module, the AT that is used for said receiver module is received response send to one of them handle of the handle that determination module determines.
A kind of portable terminal comprises:
The COMM processor is used to receive the AT response and sends the AT instruction; And when receiving the AT response, receive the down trigger data, and the down trigger data splicing group that receives is bundled into complete one or more AT response and output;
The AT processor is used for every AT response to the output of COMM processor, determines the AT type and the output of this AT response;
The Handle processor; Be used for every AT response to the output of AT processor; From the handle container handling, determine the handle that one or more current expectations receive this AT response, and this AT response is sent to one of them handle among the handle that determines; And, be used to receive and use the handle that the distribution processor machine sends, and the handle that receives is ranked in the handle processing queue of setting; According to the queuing order, from the handle processing queue, extract at least one handle and put in the handle container handling of setting, and send the entrained AT instruction of handle of extracting;
Use the distribution processor machine, be used to call general-purpose interface and generate corresponding handle for using, said handle carries AT instruction and output to be sent; And, receive the response results that the handle processor sends.In the embodiment of the invention; When sending the AT instruction; Can send the corresponding AT instruction of a plurality of handle in the handle container simultaneously, improve and sent the efficient of AT instruction, thereby made the handle that under the situation that the AT instruction is piled up, can dispose accumulation timely.When receiving the AT response; Directly the AT response that receives is sent to the handle that current expectation receives this AT response; Thereby the AT response that receives is sent to the application that needs this AT response efficiently and accurately; Improved the distribution efficient and the accuracy of AT response, avoided needing to adopt the mode of poll to send to the application that needs this AT response to an AT response in the prior art, thereby caused the lower problem of AT response distribution efficient.
Description of drawings
Figure 1A is the method flow diagram that sends the AT instruction in the embodiment of the invention;
Figure 1B is the method flow diagram that receives the AT response in the embodiment of the invention;
Fig. 1 C is a method flow diagram of handling AT in the embodiment of the invention;
Fig. 2 is an Organization Chart of handling the TASK of AT in the embodiment of the invention;
Fig. 3 is the process chart that the COMM unit receives data in the embodiment of the invention;
Fig. 4 is the flow chart that the AT processor is handled the AT response in the embodiment of the invention;
Fig. 5 is the method flow diagram that the handle processor sends the AT instruction in the embodiment of the invention;
Fig. 6 is the method flow diagram that the handle processor received and handled the AT response in the embodiment of the invention;
Fig. 7 is the structural representation that sends the device of AT instruction in the embodiment of the invention;
Fig. 8 is a structural representation of handling the device of AT response in the embodiment of the invention.
Embodiment
Handle the lower problem of AT instruction efficient to prior art, the embodiment of the invention provides a kind of method of the AT of processing instruction, and this method comprises: be provided with the handle processor at portable terminal; When sending the AT instruction, use to the handle processor and send the handle that carries AT instruction to be sent; The handle processor is inserted into this handle according to the priority of this handle in the handle processing queue of setting suitable position and ranks; The handle processor extracts the handle container handling that at least one handle puts into setting by the queuing order and handles from the handle processing queue; And send the entrained AT of handle that extracts and instruct; Realized the corresponding AT instruction of a plurality of handle in the parallel transmission handle container; Improved the efficient of sending the AT instruction; And handle lines up in the handle processing queue according to priority order from high to low, thereby makes the handle that under the situation that the AT instruction is piled up, can dispose high priority timely.When receiving the AT response; From the handle container handling of setting, determine one or more handle that current expectation receives this AT response; And the AT that receives response sent to one of them handle among the handle that determines; Thereby the AT response that receives is sent to the application that needs this AT response efficiently and accurately; Improved the distribution efficient and the accuracy of AT response, avoided needing to adopt the mode of poll to send to the application that needs this AT response to an AT response in the prior art, thereby caused the lower problem of AT response distribution efficient.
Below in conjunction with Figure of description technical scheme of the present invention is carried out detailed description.
Referring to Figure 1A, for sending the method flow diagram of AT instruction in the embodiment of the invention, this flow process comprises:
What step 101a, reception application were sent uses corresponding handle with this, and this handle carries AT instruction to be sent.
Referring to Figure 1B, for receiving the method flow diagram of AT response in the embodiment of the invention, this flow process comprises:
A plurality of handle in step 101b, the handle container handling are provided with the AT response that current expectation receives.
Handle among above-mentioned steps 101a, the 101b sends by using; And this handle comprises that application identities number (like the ID value), the priority of handle, the readjustment of handle, AT to be sent instruction and this handle expect the AT response sequence that receives, and the AT response sequence expects that a plurality of AT that arrange according to sequential that obtain respond the sequences that constituted after being meant this handle transmission AT instruction.Application is used included application ID value, the priority of handle, the readjustment of handle, the AT instruction of handle self and the AT response sequence that this handle expectation receives of handle of application through calling general-purpose interface by this general-purpose interface initialization.
Preferably; In the embodiment of the invention; Handle in the handle processing queue ranks according to priority order from high to low; The handle that priority is high is extracted earlier in the handle container handling and handles, and is extracted in the handle container handling behind the low handle of priority and handles.Step 101a in the above-mentioned flow process; The priority of other pending in the priority of the handle that receives and handle processing queue handle is compared; And determine the handle that one or more priority are lower than the handle priority that receives, and rank before the said handle that receives is inserted into any handle that determines.Generally speaking, this handle is inserted into the front of the handle of the low one-level of this handle of priority ratio.
Preferably; For the handle that avoids low priority can not be processed for a long time, the embodiment of the invention is to each handle in the handle processing queue; Judge whether number of times that this handle is inserted into handle reaches the frequency threshold value of setting; If, then this handle is provided for characterizing the mark of forbidding before this handle, inserting other handle, perhaps the priority of this handle is heightened.
Preferably, above-mentioned process step 101a also comprises step:
When receiving the handle that uses transmission, the handle processing signals is set, the handle processor judges when receiving the handle processing signals whether the handle container handling is full, if then ignore this handle processing signals.
Preferably; Above-mentioned steps 103b specifically comprises: the one or more handle that receive said AT response according to the current expectation of determining are extracted the sequencing of said handle container handling, determine the handle that is extracted said handle container handling at first; And the AT that receives response sent to the handle that is extracted said handle container handling at first that determines.
Preferably, also comprise after the step 103b of above-mentioned flow process:
Judge whether the AT that receives responds is that the handle that this AT of reception responds expects that last AT that receives responds, if the AT that then receives according to this handle responds to the application feedback response result corresponding with this handle; If not, then the AT response that next expectation receives is set for this handle.
Preferably, above-mentioned process step 103b also comprises step:
When if the AT that receives response is not the AT response of the desired reception of any one handle in the said handle container handling, the AT response that receives is sent to resident container, said resident container is to be used to handle the initiatively container of the handle of reported event.
Handle container handling in the embodiment of the invention can be set to the container of first in first out; Be extracted the handle that handles in this handle container and send corresponding AT instruction successively according to the sequencing that is extracted; And when receiving the AT response, this AT response is directly sent to the handle that gets into the handle container handling among the handle that needs this AT response at first.
Preferably; For further improving the efficient of distribution AT response; In the embodiment of the invention, each handle in the handle container handling confirms out with the identification information of next AT response of expecting when whenever receiving the AT response of an expectation; So that the handle processor is when receiving the AT response; One or more handle that the identification information that the AT that directly returns according to the current expectation of each handle in the handle container handling responds is determined this AT response of current needs determine the handle that gets into the handle container handling at first again from a plurality of handle, the AT response that receives is sent to the handle that determines.
The embodiment of the invention also provides the method flow diagram of a kind of AT of processing, and this method flow is shown in Fig. 1 C, and this method flow comprises step 101a~step 103a of Figure 1A and step 101b~step 103b of Figure 1B.
In practical application, the handle container handling is provided with 5 and holds bodies, can 5 handle of parallel processing, and handle is corresponding one by one with the appearance body; And hold body to each and be provided with corresponding transmission timer, each transmission timer is that a special data structure is integrated, comprises the data that send, the number of times that sends data etc.Each handle in the Handle container handling records the index information of its used transmission timer; When handle nullifies from this handle container handling, the employed timer of this handle is emptied.
Referring to Fig. 2, in the embodiment of the invention, portable terminal is handled the TASK system architecture diagram of AT, and this TASK system comprises: COMM processor, AT processor, handle processor and application distribution processor machine, wherein:
The COMM processor is used to receive the AT response and sends the AT instruction; And when receiving the AT response, receive the down trigger data, and the down trigger data splicing group that receives is bundled into complete one or more AT response and output;
The AT processor is used for every AT response to the output of COMM processor, determines the AT type and the output of this AT response;
The Handle processor; Be used to handle the AT handle of application request; This AT handle is a handle, is used to store the type of the AT instruction that application need sends and the AT response sequence that expectation receives, and also comprises a call back function pointer that is used for the AT response process; Be used for every AT response, from the handle container handling, determine the handle that one or more current expectations receive this AT response, and this AT response is sent to one of them handle among the handle that determines to the output of AT processor; And, be used to receive and use the handle that the distribution processor machine sends, and the handle that receives is ranked in the handle processing queue of setting; According to the queuing order, from the handle processing queue, extract at least one handle and put in the handle container handling of setting, and send the entrained AT instruction of handle of extracting;
Use the distribution processor machine, be used to call general-purpose interface and generate corresponding handle for using, said handle carries AT instruction and output to be sent; And, receive the response results that the handle processor sends.
The principle that adopts TASK system as shown in Figure 2 that AT instruction to be sent is handled is following:
Be positioned at TASK system top application distribution processor machine and call general-purpose interface and use corresponding handle with this, and the individual handle that uses correspondence is sent to the handle processor for each use to generate; The handle processor is ranked according to the order of priority the handle that receives in the handle processing queue; And from the handle processing queue, extract at least one handle and put to the handle container handling according to the queuing sequencing; But the handle of this handle container handling parallel processing fixed qty, the quantity of from the handle processing queue, extracting handle is decided according to the quantity of handle that the handle container handling can also parallel processing; The handle processor sends the corresponding AT instruction of handle of extracting through AT processor and COMM processor.Handle container handling in the embodiment of the invention can be the container of first in first out, and the handle processor sends the corresponding AT instruction of each handle successively according to the sequencing that gets into the handle container handling.
The principle that the AT response of adopting TASK system docking as shown in Figure 2 to receive is handled is following:
Be positioned at the data that the COMM processor pair FPDP of the TASK system bottom receives and analyze, obtain one or more complete AT response, and the AT response that obtains is sent to the AT processor; The AT response that AT processor pair COMM processor sends is analyzed, and determines the AT type of the AT response that the COMM processor sends, and the structure of the AT type of determining is sent to the handle processor; The handle processor sends to a handle among one or more handle that current this AT of expectation reception responds in the handle container handling with the AT response that receives; And judge that whether this AT response is last AT response that receives in the desired AT response sequence of the handle of this AT response; If; The handle processor is nullified this handle from the handle container handling; The AT that receives according to this handle responds to the application feedback response result corresponding with this handle, and from the handle processing queue, extracts a handle and put in the handle container handling; If not, then in this AT response of this handle storage, and set the AT response that the next expectation of this handle receives.
In the application of reality, the COMM processor sends the AT instruction through calling SIO (Super Input Output chip, super I/O chip).
Preferably; For avoiding owing to the problem that causes sending failure is lost in the AT instruction of sending in transmission course; In the embodiment of the invention; In the structure of AT instruction to be sent, be provided with the sign of whether retransmitting the AT instruction and the time threshold of retransmitting the AT instruction in advance, this time threshold is not received AT the longest setting-up time accordingly after sending the AT instruction; Do not receive in the time threshold of COMM treatment mechanism after sending the AT instruction when instructing corresponding AT response, resend this AT and instruct with this AT.
When the COMM processor receives data, generally have following three kinds of situation:
Situation one, down trigger once receive, and data integrity also just forms a complete information;
Situation two, down trigger once receive, and data are imperfect to be not enough to form a complete information;
Situation three, down trigger once receive, and data exceed a complete information.
These three kinds of situation also possibly be mingled with appearance, like the down trigger first time, receive complete data and the incomplete data of half bar; Down trigger for the second time receives follow-up 30% data of incomplete data of half bar that down trigger for the first time receives; Down trigger receives follow-up 20% data for the third time.
Above-mentioned example only is a kind of situation; In practical application; Also comprise various combined situation, therefore, the COMM processor data assembling combination how correct repeatedly down trigger receives becomes at least one complete AT to respond; Then directly determining the confirming of type of AT processor pair AT response, carrying out accuracy for processing thereby have influence on follow-up handle processor pair AT response.
Preferably; Be assembled into comparatively complete AT response for making the COMM processor better will repeatedly interrupt contacting the data that receive, in the technical scheme of the present invention, the metadata cache that the COMM processor receives each down trigger is in buffering buffer; And in buffering buffer, search whether include a plurality of end of data signs one by one; Like "/r/n " (all being),, then the data between any two "/r/n " are sent to the AT processor as a complete AT response if having with "/r/n " ending when data have been sent; At last incomplete data are continued to be kept among the buffering buffer, and timer is set; When setting-up time arrives, receive data again and cancel timer, down trigger, setting-up time is arranged when not arriving, then cancel this timer.For the data that COMM processor pair in the clearer description embodiment of the invention receives are handled, be that example is described with flow chart shown in Figure 3.
Referring to Fig. 3, be the process chart of COMM processor reception data in the embodiment of the invention, this flow process comprises step:
The timer that step 302, cancellation are set.
The reception of step 310, down trigger data of end.
In practical application, the AT type is more, and the AT processor is when receiving the partial data of COMM processor transmission; This partial data is analyzed, and mated one by one, to determine the AT type of these data according to analysis result and all AT types; Because the AT type is of a great variety; The workload of determining the AT type through this kind matching way is bigger, and is consuming time longer
Preferably; Confirm the efficient of AT type for improving the AT processor; In the embodiment of the invention; Also the AT type is done further division, a plurality of comparatively approximate AT types are divided in the same AT type in a big way, as the AT type of sending short messages all is referred among the note AT with the AT type that receives note; According to this, can the AT type be divided into: general AT, calling AT, note AT, telephone directory AT, supplementary service AT, data service AT, control AT, expansion AT, secure option AT etc.For further the AT processor being confirmed that the AT type carries out detailed explanation, be that example describes with flow chart as shown in Figure 4.
Referring to Fig. 4, confirm the flow chart of AT type for AT processor in the embodiment of the invention, this flow process comprises step:
The AT that step 401, reception COMM processor send handles request, carries the AT response during this AT handles and asks.
Handle processor pair data are handled and are comprised transmission processing and reception processing two parts, and the transmission processing is relatively independent but relevant with the reception processing, when the reception processing, need carry out corresponding data processing according to the transmit mechanism that sends processing.
Below in conjunction with Fig. 5 and Fig. 6 the flow process of handle processor processing AT is carried out detailed description.
Referring to Fig. 5, for handle processor in the embodiment of the invention sends the method flow diagram of AT instruction, this flow process comprises:
What step 501, reception application were sent uses corresponding handle with this, and this handle comprises ID value, handle priority, the readjustment of handle, the AT instruction of handle self and the AT response sequence of this handle expectation reception of application.
Referring to Fig. 6, be the method flow diagram that handle processor in the embodiment of the invention receives and processing AT responds, this flow process comprises:
The AT response that step 601, reception AT processor send.
Based on the identical design of said method flow process, the embodiment of the invention also provides a kind of device of the AT of transmission instruction and the device of a kind of AT of processing response.
Referring to Fig. 7, for sending the device of AT instruction in the embodiment of the invention, this device comprises:
Sending module 73 is used for according to the queuing order, from the handle processing queue, extracts at least one handle and puts in the handle container handling of setting, and send the entrained AT instruction of handle of extracting.
How above-mentioned each module realizes that specifically function corresponding is consistent with processing mode in the aforesaid method, repeats no more at this.
Referring to Fig. 8, for handling the device of AT response in the embodiment of the invention, this device comprises:
Sending module 83, the AT that is used for said receiver module 81 is received response send to one of them handle of the handle that determination module 82 determines.
Sending module 83 is further used for; Judge whether the said AT response that receives is last AT response that said handle expectation receives; If the AT response that then this handle is received is integrated into a feedback result and sends to the application corresponding with this handle; If not, then the AT response that next expectation receives is set for this handle.
How above-mentioned module realizes that specifically the processing mode of function that it is corresponding such as preceding method is consistent, repeats no more at this.
The embodiment of the invention also provides a kind of portable terminal, and this portable terminal comprises:
The COMM processor is used to receive the AT response and sends the AT instruction; And when receiving the AT response, receive the down trigger data, and the down trigger data splicing group that receives is bundled into complete one or more AT response and output;
The AT processor is used for every AT response to the output of COMM processor, determines the AT type and the output of this AT response;
The Handle processor; Be used for every AT response to the output of AT processor; From the handle container handling, determine the handle that one or more current expectations receive this AT response, and this AT response is sent to one of them handle among the handle that determines; And, be used to receive and use the handle that the distribution processor machine sends, and the handle that receives is ranked in the handle processing queue of setting; According to the queuing order, from the handle processing queue, extract at least one handle and put in the handle container handling of setting, and send the entrained AT instruction of handle of extracting;
Use the distribution processor machine, be used to call general-purpose interface and generate corresponding handle for using, said handle carries AT instruction and output to be sent; And, receive the response results that the handle processor sends.
The COMM processor is bundled into complete one or more AT response with the down trigger data splicing group that receives, and specifically comprises:
The down trigger data that receive are stored in the buffering according to the sequencing that receives;
From the data that buffering receives, search end of data sign;
When finding a plurality of endings sign, the data splicing group between two adjacent arbitrarily data ending signs is bundled into a complete AT response.
Technical scheme of the present invention is not limited in the processing of handling the AT instruction, also can take technical scheme provided by the invention for the instruction of other handshake communication agreements.
In the embodiment of the invention; On the one hand, when sending the AT instruction, can send the corresponding AT instruction of a plurality of handle in the handle container simultaneously; Improved the efficient of sending the AT instruction; And handle lines up in the handle processing queue according to priority order from high to low, thereby makes the handle that under the situation that the AT instruction is piled up, can dispose high priority timely; On the other hand; When receiving the AT response; The direct AT response that receives is sent to gets into the handle container and handle that need this AT response at first, thereby the AT response that receives is sent to the application that needs this AT response efficiently and accurately, improved distribution efficient and accuracy that AT responds; Avoided needing to adopt the mode of poll to send to the application that needs this AT response to an AT response in the prior art, thereby caused the lower problem of AT response distribution efficient.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, belong within the scope of claim of the present invention and equivalent technologies thereof if of the present invention these are revised with modification, then the present invention also is intended to comprise these changes and modification interior.
Claims (16)
1. a method of sending the AT instruction is characterized in that, comprising:
What receive the application transmission uses corresponding handle handle with this, and this handle carries AT instruction to be sent;
The handle that receives is ranked in the handle processing queue of setting;
According to the queuing order, from the handle processing queue, extract at least one handle and put in the handle container handling of setting, and send the entrained AT instruction of handle of extracting.
2. the method for claim 1; It is characterized in that; The handle that said application is sent generates through calling general-purpose interface, and this handle comprises the AT response sequence that identification number, this handle priority, handle readjustment, AT to be sent instruction and this handle expectation of this application receive.
3. method as claimed in claim 2 is characterized in that, the handle that receives is ranked in the handle processing queue of setting, and is specially:
The priority of other pending in the priority of the handle that receives and handle processing queue handle is compared, and determine the handle that one or more priority are lower than the handle priority that receives;
The said handle that receives is inserted into any handle that determines to rank before.
4. method as claimed in claim 3 is characterized in that, also comprises step:
To each handle in the handle processing queue; Judge whether number of times that this handle is inserted into handle reaches the frequency threshold value of setting; If; Then, perhaps, the priority of this handle is heightened for this handle is provided for characterizing the mark of forbidding inserting in this handle front other handle.
5. handle the method that AT responds for one kind, the AT response of the AT instruction that said AT response is method transmission according to claim 1 is characterized in that, comprising:
Receive the AT response, and from the handle container handling of setting, determine one or more handle that current expectation receives this AT response;
The AT response that receives is sent to one of them handle among the handle that determines.
6. method as claimed in claim 5; It is characterized in that; Handle generates through calling general-purpose interface for the application corresponding with this handle, and handle comprises the identification number of application, priority, the handle readjustment of handle, the AT response sequence that AT to be sent instructs and this handle expectation receives.
7. method as claimed in claim 5 is characterized in that, the AT response that receives is sent to one of them handle among the handle that determines, and is specially:
The one or more handle that receive said AT response according to the current expectation of determining are extracted the sequencing of said handle container handling, determine the handle that is extracted said handle container handling at first; And the AT that receives response sent to the handle that is extracted said handle container handling at first that determines.
8. like each described method of claim 5~7, it is characterized in that, the AT that receives response sent to after one of them handle among the handle that determines, also comprise step:
Judge whether the said AT response that receives is last AT response of the handle expectation reception of this AT response of reception, if the AT that then receives according to this handle responds to the application feedback response result corresponding with this handle; If not, then the AT response that next expectation receives is set for this handle.
9. method as claimed in claim 8 is characterized in that, also comprises step:
When if the AT that receives response is not the AT response of the desired reception of any one handle in the said handle container handling, the AT response that receives is sent to resident container, said resident container is to be used to handle the initiatively container of the handle of reported event.
10. method as claimed in claim 5 is characterized in that, receives before the AT response, also comprises step:
Receive the down trigger data, and the down trigger data that receive are kept in the buffering according to receiving sequencing;
From the data that buffering receives, search end of data sign;
When finding a plurality of endings sign, the data splicing group between two adjacent arbitrarily data ending signs is bundled into a complete AT response.
11. a device that sends the AT instruction is characterized in that, comprising:
Receiver module, be used to receive use send use corresponding handle handle with this, this handle carries AT instruction to be sent;
Processing module, the handle that is used for said receiver module is received ranks in the handle processing queue of setting;
Sending module is used for according to the queuing order, from the handle processing queue, extracts at least one handle and puts in the handle container handling of setting, and send the entrained AT instruction of handle of extracting.
12. device as claimed in claim 11 is characterized in that, said processing module has particular application as:
The priority of other pending in the priority of the handle that receives and handle processing queue handle is compared, and determine the handle that one or more priority are lower than the handle priority that receives; The said handle that receives is inserted into any handle that determines to rank before.
13. a device of handling the AT response, said AT response is the AT response of instructing like the AT that the said device of claim 11 sends, and it is characterized in that, comprising:
Receiver module is used to receive the AT response;
Determination module is used for determining one or more handle that current expectation receives the AT response that said receiver module receives from the handle container handling of setting;
Sending module, the AT that is used for said receiver module is received response send to one of them handle of the handle that determination module determines.
14. device as claimed in claim 13 is characterized in that, said sending module has particular application as:
One or more handle that the current expectation of determining according to said determination module receives said AT response are extracted the sequencing of said handle container handling, determine the handle that is extracted said handle container handling at first; And the AT that receives response sent to the handle that is extracted said handle container handling at first that determines.
15. a portable terminal is characterized in that, comprising:
The COMM processor is used to receive the AT response and sends the AT instruction; And when receiving the AT response, receive the down trigger data, and the down trigger data splicing group that receives is bundled into complete one or more AT response and output;
The AT processor is used for every AT response to the output of COMM processor, determines the AT type and the output of this AT response;
The Handle processor; Be used for every AT response to the output of AT processor; From the handle container handling, determine the handle that one or more current expectations receive this AT response, and this AT response is sent to one of them handle among the handle that determines; And, be used to receive and use the handle that the distribution processor machine sends, and the handle that receives is ranked in the handle processing queue of setting; According to the queuing order, from the handle processing queue, extract at least one handle and put in the handle container handling of setting, and send the entrained AT instruction of handle of extracting;
Use the distribution processor machine, be used to call general-purpose interface and generate corresponding handle for using, said handle carries AT instruction and output to be sent; And, receive the response results that the handle processor sends.
16. portable terminal as claimed in claim 15 is characterized in that, said COMM processor specifically is used for:
The down trigger data that receive are stored in the buffering according to the sequencing that receives;
From the data that buffering receives, search end of data sign;
When finding a plurality of endings sign, the data splicing group between two adjacent arbitrarily data ending signs is bundled into a complete AT response.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010216129 CN101883345B (en) | 2010-06-30 | 2010-06-30 | Method and device for processing AT command |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010216129 CN101883345B (en) | 2010-06-30 | 2010-06-30 | Method and device for processing AT command |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101883345A CN101883345A (en) | 2010-11-10 |
CN101883345B true CN101883345B (en) | 2012-12-12 |
Family
ID=43055200
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201010216129 Active CN101883345B (en) | 2010-06-30 | 2010-06-30 | Method and device for processing AT command |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101883345B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104053252B (en) * | 2014-06-04 | 2017-08-11 | 青岛海信移动通信技术股份有限公司 | A kind of AT command processing methods, apparatus and system |
CN106210045A (en) * | 2016-07-11 | 2016-12-07 | 浪潮(北京)电子信息产业有限公司 | A kind of SCST and data processing method thereof |
CN113179227B (en) * | 2021-04-26 | 2023-05-19 | 哈尔滨铁路科研所科技有限公司 | AT instruction control method based on queue |
CN116112911A (en) * | 2023-02-10 | 2023-05-12 | 迈普通信技术股份有限公司 | AT instruction processing method, device, terminal equipment and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101030975A (en) * | 2007-02-15 | 2007-09-05 | 重庆重邮信科股份有限公司 | Processing method for increasing responding speed of protocol AT commands |
CN101035373A (en) * | 2007-04-11 | 2007-09-12 | 重庆重邮信科(集团)股份有限公司 | Method for using the AT instruction to realize the CCBS service |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060148462A1 (en) * | 2004-10-14 | 2006-07-06 | Xiongwei Zhu | Customizable mobile phone using at command |
-
2010
- 2010-06-30 CN CN 201010216129 patent/CN101883345B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101030975A (en) * | 2007-02-15 | 2007-09-05 | 重庆重邮信科股份有限公司 | Processing method for increasing responding speed of protocol AT commands |
CN101035373A (en) * | 2007-04-11 | 2007-09-12 | 重庆重邮信科(集团)股份有限公司 | Method for using the AT instruction to realize the CCBS service |
Also Published As
Publication number | Publication date |
---|---|
CN101883345A (en) | 2010-11-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103532823A (en) | Message processing method, device and system for Internet of Things | |
CN103297395B (en) | The implementation method of a kind of Internet service, system and device | |
CN100556004C (en) | In a kind of instant communicating system to the method to set up of group message receiving mode | |
CN111343590B (en) | Short message sending system with high concurrency and high stability | |
CN101984692A (en) | Method and device for preventing malicious software from transmitting data | |
CN101883345B (en) | Method and device for processing AT command | |
CN111563820B (en) | Intelligent contract parallel execution method and device | |
CN104517086B (en) | ID card information read method | |
CN103139157A (en) | Network communication method based on socket, device and system | |
CN106034113A (en) | Data processing method and data processing device | |
CN104092763A (en) | Application program installation package pushing method and device | |
CN105516086A (en) | Service processing method and apparatus | |
CN111510493B (en) | Distributed data transmission method and device | |
CN101052031B (en) | Data interaction method for Apple computer and radio communication terminal | |
CN102497441A (en) | Information synchronization method between mobile phone and computer and system thereof | |
CN101984717A (en) | Data synchronization method, mobile terminal and data synchronization system | |
CN101888404A (en) | Data updating method and device for mobile equipment | |
CN105072082A (en) | Method and device for transmitting verification code | |
CN103619053A (en) | Method for using user identification cards and communication system | |
CN103299298A (en) | Service processing method and system | |
CN110889765B (en) | Transaction information reporting method and device | |
CN110673970B (en) | Cross-process calling system and method based on web application | |
CN102413247A (en) | Method and device for recovering crash site of terminal | |
CN101626431B (en) | Processing method and processing system capable of adapting to communication mode | |
CN112270536B (en) | POS-based aggregated payment method, system and related device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |