CN105049023A - Gps compass signal distributor - Google Patents

Gps compass signal distributor Download PDF

Info

Publication number
CN105049023A
CN105049023A CN201510366158.5A CN201510366158A CN105049023A CN 105049023 A CN105049023 A CN 105049023A CN 201510366158 A CN201510366158 A CN 201510366158A CN 105049023 A CN105049023 A CN 105049023A
Authority
CN
China
Prior art keywords
circuit
signal
gps
cpld
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.)
Granted
Application number
CN201510366158.5A
Other languages
Chinese (zh)
Other versions
CN105049023B (en
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.)
PLA 63698 ARMY
Original Assignee
PLA 63698 ARMY
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 PLA 63698 ARMY filed Critical PLA 63698 ARMY
Priority to CN201510366158.5A priority Critical patent/CN105049023B/en
Publication of CN105049023A publication Critical patent/CN105049023A/en
Application granted granted Critical
Publication of CN105049023B publication Critical patent/CN105049023B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention relates to a GPS compass signal distributor. The GPS compass signal distributor is characterized by comprising a microcontroller, and a display circuit and a CPLD circuit which are connected with the microcontroller, wherein the CPLD circuit comprises an input interface circuit and an output interface circuit which are connected with a CPLD chip, the input interface circuit is used to receive the GPS signals and the compass signals coming from a GPS and a compass device respectively, converts the received signals into the signals matching the CPLD input levels respectively via a level conversion circuit and input the signals to the CPLD chip, and the signals shunted and amplified by the CPLD chip are converted into the level signals via the level conversion circuit and are outputted by the output interface circuit. The GPS compass signal distributor of the present invention is compatible with the GPS and compass signal input, can output 16 shunt and amplification signals, possesses a remote network data transmission function, and solves the problems that the input signals of the independent GPS and a compass amplifier are not compatible, the versatility is poor, and the data can not be transmitted remotely.

Description

GPS compass signal distributor
Technical field
The present invention relates to one multiplying arrangement along separate routes, especially relate to a kind of to the device inputting GPS, compass signal carries out 16 tunnels shunt amplification outputs, relate to electronic technology field.
Background technology
In Options of Ship Navigation, GPS and compass are widely used as two kinds of important navigating equipments, are used for accurately determining position and the course of boats and ships, play vital effect to the navigation safety of boats and ships.The output interface that GPS and compass equipment provide is less, in order to meet the demand of large number quipments to GPS and compass signal, need signal distributor is installed, existing signal distributor only has and separately carries out amplifying along separate routes process for gps signal or compass signal, not having can simultaneously compatible with GPS and compass signal input, and versatility is poor.
Summary of the invention
Technical problem to be solved by this invention provides one can carry out 16 tunnels to input GPS, compass signal for above-mentioned prior art to amplify output along separate routes, can switched input signal source and output port is carried out to the device of self-checking, improves versatility.
The present invention's adopted technical scheme that solves the problem is: a kind of GPS compass signal distributor, it includes microcontroller and the display circuit that is connected on microcontroller and CPLD circuit, described CPLD circuit includes and is connected to input interface circuit on CPLD chip and output interface circuit, described input interface circuit is for receiving the gps signal that comes from GPS and compass equipment and compass signal, the signal of coupling CPLD incoming level is transformed into respectively through level-conversion circuit, input CPLD chip, signal after CPLD chip amplifies along separate routes is transformed into level signal through level shifting circuit, exported by output interface circuit, export a road signal access microcontroller from CPLD chip, microcontroller Received signal strength also demodulates information needed, and is shown in LCDs by display circuit.
The hoop that the signal exported by output interface circuit is transformed into coupling CPLD incoming level through level shifting circuit is fed back into CPLD chip, for exporting self-checking.
Described distributor includes the network communication circuit be connected with microcontroller, and signal distributor connects remote computer by network communication circuit, and remote computer sends order by network communication circuit to signal distributor.
Described distributor includes the key circuit be connected with microcontroller, realizes multiple operation alternately by key circuit and display circuit and user.
Compared with prior art, the invention has the advantages that:
The present invention is a kind of GPS compass signal distributor, it can compatible with GPS and compass signal input, 16 tunnels amplifying signal along separate routes can be exported, possess remote network data transfer function, solve that the input signal that independent GPS and compass amplifier exist is incompatible, poor universality, data cannot the problems of remote transmission.
Accompanying drawing explanation
Fig. 1 is the theory diagram of a kind of GPS compass signal of the present invention distributor.
Fig. 2 is the microcontroller circuit figure of a kind of GPS compass signal of the present invention distributor.
Fig. 3 is the liquid crystal display circuit figure of a kind of GPS compass signal of the present invention distributor.
Fig. 4 is the key circuit figure of a kind of GPS compass signal of the present invention distributor.
Fig. 5 is the CPLD circuit figure of a kind of GPS compass signal of the present invention distributor.
Fig. 6 is the input interface circuit figure of a kind of GPS compass signal of the present invention distributor.
Fig. 7 is the output interface circuit figure of a kind of GPS compass signal of the present invention distributor.
Fig. 8 is the network communication interface circuit diagram of a kind of GPS compass signal of the present invention distributor.
Fig. 9 is the power circuit diagram of a kind of GPS compass signal of the present invention distributor.
Figure 10 is the program flow diagram of a kind of GPS compass signal of the present invention distributor.
Embodiment
Below in conjunction with accompanying drawing embodiment, the present invention is described in further detail.
As shown in Figure 1, a kind of GPS compass signal distributor in the present embodiment, the operation principle of described signal distributor is: from GPS, the signal that compass equipment comes is respectively by GPS, compass signal input interface inputs, the gps signal of input is RS-232 level, the compass signal of input is RS-422 level, the signal of coupling CPLD incoming level is transformed into through level-conversion circuit, input CPLD chip, 16 road signals are exported after CPLD chip amplifies along separate routes, RS-422 level signal is transformed into through level shifting circuit, exported by output interface, the hoop that output signal is transformed into coupling CPLD incoming level through level shifting circuit is simultaneously fed back into CPLD chip, for exporting self-checking.Export a road signal access microcontroller from CPLD chip, microcontroller Received signal strength also demodulates the information such as longitude and latitude, UTC time or course, is shown in LCDs by display circuit.Signal distributor connects remote computer by network interface, remote computer sends order by network interface to signal distributor, if acquisition data command, then the information demodulated is become network data according to the format conversion of regulation by microcontroller, sends from network interface.If information displaying or parameter modification order, then microcontroller shown by network interface return information or parameter modification WEB page data to remote computer.Microcontroller is undertaken alternately by key circuit and display circuit and user, can realize the operations such as input signal switching, output port self-checking.
See Fig. 2 ~ 9, the present invention relates to a kind of GPS compass signal distributor, described signal distributor includes microcontroller and is connected to button inputting circuits, display circuit, CPLD circuit and the network communication circuit on microcontroller, and described CPLD circuit includes and is connected to input interface circuit on CPLD chip and output interface circuit;
See Fig. 2 ~ 3, the model of described microcontroller is ATMEGA328, described display circuit includes 128x64 dot matrix lcd module, and PC0, PC1 and PB0 mouth of described microcontroller accesses the serial data of LCD MODULE, sheet choosing, serial clock port respectively;
See Fig. 5, described CPLD circuit includes CPLD chip and the input interface circuit be connected on CPLD chip and output interface circuit, and described CPLD chip model is that EPM240T100C5, CPLD chip is connected with PD0 ~ PD7 mouth of microcontroller;
See Fig. 6, described input interface circuit adopts MAX3232 and MAX481 serial ports transceiving chip composition, 9 pin and 12 pin of described MAX3232 chip access CPLD chip respectively, 8 pin of described MAX3232 chip are connected with gps signal input interface respectively with 13 pin, 1 pin access CPLD chip of described MAX481 chip, 6 pin of described MAX481 chip are connected with compass signal input interface respectively with 7 pin;
See Fig. 7, described output interface circuit adopts MAX481 serial ports transceiving chip, and 1 pin and 4 pin of described MAX481 chip access CPLD chip respectively, and 6 pin of described MAX481 serial port communication chip are connected with signal output interface respectively with 7 pin;
See Fig. 8, described network communication circuit includes the network socket of ENC28J60 network communication chip and band network isolation transformer, the model of described network socket is HR911115A, 6 ~ 9 pin of described ENC28J60 chip access PB4, PB3, PB5 and PB2 mouth of microcontroller respectively, and 12,13,16 pin of described ENC28J60 chip are connected with 6,3,2,1 pin of network socket respectively with 17 pin;
See Fig. 4, described signal distributor also includes four film key circuit, and described key circuit includes four buttons, and one end of four buttons is connected with PC2 ~ PC5 mouth of microcontroller respectively, other end ground connection, and four buttons are all parallel with electric capacity;
See Fig. 9, described signal distributor also includes power circuit, and described power circuit adopts voltage stabilizing chip to form, and described voltage stabilizing chip model is AMS1117-3.3.
See Figure 10, the microcontroller built-in type software of a kind of GPS compass signal of the present invention distributor adopts C language and the design of Protothreads multithreading, and program flow diagram as shown in Figure 10.First program carries out various initialization, comprise the LCD liquid crystal display control port of configuration microcontroller, Key pad port, CPLD control port etc., initialization course, longitude, latitude, the unit of the variablees such as UTC time, the fixed character such as separator, initialization serial port setting, read input selection configuration parameter, the CPLD control port that initialization input is relevant, serial port baud rate etc., read the IP address that network is relevant, the parameters such as MAC Address, initialization network control chip, start network service, initialization network service port, initialization LCD display module, display log-on message, time delay entered data display page after 2 seconds, initialization thread beat, unlatching global interrupt is enable, initialization network processes thread, data display thread, automatic test thread, menu processing threads, serial ports receiving thread and serial ports send thread.After completing above initial work, program enters Infinite Cyclic, and in Infinite Cyclic, operational network processing threads, data show thread, automatically test thread, menu processing threads, serial ports receiving thread and serial ports transmission thread successively.Network processes thread waits is until network interface card receives data, read network card data and Match IP Address, then carry out the process of the packets such as ARP, ICMP, if the packet received is containing UDP request, judges that whether UDP request command is correct, if order is correct, send reply data bag.If the packet received is WEB request, then resolve packet, software only processes GET request, send according to the result of resolving make mistakes, data display, optimum configurations, input error, data preserve successfully etc. different WEB page.Data display thread waits enters data display page, if in data display page Data Update, upgrade and show data accordingly, if countless according to input, display is without data entry prompts information.Self-checking thread waits self-checking starts, then test baud rate is set, export control signal and switch each port successively, detection port state is carried out by sending fixed data to serial ports and receiving the method that data compare with loopback, if the data consistent of transmission and reception, port is normal, otherwise port failure, has tested rear stopping self-checking and has recovered input arranging and baud rate.Menu management thread dispatching button detects sub-thread and waits for that button detects sub-thread and exits, then the current set of menu index functions is preserved, which button determined in upwarding key, down Arrow, acknowledgement key, return key by key assignments is pressed, upgrade the actions menu index functions of respective keys, call by new menu index functions and perform function.Button detects sub-thread waits and exits self-checking pattern and have button to press, preserving key assignments when there being button to press, reading key assignments after time delay 50ms, if the key assignments that second time reads is equal with the key assignments of preservation, key assignments is effective, if key assignments effectively, wait for button release, then thread exits.Serial ports receiving thread first judges it is receive any data, if receive compass data then wait-receiving mode to flag of frame, receive frame data continuously after receiving flag of frame, if data effectively, demodulate course information for display, then generate and send Frame.If receive gps data then wait-receiving mode to frame head, after receiving frame head mark, receives four frame data of specifying continuously, and demodulate the information such as longitude, latitude, UTC time for show, then generation transmission Frame.Serial ports sends thread and first judges it is send any data, if send the compass data mark to be sent such as then, then sends frame compass data.If send the gps data mark to be sent such as then, then send four frame gps datas successively.
In addition to the implementation, the present invention also includes other execution modes, the technical scheme that all employing equivalents or equivalent substitute mode are formed, within the protection range that all should fall into the claims in the present invention.

Claims (4)

1. a GPS compass signal distributor, it is characterized in that: it includes microcontroller and the display circuit that is connected on microcontroller and CPLD circuit, described CPLD circuit includes and is connected to input interface circuit on CPLD chip and output interface circuit, described input interface circuit is for receiving the gps signal that comes from GPS and compass equipment and compass signal, the signal of coupling CPLD incoming level is transformed into respectively through level-conversion circuit, input CPLD chip, signal after CPLD chip amplifies along separate routes is transformed into level signal through level shifting circuit, exported by output interface circuit, export a road signal access microcontroller from CPLD chip, microcontroller Received signal strength also demodulates information needed, and is shown in LCDs by display circuit.
2. a kind of GPS compass signal distributor according to claim 1, it is characterized in that: the hoop that the signal exported by output interface circuit is transformed into coupling CPLD incoming level through level shifting circuit is fed back into CPLD chip, for exporting self-checking.
3. a kind of GPS compass signal distributor according to claim 1 and 2, it is characterized in that: described distributor includes the network communication circuit be connected with microcontroller, signal distributor connects remote computer by network communication circuit, and remote computer sends order by network communication circuit to signal distributor.
4. a kind of GPS compass signal distributor according to claim 1 and 2, is characterized in that: described distributor includes the key circuit be connected with microcontroller, realizes multiple operation alternately by key circuit and display circuit and user.
CN201510366158.5A 2015-06-29 2015-06-29 GPS compass signal distributors Expired - Fee Related CN105049023B (en)

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 true CN105049023A (en) 2015-11-11
CN105049023B 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)

* Cited by examiner, † Cited by third party
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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
CN105049023B (en) 2017-09-26

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
CN204807959U (en) Wearable equipment, electric tool and electric tool system
JPS605646A (en) Multiplexer
CN102929824A (en) System for multiplexing USB (Universal Serial Bus) interface transmission data
CN205538070U (en) Electronic equipment and detecting system entries thereof
CN108761499A (en) A kind of test system and method for the spaceborne GNSS receiver operation on orbit of simulation
CN104820644A (en) Non-time-sharing port multiplexing method and device
CN201007739Y (en) Beidou and GPS navigation information syncretizing machine
CN103401738B (en) A kind of method and device connecting terminal
CN105049023A (en) Gps compass signal distributor
CN200989927Y (en) Long-distance digital nuclear phase system
CN102829803B (en) Inertial navigation equipment and turntable synchronous testing device
CN206725984U (en) time terminal
CN204794964U (en) GPS compass signal distribution ware
CN109407119A (en) Round-the-clock highly reliable navigation neceiver test method based on multiple source simulation
CN214154524U (en) Airborne short-wave radio station comprehensive tester and system
CN108288366A (en) Infrared and radio number passes detector
CN106921807B (en) A kind of telephone operation machine system and its self checking method
CN103685043A (en) Router, network connection recovery system and network connection recovery method
CN205507097U (en) Monitoring device searches for ands rescue based on big dipper
CN205507093U (en) Search and rescue system based on big dipper
CN107154824B (en) Vehicle-mounted wireless data transmission device detection equipment
CN206533367U (en) A kind of bull-dozer long-distance monitorng device based on Beidou satellite communication
CN215833022U (en) Portable detector of unmanned crossing alarm device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
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: 20170926

Termination date: 20180629