CN103744812A - System and method for GPS module control - Google Patents

System and method for GPS module control Download PDF

Info

Publication number
CN103744812A
CN103744812A CN201310743873.7A CN201310743873A CN103744812A CN 103744812 A CN103744812 A CN 103744812A CN 201310743873 A CN201310743873 A CN 201310743873A CN 103744812 A CN103744812 A CN 103744812A
Authority
CN
China
Prior art keywords
gps module
order
gps
data
host computer
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.)
Pending
Application number
CN201310743873.7A
Other languages
Chinese (zh)
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.)
SHENZHEN G&T INDUSTRIAL DEVELOPMENT Co Ltd
Original Assignee
SHENZHEN G&T INDUSTRIAL DEVELOPMENT Co Ltd
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 SHENZHEN G&T INDUSTRIAL DEVELOPMENT Co Ltd filed Critical SHENZHEN G&T INDUSTRIAL DEVELOPMENT Co Ltd
Priority to CN201310743873.7A priority Critical patent/CN103744812A/en
Publication of CN103744812A publication Critical patent/CN103744812A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Position Fixing By Use Of Radio Waves (AREA)

Abstract

The invention provides a system and method for GPS module control. The GPS module control system comprises an upper computer, a communication module and a GPS module, wherein the upper computer is connected to the communication module through a serial interface and the communication module is connected to the GPS module through a serial peripheral interface. The communication module is used for receiving a locating data collecting demands of the upper computer, responding to the locating data collecting demands, reading locating data from the GPS module through the serial peripheral interface and reporting the locating data to the upper computer.

Description

GPS module controls system and method
Technical field
The present invention relates to the communication technology, especially, relate to a kind of GPS (Global Positioning System, GPS) module controls system and control method thereof of communication electronic equipment.
Background technology
For meeting the demand of user's Real-time Obtaining positional information, communication electronic equipment (for example mobile phone) operated by rotary motion has GPS module.Refer to Fig. 1, traditional communication electronic equipment comprises host computer, communication module and GPS module, wherein said host computer by two independently serial line interface connect respectively described communication module and described GPS module, and described host computer can be realized the control for described communication module and described GPS module by corresponding serial line interface respectively.But, because the interface resource of host computer is generally more limited, the above-mentioned control mode of controlling respectively described communication module and described GPS module by serial line interface independently will cause interface resource waste, is unfavorable for other Function Extensions of communication electronic equipment.
Summary of the invention
For solving the problems of the technologies described above, the invention provides a kind of GPS module controls system that can improve interface resource utilization ratio, and based on above-mentioned GPS module controls system, the present invention also provides a kind of GPS module control method.
GPS module controls system provided by the invention, comprises host computer, communication module and GPS module, and wherein said host computer is connected to described communication module by serial line interface, and described communication module is connected to described GPS module by Serial Peripheral Interface (SPI); Described communication module is collected order for the locator data that receives described host computer, responds described locator data and collects order and from described GPS module, read locator data by described Serial Peripheral Interface (SPI), and described locator data is reported to described host computer.
In a kind of preferred embodiment of GPS module controls system provided by the invention, serial interface unit, Serial Peripheral Interface (SPI) unit and power supply output unit that described communication module comprises processing unit and is connected with described processing unit, wherein said serial interface unit is connected to described host computer, and described Serial Peripheral Interface (SPI) unit and described power supply output unit are connected to described GPS module.
In a kind of preferred embodiment of GPS module controls system provided by the invention, described communication module is also for receiving the GPS of the described host computer order that powers on by described serial line interface, and corresponding described GPS power on order give described GPS module power on, the processing unit of wherein said communication module powers on and first controls described Serial Peripheral Interface (SPI) unit after order its clock pins is dragged down receiving described GPS, then controls described power supply output unit to described GPS module output supply voltage.
In a kind of preferred embodiment of GPS module controls system provided by the invention, power on order and described locator data of described GPS collected order and is AT order.
In a kind of preferred embodiment of GPS module controls system provided by the invention, described locator data collection order carries data and reports number of times indication and data type indication, described data report number of times indication to be used to indicate and only export one-time positioning data or timing output locator data, and described data type indication is used to indicate the data type of the locator data of output.
GPS module control method provided by the invention, comprising: by serial line interface, received from the locator data of host computer and collected order; Respond described locator data and collect order, and from GPS module, read locator data by Serial Peripheral Interface (SPI); By serial line interface, described locator data is reported to described host computer.
In a kind of preferred embodiment of GPS module control method provided by the invention, also comprise: by described serial line interface, receive the order that powers on from the GPS of described host computer; Respond described GPS power on order give described GPS module power on.
In a kind of preferred embodiment of GPS module control method provided by the invention, the described GPS of the described response order that powers on powers on and comprises to described GPS module: power on after order the clock pins of Serial Peripheral Interface (SPI) unit is dragged down receiving described GPS from described host computer, utilize power supply output unit to described GPS module output supply voltage.
In a kind of preferred embodiment of GPS module control method provided by the invention, power on order and described locator data of described GPS collected order and is AT order.
In a kind of preferred embodiment of GPS module control method provided by the invention, described locator data collection order carries data and reports number of times indication and data type indication, described data report number of times indication to be used to indicate and only export one-time positioning data or timing output locator data, and described data type indication is used to indicate the data type of the locator data of output.
In GPS module controls system and method provided by the invention, between host computer and communication module, by serial line interface, be connected, and GPS module is connected with communication module by Serial Peripheral Interface (SPI), based on above-mentioned connected mode, host computer can utilize the processor resource of communication module to realize indirect control GPS module, therefore, host computer only need to be by the just control to communication module and GPS module simultaneously of an independent serial line interface, effectively improve the interface resource utilization ratio of host computer, be convenient to communication electronic equipment and carry out other Function Extensions.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing, wherein:
Fig. 1 is the structural representation of traditional GPS module controls system;
Fig. 2 is the structural representation of a kind of embodiment of GPS module controls system provided by the invention;
Fig. 3 is the schematic diagram of the GPS module control method of the GPS module controls system based on shown in Fig. 2.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only a part of embodiment of the present invention, rather than whole embodiment.Based on the embodiment in the present invention, those of ordinary skills, not making all other embodiment that obtain under creative work prerequisite, belong to the scope of protection of the invention.
For improving the interface resource utilization ratio of communication electronic equipment, the invention provides a kind of GPS module controls system and method, it can utilize communication module to realize with GPS module and realize alternately reading of GPS locator data, thereby realize the independent serial line interface of host computer utilization, just can manage control communication module and GPS module.
Refer to Fig. 2, it is the structural representation of a kind of embodiment of GPS module controls system provided by the invention.Described GPS module controls system comprises host computer 110, communication module 120 and GPS module 130, and wherein, described host computer 110 can be managed and control described communication module 120, and realizes the indirect control to described GPS module 130 by described communication module 120.
Particularly, described communication module 120 can be GSM (Global System of Mobile communication, global system for mobile communications)/GPRS (General Packet Radio Service, general packet radio service) module, or be 3G communication module, such as WCDMA (Wideband Code Division Multiple Access, Wideband Code Division Multiple Access (WCDMA)) module, or be 4G communication module, such as TD-LTE (Time Division Long Term Evolution, time-division Long Term Evolution) module etc.
Described communication module 120 can comprise processing unit 121, serial interface unit 122, Serial Peripheral Interface (SPI) (Serial Peripheral Interface, SPI) unit 123 and power supply output unit 124.Described serial interface unit 122, described Serial Peripheral Interface (SPI) unit 123 and described power supply output unit 124 can be connected to described processing unit 121.
Wherein, described serial interface unit 122 is connected to described host computer 110, to make described communication module 120 carry out information interaction by serial line interface and described host computer 110, therefore, described host computer 110 can manage control to described communication module 120 by described serial line interface.
Described Serial Peripheral Interface (SPI) unit 123 is connected to described GPS module 130, to make described communication module 120 to carry out information interaction by Serial Peripheral Interface (SPI) and described GPS module 130.Wherein, described communication module 120 can be used as main frame, and described GPS module 130 is as slave, adopts the SPI agreement of standard to communicate between the two, and therefore described communication module 120 can manage control to described GPS module 130.
Described power supply output unit 124 is connected to described GPS module 130 by power lead, so that described communication module 120 can be powered as described GPS module.
Refer to Fig. 3, it is the schematic diagram of GPS module control method provided by the invention, and described GPS module control method goes for the GPS module controls system 100 shown in Fig. 2.Particularly, described GPS module control method comprises:
Step S1, host computer is assigned the GPS order that powers on to communication module;
Particularly, described host computer 110 can power on directly to described communication module 120 or power on to described communication module 120 by described host computer 110 in start.And, after described communication module 120 completes and powers on, described host computer 110 can be assigned the GPS order that powers on to described communication module 120, described GPS powers on order can be for AT (Attention, note) order, for example, the GPS that described host computer 110 sends power on order can be for " AT+GPSPOWER ", for controlling described communication module 120 for powering on to the GPS of institute module 130.
Step S2, communication module powers on to GPS module;
Described communication module 120 receives by described serial interface unit 122 GPS that described host computer 110 assigns and powers on after order, can respond power on order powering on for described GPS module 120 of described GPS.Particularly, the processing unit 121 of described communication module 120 receives described GPS and powers on after order, can first control described Serial Peripheral Interface (SPI) unit 123 drags down its clock (Clock) pin, and then control described power supply output unit 124 to described GPS module 130 output supply voltages, thus, described GPS module 130 just can be selected to described communication module 120, to export locator data by Serial Peripheral Interface (SPI), but not exports from other interfaces (comprising serial line interface).Described GPS module 130, after powering on, just can be collected locator data and periodically to its Serial Peripheral Interface (SPI) buffer area, store described locator data.
Step S3, host computer sends locator data to communication module and collects order;
When described host computer 110 need to obtain the locator data of described GPS module 130, it can send locator data to described communication module 120 by serial line interface and collect order, and described locator data collection order is used for controlling described communication module 120 and collects locator data to described GPS module 130.
Particularly, it can be AT order equally that described locator data is collected order, in one embodiment, it can be " AT+GTGPS=x; y that the locator data that described host computer 110 sends is collected order ", wherein, x and y report number of times indication and data type indication as data respectively.Such as, x=0 is used to indicate 120 of described communication modules and exports one-time positioning data to described host computer 110, and x=1 needs timing to export locator data to described host computer 110 for described communication module 120; Y is used to indicate the data type that described communication module 120 is exported to described host computer 110.
Step S4, communication module reads locator data from GPS module;
Described communication module 120 receives after locator data that described host computer 110 assigns collects order by described serial interface module 122, by Serial Peripheral Interface (SPI), from described GPS module 130, reads described locator data.Particularly, the locator data that first processing unit 122 of described communication module 120 can receive described serial interface module 122 is collected order and is resolved, then, described processing unit 122 can respond described locator data and collect order, controls described Serial Peripheral Interface (SPI) unit 123 and read from the Serial Peripheral Interface (SPI) buffer area of described GPS module 130 locator data of described GPS module 130.
Such as, described processing unit 122 can send locator data request to described GPS module 130 by described Serial Peripheral Interface (SPI) unit 123, described GPS module 130 is after receiving described locator data request, can be to the 123 restoring to normal position data responses of the Serial Peripheral Interface (SPI) unit of described communication module 120, described locator data response carries the up-to-date locator data of the Serial Peripheral Interface (SPI) buffer area of described GPS module 130, described Serial Peripheral Interface (SPI) unit 123 is after described GPS module 130 receives described locator data, can be further transmitted to described processing unit 122.
Step S5, the locator data that communication module reads reports host computer;
Particularly, described communication module 120, after reading the locator data of described GPS module 130, reports described host computer 110 by serial line interface by described locator data.Particularly, the processing unit 122 of described communication module 120 is after receiving the locator data that described Serial Peripheral Interface (SPI) 123 reads and forward, can to described locator data, process collecting order according to described locator data, control described serial line interface 122 described locator data is exported to described host computer 110.
In specific embodiment, consider the limited storage space of the Serial Peripheral Interface (SPI) buffer area of described GPS module 130, therefore described communication module 120 can also timing read described locator data from the Serial Peripheral Interface (SPI) buffer area of described GPS module 130, otherwise after the Serial Peripheral Interface (SPI) buffer area of described GPS module 130 is filled with, described GPS module 130 just cannot be stored nearest locator data.
In GPS module controls system and method provided by the invention, between host computer and communication module, by serial line interface, be connected, and GPS module is connected with communication module by Serial Peripheral Interface (SPI), based on above-mentioned connected mode, host computer can utilize the processing resource of communication module to realize indirectly GPS module is managed to control, such as upper electric control and periodic data read etc., therefore, host computer only need to be by the just control to communication module and GPS module simultaneously of an independent serial line interface, effectively improve the interface resource utilization ratio of host computer, be convenient to communication electronic equipment and carry out other Function Extensions.
The foregoing is only embodiments of the invention; not thereby limit the scope of the claims of the present invention; every equivalent structure or conversion of equivalent flow process that utilizes instructions of the present invention and accompanying drawing content to do; or be directly or indirectly used in other relevant technical field, be all in like manner included in scope of patent protection of the present invention.

Claims (10)

1. a GPS module controls system, is characterized in that, comprises host computer, communication module and GPS module, and wherein said host computer is connected to described communication module by serial line interface, and described communication module is connected to described GPS module by Serial Peripheral Interface (SPI); Described communication module is collected order for the locator data that receives described host computer, responds described locator data and collects order and from described GPS module, read locator data by described Serial Peripheral Interface (SPI), and described locator data is reported to described host computer.
2. GPS module controls system as claimed in claim 1, it is characterized in that, serial interface unit, Serial Peripheral Interface (SPI) unit and power supply output unit that described communication module comprises processing unit and is connected with described processing unit, wherein said serial interface unit is connected to described host computer, and described Serial Peripheral Interface (SPI) unit and described power supply output unit are connected to described GPS module.
3. GPS module controls system as claimed in claim 2, it is characterized in that, described communication module is also for receiving the GPS of the described host computer order that powers on by described serial line interface, and corresponding described GPS power on order give described GPS module power on, the processing unit of wherein said communication module powers on and first controls described Serial Peripheral Interface (SPI) unit after order its clock pins is dragged down receiving described GPS, then controls described power supply output unit to described GPS module output supply voltage.
4. GPS module controls system as claimed in claim 3, is characterized in that, power on order and described locator data of described GPS collected order and be AT order.
5. GPS module controls system as claimed in claim 4, it is characterized in that, described locator data collection order carries data and reports number of times indication and data type indication, described data report number of times indication to be used to indicate and only export one-time positioning data or timing output locator data, and described data type indication is used to indicate the data type of the locator data of output.
6. a GPS module control method, is characterized in that, comprising:
By serial line interface, receive from the locator data of host computer and collect order;
Respond described locator data and collect order, and from GPS module, read locator data by Serial Peripheral Interface (SPI);
By serial line interface, described locator data is reported to described host computer.
7. GPS module control method as claimed in claim 6, is characterized in that, also comprises:
By described serial line interface, receive the order that powers on from the GPS of described host computer;
Respond described GPS power on order give described GPS module power on.
8. GPS module control method as claimed in claim 7, it is characterized in that, the described GPS of the described response order that powers on powers on and comprises to described GPS module: power on after order the clock pins of Serial Peripheral Interface (SPI) unit is dragged down receiving described GPS from described host computer, utilize power supply output unit to described GPS module output supply voltage.
9. GPS module control method as claimed in claim 8, is characterized in that, power on order and described locator data of described GPS collected order and be AT order.
10. GPS module control method as claimed in claim 9, it is characterized in that, described locator data collection order carries data and reports number of times indication and data type indication, described data report number of times indication to be used to indicate and only export one-time positioning data or timing output locator data, and described data type indication is used to indicate the data type of the locator data of output.
CN201310743873.7A 2013-12-30 2013-12-30 System and method for GPS module control Pending CN103744812A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310743873.7A CN103744812A (en) 2013-12-30 2013-12-30 System and method for GPS module control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310743873.7A CN103744812A (en) 2013-12-30 2013-12-30 System and method for GPS module control

Publications (1)

Publication Number Publication Date
CN103744812A true CN103744812A (en) 2014-04-23

Family

ID=50501830

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310743873.7A Pending CN103744812A (en) 2013-12-30 2013-12-30 System and method for GPS module control

Country Status (1)

Country Link
CN (1) CN103744812A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022183330A1 (en) * 2021-03-01 2022-09-09 深圳市大疆创新科技有限公司 Unmanned aerial vehicle and control device and method therefor, flight controller, and electronic speed controller

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101470185A (en) * 2007-12-25 2009-07-01 上海晨兴电子科技有限公司 Use method for assisted global positioning system on tracing device terminal
GB2460304A (en) * 2008-05-23 2009-12-02 Exacttrak Ltd Removable memory device, encryption and location sensing
US20100100876A1 (en) * 2008-10-21 2010-04-22 Enfora, Inc. Wireless device provisioning hardware tool
CN201503487U (en) * 2009-04-20 2010-06-09 钱伟 Hand-held multimode signal detection instrument
CN101788658A (en) * 2009-01-23 2010-07-28 沈阳晨讯希姆通科技有限公司 GSM (Global System for Mobile Communications)/GPS (Global Position System) module, GPS comprising same and use method thereof
CN102196601A (en) * 2011-03-24 2011-09-21 大连理工大学 Wireless data transmission device based on WSN (wireless sensor network), GPRS (general packet radio service) and GPS (global position system)

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101470185A (en) * 2007-12-25 2009-07-01 上海晨兴电子科技有限公司 Use method for assisted global positioning system on tracing device terminal
GB2460304A (en) * 2008-05-23 2009-12-02 Exacttrak Ltd Removable memory device, encryption and location sensing
US20100100876A1 (en) * 2008-10-21 2010-04-22 Enfora, Inc. Wireless device provisioning hardware tool
CN101788658A (en) * 2009-01-23 2010-07-28 沈阳晨讯希姆通科技有限公司 GSM (Global System for Mobile Communications)/GPS (Global Position System) module, GPS comprising same and use method thereof
CN201503487U (en) * 2009-04-20 2010-06-09 钱伟 Hand-held multimode signal detection instrument
CN102196601A (en) * 2011-03-24 2011-09-21 大连理工大学 Wireless data transmission device based on WSN (wireless sensor network), GPRS (general packet radio service) and GPS (global position system)

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张舒: "基于GPS/GSM的个人定位系统设计", 《北华大学学报(自然科学版)》 *
陈银溢等: "GPS与GSM组合定位和发送", 《华北工学院学报》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022183330A1 (en) * 2021-03-01 2022-09-09 深圳市大疆创新科技有限公司 Unmanned aerial vehicle and control device and method therefor, flight controller, and electronic speed controller

Similar Documents

Publication Publication Date Title
CN102722971B (en) Intelligent data acquisition device with solidified protocol
CN203745892U (en) Multifunctional remote measuring terminal
CN103840328A (en) Intelligent socket control system based on WSN and wireless communication
CN103604962A (en) S9 multi-module energy meter collecting terminal
CN101873349A (en) Real-time energy consumption monitoring system for multi-nodes of wireless sensor network in working environment
CN102122430B (en) Device and method for collecting agricultural product information
CN204242391U (en) Intelligent mobile phone Bluetooth turns infrared writing-down device for meters
CN207264586U (en) A kind of concentrator of the modularized design based on DL/T698.45 agreements
CN203480680U (en) Intelligent handheld electric energy concentrator
CN105356955A (en) Business simulation device applicable to network performance test and method
CN103744812A (en) System and method for GPS module control
CN106708560A (en) RF communication-based ammeter wireless program upgrading method and wireless upgrading ammeter
CN203673286U (en) Low-power consumption, high-precision punctuality device
CN205103859U (en) Low -power consumption IC card read/write devices based on bluetooth BLE technique
CN105488995A (en) Smart-phone-based Bluetooth-to-infrared meter recording device
CN204087318U (en) Safety of school bus brushing card device
CN203706392U (en) Wireless sensing communication platform based on STM32, SH79F32 and nRF905 chips
CN102610074A (en) Mineral wireless data acquisition terminal
CN203193904U (en) Short message alarm device
CN202949414U (en) Net list module used for electric energy meter
CN202650220U (en) Intelligent access equipment for Internet of Things
CN201576195U (en) ARM-based multifunctional intelligent control terminal
CN107919849B (en) Power supply method and device of mobile terminal
CN205910839U (en) Handheld network meter recorder
CN204178546U (en) A kind of Allocation transformer energy data acquisition system (DAS) based on Internet of Things

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: 518052, A, building two, phase 1057, science and technology building, Nanhai Road, Shenzhen, Guangdong, Nanshan District, China 501A

Applicant after: FIBOCOM WIRELESS INC.

Address before: 518052, A, building two, phase 1057, science and technology building, Nanhai Road, Shenzhen, Guangdong, Nanshan District, China 501A

Applicant before: Shenzhen G&T Industrial Development Co., Ltd.

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: SHENZHEN G+T INDUSTRIAL DEVELOPMENT CO., LTD. TO: SHENZHEN FIBOCOM WIRELESS INC.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140423