NAVTEX four-wire audio line switching system based on single-chip microcomputer control
The NAVTEX four-wire audio line switching system based on single-chip microcomputer control solves the problem that the NAVTEX system cannot remotely control line switching and monitor signal quality in real time, and realizes system automation and efficient communication.
Patent Information
- Application Number
- CN202511060350.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-30
- Publication Date
- 2025-10-17
AI Technical Summary
The existing NAVTEX system is unable to remotely control line switching, store and query connection status, or monitor the quality of input and output signals in real time, making it unable to meet the communication needs of modern shipping.
A NAVTEX four-wire audio line switching system based on single-chip microcomputer control is designed. It includes a command terminal, a serial port control module, a single-chip microcomputer control module, a status storage module, a control signal monitoring module, a line switching module, a NAVTEX signal input module, and a NAVTEX signal output module. The single-chip microcomputer control module is used to realize remote transmission of line switching commands and status query, and the signal monitoring module is combined to realize real-time signal quality monitoring.
It realizes remote line switching, connection status storage and query of the NAVTEX system, improves line switching speed, reduces labor costs and failure rate, and meets the communication needs of modern shipping.
Smart Images

Figure CN120802786A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of maritime safety communication, and in particular to a NAVTEX four-wire audio line switching system based on single-chip microcomputer control. BACKGROUND
[0002] The NAVTEX system is a global automated medium frequency (MF) radio communication system for broadcasting maritime safety information (MSI). It is jointly developed by the International Maritime Organization (IMO) and the International Telecommunication Union (ITU) to provide ships with navigation warnings, weather forecasts, search and rescue information and other emergency information.
[0003] The current equipment used by the NAVTEX system is a dedicated four-wire audio analog signal, which is not a standard general-purpose device. The NAVTEX line switching usually adopts a manual jumper mode. When it is necessary to switch the line (such as switching to a backup transmitter when the main transmitter fails, replacing an antenna, or adjusting the frequency), the technician needs to manually plug in or reconnect the jumper to change the signal path. However, the manual jumper mode usually has the following problems: 1. The technician needs to adjust the jumper on site, and the manual operation is slow, which cannot quickly respond to sudden needs to realize remote control of line switching, and the efficiency is low. 2. The line cannot be switched remotely or automatically, which is difficult to adapt to dynamic needs (such as temporarily adding a broadcast frequency or switching a backup line), and the system has poor expandability and insufficient flexibility. 3. Manual jumpering is purely a physical operation, and the system cannot sense the change in the jumper connection state (for example, which line is currently active), and cannot store and query the connection state. 4. NAVTEX uses 4-wire analog audio signals (non-digital signals), which require additional equipment (such as an ADC analog-to-digital converter) for quantitative analysis. The original system does not integrate real-time monitoring circuits (such as power meters and error rate detection modules), and cannot monitor the input / output signal quality in real time. The above problems result in the NAVTEX system being unable to meet the growing communication needs and being difficult to match modern shipping. SUMMARY
[0004] The present application provides a NAVTEX four-wire audio line switching system based on single-chip microcomputer control to overcome the technical problems of the existing NAVTEX system that cannot realize remote control of line switching, cannot store and query the connection state, and cannot monitor the input and output signal quality in real time.
[0005] To achieve the above purpose, the technical solution of the present application is: A kind of NAVTEX four-line audio line switching system based on single-chip microcomputer control, including: instruction terminal, serial port control module, single-chip microcomputer control module, state storage module, control signal monitoring module, line switching module, NAVTEX signal input module, NAVTEX signal output module and first / second signal monitoring module; The instruction terminal is used to send line switching instruction and state query instruction of specified line to single-chip microcomputer control module according to actual demand by serial port control module, and receives state result returned by single-chip microcomputer control module by serial port control module;The single-chip microcomputer control module is used to send line switching instruction of specified line to line switching module, send state query instruction to state storage module, and send monitoring instruction to control signal monitoring module;The state storage module is used to store the data information of current line connection state and return storage result to single-chip microcomputer control module according to state query instruction;The control signal monitoring module is used to monitor whether line switching instruction sent by single-chip microcomputer control module is successfully sent, and if not, feedback to single-chip microcomputer control module, and reissue instruction by single-chip microcomputer control module to instruction terminal;The line switching module is used to switch specified NAVTEX transmission line according to received line switching instruction;The NAVTEX signal input module and NAVTEX signal output module are used for NAVTEX signal input and output;First signal monitoring module and second signal monitoring module respectively amplify NAVTEX signal input by NAVTEX signal input module and NAVTEX signal output by NAVTEX signal output module and output through external sound box, and monitor signal quality through external sound box; The output end of instruction terminal is connected with the input end of serial port control module, and the output end of serial port control module is connected with the input end of single-chip microcomputer control module;The output end of single-chip microcomputer control module is connected with the input end of state storage module, line switching module and control signal monitoring module respectively;The output end of control signal monitoring module is connected with the input end of single-chip microcomputer control module;The input end of NAVTEX signal input module receives external NAVTEX audio signal, and the output end is connected with the input end of line switching module and first signal monitoring module respectively;The output end of line switching module is connected with the input end of NAVTEX signal output module;The output end of NAVTEX signal output module is connected with the input end of second signal monitoring module, and outputs NAVTEX audio signal to external environment.
[0006] Further, the line switching module includes single-chip microcomputer, a shift register chip and four switch chips; Single-chip microcomputer is connected with shift register chip and four switch chips respectively, and single-chip microcomputer inputs clock signal, data signal and latch signal to shift register chip; The shift register chip is connected with four switch chips respectively, the shift register chip converts the input clock signal, data signal and latch signal from serial data into parallel data, and synchronously outputs to the four switch chips, thereby synchronously completing the transmission of the NAVTEX audio signal.
[0007] Further, the model of the single-chip microcomputer is STC89C52RC single-chip microcomputer, the model of the shift register chip is 74HC595N chip, and the model of the switch chip is MT8816AE switch chip. The P1.2 pin of the single-chip microcomputer STC89C52RC is connected with the SER pin of the 74HC595N chip, the P1.5 pin of the single-chip microcomputer STC89C52RC is connected with the SRCLK pin of the 74HC595N chip, the P1.4 pin of the single-chip microcomputer STC89C52RC is connected with the RCLK pin of the 74HC595N chip, the P1.3 pin of the single-chip microcomputer STC89C52RC is connected with the RESET pin of the four MT8816AE switch chips, the P1.6 pin of the single-chip microcomputer STC89C52RC is connected with the STROBE pin of the four MT8816AE switch chips, and the P1.7 pin of the single-chip microcomputer STC89C52RC is connected with the CS pin of the four MT8816AE switch chips. The QA pin of the 74HC595N chip is connected with the AX0 pin of the four MT8816AE switch chips, the QB pin of the 74HC595N chip is connected with the AX1 pin of the four MT8816AE switch chips, the QC pin of the 74HC595N chip is connected with the AX2 pin of the four MT8816AE switch chips, the QD pin of the 74HC595N chip is connected with the AX3 pin of the four MT8816AE switch chips, the QE pin of the 74HC595N chip is connected with the AY0 pin of the four MT8816AE switch chips, the QF pin of the 74HC595N chip is connected with the AY1 pin of the four MT8816AE switch chips, the QG pin of the 74HC595N chip is connected with the AY2 pin of the four MT8816AE switch chips, and the QH pin of the 74HC595N chip is connected with the DATA pin of the four MT8816AE switch chips.
[0008] Further, the first signal monitoring module comprises a first loudspeaker SPEAK1, a sixth electrolytic capacitor C14, a seventh electrolytic capacitor C15, a ninth electrolytic capacitor C19, an eleventh capacitor C17, a fifteenth resistor R14, a seventeenth resistor R16, a third potentiometer RJ3, a third switch S2 and an audio power amplifier. The second signal monitoring module comprises a second speaker SPEAK2, an eighth electrolytic capacitor C16, a tenth electrolytic capacitor C20, a twelfth capacitor C18, a sixteenth resistor R15, an eighteenth resistor R17, a fourth potentiometer RJ4, and the second signal monitoring module and the first signal monitoring module share the same audio power amplifier; The first pin of the first speaker SPEAK1 is connected with the negative electrode of the sixth electrolytic capacitor C14, and the second pin of the first speaker SPEAK1 is grounded; the positive electrode of the sixth electrolytic capacitor C14 is connected with one end of the eleventh capacitor C17 and the OUT1 pin of the audio power amplifier respectively, the other end of the eleventh capacitor C17 is connected with one end of the fifteenth resistor R14, and the other end of the fifteenth resistor R14 is grounded; the VCC pin of the audio power amplifier is connected with the positive electrode of the seventh electrolytic capacitor C15, the -IN1 pin of the audio power amplifier is connected with the positive electrode of the ninth electrolytic capacitor C19, and the +INF1 pin of the audio power amplifier is connected with one end of the seventeenth resistor R16 and one end of the third potentiometer RJ3 respectively; the positive electrode of the seventh electrolytic capacitor C15 is connected with one end of the third switch S2, the other end of the third switch S2 is connected with a power supply; the negative electrode of the seventh electrolytic capacitor C15 is grounded; the negative electrode of the ninth electrolytic capacitor C19 is grounded; the other end of the seventeenth resistor R16 is grounded; the other end of the third potentiometer RJ3 is connected, forming the first signal monitoring module; The first pin of the second speaker SPEAK2 is connected with the negative electrode of the eighth electrolytic capacitor C16, and the second pin of the second speaker SPEAK2 is grounded; the positive electrode of the eighth electrolytic capacitor C16 is connected with one end of the twelfth capacitor C18 and the OUT2 pin of the audio power amplifier respectively, the other end of the twelfth capacitor C18 is connected with one end of the sixteenth resistor R15, and the other end of the sixteenth resistor R15 is grounded; the GND pin of the audio power amplifier is grounded, the +IN2 pin of the audio power amplifier is connected with one end of the eighteenth resistor R17 and one end of the fourth potentiometer RJ4 respectively, and the -IN2 pin of the audio power amplifier is connected with the positive electrode of the tenth electrolytic capacitor C20; the negative electrode of the tenth electrolytic capacitor C20 is grounded; the other end of the eighteenth resistor R17 is grounded, forming the second signal monitoring module.
[0009] Further, the display module is further included, and an input end of the display module is connected with an output end of the single-chip microcomputer control module; The display module is used for displaying a prompt of successful switching when the line switching is successful.
[0010] Further, the key control module is further included, an input end of the key control module is connected with an output end of the single-chip microcomputer control module, and the key control module is used for manually inputting a line switching instruction and a state query instruction to the single-chip microcomputer control module.
[0011] Furthermore, the model of the audio power amplifier is TEA2822M.
[0012] Furthermore, other pins of the 74HC595N chip are connected to the LED driving circuit.
[0013] Beneficial Effects: Based on the NAVTEX signal transmission methods and characteristics of coastal radio stations, this invention provides a single-chip microcomputer-controlled NAVTEX four-wire audio line switching system. This system can switch 8×16 four-wire audio lines and features connection line data storage, query, and reset functions. It can monitor the transmission status of each signal in real time and remotely switch communication lines via a computer serial interface. This effectively addresses the shortcomings of existing technologies, such as the inability to remotely control line switching, store and query connection status, and monitor input and output signal quality in real time. The development and use of this system automates line switching, improves line switching speed, and reduces labor costs and line failure rates. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following is a brief introduction to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0015] Figure 1 A schematic diagram of a NAVTEX four-wire audio line switching system based on single-chip microcomputer control according to the present invention; Figure 2 This is a schematic diagram of the single-chip microcomputer in the circuit switching module; Figure 3 A schematic diagram of a shift register chip in a circuit switching module; Figure 4 This is a schematic diagram of the switch chip in the circuit switching module; Figure 5 This is the connection diagram of the reset circuit; Figure 6 This is the connection diagram of the crystal oscillator circuit; Figure 7 This is the connection diagram of the button control module; Figure 8 It is the connection diagram of the display module; Figure 9 It is the connection diagram of the state storage module; Figure 10 This is the connection diagram of the serial port control module; Figure 11 This is the connection diagram of the power supply circuit; Figure 12 is a schematic diagram of the signal monitoring module; In the figure, 1. Command terminal; 2. Main control computer; 3. Serial port control module; 4. Single chip microcomputer control module; 5. Key control module; 6. Display module; 7. Status storage module; 8. Control signal monitoring module; 9. Line switching module; 10. NAVTEX signal input module; 11. NAVTEX signal output module; 12. First signal monitoring module; 13. Second signal monitoring module. DETAILED DESCRIPTION To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0016] This embodiment provides a NAVTEX four-wire audio line switching system based on single-chip microcomputer control, such as Figure 1 As shown, it includes: a command terminal 1, a serial port control module 3, a single-chip control module 4, a state storage module 7, a control signal monitoring module 8, a line switching module 9, a NAVTEX signal input module 10, a NAVTEX signal output module 11, a first signal monitoring module 12 and a second signal monitoring module 13; The instruction terminal 1 is used for sending line switching instructions and state query instructions of specified lines to the single-chip microcomputer control module 4 according to actual needs through the serial port control module 3, and receiving state results returned by the single-chip microcomputer control module 4 through the serial port control module 3; the single-chip microcomputer control module 4 is used for sending line switching instructions of specified lines to the line switching module 9, sending state query instructions to the state storage module 7, and sending monitoring instructions to the control signal monitoring module 8; the state storage module 7 is used for storing data information of current line connection states and returning storage results to the single-chip microcomputer control module 4 according to state query instructions; the control signal monitoring module 8 is used for monitoring whether the line switching instructions sent by the single-chip microcomputer control module 4 are successfully sent, and feeding back to the single-chip microcomputer control module 4 if the line switching instructions are not successfully sent, and feeding back to the instruction terminal 1 through the single-chip microcomputer control module 4 to reissue instructions; the line switching module 9 is used for switching specified NAVTEX transmission lines according to received line switching instructions; the NAVTEX signal input module 10 and the NAVTEX signal output module 11 are used for NAVTEX signal input and output; the first signal monitoring module 12 and the second signal monitoring module 13 respectively amplify the NAVTEX signals input by the NAVTEX signal input module 10 and the NAVTEX signals output by the NAVTEX signal output module 11 and output through an external sound box, and the signal quality is monitored through the external sound box. The output end of the instruction terminal 1 is connected with the input end of the serial port control module 3, the output end of the serial port control module 3 is connected with the input end of the single-chip microcomputer control module 4; the output end of the single-chip microcomputer control module 4 is connected with the input end of the state storage module 7, the line switching module 9 and the control signal monitoring module 8 respectively; the output end of the control signal monitoring module 8 is connected with the input end of the single-chip microcomputer control module 4; the input end of the NAVTEX signal input module 10 receives external NAVTEX audio signals, and the output end is connected with the input end of the line switching module 9 and the first signal monitoring module 12 respectively; the output end of the line switching module 9 is connected with the input end of the NAVTEX signal output module 11; the output end of the NAVTEX signal output module 11 is connected with the input end of the second signal monitoring module 13, and outputs the NAVTEX audio signals to the outside.
[0017] Specifically, as Figure 1As shown, the instruction terminal in the scheme is the host computer 2, and the staff sends the line switching instruction of the specified line according to the actual demand through the host computer 2, monitors whether the sent instruction is successfully sent, and queries the current line and signal state to obtain the query result. The host computer 2 is electrically connected with a plurality of serial ports and a serial port control module 3; the serial port control module 3 is electrically connected with a single-chip microcomputer control module 4, and is used for remote data transmission between the host computer and the single-chip microcomputer; the single-chip microcomputer control module 4 is electrically connected with a state storage module 7, and is used for inputting the line specified in the line switching instruction into the state storage module to store the data of the line, and feeding back the stored line to the single-chip microcomputer control module 4 when the state query is needed; the single-chip microcomputer control module 4 is electrically connected with a control signal monitoring module 8, and is used for monitoring whether the line switching instruction sent by the single-chip microcomputer control module is successfully sent; the single-chip microcomputer control module 4 is electrically connected with a line switching module 9, and is used for sending the line switching instruction; the line switching module 9 is electrically connected with a NAVTEX signal input module 10 and a NAVTEX signal output module 11, and is used for obtaining the input NAVTEX signal and outputting the NAVTEX signal to the NAVTEX signal output module 11 after switching the line; the NAVTEX signal input module 10 receives the NATEX audio signal from the outside, is electrically connected with a first signal monitoring module 12, and outputs the NATEX audio signal to the first signal monitoring module 12; the first signal monitoring module 12 is electrically connected with a monitoring sound box, and outputs the NATEX audio signal to the monitoring sound box; the NAVTEX signal output module 11 outputs the NAVTEX audio signal from the transmitter line after switching to the outside, is electrically connected with a second signal monitoring module 13, and outputs the NAVTEX audio signal to the second signal monitoring module 13; the second signal monitoring module 13 outputs the signal to the monitoring sound box; the monitoring sound box outputs the sound signal, if the sound signal has a problem, that is, there is a problem of noise or distortion, it indicates that the monitored NAVTEX signal has a problem, and then the signal needs to be manually re-sent or the system needs to be repaired; the NAVTEX signal input module 10 and the NAVTEX signal output module 11 are composed of three pieces of RJ45-8 chip.
[0018] In specific embodiments, the line switching module 9 includes a single-chip microcomputer, a shift register chip and four switch chips; The single-chip microcomputer is connected with the shift register chip and the four switch chips respectively, and the single-chip microcomputer inputs the clock signal, the data signal and the latch signal to the shift register chip; The shift register chip is connected with the four switch chips respectively, and the shift register chip converts the input clock signal, the data signal and the latch signal from serial data to parallel data, and synchronously outputs to the four switch chips to synchronously complete the transmission of the NAVTEX audio signal; Among them, as Figure 2 , Figure 3 andFigure 4 As shown, the model of the single-chip microcomputer is STC89C52RC single-chip microcomputer, the model of the shift register chip is 74HC595N chip, and the model of the switch chip is MT8816AE switch chip; The P1.2 pin of the single-chip microcomputer STC89C52RC is connected to the SER pin of the 74HC595N chip, the P1.5 pin of the single-chip microcomputer STC89C52RC is connected to the SRCLK pin of the 74HC595N chip, the P1.4 pin of the single-chip microcomputer STC89C52RC is connected to the RCLK pin of the 74HC595N chip, the P1.3 pin of the single-chip microcomputer STC89C52RC is connected to the RESET pin of the four MT8816AE switch chips, the P1.6 pin of the single-chip microcomputer STC89C52RC is connected to the STROBE pin of the four MT8816AE switch chips, and the P1.7 pin of the single-chip microcomputer STC89C52RC is connected to the CS pin of the four MT8816AE switch chips; The QA pin of the 74HC595N chip is connected to the AX0 pin of the four MT8816AE switch chips, the QB pin of the 74HC595N chip is connected to the AX1 pin of the four MT8816AE switch chips, the QC pin of the 74HC595N chip is connected to the AX2 pin of the four MT8816AE switch chips, the QD pin of the 74HC595N chip is connected to the AX3 pin of the four MT8816AE switch chips, the QE pin of the 74HC595N chip is connected to the AY0 pin of the four MT8816AE switch chips, the QF pin of the 74HC595N chip is connected to the AY1 pin of the four MT8816AE switch chips, the QG pin of the 74HC595N chip is connected to the AY2 pin of the four MT8816AE switch chips, and the QH pin of the 74HC595N chip is connected to the DATA pin of the four MT8816AE switch chips; Specifically, the single-chip microcomputer is connected to a 5V power supply, the VCC pin of the 74HC595N chip is connected to a 5V power supply, and the eleventh resistor R10 to the thirteenth resistor R12 are connected to the 5V power supply, one end of the resistor, the other end of the eleventh resistor R10 is connected to the P3.5 pin of the single-chip microcomputer, the other end of the twelfth resistor R11 is connected to the P3.6 pin of the single-chip microcomputer, and the other end of the thirteenth resistor R12 is connected to the P3.7 pin of the single-chip microcomputer; The eleventh resistor R10 to the thirteenth resistor R12 are all 10K .
[0019] In the scheme, the STC89C52RC single-chip microcomputer is the single-chip microcomputer in the single-chip microcomputer control module, other pins in the single-chip microcomputer are connected with chips in other connected circuits respectively, the single-chip microcomputer control module sends instructions to the line switching module, the line switching module synchronously transmits instruction signals to the four 8x16 switch chips, that is, there are 8 inputs and 16 outputs, the inputs and outputs can be connected arbitrarily, the line switching instructions contain the pre-set inputs and outputs, the line switching is performed according to the set inputs and outputs, that is, the process of line switching; the line switching module executes the instructions to complete the line switching of the specified line, innovates the implementation method of the NAVTEX signal line switching, and breaks through the capacity of the single chip to transmit four-line signals.
[0020] In specific embodiments, as shown in Figure 3 , other pins of the 74HC595N chip are connected with the LED driving circuit; The LED driving circuit includes a second resistor R1-ninth resistor R8, a second diode D1-ninth diode D8 and a second potentiometer RJ2; One end of each resistor is connected with the pins of QA-QH in the 74HC595N chip, the other end of the resistor is connected with the positive pole of the corresponding diode in the second diode D1-ninth diode D8, the negative poles of all diodes are connected with one end of the second potentiometer RJ2, the other end of the second potentiometer RJ2 is connected with the power supply of 5V; Each resistor is 1K , and the second potentiometer is 5K .
[0021] In the scheme, the 74HC595N chip is connected with the LED driving circuit, which can flexibly control the display effect: determine the state of the chip. In specific embodiments, as shown in Figure 5 , a reset circuit is used to provide a reset signal for each chip and other circuits, and the reset circuit specifically includes a second switch S1, a first electrolytic capacitor C0 and a first resistor R0; One end of the second switch S1 is connected with the 5V power supply and the positive pole of the first electrolytic capacitor C0 respectively, the other end is connected with the negative pole of the first electrolytic capacitor C0 and one end of the first resistor R0 respectively; the other end of the first resistor R0 is grounded; The first resistor R0 is 10K , and the first electrolytic capacitor C0 is 10 ; In the scheme, the main function of the reset circuit is to restore each module in the circuit to the initial state when the system starts or an abnormality occurs, so as to ensure that the system can operate normally and stably.
[0022] In specific embodiments, a crystal oscillator circuit is included, as shown inFigure 6 As shown, a crystal oscillator circuit is used to generate a clock signal for the system, and the crystal oscillator circuit includes a first capacitor C1, a second capacitor C2, and a crystal resonator Y1; One end of the first capacitor C1 is connected to one end of the second capacitor C2, and the other end of the first capacitor C1 is connected to the XT1 pin of the crystal resonator Y1; one end of the second capacitor C2 is grounded, and the other end of the second capacitor C2 is connected to the XT2 pin of the crystal resonator Y1; The first capacitor C1 and the second capacitor C2 are both 33PF, and the frequency of the crystal resonator Y1 is 11.0592 MHZ.
[0023] In this solution, the crystal oscillator circuit is used to generate a stable oscillation signal at the crystal's natural resonant frequency. XT1 and XT2 are the output pins for the oscillation signal, used to transmit the generated clock signal to other circuit modules.
[0024] In a specific embodiment, a key control module 5 is further included, the input end of the key control module 5 is connected to the output end of the single-chip control module 4, and is used to manually input line switching instructions and status query instructions to the single-chip control module 4; like Figure 7 As shown, the key control module 5 includes 8 pins, which are respectively connected to the P2.0-P2.7 pins of the single chip microcomputer; In this solution, a key control circuit is set up to enable manual input of commands locally, and the control system performs corresponding line switching or status query operations when the remote host is unable to connect to the Internet.
[0025] In a specific embodiment, Figure 8 As shown, it also includes a display module 6, the input end of the display module 6 is connected to the output end of the single chip control module; The display module 6 includes a third capacitor C3, a fourth capacitor C4, a first potentiometer RJ1 and a display chip. The display chip model is LCD1602. One end of a third capacitor C3 is connected to the GND pin of the display chip and to ground; the other end of the third capacitor C3 is connected to the VCC pin of the display chip and to a 5V power supply; one end of a fourth capacitor C4 is connected to another VCC pin of the display chip and to a 5V power supply, and the other end of the fourth capacitor C4 is connected to another GND pin of the display chip and to ground; the other pins of the display chip are connected to the P0.0-P0.7 and P3.5-P3.7 pins of the microcontroller; The third capacitor C3 and the fourth capacitor C4 are of type 104 and of size 0.1 , the first potentiometer RJ1 is 5K . In the scheme, the display module can display the switching success prompt when the switching line is switched successfully, and display the keyboard input instruction and the state query.
[0026] In specific embodiments, as shown in the figure, Figure 9 The state storage module 7 includes a fifth capacitor C5 and a storage chip, and the model of the storage chip is AT24C02. One end of the fifth capacitor C5 is grounded, and the other end is connected with the 5V power supply; the E0-E2, VSS and WE pins of the storage chip are grounded, the VCC pin is connected with the 5V power supply, and the SCL and SDA are connected with the P1.0 and P1.1 of the single-chip microcomputer. The model of the fifth capacitor C5 is 104, and the size is 0.1 .
[0027] In the scheme, the state storage module is set, which can store the data information of the current line connection state, can store and query the connection state in real time, saves the labor efficiency, and reduces the line failure rate.
[0028] In specific embodiments, as shown in the figure, Figure 10 The serial port control module 7 includes a sixth capacitor C6, a second electrolytic capacitor C7, an eighth capacitor C8- a tenth capacitor C10, a tenth resistor R9, a ninth diode D9, a crystal resonator Y2, an adapter chip and a USB interface, and the model of the adapter chip is CH340G. The negative electrode of the second diode D9 is connected with the P3.0 pin of the single-chip microcomputer, and the other end is connected with the TXD pin of the adapter chip; one end of the tenth resistor R9 is connected with the P3.1 pin of the single-chip microcomputer, and the other end is connected with the RXD pin of the adapter chip; one end of the eighth capacitor C8 is grounded, and the other end is connected with the C3 pin of the adapter chip; one end of the ninth capacitor C9 is connected with one end of the tenth capacitor C10 and grounded, the other end of the ninth capacitor C9 is connected with the first pin of the crystal resonator Y2, and the other end of the tenth capacitor C10 is connected with the second pin of the crystal resonator Y2; the first pin of the crystal resonator Y2 is connected with the XI pin of the adapter chip, and the second pin of the crystal resonator Y2 is connected with the XO pin of the adapter chip; one end of the sixth capacitor C6 is grounded, and the other end is connected with the first pin of the USB interface; the negative electrode of the second electrolytic capacitor C7 is grounded, and the positive electrode is connected with the first pin of the USB interface; the GND pin of the adapter chip is grounded, the VCC pin is connected with the first pin of the USB interface, and the UD+ and UD- are connected with the differential data lines D+ and D-; the fourth, fifth and sixth pins of the USB interface are grounded, the second pin is connected with D-, and the third pin is connected with D+. In the scheme, the model of the diode is 1N4148, the model of the tenth resistor R9 is 330, and the size is 33 , the signal of the eighth capacitor C8 is 103, and the size is 0.1 , the ninth capacitor C9 and the tenth capacitor C10 are 22PF, the model of the sixth capacitor C6 is 104, and the size is 0.1 , the second electrolytic capacitor C7 is 10 ; the crystal resonator Y2 is 12MHZ.
[0029] In the scheme, a serial port control module is arranged, and the instruction of the computer is sent to the single-chip microcomputer control module through the serial port control module, so that the transmission of the instruction is realized.
[0030] In specific embodiments, as Figure 11 indicated, the power supply circuit further includes a third electrolytic capacitor C11, a fourth electrolytic capacitor C12, a fifth electrolytic capacitor C13, a first inductor L1-third inductor L3, a fourteenth resistor R13, a first diode D0, a first switch S0, a first isolation power supply block and U1-1, a second isolation power supply block U1-2, a fuse F1 and a power supply; the model of the power supply is DC-005; the model of the isolation power supply block is B1205S; The positive electrode of the power supply is connected with one end of the fuse, and the negative electrode is connected with the negative electrode of the third electrolytic capacitor C11; the other end of the fuse is connected with one end of the first switch S0; the other end of the first switch S0 is connected with the positive electrode of the third electrolytic capacitor C11 and one end of the first inductor L1 respectively; the negative electrode of the third electrolytic capacitor C11 is connected with the negative input pin of the first isolation power supply block and U1-1 and the negative input pin of the second isolation power supply block U1-2; the other end of the first inductor L1 is connected with the positive input pin of the first isolation power supply block and U1-1 and the positive input pin of the second isolation power supply block U1-2; the negative output pin of the first isolation power supply block U1-1 is connected with one end of the second inductor L2, the positive output pin is connected with the positive electrode of the fourth electrolytic capacitor C12 and connected to the 5V power supply, and the negative electrode of the fourth electrolytic capacitor C12 is connected with the other end of the second inductor L2 and grounded; the negative output pin of the second isolation power supply block U1-2 is connected with one end of the third inductor L3, the positive output pin is connected with the positive electrode of the fifth electrolytic capacitor C13, the negative electrode of the fifth electrolytic capacitor C13 is connected with the other end of the third inductor L3 and the positive electrode of the first diode D0 respectively; the negative electrode of the first diode D0 is connected with one end of the fourteenth resistor R13, and the other end of the fourteenth resistor R13 is connected with the positive electrode of the fifth electrolytic capacitor C13 and the 5V power supply respectively; The third electrolytic capacitor C11 is 2.2 , the fourth electrolytic capacitor C12 and the fifth electrolytic capacitor C13 are 4.7 , the first inductor L1-third inductor L3 are all 4.7 .
[0031] In specific embodiments, as Figure 12As shown, the first signal monitoring module 12 comprises a first speaker SPEAK1, a sixth electrolytic capacitor C14, a seventh electrolytic capacitor C15, a ninth electrolytic capacitor C19, an eleventh capacitor C17, a fifteenth resistor R14, a seventeenth resistor R16, a third potentiometer RJ3, a third switch S2 and an audio power amplifier; The second signal monitoring module 13 comprises a second speaker SPEAK2, an eighth electrolytic capacitor C16, a tenth electrolytic capacitor C20, a twelfth capacitor C18, a sixteenth resistor R15, an eighteenth resistor R17, a fourth potentiometer RJ4, and the second signal monitoring module 13 and the first signal monitoring module 12 share the same audio power amplifier; The first pin of the first speaker SPEAK1 is connected with the negative pole of the sixth electrolytic capacitor C14, and the second pin of the first speaker SPEAK1 is grounded; the positive pole of the sixth electrolytic capacitor C14 is connected with one end of the eleventh capacitor C17 and the OUT1 pin of the audio power amplifier respectively, the other end of the eleventh capacitor C17 is connected with one end of the fifteenth resistor R14, and the other end of the fifteenth resistor R14 is grounded; the VCC pin of the audio power amplifier is connected with the positive pole of the seventh electrolytic capacitor C15, the -IN1 pin of the audio power amplifier is connected with the positive pole of the ninth electrolytic capacitor C19, and the +IN1 pin of the audio power amplifier is connected with one end of the seventeenth resistor R16 and one end of the third potentiometer RJ3 respectively; the positive pole of the seventh electrolytic capacitor C15 is connected with one end of the third switch S2, the other end of the third switch S2 is connected with the power supply, and the negative pole of the seventh electrolytic capacitor C15 is grounded; the negative pole of the ninth electrolytic capacitor C19 is grounded; the other end of the seventeenth resistor R16 is grounded; the other end of the third potentiometer RJ3 is connected, forming the first signal monitoring module; The first pin of the second speaker SPEAK2 is connected with the negative pole of the eighth electrolytic capacitor C16, and the second pin of the second speaker SPEAK2 is grounded; the positive pole of the eighth electrolytic capacitor C16 is connected with one end of the twelfth capacitor C18 and the OUT2 pin of the audio power amplifier respectively, the other end of the twelfth capacitor C18 is connected with one end of the sixteenth resistor R15, and the other end of the sixteenth resistor R15 is grounded; the GND pin of the audio power amplifier is grounded, the +IN2 pin of the audio power amplifier is connected with one end of the eighteenth resistor R17 and one end of the fourth potentiometer RJ4 respectively, and the -IN2 pin of the audio power amplifier is connected with the positive pole of the tenth electrolytic capacitor C20; the negative pole of the tenth electrolytic capacitor C20 is grounded; the other end of the eighteenth resistor R17 is grounded, forming the second signal monitoring module.
[0032] Specifically, in the present scheme, the sixth electrolytic capacitor C14, the seventh electrolytic capacitor C15, the eighth electrolytic capacitor C16, the ninth electrolytic capacitor C19 and the tenth electrolytic capacitor C20 are all 100 , the model of the eleventh capacitor C17 and the twelfth capacitor C18 is 104, and the size is 0.1 , the fifteenth resistor R14 and the sixteenth resistor R15 are 4.7 , the seventeenth resistor R16 and the eighteenth resistor R17 are 10K , the third potentiometer RJ3 and the fourth potentiometer RJ4 are both 100K ; It also includes a row of needle circuit, a total of 8 rows, the other end of the third potentiometer RJ3 is connected with one end of the pin of the row of needle, the other end of the fourth potentiometer RJ4 is connected with the other end of the pin of the row of needle, and the row of needle circuit is connected with the NAVTEX signal input module and the NAVTEX signal output module.
[0033] The use process of the system is as follows: After starting the equipment, the system will first be automatically initialized, connected to the device serial port control module 3 through the serial port connection module 214, and the staff sends the NAVTEX line switching instruction to the serial port control module 3 through the host computer 2, and the serial port control module 3 continues to send the instruction to the single-chip microcomputer control module 4, and the single-chip microcomputer control module 4 sends the instruction to the line switching module 9, and simultaneously monitors whether the instruction signal is successfully sent through the control signal monitoring module 8. The line switching module 9 simultaneously transmits the instruction signal to the four 8*16 switch chips, and executes the instruction to complete the line switching; After the line switching instruction is executed, the state storage module 7 stores the current connection state, and the display module 6 synchronously displays the switching success prompt; the single-chip microcomputer control module 4 feeds back the instruction execution to the host computer 2, and displays the operation result to the staff; When local operation is needed, the staff directly operates through the key control module 5, directly transmits the control instruction to the single-chip microcomputer control module 4, and completes the line switching operation; The NAVTEX signal input module 10 transmits the NAVTEX signal to the NAVTEX signal output module 11 through the line switching module 9. The first signal monitoring module 12 and the second signal monitoring module 13 respectively transmit signals to the monitoring sound box in real time, and monitor the quality of the NAVTEX input signal and the output signal through the monitoring sound box; When the line state needs to be determined, the staff sends the NAVTEX line state query instruction to the serial port control module 3 through the host computer 2, the serial port control module 3 continues to send the instruction to the single-chip microcomputer control module 4, the single-chip microcomputer control module 4 sends the instruction to the state storage module 7, calls the storage data of the state storage module 7, and feeds back to the host computer 2 to display the query result.
[0034] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, and are not intended to limit the present application; although the present application has been described in detail with reference to the above embodiments, those skilled in the art should understand that the technical solutions recorded in the above embodiments can be modified, or some or all of the technical features can be replaced by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A NAVTEX four-wire audio line switching system based on single-chip microcomputer control, characterized in that: include: A command terminal (1), a serial port control module (3), a single-chip microcomputer control module (4), a state storage module (7), a control signal monitoring module (8), a line switching module (9), a NAVTEX signal input module (10), a NAVTEX signal output module (11), a first signal monitoring module (12), and a second signal monitoring module (13); The command terminal (1) is used to send a line switching instruction and a status query instruction of a designated line to the single-chip control module (4) through the serial port control module (3) according to actual needs, and receive the status result returned by the single-chip control module (4) through the serial port control module (3); the single-chip control module (4) is used to send a line switching instruction of a designated line to the line switching module (9), send a status query instruction to the status storage module (7), and send a monitoring instruction to the control signal monitoring module (8); the status storage module (7) is used to store data information of the current line connection status and return the stored result to the single-chip control module (4) according to the status query instruction; the control signal monitoring module (8) is used to monitor the line switching instruction issued by the single-chip control module (4) in real time Whether the transmission is successful or not; if not, the information is fed back to the single-chip control module (4), which then feeds back to the instruction terminal (1) through the single-chip control module (4) to re-issue the instruction; the line switching module (9) is used to switch the designated NAVTEX transmission line according to the received line switching instruction; the NAVTEX signal input module (10) and the NAVTEX signal output module (11) are used for inputting and outputting NAVTEX signals; the first signal monitoring module (12) and the second signal monitoring module (13) respectively amplify the NAVTEX signal input by the NAVTEX signal input module (10) and the NAVTEX signal output by the NAVTEX signal output module (11) and output them through an external speaker, and monitor the signal quality through the external speaker; The output end of the instruction terminal (1) is connected to the input end of the serial port control module (3), and the output end of the serial port control module (3) is connected to the input end of the single-chip control module (4); the output end of the single-chip control module (4) is respectively connected to the input end of the state storage module (7), the line switching module (9) and the control signal monitoring module (8); the output end of the control signal monitoring module (8) is connected to the input end of the single-chip control module (4); the input end of the NAVTEX signal input module (10) receives the external NAVTEX audio signal, and the output end is respectively connected to the input end of the line switching module (9) and the first signal monitoring module (12); the output end of the line switching module (9) is connected to the input end of the NAVTEX signal output module (11); the output end of the NAVTEX signal output module (11) is connected to the input end of the second signal monitoring module (13), and outputs the NAVTEX audio signal to the outside.
2. The NAVTEX four-wire audio line switching system based on single-chip microcomputer control according to claim 1, characterized in that: The circuit switching module (9) comprises a single chip microcomputer, a shift register chip and four switch chips; The single chip microcomputer is connected to the shift register chip and the four switch chips respectively. The single chip microcomputer inputs the clock signal, data signal and latch signal to the shift register chip; The shift register chip is connected to four switch chips respectively. The shift register chip converts the input clock signal, data signal and latch signal from serial data into parallel data, and outputs them synchronously to the four switch chips, thereby synchronously completing the transmission of the NAVTEX audio signal.
3. The NAVTEX four-wire audio line switching system based on single-chip microcomputer control according to claim 2, characterized in that: The model of the single-chip microcomputer is STC89C52RC single-chip microcomputer, the model of the shift register chip is 74HC595N chip, and the model of the switch chip is MT8816AE switch chip; The P1.2 pin of the STC89C52RC microcontroller is connected to the SER pin of the 74HC595N chip; the P1.5 pin of the STC89C52RC microcontroller is connected to the SRCLK pin of the 74HC595N chip; the P1.4 pin of the STC89C52RC microcontroller is connected to the RCLK pin of the 74HC595N chip; the P1.3 pin of the STC89C52RC microcontroller is connected to the RESET pin of the four MT8816AE switch chips; the P1.6 pin of the STC89C52RC microcontroller is connected to the STROBE pin of the four MT8816AE switch chips; the P1.7 pin of the STC89C52RC microcontroller is connected to the CS pin of the four MT8816AE switch chips; The QA pin of the 74HC595N chip is connected to the AX0 pin of the four MT8816AE switch chips; the QB pin of the 74HC595N chip is connected to the AX1 pin of the four MT8816AE switch chips; the QC pin of the 74HC595N chip is connected to the AX2 pin of the four MT8816AE switch chips; the QD pin of the 74HC595N chip is connected to the AX3 pin of the four MT8816AE switch chips; the QE pin of the 74HC595N chip is connected to the AY0 pin of the four MT8816AE switch chips; the QF pin of the 74HC595N chip is connected to the AY1 pin of the four MT8816AE switch chips; the QG pin of the 74HC595N chip is connected to the AY2 pin of the four MT8816AE switch chips; and the QH pin of the 74HC595N chip is connected to the DATA pin of the four MT8816AE switch chips.
4. The NAVTEX four-wire audio line switching system based on single-chip microcomputer control according to claim 1, characterized in that: The first signal monitoring module (12) includes a first speaker SPEAK1, a sixth electrolytic capacitor C14, a seventh electrolytic capacitor C15, a ninth electrolytic capacitor C19, an eleventh capacitor C17, a fifteenth resistor R14, a seventeenth resistor R16, a third potentiometer RJ3, a third switch S2 and an audio power amplifier; The second signal monitoring module (13) includes a second speaker SPEAK2, an eighth electrolytic capacitor C16, a tenth electrolytic capacitor C20, a twelfth capacitor C18, a sixteenth resistor R15, an eighteenth resistor R17, and a fourth potentiometer RJ4, and the second signal monitoring module (13) and the first signal monitoring module (12) share the same audio power amplifier; The first pin of the first speaker SPEAK1 is connected to the negative electrode of the sixth electrolytic capacitor C14, and the second pin of the first speaker SPEAK1 is grounded; the positive electrode of the sixth electrolytic capacitor C14 is respectively connected to one end of the eleventh capacitor C17 and the OUT1 pin of the audio power amplifier, the other end of the eleventh capacitor C17 is connected to one end of the fifteenth resistor R14, and the other end of the fifteenth resistor R14 is grounded; the VCC pin of the audio power amplifier is connected to the positive electrode of the seventh electrolytic capacitor C15, the -IN1 pin of the audio power amplifier is connected to the positive electrode of the ninth electrolytic capacitor C19, and the +INF1 pin of the audio power amplifier is respectively connected to one end of the seventeenth resistor R16 and one end of the third potentiometer RJ3; the positive electrode of the seventh electrolytic capacitor C15 is connected to one end of the third switch S2, and the other end of the third switch S2 is connected to the power supply; the negative electrode of the seventh electrolytic capacitor C15 is grounded; the negative electrode of the ninth electrolytic capacitor C19 is grounded; the other end of the seventeenth resistor R16 is grounded; and the other end of the third potentiometer RJ3 is connected to form a first signal monitoring module (12); The first pin of the second speaker SPEAK2 is connected to the negative electrode of the eighth electrolytic capacitor C16, and the second pin of the second speaker SPEAK2 is grounded; the positive electrode of the eighth electrolytic capacitor C16 is respectively connected to one end of the twelfth capacitor C18 and the OUT2 pin of the audio power amplifier, the other end of the twelfth capacitor C18 is connected to one end of the sixteenth resistor R15, and the other end of the sixteenth resistor R15 is grounded; the GND pin of the audio power amplifier is grounded, the +IN2 pin of the audio power amplifier is respectively connected to one end of the eighteenth resistor R17 and one end of the fourth potentiometer RJ4, and the -IN2 pin of the audio power amplifier is connected to the positive electrode of the tenth electrolytic capacitor C20; the negative electrode of the tenth electrolytic capacitor C20 is grounded; the other end of the eighteenth resistor R17 is grounded, forming a second signal monitoring module (13).
5. The NAVTEX four-wire audio line switching system based on single-chip microcomputer control according to claim 1, characterized in that: It also includes a display module (6), wherein the input end of the display module (6) is connected to the output end of the single-chip control module (4); The display module (6) is used to display a prompt indicating that the switching is successful when the switching line is successfully switched.
6. The NAVTEX four-wire audio line switching system based on single-chip microcomputer control according to claim 1, characterized in that: It also includes a key control module (5), the input end of which is connected to the output end of the single-chip control module (4) and is used to manually input line switching instructions and status query instructions to the single-chip control module (4).
7. The NAVTEX four-wire audio line switching system based on single-chip microcomputer control according to claim 4, characterized in that: The model of the audio power amplifier is TEA2822M.
8. The NAVTEX four-wire audio line switching system based on single-chip microcomputer control according to claim 1, characterized in that: The other pins of the 74HC595N chip are connected to the LED driver circuit.