CN102323915A - Vehicle-mounted terminal serial port bridging communication method and system - Google Patents
Vehicle-mounted terminal serial port bridging communication method and system Download PDFInfo
- Publication number
- CN102323915A CN102323915A CN201110251251A CN201110251251A CN102323915A CN 102323915 A CN102323915 A CN 102323915A CN 201110251251 A CN201110251251 A CN 201110251251A CN 201110251251 A CN201110251251 A CN 201110251251A CN 102323915 A CN102323915 A CN 102323915A
- Authority
- CN
- China
- Prior art keywords
- serial
- mcu
- mounted terminal
- software module
- car
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Small-Scale Networks (AREA)
- Information Transfer Systems (AREA)
Abstract
The invention provides a vehicle-mounted terminal serial port bridging communication method and a system. The system comprises a vehicle-mounted terminal body and a computer, the vehicle-mounted terminal body comprises an MCU (Micro Control Unit) and a GPRS (General Packet Radio Service) module electrically connected with the MCU, the MCU is provided with a first serial port and a second serial port, the first serial port and the second serial port are respectively and electrically connected with a computer and the GPRS module, the first serial port is provided with a first transmitting register, the second serial port is provided with a second transmitting register, a software module operates in the MCU, and data transmission between the first serial port and the second transmitting register and data transmission between the second serial port and the first transmitting register are achieved through the software module. The method can be realized easily and conveniently, the structure is simple, and external adverse factors that the GPRS module is in a signal blind area during upgrading and the machine needs to be removed, and the like can be effectively eliminated.
Description
Technical field
The present invention relates to a kind of car-mounted terminal serial ports bridge joint means of communication and system.
Background technology
Car-mounted terminal is the Vehicular device of multinomial functions such as a kind of integrated location, PERCOM peripheral communication, the record that goes; Fast development along with automobile industry; On more and more automobiles car-mounted terminal has been installed; Car-mounted terminal generally comprises one to be used to carry out the MCU (Micro Control Unit) of data processing and to be used for GPRS (the General Packet Radio Service) module with PERCOM peripheral communication, and this MCU and GPRS module generally are integrated in a mainboard and are installed in the casing.Yet, because the GPRS module do not have hardware to be connected with the outside, make the GPRS module can't be directly through the serial ports firmware of inside of upgrading, thereby when firmware upgrade, need dismantle with relevant installed module casing, process is extremely loaded down with trivial details; And the GPRS module also usually is subject to signal blind zone and causes communication disruption with extraneous wireless connections, can't obtain the data-signal of upgrading.
Summary of the invention
The objective of the invention is to, a kind of car-mounted terminal serial ports bridge joint means of communication are provided, realize simple and conveniently, be in signal blind zone in the time of effectively overcoming the GPRS module upgrade and need tear outside unfavorable factors such as machine open.
Another object of the present invention is to; A kind of car-mounted terminal serial ports bridge joint communication system is provided; It is simple in structure; Be in signal blind zone in the time of effectively overcoming the GPRS module upgrade and need tear outside unfavorable factors such as machine open, and reduced the quantity of car-mounted terminal outside lead, not only practice thrift cost but also reduced failure rate.
To achieve these goals, the present invention provides a kind of car-mounted terminal serial ports bridge joint means of communication, and it comprises the steps:
Second transmitter register of step 3, second serial produces interruption for sky, and the software module response is interrupted also the transmitter register that writes second serial from the data of first serial;
First transmitter register of step 5, first serial produces interruption for sky, and the software module response is interrupted also the transmitter register that writes first serial from the data of second serial.
In the said step 1, this MCU also has buffer zone.
In the said step 2, first serial is received data and produces interruption that the software module response is interrupted and reading of data arrives buffer zone; In the said step 3, second transmitter register of second serial produces interruption for sky, and the software module response is interrupted also the interior transmitter register that writes second serial from the data of first serial of buffer zone; In the said step 4, second serial is received data and produces interruption that the software module response is interrupted and sense data arrives buffer zone; In the said step 5, first transmitter register of first serial produces interruption for sky, and the software module response is interrupted also the interior transmitter register that writes first serial from the data of second serial of buffer zone.
The present invention also provides a kind of car-mounted terminal serial ports bridge joint communication system; It comprises: car-mounted terminal body and computing machine; This car-mounted terminal body comprises a MCU and the GPRS module that electrically connects with MCU; This MCU has corresponding respectively first serial and the second serial that electrically connects with computing machine and GPRS module, and first serial has first transmitter register, and second serial has second transmitter register; This MCU operation has software module, realizes the data penetration transmission between first serial and second transmitter register and the second serial and first transmitter register through software module.
Said MCU also is provided with a buffer zone, and this buffer zone is used for the data that temporary software module reads from first serial or second serial.
Said MCU is LPC2368.
Said GPRS module is Q2686.
Beneficial effect of the present invention: the present invention provides a kind of car-mounted terminal serial ports bridge joint means of communication and system; This method realizes simple and convenient; Be in signal blind zone in the time of effectively overcoming the GPRS module upgrade and need tear outside unfavorable factors such as machine open; And can not match through the speed between the alleviation equipment that is provided with of buffer zone, avoid unnecessary wait, improve plant factor; This system architecture is simple, is in signal blind zone in the time of effectively overcoming the GPRS module upgrade and need tears outside unfavorable factors such as machine open, and reduced the quantity of car-mounted terminal outside lead, not only practices thrift cost but also has reduced failure rate.
In order further to understand characteristic of the present invention and technology contents, see also following about detailed description of the present invention and accompanying drawing, yet accompanying drawing only provide reference and the explanation usefulness, be not to be used for the present invention is limited.
Description of drawings
Below in conjunction with accompanying drawing, describe in detail through specific embodiments of the invention, will make technical scheme of the present invention and other beneficial effect obvious.
In the accompanying drawing,
Fig. 1 is the schematic flow sheet of the car-mounted terminal serial ports bridge joint means of communication of the present invention;
Fig. 2 is the electrical block diagram of car-mounted terminal serial ports bridge joint communication system of the present invention;
Fig. 3 is the circuit theory diagrams of MCU;
Fig. 4 is the circuit theory diagrams of GPRS module.
Embodiment
Technological means and the effect thereof taked for further setting forth the present invention are described in detail below in conjunction with the preferred embodiments of the present invention and accompanying drawing thereof.
As shown in Figure 1, the present invention provides a kind of car-mounted terminal serial ports bridge joint means of communication, and it may further comprise the steps:
Second transmitter register of step 3, second serial produces interruption for sky, and the software module response is interrupted also the transmitter register that writes second serial from the data of first serial.
First transmitter register of step 5, first serial produces interruption for sky, and the software module response is interrupted also the transmitter register that writes first serial from the data of second serial.
Preferably, in the said step 1, this MCU also has buffer zone; In the said step 2, first serial is received data and produces interruption that the software module response is interrupted and reading of data arrives buffer zone; In the said step 3, second transmitter register of second serial produces interruption for sky, and the software module response is interrupted also the interior transmitter register that writes second serial from the data of first serial of buffer zone; In the said step 4, second serial is received data and produces interruption that the software module response is interrupted and sense data arrives buffer zone; In the said step 5, first transmitter register of first serial produces interruption for sky, and the software module response is interrupted also the interior transmitter register that writes first serial from the data of second serial of buffer zone.The data buffering process of this buffer zone is typical consumers and producers's model, can adopt fifo queue mechanism to realize.In addition,,, consider the race problem, can adopt the mode of switch interrupts to solve because this is typical " multithreading " program owing to adopt interrupt mechanism to drive this serial ports bridge joint process.
In addition; Shown in Fig. 2-4, the present invention also provides a kind of car-mounted terminal serial ports bridge joint communication system, and it comprises: car-mounted terminal body 10 and computing machine 30; This car-mounted terminal body 10 comprises a MCU12 and the GPRS module 14 that electrically connects with MCU12; This MCU12 has corresponding respectively first serial 121 and the second serial 122 that electrically connects with computing machine 30 and GPRS module 14, and first serial 121 has first transmitter register, and second serial 122 has second transmitter register; This MCU12 operation has software module, realizes the data penetration transmission between first serial 121 and second transmitter register and the second serial 122 and first transmitter register through software module.MCU12 of the present invention can adopt the LPC2368 of NXP company, and the GPRS module can adopt the Q2686 of WAVECOM company.
In addition, this MCU12 also is provided with a buffer zone, and this buffer zone is used for the data that temporary software module reads from first serial 121 or second serial 122.
In sum; The present invention provides a kind of car-mounted terminal serial ports bridge joint means of communication and system; This method realizes simple and convenient, is in signal blind zone in the time of effectively overcoming the GPRS module upgrade and need tears outside unfavorable factor such as machine open, and can not match through the speed between the alleviation equipment that is provided with of buffer zone; Avoid unnecessary wait, improve plant factor; This system architecture is simple, is in signal blind zone in the time of effectively overcoming the GPRS module upgrade and need tears outside unfavorable factors such as machine open, and reduced the quantity of car-mounted terminal outside lead, not only practices thrift cost but also has reduced failure rate.
The above for the person of ordinary skill of the art, can make other various corresponding changes and distortion according to technical scheme of the present invention and technical conceive, and all these changes and distortion all should belong to the protection domain of claim of the present invention.
Claims (7)
1. car-mounted terminal serial ports bridge joint means of communication is characterized in that, comprise the steps:
Step 1, a car-mounted terminal body is provided; It comprises a MCU and the GPRS module that electrically connects with MCU; This MCU has first serial and second serial, and first serial has first transmitter register, and second serial has second transmitter register; This MCU operation has software module, and this MCU electrically connects with an outer computer and GPRS module through first serial and second serial correspondence respectively;
Step 2, first serial are received data and produce interruption that the software module response is interrupted and sense data;
Second transmitter register of step 3, second serial produces interruption for sky, and the software module response is interrupted also the transmitter register that writes second serial from the data of first serial;
Step 4, second serial are received data and produce interruption that the software module response is interrupted and sense data;
First transmitter register of step 5, first serial produces interruption for sky, and the software module response is interrupted also the transmitter register that writes first serial from the data of second serial.
2. the car-mounted terminal serial ports bridge joint means of communication as claimed in claim 1 is characterized in that in the said step 1, this MCU also has buffer zone.
3. the car-mounted terminal serial ports bridge joint means of communication as claimed in claim 2 is characterized in that, in the said step 2, first serial is received data and produce interruption that the software module response is interrupted and reading of data arrives buffer zone; In the said step 3, second transmitter register of second serial produces interruption for sky, and the software module response is interrupted also the interior transmitter register that writes second serial from the data of first serial of buffer zone; In the said step 4, second serial is received data and produces interruption that the software module response is interrupted and sense data arrives buffer zone; In the said step 5, first transmitter register of first serial produces interruption for sky, and the software module response is interrupted also the interior transmitter register that writes first serial from the data of second serial of buffer zone.
4. car-mounted terminal serial ports bridge joint communication system; It is characterized in that; Comprise: car-mounted terminal body and computing machine, this car-mounted terminal body comprise a MCU and the GPRS module that electrically connects with MCU, and this MCU has corresponding respectively first serial and the second serial that electrically connects with computing machine and GPRS module; First serial has first transmitter register; Second serial has second transmitter register, and this MCU operation has software module, realizes the data penetration transmission between first serial and second transmitter register and the second serial and first transmitter register through software module.
5. car-mounted terminal serial ports bridge joint communication system as claimed in claim 4 is characterized in that said MCU also is provided with a buffer zone, and this buffer zone is used for the data that temporary software module reads from first serial or second serial.
6. car-mounted terminal serial ports bridge joint communication system as claimed in claim 4 is characterized in that said MCU is LPC2368.
7. car-mounted terminal serial ports bridge joint communication system as claimed in claim 4 is characterized in that said GPRS module is Q2686.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110251251.3A CN102323915B (en) | 2011-08-29 | 2011-08-29 | Vehicle-mounted terminal serial port bridging communication method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110251251.3A CN102323915B (en) | 2011-08-29 | 2011-08-29 | Vehicle-mounted terminal serial port bridging communication method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102323915A true CN102323915A (en) | 2012-01-18 |
CN102323915B CN102323915B (en) | 2015-04-22 |
Family
ID=45451659
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110251251.3A Active CN102323915B (en) | 2011-08-29 | 2011-08-29 | Vehicle-mounted terminal serial port bridging communication method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102323915B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1967599A (en) * | 2006-11-23 | 2007-05-23 | 深圳市赛格导航科技股份有限公司 | A real time monitoring system for vehicle state |
WO2009013762A1 (en) * | 2007-07-23 | 2009-01-29 | Icsa India Limited | Intelligent automatic meter reading system for collecting and managing data from metering devices |
CN201359734Y (en) * | 2008-12-25 | 2009-12-09 | 万向电动汽车有限公司 | Remote vehicle operation condition monitoring system |
CN201904923U (en) * | 2010-12-29 | 2011-07-20 | 利尔达科技有限公司 | GPRS data transmission module |
-
2011
- 2011-08-29 CN CN201110251251.3A patent/CN102323915B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1967599A (en) * | 2006-11-23 | 2007-05-23 | 深圳市赛格导航科技股份有限公司 | A real time monitoring system for vehicle state |
WO2009013762A1 (en) * | 2007-07-23 | 2009-01-29 | Icsa India Limited | Intelligent automatic meter reading system for collecting and managing data from metering devices |
CN201359734Y (en) * | 2008-12-25 | 2009-12-09 | 万向电动汽车有限公司 | Remote vehicle operation condition monitoring system |
CN201904923U (en) * | 2010-12-29 | 2011-07-20 | 利尔达科技有限公司 | GPRS data transmission module |
Also Published As
Publication number | Publication date |
---|---|
CN102323915B (en) | 2015-04-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109583271B (en) | Method, device and terminal for fitting lane line | |
CN107179950B (en) | Application process processing method, mobile terminal and computer readable storage medium | |
CN106843730A (en) | A kind of mobile terminal double screen changing method and mobile terminal | |
CN103493030A (en) | Enhancing vehicle infotainment systems by adding remote sensors from a portable device | |
US11722251B2 (en) | Data transmission method and device | |
WO2019052554A1 (en) | Method for reducing ue capability signalling structural content, and storage medium and mobile phone | |
CN109413726B (en) | Power consumption control method and mobile terminal | |
CN107632949A (en) | Data wire identification circuit, method and terminal | |
CN204578526U (en) | A kind of car-mounted terminal | |
CN110730017A (en) | Radio frequency device, control method thereof and terminal equipment | |
EP3671451B1 (en) | Method of automatically releasing resource occupied by background process of terminal, storage medium and terminal | |
CN111475072A (en) | Payment information display method and electronic equipment | |
CN106527666A (en) | Control method of central processing unit and terminal equipment | |
CN108200546B (en) | Data reporting method and device, mobile terminal and computer readable medium | |
CN106851737A (en) | A kind of method for sending upstream data, and terminal device | |
CN202262223U (en) | Vehicle terminal upgrading system | |
CN102323915A (en) | Vehicle-mounted terminal serial port bridging communication method and system | |
CN202600689U (en) | Core plate apparatus for vehicle-mounted intelligent system | |
CN203752996U (en) | Taxi empty-car and loaded-car pause signal transmitting device | |
CN112787769A (en) | Method, device, equipment and storage medium for determining NFI | |
CN202362671U (en) | Vehicle-mounted information terminal | |
CN108958816B (en) | Initialization method, device and electronic device | |
CN109886199B (en) | Information processing method and device, vehicle and mobile terminal | |
KR101514007B1 (en) | Method of changing setting of blackbox for vehicle using smartphone and blackbox for vehicle | |
CN103176929B (en) | The navigator of a kind of adaptive bus and non-bus vehicle and adaptation method thereof |
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 |