CN105049023B - GPS compass signal distributors - Google Patents
GPS compass signal distributors Download PDFInfo
- Publication number
- CN105049023B CN105049023B CN201510366158.5A CN201510366158A CN105049023B CN 105049023 B CN105049023 B CN 105049023B CN 201510366158 A CN201510366158 A CN 201510366158A CN 105049023 B CN105049023 B CN 105049023B
- Authority
- CN
- China
- Prior art keywords
- data
- circuit
- signal
- gps
- compass
- 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
Landscapes
- Position Fixing By Use Of Radio Waves (AREA)
Abstract
The present invention relates to a kind of GPS compass signals distributor, it is characterised in that:It includes microcontroller and the display circuit being connected on microcontroller and CPLD circuit, the CPLD circuit includes the input interface circuit and output interface circuit being connected on CPLD chips, the input interface circuit is used to receive the gps signal and compass signal come from GPS and compass equipment, the signal of matching CPLD incoming levels is transformed into respectively through level-conversion circuit, input CPLD chips, signal after the amplification of CPLD chips branch is transformed into level signal by level shifting circuit, is exported by output interface circuit.The present invention can compatible with GPS and compass signal input, export 16 tunnel branch amplified signals, possess remote network data transfer function, solve the incompatible input signal that independent GPS and compass amplifier be present, poor universality, data can not remote transmission the problem of.
Description
Technical field
The present invention relates to a kind of branch multiplying arrangement, 16 roads point are carried out to input GPS, compass signal more particularly, to one kind
The device of road amplification output, is related to electronic technology field.
Background technology
In Options of Ship Navigation, GPS and compass are widely used as two kinds of important navigating equipments, for accurate determination
The position and course of ship, vital effect is played to the navigation safety of ship.The output that GPS and compass equipment are provided connects
Mouth is less, in order to meet large number quipments to the demand of GPS and compass signal, it is necessary to install signal distributor, existing signal distribution
Device only carries out branch enhanced processing individually for gps signal or compass signal, no compatible with GPS and compass to believe simultaneously
Number input, versatility is poor.
The content of the invention
The technical problems to be solved by the invention be for above-mentioned prior art provide one kind can to input GPS, compass
Signal carries out 16 tunnel branch amplification outputs, allows hand over input signal source and the device of self-checking is carried out to output port, carry
High universalizable.
The present invention the used technical scheme that solves the above problems is:A kind of GPS compass signals distributor, it includes micro-
Controller and the display circuit being connected on microcontroller and CPLD circuit, the CPLD circuit, which includes, is connected to CPLD cores
Input interface circuit and output interface circuit on piece, the input interface circuit are used to receive what is from GPS and compass equipment come
Gps signal and compass signal, the signal of matching CPLD incoming levels is transformed into respectively through level-conversion circuit, inputs CPLD cores
Piece, the signal after the amplification of CPLD chips branch is transformed into level signal by level shifting circuit, passes through output interface electricity
Road is exported;From the output of CPLD chips, signal accesses microcontroller all the way, and microcontroller receives signal and simultaneously demodulates information needed, and
It is shown to by display circuit on LCDs.
The signal exported by output interface circuit is transformed into the letter of matching CPLD incoming levels by level shifting circuit
Number loopback input CPLD chips, for exporting self-checking.
The distributor includes the network communication circuit being connected with microcontroller, and signal distributor passes through network communication electricity
Road connects remote computer, and remote computer is sent to signal distributor by network communication circuit and ordered.
The distributor includes the key circuit being connected with microcontroller, passes through key circuit and display circuit and user
Interact and realize a variety of operations.
Compared with prior art, the advantage of the invention is that:
The present invention is a kind of GPS compass signals distributor, it can compatible with GPS and compass signal input, 16 can be exported
Road branch amplified signal, possesses remote network data transfer function, solves the input letter that independent GPS and compass amplifier are present
Number incompatible, poor universality, data can not remote transmission the problem of.
Brief description of the drawings
Fig. 1 is a kind of theory diagram of GPS compass signals distributor of the invention.
Fig. 2 is a kind of microcontroller circuit figure of GPS compass signals distributor of the invention.
Fig. 3 is a kind of liquid crystal display circuit figure of GPS compass signals distributor of the invention.
Fig. 4 is a kind of key circuit figure of GPS compass signals distributor of the invention.
Fig. 5 is a kind of CPLD circuit figure of GPS compass signals distributor of the invention.
Fig. 6 is a kind of input interface circuit figure of GPS compass signals distributor of the invention.
Fig. 7 is a kind of output interface circuit figure of GPS compass signals distributor of the invention.
Fig. 8 is a kind of network communication interface circuit diagram of GPS compass signals distributor of the invention.
Fig. 9 is a kind of power circuit diagram of GPS compass signals distributor of the invention.
Figure 10 is a kind of program flow diagram of GPS compass signals distributor of the invention.
Embodiment
The present invention is described in further detail below in conjunction with accompanying drawing embodiment.
As shown in figure 1, a kind of GPS compass signals distributor in the present embodiment, the operation principle of the signal distributor
It is:The signal come from GPS, compass equipment is inputted by GPS, compass signal input interface respectively, and the gps signal of input is RS-
232 level, the compass signal of input is RS-422 level, and the letter of matching CPLD incoming levels is transformed into by level-conversion circuit
Number, CPLD chips are inputted, 16 road signals is exported after the amplification of CPLD chips branch, RS- is transformed into by level shifting circuit
422 level signals, are exported by output interface, and output signal is transformed into matching CPLD input electricity by level shifting circuit simultaneously
Flat hoop is fed back into CPLD chips, for exporting self-checking.From the output of CPLD chips, signal accesses microcontroller all the way,
Microcontroller receives signal and demodulates the information such as longitude and latitude, UTC time or course, and liquid crystal display is shown to by display circuit
On screen.Signal distributor connects remote computer by network interface, and remote computer is by network interface to signal distributor
Send order, if obtaining data command, then microcontroller by the information demodulated according to the format conversion of regulation into network
Data, send from network interface.If presentation of information or parameter modification order, then microcontroller is returned by network interface
Return presentation of information or parameter changes WEB page data to remote computer.Microcontroller by key circuit and display circuit with
User is interacted, it is possible to achieve input signal switching, output port self-checking etc. are operated.
Referring to Fig. 2 ~ 9, the present invention relates to a kind of GPS compass signals distributor, the signal distributor includes microcontroller
Device and the button inputting circuits being connected on microcontroller, display circuit, CPLD circuit and network communication circuit, the CPLD
Circuit includes the input interface circuit and output interface circuit being connected on CPLD chips;
Referring to Fig. 2 ~ 3, the model ATMEGA328 of the microcontroller, the display circuit includes 128x64 dot matrix
LCD MODULE, PC0, PC1 and PB0 mouth of the microcontroller be respectively connected to the serial data of LCD MODULE, piece choosing,
Serial clock port;
Referring to Fig. 5, the CPLD circuit include CPLD chips and the input interface circuit that is connected on CPLD chips and
Output interface circuit, the CPLD chip models are EPM240T100C5, PD0 ~ PD7 mouth phases of CPLD chips and microcontroller
Even;
Referring to Fig. 6, the input interface circuit is constituted using MAX3232 and MAX481 serial ports transceiving chip, described
9 pin and 12 pin of MAX3232 chips are respectively connected to CPLD chips, and 8 pin and 13 pin of the MAX3232 chips are believed with GPS respectively
Number input interface is connected, the 1 pin access CPLD chips of the MAX481 chips, 6 pin and 7 pin of the MAX481 chips respectively with
Compass signal input interface is connected;
Referring to Fig. 7, the output interface circuit uses MAX481 serial ports transceiving chips, 1 pin and 4 of the MAX481 chips
Pin is respectively connected to CPLD chips, and 6 pin and 7 pin of the MAX481 serial port communication chips are connected with signal output interface respectively;
Referring to Fig. 8, the network communication circuit includes ENC28J60 network communications chip and with network isolation transformer
Network socket, the model HR911115A of the network socket, 6 ~ 9 pin of the ENC28J60 chips are respectively connected to micro-control
PB4, PB3, PB5 and PB2 mouth of device processed, 12,13,16 pin of the ENC28J60 chips and 17 pin respectively with network socket 6,
3rd, 2,1 pin is connected;
Referring to Fig. 4, the signal distributor also includes four film key circuits, the key circuit include four by
Button, one end of four buttons is connected with PC2 ~ PC5 mouths of microcontroller respectively, other end ground connection, and in parallel on four buttons
There is electric capacity;
Referring to Fig. 9, the signal distributor also includes power circuit, and the power circuit is constituted using voltage stabilizing chip,
The voltage stabilizing chip model AMS1117-3.3.
Referring to Figure 10, a kind of microcontroller built-in type software of GPS compass signals distributor of the invention using C language and
Protothreads multithreadings are designed, and program flow diagram is as shown in Figure 10.Program carries out various initialization first, including with
Put LCD liquid crystal displays control port, Key pad port, CPLD control ports of microcontroller etc., initialization course, longitude, latitude,
The fixed characters such as unit, the separator of the variables such as UTC time, initialize serial port setting, read input option and installment parameter, initially
Change input related CPLD control ports, serial port baud rate etc., read the parameters such as network related IP address, MAC Address, initially
Change network control chip, start network service, initialize network service port, initialize LCD display module, display starts letter
Breath, delay enters the data display page after 2 seconds, initialization thread beat is opened global interrupt and enabled, initializes network processes line
Journey, automatically data display thread, test thread, menu processing thread, serial ports receiving thread and serial ports transmission thread.It is more than completion
After initial work, program enters Infinite Cyclic, in Infinite Cyclic successively operational network processing thread, data display thread,
Automatic test thread, menu processing thread, serial ports receiving thread and serial ports send thread.Network processes thread is waited until network interface card
Data are received, network card data and Match IP Address is read, the processing of the packets such as ARP, ICMP are then carried out, if received
Packet request containing UDP then judge whether UDP request commands correct, the transmission reply data bag if order is correct.If
The packet received is asked for WEB, then packet is parsed, software only handles GET request, is sent out according to the result of parsing
Send out mistake, data display, parameter setting, input error, data and preserve the different WEB page such as successfully.Data display thread etc.
The data display page to be entered, updates corresponding display data, if no data in the data display page if data update
Input then shows that no data inputs prompt message.Self-checking thread waits self-checking to start, and then sets test baud rate,
Output control signal switches each port successively, by sending fixed data to serial ports and receiving the side that data are compared with loopback
Method detects port status, if send the data received it is consistent if port it is normal, otherwise port failure, stops after the completion of test
Self-checking simultaneously recovers input setting and baud rate.Menu management thread dispatching button detects sub-line journey and waits button detection
Thread is exited, and then preserves the current set of menu index functions, is determined by key assignments in being upwarding key, down Arrow, acknowledgement key, return key
Which button press, update respective keys actions menu index functions, call and hold by new menu index functions
Line function.Button detects the self-checking patterns to be retired such as sub-line journey and has button to press, and key assignments is preserved when there is button to press,
Key assignments is read after delay 50ms, key assignments is effective if the key assignments of second of reading is equal with the key assignments preserved, if key assignments has
Effect then waits button release, and then thread is exited.Serial ports receiving thread first judges it is to receive any data, if receiving sieve
Then waited through data and receive flag of frame, receive after flag of frame it is continuous receive a frame data, if data effectively if demodulate
Course information is used to show, then generates and send data frame.Frame head is received if receiving gps data and then waiting, is received
Four frame data specified continuously are received after frame head mark, and demodulate the information such as longitude, latitude, UTC time is used to show, then
Generation sends data frame.Serial ports sends thread and first judges it is to send any data, if it is then etc. pending to send compass data
Mark is sent, a frame compass data is then sent.If sending the gps data mark to be sent such as then, four frames are then sent successively
Gps data.
In addition to the implementation, present invention additionally comprises have other embodiment, all use equivalent transformation or equivalent replacements
The technical scheme that mode is formed, all should fall within the scope of the hereto appended claims.
Claims (4)
1. a kind of GPS compass signals distributor, it is characterised in that:It includes microcontroller and is connected on microcontroller
Display circuit and CPLD circuit, the CPLD circuit include the input interface circuit and output interface being connected on CPLD chips
Circuit, the input interface circuit is used to receive the gps signal and compass signal come from GPS and compass equipment, respectively through electricity
Flat translation circuit is transformed into the signal of matching CPLD incoming levels, inputs CPLD chips, after the amplification of CPLD chips branch
Signal is transformed into level signal by level shifting circuit, is exported by output interface circuit;Believe all the way from the output of CPLD chips
Number access microcontroller, microcontroller receives signal and simultaneously demodulates information needed, and is shown to liquid crystal display by display circuit
On screen, microcontroller includes network process module, data disaply moudle, automatic test module, menu processing module, serial ports and received
Module and serial ports sending module,
Network process module is waited until network interface card receives data, is read network card data and is matched IP address, then carries out various
The processing of packet, judges whether UDP request commands are correct, if order if the packet received is containing UDP requests
Correct then transmission reply data bag;If the packet received is asked for WEB, packet is parsed, software is only located
GET requests are managed, the different WEB pages are sent according to the result of parsing;
Data disaply moudle, which is waited, enters the data display page, updates corresponding aobvious if data update in the data display page
Registration evidence, shows that no data inputs prompt message if no data is inputted;
Automatic test module waits self-checking to start, and then sets test baud rate, and output control signal switches each end successively
Mouthful, port status is detected by the method for sending fixed data to serial ports and being compared with loopback reception data, if hair
Send the consistent then port of data of reception normal, otherwise port failure, stop self-checking after the completion of test and recover input to set
And baud rate;
Menu processing module calls button to detect sub-line journey and waits button to detect that sub-line journey is exited, and then preserves the current set of menu letter
Number index, determines it is which button in upwarding key, down Arrow, acknowledgement key, return key is pressed, renewal is accordingly pressed by key assignments
The actions menu index functions of key, are called by new menu index functions and perform function;Button detection sub-line journey, which is waited, moves back
Go out Autonomous test die trial formula and there is button to press, key assignments is read after key assignments, delay 50ms are preserved when there is button to press, if the
The key assignments of secondary reading and the equal then key assignments of key assignments that preserves effectively, if key assignments effectively if wait button release, then thread
Exit;
Serial ports receiving module first judges it is to receive any data, and flag of frame is received if receiving compass data and then waiting,
Receive after flag of frame it is continuous receive a frame data, if data effectively if demodulate course information and be used to show, then generate
Send data frame;Frame head is received if receiving GPS data and then waiting, receives what continuous reception after frame head mark was specified
Four frame data, and various information are demodulated for showing, then generation sends data frame;
Serial ports sending module first judges it is to send any data, if sending the compass data mark to be sent such as then, then
Send a frame compass data;If sending the GPS data mark to be sent such as then, four frame GPS data are then sent successively.
2. a kind of GPS compass signals distributor according to claim 1, it is characterised in that:It is defeated by output interface circuit
The hoop that the signal gone out is transformed into matching CPLD incoming levels by level shifting circuit is fed back into CPLD chips, for exporting
Self-checking.
3. a kind of GPS compass signals distributor according to claim 1 or 2, it is characterised in that:The distributor includes
The network communication circuit being connected with microcontroller, signal distributor connects remote computer, long-range meter by network communication circuit
Calculation machine is sent to signal distributor by network communication circuit and ordered.
4. a kind of GPS compass signals distributor according to claim 1 or 2, it is characterised in that:The distributor includes
The key circuit being connected with microcontroller, is interacted with user by key circuit and display circuit and realizes a variety of operations.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510366158.5A CN105049023B (en) | 2015-06-29 | 2015-06-29 | GPS compass signal distributors |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510366158.5A CN105049023B (en) | 2015-06-29 | 2015-06-29 | GPS compass signal distributors |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105049023A CN105049023A (en) | 2015-11-11 |
CN105049023B true CN105049023B (en) | 2017-09-26 |
Family
ID=54455262
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510366158.5A Expired - Fee Related CN105049023B (en) | 2015-06-29 | 2015-06-29 | GPS compass signal distributors |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105049023B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2697665Y (en) * | 2003-12-30 | 2005-05-04 | 梁保山 | Moveable automatic satellite tracking controller |
CN102723943A (en) * | 2012-06-06 | 2012-10-10 | 瑞斯康达科技发展股份有限公司 | CPLD (complex programmable logic device) and method for implementing signal level conversion |
CN203084204U (en) * | 2013-02-21 | 2013-07-24 | 中国水产科学研究院东海水产研究所 | Low-cost ship compass |
US20140228050A1 (en) * | 2008-05-13 | 2014-08-14 | At&T Mobility Ii Llc | Location-based services in a femtocell network |
CN203838340U (en) * | 2014-01-17 | 2014-09-17 | 成都天奥信息科技有限公司 | Ship positioning monitoring system based on continuous pilot wave radar |
-
2015
- 2015-06-29 CN CN201510366158.5A patent/CN105049023B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2697665Y (en) * | 2003-12-30 | 2005-05-04 | 梁保山 | Moveable automatic satellite tracking controller |
US20140228050A1 (en) * | 2008-05-13 | 2014-08-14 | At&T Mobility Ii Llc | Location-based services in a femtocell network |
CN102723943A (en) * | 2012-06-06 | 2012-10-10 | 瑞斯康达科技发展股份有限公司 | CPLD (complex programmable logic device) and method for implementing signal level conversion |
CN203084204U (en) * | 2013-02-21 | 2013-07-24 | 中国水产科学研究院东海水产研究所 | Low-cost ship compass |
CN203838340U (en) * | 2014-01-17 | 2014-09-17 | 成都天奥信息科技有限公司 | Ship positioning monitoring system based on continuous pilot wave radar |
Also Published As
Publication number | Publication date |
---|---|
CN105049023A (en) | 2015-11-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103136138B (en) | Chip, chip debugging method and communication method for chip and external devices | |
CN102967815B (en) | Chip testing method, automated testing equipment and system | |
CN104954198B (en) | A kind of transformer station process layer switch state monitoring apparatus and method | |
CN101877659B (en) | Method, device and system for monitoring packet loss | |
CN101594222A (en) | A kind of interface test method and device | |
CN106843091A (en) | The CAN test system and method for testing of comprehensive cable tester | |
CN207083085U (en) | A kind of multi-standard data radio station system | |
CN105653410A (en) | Device and method based on printing and outputting of debugging information of Phytium platform, and computer | |
CN105049023B (en) | GPS compass signal distributors | |
CN200989927Y (en) | Long-distance digital nuclear phase system | |
CN108664443A (en) | Data communication synchronous method and system | |
CN107070746A (en) | A kind of comprehensive cable tester and its method of testing | |
CN102006223B (en) | Data transmission method, device and system between cards, board card and distributed system | |
CN206671447U (en) | A kind of 1553B bus testing systems of comprehensive cable tester | |
CN206759478U (en) | A kind of network switch system | |
CN206805761U (en) | A kind of data transmission device with master and slave wireless module | |
CN204087151U (en) | A kind of external assembly being exclusively used in touch display unit | |
CN207589072U (en) | Applied to Tb/s grades of optical network signal switching equipment | |
CN106921807B (en) | A kind of telephone operation machine system and its self checking method | |
CN106385642A (en) | Interface device for Internet VHF frequency-range frequency hopping radio set testing equipment calibration platform | |
CN107370516A (en) | Method, terminal device and the computer-readable recording medium of wireless telecommunications | |
CN107154824B (en) | Vehicle-mounted wireless data transmission device detection equipment | |
CN108089952A (en) | A kind of automated test device | |
CN208043430U (en) | A kind of detection device of bimodulus train tail host | |
CN204794964U (en) | GPS compass signal distribution ware |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20170926 Termination date: 20180629 |
|
CF01 | Termination of patent right due to non-payment of annual fee |