CN100405290C - Method for transmitting control command - Google Patents
Method for transmitting control command Download PDFInfo
- Publication number
- CN100405290C CN100405290C CNB2005100365976A CN200510036597A CN100405290C CN 100405290 C CN100405290 C CN 100405290C CN B2005100365976 A CNB2005100365976 A CN B2005100365976A CN 200510036597 A CN200510036597 A CN 200510036597A CN 100405290 C CN100405290 C CN 100405290C
- Authority
- CN
- China
- Prior art keywords
- response data
- flag
- steering order
- instruction
- transmission method
- 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
Links
Images
Abstract
A method for transmitting control command includes checking whether there is control command to be transmitted in command queue on mobile communication unit or not by microprocessor when said unit is operated normally, fetching out control command when control command waiting to be transmitted in command queue is discovered, at this time checking whether there is a response data waiting to be transmitted to microprocessor for being fetched or not, placing control command by microprocessor only when no any response data being under transmission is confirmed.
Description
[Ji Intraoperative field]
The invention relates to a kind of transmission method of steering order, and particularly relevant for a kind of transmission method of the steering order in mobile communications device.
[Bei Jing Ji Intraoperative]
In the epoch of information explosion now, the human lives has be unable to do without electronic communication, interpersonal often utilization mobile communications device transmits message mutually, the mobile communications device that can carry especially, for example mobile phone or have the electronic installation etc. of radio communication function.
Fig. 1 has illustrated the inside calcspar of a kind of existing intelligent mobile phone (Smart Phone).Please refer to Fig. 1, in existing intelligent mobile phone, comprised CPU (central processing unit) 101 and wireless communication module 103.Wherein, CPU (central processing unit) 101 can be assigned the action that AT command set is controlled wireless communication module 103.AT command set is a cover instruction of linking up each other between cover computer, communication software and a modulator-demodular unit, and each instruction all is to represent with " AT " beginning.
In addition, wireless communication module 103 is used for receiving/sending the electric wave signal of radio frequency.After wireless communication module 103 receives the electric wave signal that the external world sends, can produce response data and give CPU (central processing unit) 101.After CPU (central processing unit) receives response data, the in addition interpretation and the response of being correlated with.
Yet sometimes, when wireless communication module 103 was transmitting response data and gives CPU (central processing unit) 101, CPU (central processing unit) 101 may be assigned AT command set to wireless communication module 103 simultaneously.At this moment, may cause the state generation entanglement of wireless communication module 103 inside, so that cause the mobile telephone system can't normal operation.
[summary of the invention]
Therefore, purpose of the present invention is exactly at the transmission method that a kind of steering order is provided, and the microprocessor that can avoid mobile communications device inside causes the entanglement of the state of mobile communications device inside when assigning steering order.
The invention provides a kind of transmission method of steering order, a microprocessor that goes in the mobile communications device is assigned steering order to a wireless communication module, and transmission method of the present invention then is described below.When mobile communications device during in normal operation, microprocessor can check constantly that whether steering order etc. is arranged in its inner instruction queue is to be transmitted.Steering order is arranged waiting when to be transmitted in finding instruction queue, then from instruction queue, read steering order.At this moment, check whether have a response data to transmit.Wherein response data is produced by wireless communication module, and is used for being sent to microprocessor to read.When affirmation was being transmitted without any response data, microprocessor was just assigned steering order.
In an embodiment of the present invention, if microprocessor when finding to have this response data transmitting, checked then that a response data do not finish flag and whether be enabled before assigning steering order.Wherein, response data is not finished flag and whether is enabled, and has represented whether end of transmission not also of response data.Do not finish flag when the discovery response data and be not enabled, then the part of the response data that will receive is carried out in conjunction with (Merge).Otherwise, when finding that response data is not finished flag and is enabled, confirm then whether response data finishes transmission.When response data is not also finished transmission, then activation response data does not finish flag and flag is waited in an instruction.Wherein, whether instruction waits for that whether flag is enabled, represented response data to transmit.Then, the part with the response data that received temporarily leaves in the data working storage.Relatively, when confirming whether response data finishes the step of transmission, find response data end of transmission, then forbidden energy instruction wait flag and response data are not finished flag, microprocessor is understood response data more then, and wireless communication module is given in transfer control instruction simultaneously.
In sum, in the present invention, microprocessor is being assigned before instruction gives wireless communication module, can confirm earlier that response data after the end of transmission, just can assign instruction.Therefore, wireless communication module just can not take place when transmitting response data, also can receive the steering order that microprocessor is assigned, and cause the entanglement of internal state.
For making purpose of the present invention, structural attitude and function thereof are had further understanding, conjunction with figs. is described in detail as follows now:
[description of drawings]
Fig. 1 has illustrated a kind of inside calcspar of existing intelligent mobile phone.
Fig. 2 has illustrated the flow chart of steps according to the transmission method of a kind of steering order of a preferred embodiment of the present invention.
Fig. 3 has illustrated a kind of treatment step process flow diagram that discovery has response data transmitting before assigning steering order according to a preferred embodiment of the present invention.
[embodiment]
Fig. 2 has illustrated the flow chart of steps according to the transmission method of a kind of steering order of a preferred embodiment of the present invention.The method flow that Fig. 2 illustrated goes for for example mobile communications device of intelligent mobile phone, but does not limit purposes of the present invention with this.In general, all have a microprocessor (CPU (central processing unit) 101 that for example Fig. 1 illustrated) in the mobile communications device, and be used for communicating the transmission wireless communication module, for example the gsm communication module.Please refer to Fig. 2, in normal running, the microprocessor in the mobile communications device can check that constantly whether having steering order will transmit, just step S201 in its inner instruction queue.
At this moment, if be that microprocessor is found to have on the instruction queue steering order and waited for and assigning (just step S201 indicated "Yes"), then microprocessor will carry out step S203, reads the steering order of desiring to assign from instruction queue exactly.If being microprocessor, this steering order assigns to the control of wireless communication module instruction, for example this steering order is an instruction in the AT command set, then in the present invention, microprocessor just needs to confirm whether wireless communication module is transmitting a response data at this moment.By the time confirm that wireless communication module does not transmit any response data, microprocessor just can be assigned steering order to wireless communication module.
In an embodiment of the present invention, whether above-mentioned affirmation wireless communication module is transmitting the step of response data this moment, can be as described in the step S205, check that an instruction waits for whether flag is enabled.Wherein, instruction waits for whether flag is enabled, and has represented wireless communication module whether transmitting response data and has given microprocessor.Suppose to find that instruction waits for that flag is enabled (just step S205 indicated "No"), then continues repeating step S205.Otherwise, wait for that flag is not enabled if find instruction, or when saying by forbidden energy (just step S205 indicated "Yes"), represent wireless communication module not transmit any response data, or wireless communication module has transmitted response data and has finished.At this moment, microprocessor just can be assigned steering order to wireless communication module as described in the step S207, then repeated execution of steps S201 again.In the present embodiment, the step of flag is waited in the activation instruction, has comprised that with its setting state be 1.
Fig. 3 has illustrated a kind of treatment step process flow diagram that discovery has response data transmitting before assigning steering order according to a preferred embodiment of the present invention.Please refer to Fig. 3, step S301 is that explanation will be assigned before the steering order when microprocessor, can check constantly whether wireless communication module is transmitting response data.Supposed microprocessor before assigning steering order, find that wireless communication module is transmitting response data (just step S301 indicated "Yes"), then carry out step S303, check that exactly a response data do not finish flag and whether be enabled.Wherein, response data is not finished flag and whether is enabled, and represents whether end of transmission not also of response data.
At this moment, do not finish flag and be enabled (just step S303 indicated "Yes"),, confirm whether wireless communication module transmits response data to finish then as described in the step S305 if find response data.If response data also transmits and finishes (just step S305 indicated "No"), meeting then of the present invention is as described in the step S307, the activation response data does not finish flag and flag is waited in above-mentioned instruction, and as described in step S309, the part of the response data that received is left in the data working storage, and then repeating step S301.In the present embodiment, the activation response data is not finished the step of flag, comprises that with its setting state be 1.
Otherwise, if when execution in step S305, the response data of will having found wireless communication module transmits and to finish (just step S305 indicated "Yes"), then the present invention will carry out step S311, be exactly that forbidden energy instruction waits for that flag and response data do not finish flag, and microprocessor can be understood the response data that wireless communication module sends as described in the step S313, assign steering order simultaneously and give wireless communication module, then repeating step S301 again.In the present embodiment, forbidden energy instruction wait flag and response data are not finished the step of flag, comprise that the setting state of the two is 0 with it.
Suppose, when execution in step S303, find that response data is not finished flag and is not enabled, or say, represented wireless communication module response data to be transmitted and finished by forbidden energy (just step S303 indicated "No").At this moment, microprocessor will carry out combination with the response data that leaves in the data working storage, and then carry out step S305 as described in the step S315.
In sum, in the present invention, microprocessor in the mobile communications device is being assigned steering order to before the wireless communication module, can confirm that earlier wireless communication module there is no the transmission response data, or etc. wireless communication module with the response data end of transmission after, microprocessor just can be assigned steering order and give wireless communication module.Therefore, the present invention can avoid wireless communication module when transmitting response data, again because receive steering order, and causes the entanglement of internal state.
Claims (10)
1. the transmission method of a steering order is applicable to that the microprocessor in the mobile communications device is assigned this steering order to one wireless communication module, it is characterized in that this transmission method comprises the following steps:
Check that whether this steering order etc. is arranged in the instruction queue in this microprocessor is to be transmitted;
From this instruction queue, read this steering order;
Whether have a response data transmit, wherein this response data is produced by this wireless communication module if checking, and can be sent to this microprocessor and read; And
When affirmation is being transmitted without any response data, then transmit this steering order.
2. the transmission method of steering order as claimed in claim 1, it is characterized in that: check the step whether have the response data that produces by this wireless communication module transmitting, more comprise and check whether an instruction wait flag is enabled, whether wherein this instruction waits for that whether flag is enabled, represent this response data to transmit.
3. the transmission method of steering order as claimed in claim 2 is characterized in that: the step of flag is waited in this instruction of activation, comprises that the state with this instruction wait flag is made as 1.
4. the transmission method of steering order as claimed in claim 1, it is characterized in that: this steering order is an instruction in the AT command set.
5. the transmission method of steering order as claimed in claim 1 wherein, when finding to have this response data transmitting, then comprises the following steps:
Check that a response data do not finish flag and whether be enabled, it is characterized in that: this response data is not finished flag and whether is enabled, and represents whether end of transmission not also of this response data;
Do not finish flag when this response data and be enabled, confirm then whether this response data finishes transmission;
When this response data is not also finished transmission, whether then this response data of activation is not finished flag and flag is waited in an instruction, wherein should instruction wait flag whether be enabled, represent this response data to transmit; And
The part of the response data that received is deposited to a data working storage.
6. the transmission method of steering order as claimed in claim 5 is characterized in that: when confirming whether this response data finishes the step of transmission, find this response data end of transmission, then comprise the following steps:
This instruction wait flag of forbidden energy and this response data are not finished flag; And
Understand this response data, and transmit this steering order.
7. the transmission method of steering order as claimed in claim 5, it is characterized in that: do not finish the step whether flag is enabled in this response data of inspection, find that this response data do not finish flag and be not enabled, then in conjunction with the response data that leaves in this data working storage.
8. the transmission method of steering order as claimed in claim 5, it is characterized in that: this response data of activation is not finished the step of flag, comprises that the state that this response data is not finished flag is made as 1.
9. the transmission method of steering order as claimed in claim 5 is characterized in that: the step of flag is waited in this instruction of activation, comprises that the state with this instruction wait flag is made as 1.
10. the transmission method of steering order as claimed in claim 1, it is characterized in that: this mobile communications device comprises intelligent mobile phone.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2005100365976A CN100405290C (en) | 2005-08-19 | 2005-08-19 | Method for transmitting control command |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2005100365976A CN100405290C (en) | 2005-08-19 | 2005-08-19 | Method for transmitting control command |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1916839A CN1916839A (en) | 2007-02-21 |
CN100405290C true CN100405290C (en) | 2008-07-23 |
Family
ID=37737842
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2005100365976A Expired - Fee Related CN100405290C (en) | 2005-08-19 | 2005-08-19 | Method for transmitting control command |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100405290C (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101853151B (en) * | 2009-05-19 | 2013-06-26 | 威盛电子股份有限公司 | Device and method adaptive to microprocessor |
CN103368680B (en) * | 2012-03-27 | 2017-11-24 | 深圳富泰宏精密工业有限公司 | Mitigate the system and method for AT channel loads |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1140346A (en) * | 1995-06-16 | 1997-01-15 | 莫列斯公司 | Electrical connector |
US20030123400A1 (en) * | 2001-12-27 | 2003-07-03 | Kloos Michael N. | Timing recovery and cross talk prevention in the presence of co-channel interference |
CN1496636A (en) * | 2001-03-12 | 2004-05-12 | �����ɷ� | Method and apparatus for data rate control in communication system |
-
2005
- 2005-08-19 CN CNB2005100365976A patent/CN100405290C/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1140346A (en) * | 1995-06-16 | 1997-01-15 | 莫列斯公司 | Electrical connector |
CN1496636A (en) * | 2001-03-12 | 2004-05-12 | �����ɷ� | Method and apparatus for data rate control in communication system |
US20030123400A1 (en) * | 2001-12-27 | 2003-07-03 | Kloos Michael N. | Timing recovery and cross talk prevention in the presence of co-channel interference |
Also Published As
Publication number | Publication date |
---|---|
CN1916839A (en) | 2007-02-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103222291B (en) | Electronic equipment, NFC controller and application method for configuring route | |
CN108540193B (en) | Front-end module supporting device-to-device communication using multiple frequency bands and electronic device | |
CN101444006A (en) | Controlling radio modems in a device to avoid interference | |
US8540164B2 (en) | Answer to reset (ATR) pushing | |
JP4103623B2 (en) | In-vehicle control device | |
EP3502908B1 (en) | Spi-based data transmission method and device | |
EP2453713A1 (en) | Communication terminal and communication control method | |
CN101287221A (en) | Information transferring method between intelligent bi-mode mobile phone and wireless modem | |
CN103503323A (en) | Radio frequency communication method, device, and terminal equipment for near field communication | |
US20050134431A1 (en) | Method and system for securing an electronic device | |
CN100405290C (en) | Method for transmitting control command | |
CN1578313B (en) | Internet service synchronization method for mobile communication terminal | |
CN112069105B (en) | Serial port communication processing method and device and electronic equipment | |
WO2005060335A2 (en) | Control system and method for a communications interface | |
UA26071U (en) | Radiocommunication module comprising and executing client software | |
EP3937569A1 (en) | System and method for collision handling with cross carrier scheduling | |
EP1879132B1 (en) | Answer to Reset (ATR) Pushing | |
EP1422628B1 (en) | Host apparatus, electronic device, and transmission system control method | |
JP5614859B2 (en) | Vending machine communication system | |
CN1599493A (en) | Method for automatic recognization of radio communication module | |
US11677444B2 (en) | Contactless transponder and method | |
CN210005883U (en) | Intelligent micro-grid communication module and intelligent micro-grid system | |
CN115037659B (en) | Method and device for controlling automobile | |
CN209930244U (en) | Communication module, vehicle, mobile terminal, communication equipment and car networking system | |
CN202795335U (en) | Antenna line device, controller and systems |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20080723 Termination date: 20180819 |