CN114779694A - Double-backup data acquisition control circuit and control method for large buoy - Google Patents

Double-backup data acquisition control circuit and control method for large buoy Download PDF

Info

Publication number
CN114779694A
CN114779694A CN202210416885.8A CN202210416885A CN114779694A CN 114779694 A CN114779694 A CN 114779694A CN 202210416885 A CN202210416885 A CN 202210416885A CN 114779694 A CN114779694 A CN 114779694A
Authority
CN
China
Prior art keywords
mcu
sensor
buoy
input
management circuit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210416885.8A
Other languages
Chinese (zh)
Inventor
李超
何志强
刁庆伟
王文浩
颜静佳
李春生
仰孝辉
朱建刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Ruili Marine Equipment Co ltd
Original Assignee
Hangzhou Ruili Marine Equipment Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Ruili Marine Equipment Co ltd filed Critical Hangzhou Ruili Marine Equipment Co ltd
Priority to CN202210416885.8A priority Critical patent/CN114779694A/en
Publication of CN114779694A publication Critical patent/CN114779694A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/25Pc structure of the system
    • G05B2219/25257Microcontroller

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Testing Or Calibration Of Command Recording Devices (AREA)

Abstract

The invention discloses a double-backup data acquisition control circuit and a control method for a large buoy. The main control circuit is a control center of the buoy and is mainly responsible for collecting, storing and uploading data monitored by each sensor. The power management circuit is mainly responsible for power-on and power-off control of each sensor. The double-backup data acquisition control circuit and the control method realize backup of buoy data acquisition control and backup of buoy data storage. When the first MCU works abnormally, the first MCU can be automatically switched to the second MCU, compared with a single data acquisition control system, the system fault rate is reduced, the time of normal in-place operation of the buoy is prolonged, and the operation and maintenance cost is saved. Buoy data is stored in two SD cards simultaneously, so that the safety and the integrity of data storage are improved.

Description

Double-backup data acquisition control circuit and control method for large buoy
Technical Field
The invention belongs to the field of buoy equipment, and particularly relates to a double-backup data acquisition control circuit and a control method for a large buoy.
Background
The sea area of China is vast, natural disasters occur frequently, the technical level of oceanographic forecasting needs to be improved, the monitoring of deep and distant sea is listed in the national strategic plan, the east sea observation network and the south sea observation network are gradually promoted, and the demand on large-scale oceanographic environment monitoring buoys is continuously expanded. The large buoy has the characteristics of strong adverse environment resistance, large capacity, good working environment, long service life, long in-place time, strong anti-human destruction capability and the like, and is mainly characterized in that: high mechanical strength, large effective space, simple shape, excellent wave following performance, good stability and the like. Large buoys are generally deployed at remote offshore locations, which can be costly and difficult to maintain. This places high demands on the stability of the data acquisition control system of the buoy.
Most large buoys in the current market only integrate a single data acquisition and transmission system, and if the acquisition and transmission system has problems, the acquisition of ocean parameters can be influenced, and even the buoy position cannot be found; or simply two sets of the same data acquisition and transmission systems and two sets of sensor systems are configured, which greatly increases the project cost.
Disclosure of Invention
The invention aims to overcome the defects in the prior art and provides a double-backup data acquisition control circuit and a control method for a large buoy.
The invention adopts the following technical scheme for solving the technical problems:
the invention provides a double-backup data acquisition control circuit of a large buoy, which comprises a main control circuit and a power management circuit, wherein the main control circuit is used as a control center of the buoy and is responsible for acquiring, storing and uploading monitoring data of each sensor carried on the buoy; the power supply management circuit is used for realizing power-on and power-off control of each sensor;
the main control circuit comprises a first MCU and a first SD card which are connected, a second MCU and a second SD card which are connected, a CPLD switching control module and a plurality of serial port chips, wherein each serial port chip is respectively communicated with a serial port of a sensor carried on a buoy;
the CPLD switching control module is used for switching and controlling the first MCU and the second MCU, so that one of the first MCU and the second MCU is communicated with the serial ports of the sensors carried on the buoy through the serial port chip; after power-on initialization, the CPLD switching control module controls each serial port chip to be communicated with the serial port of the first MCU by default, and the input IO port of the power management circuit is communicated with the IO port of the first MCU; in the data acquisition process, by judging the IO level connected with the first MCU and the second MCU, when the first MCU breaks down, each serial port chip is automatically switched to be respectively communicated with the serial port of the second MCU, and the input IO port of the power management circuit is communicated with the IO port of the second MCU.
Preferably, the sensor carried on the buoy comprises a Beidou mobile terminal, a water quality sensor, a meteorological sensor, a compass sensor and a wave sensor, the serial port chip in the main control circuit comprises a first serial port chip, a second serial port chip, a third serial port chip, a fourth serial port chip and a fifth serial port chip, the first serial port chip is communicated with the serial port of the Beidou mobile terminal, the second serial port chip is communicated with the serial port of the water quality sensor, the third serial port chip is communicated with the serial port of the meteorological sensor, the fourth serial port chip is communicated with the serial port of the compass sensor, and the fifth serial port chip is communicated with the serial port of the wave sensor.
Preferably, the power management circuit comprises a 5V power management circuit, a 24V power management circuit and a 12V power management circuit.
Preferably, the 5V power management circuit includes a first NMOS transistor and a first PMOS transistor which are connected to each other, and are communicated with the CPLD switching control module through an input IO32, and when the level of the input IO32 is high, the first NMOS transistor is driven to be turned on, and then the first PMOS transistor is driven to be turned on, so as to supply power to the compass sensor; when the input IO32 is in a low level, the power supply of the compass sensor is cut off.
Preferably, the 24V power management circuit includes a second NMOS transistor and a second PMOS transistor which are connected to each other, and are communicated with the CPLD switching control module through an input IO33, when an input IO33 level is high, the second NMOS transistor is driven to be turned on, and then the second PMOS transistor is driven to be turned on, so as to supply power to the beidou mobile terminal, and when an input IO33 level is low, the power supply of the beidou mobile terminal is turned off.
Preferably, the 12V power management circuit includes a third NMOS transistor and a third PMOS transistor that are connected to each other, and are communicated with the CPLD switching control module through an input IO34, and when an input IO34 level is high, the third NMOS transistor is driven to be turned on, and then the third PMOS transistor is driven to be turned on, so as to supply power to the water quality sensor, and when an input IO34 level is low, the water quality sensor is turned off.
Preferably, the 12V power management circuit includes a fourth NMOS transistor and a fourth PMOS transistor which are connected to each other, and are communicated with the CPLD switching control module through the input IO35, when the input IO35 is high in level, the fourth NMOS transistor is driven to be turned on, and then the fourth PMOS transistor is driven to be turned on, so as to supply power to the weather sensor, and when the input IO35 is low in level, the power supply to the weather sensor is turned off.
Preferably, the 12V power management circuit includes a fifth NMOS transistor and a fifth PMOS transistor which are connected to each other, and are communicated with the CPLD switching control module through an input IO36, when an input IO36 level is high, the fifth NMOS transistor is driven to be turned on, and then the fifth PMOS transistor is driven to be turned on, so as to supply power to the wave sensor, and when an input IO36 level is low, the power supply of the wave sensor is turned off.
In a second aspect, the present invention provides a buoy dual-backup data acquisition control method based on the dual-backup data acquisition control circuit in any of the first aspects, which includes the following steps:
s1, the first MCU and the second MCU are electrified and initialized, the CPLD switching control module initializes and defaults to connect each serial port chip to the serial port of the first MCU, and the input IO port of the power management circuit is connected to the IO port of the first MCU; after the second MCU completes initialization, the second MCU enters a low power consumption mode, and after the first MCU completes initialization, the Beidou mobile terminal is controlled to be powered on, time information is acquired, and RTC time is calibrated;
s2, according to the calibrated time, when the preset sensor monitoring data acquisition time is reached, the first MCU controls each sensor carried on the buoy to be powered on through the power management circuit to obtain sensor data, then the sensor data and the time information are packaged and then sent to a shore station receiving platform through the Beidou mobile terminal, meanwhile, the data are stored in the first SD card, the second MCU is awakened through the serial port, and the packaged data are sent to the second MCU;
s3, after receiving the packed data sent by the first MCU, the second MCU firstly stores the data in the second SD card and then reads the time information in the data to carry out RTC calibration; then the second MCU judges the effectiveness of the sensor data sent by the first MCU, if the sensor data sent by the first MCU is normally acquired, the second MCU enters a low power consumption mode again, if the data sent by the first MCU is abnormal in acquisition, a switching command is sent to the first MCU, the CPLD switching control module is controlled to connect the serial port of the sensor to the serial port of the second MCU, meanwhile, the input IO port of the power management circuit is connected to the IO port of the second MCU, and the first MCU enters the low power consumption mode;
if the second MCU does not receive the data transmitted by the first MCU in two continuous periods, automatically exiting the low power consumption mode, entering a working mode, simultaneously transmitting a switching command to the first MCU, controlling the CPLD switching control module to communicate the serial port of the sensor to the serial port of the second MCU, communicating the input IO port of the power management circuit to the IO port of the second MCU, and entering the low power consumption mode by the first MCU;
s4, when the data acquisition time of the next sensor is reached, if the current first MCU is in the working mode and the second MCU is in the low power consumption mode, continuing to acquire, store and upload data according to S2 and S3; if the second MCU is in a working mode and the first MCU is in a low power consumption mode, the second MCU controls each sensor carried on the buoy to be powered on through the power management circuit to obtain sensor data, then the sensor data and time information are packaged and then are sent to a shore station receiving platform through a Beidou mobile terminal, meanwhile, the data are stored in a second SD card, the first MCU is awakened through a serial port, and the packaged data are sent to the first MCU; after receiving the packed data sent by the second MCU, the first MCU firstly stores the data in the first SD card and then enters a low power consumption mode;
and S5, continuously and circularly executing S4 until the buoy is recovered.
Preferably, the cycle interval of the sensor monitoring data acquisition time is set to 1 hour, and the acquisition is started at each hour of the Beijing time.
Compared with the prior art, the invention has the following beneficial effects:
the double-backup data acquisition control circuit and the control method realize backup of buoy data acquisition control and backup of buoy data storage. When the first MCU works abnormally, the first MCU can be automatically switched to the second MCU, and compared with a single data acquisition control system, the system fault rate is reduced, the on-site normal operation time of the buoy is prolonged, and the operation and maintenance cost is saved. Moreover, in the way, no matter which MCU works, the acquired buoy data can be simultaneously stored in two SD cards, and the safety and the integrity of data storage are improved.
Drawings
FIG. 1 is a connection block diagram of a dual backup data acquisition control circuit of the present invention with a sensor when applied;
FIG. 2 is a block diagram of a dual backup data acquisition control circuit according to the present invention;
FIG. 3 is a functional block diagram of a master control circuit of the present invention;
FIG. 4 is a schematic block diagram of a power management circuit of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention more comprehensible, embodiments accompanying figures are described in detail below. In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein, as those skilled in the art will recognize without departing from the spirit and scope of the present invention. The technical characteristics in the embodiments of the invention can be correspondingly combined on the premise of no mutual conflict.
In the description of the present invention, it is to be understood that the terms "first", "second", and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or to implicitly indicate the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature.
In a preferred embodiment of the present invention, a dual backup data acquisition control circuit for a large buoy is provided, which comprises a main control circuit and a power management circuit. The main control circuit is used as a control center of the buoy and is responsible for collecting, storing and uploading monitoring data of each sensor carried on the buoy. And the power management circuit is used for realizing power-on and power-off control of each sensor. The specific form of the sensor system mounted on the buoy in the present invention is not limited, and depends on the parameters to be detected by the buoy.
As shown in fig. 1, in the preferred embodiment, there are 5 sensors in the sensor system mounted on the buoy, which are respectively a beidou mobile terminal, a water quality sensor, a weather sensor, a compass sensor and a wave sensor, and each sensor has a commercially available finished product. Of course, in other embodiments, different combinations of sensors may be selected depending on the particular configuration of the buoy.
Because the power supply voltages required by different sensors are different, in the preferred embodiment, as shown in fig. 2, the power management circuit provides three power supplies of 5V, 24V and 12V to perform power-on and power-off control on the main control circuit, the beidou mobile terminal, the water quality sensor, the weather sensor, the compass sensor and the wave sensor.
The circuit structure and the operation principle of the main control circuit and the power management circuit are described in detail below.
As shown in fig. 3, the main control circuit includes a first MCU and a first SD card connected to each other, a second MCU and a second SD card connected to each other, a CPLD switching control module, and a plurality of serial ports chips, where each serial port chip is respectively communicated with a serial port of a sensor carried on a buoy. In this embodiment, the first MCU and the first SD card are connected by an SDIO interface, and the second MCU and the second SD card are connected by an SDIO interface.
In this preferred embodiment, because the sensor of carrying on the buoy includes big dipper mobile terminal, water quality sensor, meteorological sensor, compass sensor and wave sensor, therefore serial ports chip among the master control circuit includes serial ports chip 1, serial ports chip 2, serial ports chip 3, serial ports chip 4 and serial ports chip 5, and serial ports chip 1-5 are used for interface level conversion, wherein: serial port chip 1 communicates big dipper mobile terminal's serial port, and serial port chip 2 communicates the serial port of quality of water sensor, and serial port chip 3 communicates meteorological sensor's serial port, and serial port chip 4 communicates compass sensor's serial port, and serial port chip 5 communicates wave sensor's serial port.
The CPLD switching control module is mainly responsible for switching and controlling the first MCU and the second MCU, so that one of the first MCU and the second MCU is communicated with the serial ports of the sensors carried on the buoy through the serial port chip. After the whole buoy system is electrified and initialized, the CPLD switching control module controls each serial port chip to be communicated with the serial port of the first MCU by default, and the input IO port of the power management circuit is communicated with the IO port of the first MCU. In the data acquisition process, the CPLD switching control module automatically switches each serial port chip to be respectively communicated with the serial port of the second MCU by judging the IO level connected with the first MCU and the second MCU when the first MCU fails, and the input IO port of the power management circuit is communicated with the IO port of the second MCU.
In this embodiment, the specific connection manner between the main control circuit and the power management circuit and the sensor system is shown in fig. 3. After the system is powered on and initialized, the first MCU controls the IO1 to output a high level, and the second MCU controls the IO1 to output a low level. When the CPLD switching control module detects that IO11 is high level and IO21 is low level, the serial port of the first MCU is controlled to be communicated with the serial port chip, namely UART32 is communicated with UART12, UART33 is communicated with UART13, UART34 is communicated with UART14, UART35 is communicated with UART15 and UART36 is communicated with UART16, and meanwhile the IO port of the first MCU is controlled to be communicated with the input IO port of the power management circuit, namely IO32 is communicated with IO12, IO33 is communicated with IO13, IO34 is communicated with IO14, IO35 is communicated with IO15 and IO36 is communicated with IO 16.
When the second MCU control collection needs to be switched, the first MCU controls the IO1 to output a low level or a high resistance state, and the second MCU controls the IO1 to output a high level. When the CPLD switching control module detects that IO11 is in a low-level or high-resistance state and IO21 is in a high-level state, the serial port of the second MCU is controlled to be communicated with the serial port chip, namely UART32 is communicated with UART22, UART33 is communicated with UART23, UART34 is communicated with UART24, UART35 is communicated with UART25, UART36 is communicated with UART26, and meanwhile the IO port of the second MCU is controlled to be communicated with the input IO port of the power management circuit, namely IO32 is communicated with IO22, IO33 is communicated with IO23, IO34 is communicated with IO24, IO35 is communicated with IO25, and IO36 is communicated with IO 26.
As shown in fig. 4, the power management circuit in this embodiment also needs to include a 5V power management circuit, a 24V power management circuit, and a 12V power management circuit, respectively, corresponding to three different voltages. With reference to fig. 3 and 4, the three power management circuits are as follows:
the 5V power management circuit comprises a first NMOS tube and a first PMOS tube which are connected, the first NMOS tube and the first PMOS tube are communicated with the CPLD switching control module through an input IO32, and when the level of an input IO32 is high, the first NMOS tube is driven to be conducted, and then the first PMOS tube is driven to be conducted to supply power to the compass sensor; when the input IO32 is low, the power supply of the compass sensor is cut off.
The 24V power management circuit comprises a second NMOS tube and a second PMOS tube which are connected, the NMOS tube and the second PMOS tube are communicated with the CPLD switching control module through an input IO33, when the input IO33 level is high, the second NMOS tube is driven to be conducted, the second PMOS tube is driven to be conducted, power is supplied to the Beidou mobile terminal, and when the input IO33 low level is reached, the power is supplied to the Beidou mobile terminal in a turn-off mode.
The 12V power management circuit comprises a third NMOS tube and a third PMOS tube which are connected, the third NMOS tube and the third PMOS tube are communicated with the CPLD switching control module through an input IO34, when the level of the input IO34 is high, the third NMOS tube is driven to be conducted, the third PMOS tube is further driven to be conducted, power is supplied to the water quality sensor, and when the level of the input IO34 is low, the water quality sensor is switched off. In addition, the 12V power management circuit further includes a fourth NMOS transistor and a fourth PMOS transistor connected to each other, and the fourth NMOS transistor and the fourth PMOS transistor are connected to the CPLD switching control module through an input IO35, and when the input IO35 is high, the fourth NMOS transistor is driven to be turned on, and further the fourth PMOS transistor is driven to be turned on, so as to supply power to the weather sensor, and when the input IO35 is low, the power supply to the weather sensor is turned off. In addition, the 12V power management circuit further includes a fifth NMOS transistor and a fifth PMOS transistor connected to each other, and the fifth NMOS transistor and the fifth PMOS transistor are connected to the CPLD switching control module through an input IO36, and when the input IO36 is high, the fifth NMOS transistor is driven to be turned on, and further the fifth PMOS transistor is driven to be turned on, so as to supply power to the wave sensor, and when the input IO36 is low, the power supply of the wave sensor is turned off.
Based on the above dual-backup data acquisition control circuit, the invention further provides a buoy dual-backup data acquisition control method, which comprises the following steps:
s1, the first MCU and the second MCU are powered on and initialized, the CPLD switching control module initializes and defaults to connect each serial port chip to the serial port of the first MCU, and the input IO port of the power management circuit is connected to the IO port of the first MCU; after the second MCU completes initialization, the Beidou mobile terminal enters a low power consumption mode, and after the first MCU completes initialization, the Beidou mobile terminal is controlled to be powered on, time information is acquired, RTC time is calibrated, and then the power supply of the Beidou mobile terminal is turned off.
For this embodiment, in a specific implementation, after the first MCU and the second MCU are powered on and initialized, the first MCU controls the IO1 to output a high level, and the second MCU controls the IO1 to output a low level. When the CPLD switching control module detects that IO11 is at a high level and IO21 is at a low level, the serial port chip can be controlled to be communicated with the serial port of the first MCU, the input IO port of the power management circuit is communicated with the IO port of the first MCU, and the first MCU controls the acquisition, power-on and power-off of each sensor.
S2, according to the calibrated time, when the preset sensor monitoring data acquisition time is reached, the first MCU controls each sensor carried on the buoy to be powered on through the power management circuit to obtain sensor data, then the sensor data and the time information are packaged and then sent to a shore station receiving platform through the Beidou mobile terminal, meanwhile, the data are stored in the first SD card, the second MCU is awakened through the serial port, and the packaged data are sent to the second MCU.
For this embodiment, in a specific implementation, the second MCU may be awakened through the UART1 serial port, so as to send the packaged data to the second MCU.
S3, after the second MCU receives the packed data sent by the first MCU, firstly, storing the data in the second SD card, and then, reading the time information in the data to carry out RTC calibration; and then the second MCU judges the effectiveness of the sensor data sent by the first MCU, if the sensor data sent by the first MCU is normally acquired, the second MCU enters a low power consumption mode again, if the data sent by the first MCU is abnormally acquired, a switching command is sent to the first MCU, the CPLD switching control module is controlled to communicate the serial port of the sensor to the serial port of the second MCU, meanwhile, the input IO port of the power management circuit is communicated to the IO port of the second MCU, and the first MCU enters the low power consumption mode.
In addition, it should be noted that if the second MCU does not receive the data sent by the first MCU for two consecutive periods, the second MCU automatically exits from the low power consumption mode, enters the working mode, and simultaneously sends a switching command to the first MCU, controls the CPLD switching control module to communicate the sensor serial port to the serial port of the second MCU, and communicates the input IO port of the power management circuit to the IO port of the second MCU, while the first MCU enters the low power consumption mode.
For this embodiment, in a specific implementation, when the second MCU performs validity judgment on the received data sent by the first MCU, the second MCU may invoke a preset data validity rule, and the data validity rule may be determined through expert experience or statistical analysis based on the sensor historical data. When the data validity rule is satisfied, the data collected by the sensor can be considered to be normal, and when the data validity rule is not satisfied, the data collected by the sensor can be considered to be abnormal. The specific data validity determination method is not the focus of the present invention, and is not described herein.
During specific implementation, if the second MCU analyzes and judges that sensor data acquisition is abnormal, the second MCU needs to send a switching instruction to the first MCU through the UART1, the first MCU controls the IO1 to output a low level or a high resistance state, the second MCU controls the IO1 to output a high level, when the CPLD switching control module detects that the IO11 is in the low level or the high resistance state, the IO21 is in the high level, the sensor serial port is controlled to be communicated to the serial port of the second MCU, the input IO port of the power management circuit is communicated to the IO port of the second MCU, and meanwhile, the first MCU enters a low power consumption mode. Similarly, if the second MCU does not receive the data sent by the first MCU in two consecutive periods, the second MCU automatically exits from the low power consumption mode and enters the working mode, meanwhile, the second MCU sends a switching instruction to the first MCU through the UART1, the first MCU controls the IO1 to output a low level or a high resistance state, the second MCU controls the IO1 to output a high level, when the CPLD switching control module detects that the IO11 is in the low level or the high resistance state and the IO21 is in the high level, the sensor serial port is controlled to be communicated to the serial port of the second MCU, and the input IO port of the power management circuit is communicated to the IO port of the second MCU.
S4, when the next sensor monitoring data acquisition time is reached, the working states of the two MCUs need to be judged first, and then the two MCUs work in one of the following two modes:
if the current first MCU is in a working mode and the second MCU is in a low power consumption mode, indicating that the second MCU is not switched to control acquisition, the first MCU is responsible for data acquisition, storage and uploading continuously according to S2 and S3;
if the current second MCU is in a working mode and the first MCU is in a low power consumption mode, the switching to the second MCU for control and acquisition is indicated, the second MCU controls all sensors carried on the buoy to be powered on through the power management circuit to acquire sensor data, then the sensor data and time information are packaged and then are sent to a shore station receiving platform through a Beidou mobile terminal, meanwhile, the data are stored in a second SD card, the first MCU is awakened through a serial port, and the packaged data are sent to the first MCU; after receiving the packed data sent by the second MCU, the first MCU firstly stores the data in the first SD card and then enters a low power consumption mode.
For this embodiment, in a specific implementation, the second MCU may also wake up the first MCU through the UART1 serial port.
And S5, continuously and circularly executing S4 until the buoy is recovered.
It should be noted that, in the present invention, the cycle interval of the sensor monitoring data acquisition time may be adjusted and set according to actual needs, for example, may be set to 1 hour, and the acquisition is started at every hour of the beijing time, so as to facilitate the subsequent processing of the data. Of course, the specific acquisition time and interval are not fixed, and the user can adjust the acquisition time and interval according to actual needs.
Therefore, the double-backup data acquisition control circuit and the control method realize backup of buoy data acquisition control and backup of buoy data storage. When the first MCU works abnormally, the first MCU can be automatically switched to the second MCU, and compared with a single data acquisition control system, the system fault rate is reduced, the on-site normal operation time of the buoy is prolonged, and the operation and maintenance cost is saved. Buoy data is stored in two SD cards simultaneously, and the safety and the integrity of data storage are improved.
The above-described embodiments are merely preferred embodiments of the present invention, which should not be construed as limiting the invention. Various changes and modifications may be made by one of ordinary skill in the pertinent art without departing from the spirit and scope of the present invention. Therefore, the technical scheme obtained by adopting the mode of equivalent replacement or equivalent transformation is within the protection scope of the invention.

Claims (10)

1. A double-backup data acquisition control circuit of a large buoy is characterized by comprising a main control circuit and a power management circuit, wherein the main control circuit is used as a control center of the buoy and is responsible for acquiring, storing and uploading monitoring data of each sensor carried on the buoy; the power supply management circuit is used for realizing power-on and power-off control of each sensor;
the main control circuit comprises a first MCU and a first SD card which are connected, a second MCU and a second SD card which are connected, a CPLD switching control module and a plurality of serial port chips, wherein each serial port chip is respectively communicated with a serial port of a sensor carried on a buoy;
the CPLD switching control module is used for switching and controlling the first MCU and the second MCU, so that one of the first MCU and the second MCU is communicated with the serial ports of the sensors carried on the buoy through the serial port chip; after power-on initialization, the CPLD switching control module controls each serial port chip to be communicated with the serial port of the first MCU by default, and the input IO port of the power management circuit is communicated with the IO port of the first MCU; in the data acquisition process, by judging the IO level connected with the first MCU and the second MCU, when the first MCU breaks down, each serial port chip is automatically switched to be respectively communicated with the serial port of the second MCU, and the input IO port of the power management circuit is communicated with the IO port of the second MCU.
2. The dual backup data acquisition control circuit of a large buoy of claim 1, wherein: the sensor that carries on the buoy includes big dipper mobile terminal, water quality sensor, meteorological sensor, compass sensor and wave sensor, serial ports chip among the main control circuit includes first serial ports chip, second serial ports chip, third serial ports chip, fourth serial ports chip and fifth serial ports chip, first serial ports chip intercommunication big dipper mobile terminal's serial ports, second serial ports chip intercommunication water quality sensor's serial ports, third serial ports chip intercommunication meteorological sensor's serial ports, fourth serial ports chip intercommunication compass sensor's serial ports, fifth serial ports chip intercommunication wave sensor's serial ports.
3. The dual backup data acquisition control circuit of a large buoy of claim 2, wherein: the power management circuit comprises a 5V power management circuit, a 24V power management circuit and a 12V power management circuit.
4. The dual backup data acquisition control circuit of a large buoy of claim 3, wherein: the 5V power management circuit comprises a first NMOS tube and a first PMOS tube which are connected, the NMOS tube and the PMOS tube are communicated with the CPLD switching control module through an input IO32, and when the level of an input IO32 is high, the NMOS tube is driven to be conducted, so that the PMOS tube is driven to be conducted, and power is supplied to the compass sensor; when the input IO32 is low, the power supply of the compass sensor is cut off.
5. The dual backup data acquisition control circuit of a large buoy of claim 3, wherein: the 24V power management circuit comprises a second NMOS tube and a second PMOS tube which are connected, the NMOS tube and the second PMOS tube are communicated with the CPLD switching control module through an input IO33, when the level of an input IO33 is high, the second NMOS tube is driven to be conducted, the second PMOS tube is further driven to be conducted, power is supplied to the Beidou mobile terminal, and when the level of the input IO33 is low, the power supply of the Beidou mobile terminal is cut off.
6. The dual backup data acquisition control circuit of a large buoy of claim 3, wherein: the 12V power management circuit comprises a third NMOS tube and a third PMOS tube which are connected, the third NMOS tube and the third PMOS tube are communicated with the CPLD switching control module through an input IO34, when the level of the input IO34 is high, the third NMOS tube is driven to be conducted, the third PMOS tube is further driven to be conducted, power is supplied to the water quality sensor, and when the level of the input IO34 is low, the water quality sensor is switched off.
7. The dual backup data acquisition control circuit of a large buoy of claim 3, wherein: the 12V power management circuit comprises a fourth NMOS tube and a fourth PMOS tube which are connected, the fourth NMOS tube and the fourth PMOS tube are communicated with the CPLD switching control module through an input IO35, when the level of an input IO35 is high, the fourth NMOS tube is driven to be conducted, the fourth PMOS tube is further driven to be conducted, power is supplied to the meteorological sensor, and when the level of the input IO35 is low, the power of the meteorological sensor is cut off.
8. The dual backup data acquisition control circuit of a large buoy of claim 3, wherein: the 12V power management circuit comprises a fifth NMOS tube and a fifth PMOS tube which are connected, the fifth NMOS tube and the fifth PMOS tube are communicated with the CPLD switching control module through an input IO36, when the level of an input IO36 is high, the fifth NMOS tube is driven to be conducted, the fifth PMOS tube is further driven to be conducted, power is supplied to the wave sensor, and when the level of the input IO36 is low, the power supply of the wave sensor is cut off.
9. A buoy dual-backup data acquisition control method based on the dual-backup data acquisition control circuit according to any one of claims 1 to 8, comprising the steps of:
s1, the first MCU and the second MCU are electrified and initialized, the CPLD switching control module initializes and defaults to connect each serial port chip to the serial port of the first MCU, and the input IO port of the power management circuit is connected to the IO port of the first MCU; after the second MCU completes initialization, the second MCU enters a low power consumption mode, and after the first MCU completes initialization, the Beidou mobile terminal is controlled to be powered on, time information is obtained, and RTC time is calibrated;
s2, according to the calibrated time, when the preset sensor monitoring data acquisition time is reached, the first MCU controls each sensor carried on the buoy to be powered on through the power management circuit to obtain sensor data, then the sensor data and the time information are packaged and then sent to a shore station receiving platform through the Beidou mobile terminal, meanwhile, the data are stored in the first SD card, the second MCU is awakened through the serial port, and the packaged data are sent to the second MCU;
s3, after receiving the packed data sent by the first MCU, the second MCU firstly stores the data in the second SD card and then reads the time information in the data to carry out RTC calibration; then the second MCU judges the effectiveness of the sensor data sent by the first MCU, if the sensor data sent by the first MCU is normally acquired, the second MCU enters a low power consumption mode again, if the data sent by the first MCU is abnormal in acquisition, a switching command is sent to the first MCU, the CPLD switching control module is controlled to connect the serial port of the sensor to the serial port of the second MCU, meanwhile, the input IO port of the power management circuit is connected to the IO port of the second MCU, and the first MCU enters the low power consumption mode;
if the second MCU does not receive the data sent by the first MCU in two continuous periods, automatically exiting the low power consumption mode, entering the working mode, simultaneously sending a switching command to the first MCU, controlling the CPLD switching control module to communicate the sensor serial port to the serial port of the second MCU, communicating the input IO port of the power management circuit to the IO port of the second MCU, and entering the low power consumption mode by the first MCU;
s4, when the data acquisition time of the next sensor is reached, if the current first MCU is in the working mode and the second MCU is in the low power consumption mode, continuing to acquire, store and upload data according to S2 and S3; if the second MCU is in a working mode and the first MCU is in a low power consumption mode, the second MCU controls all sensors carried on the buoy to be powered on through the power management circuit to obtain sensor data, then the sensor data and time information are packaged and then are sent to a shore station receiving platform through a Beidou mobile terminal, meanwhile, the data are stored in a second SD card, the first MCU is awakened through a serial port, and the packaged data are sent to the first MCU; after receiving the packed data sent by the second MCU, the first MCU firstly stores the data in the first SD card and then enters a low power consumption mode;
and S5, continuously and circularly executing S4 until the buoy is recovered.
10. The method as claimed in claim 9, wherein the cycle interval of the sensor monitoring data collection time is set to 1 hour, and collection is started at every hour of beijing.
CN202210416885.8A 2022-04-20 2022-04-20 Double-backup data acquisition control circuit and control method for large buoy Pending CN114779694A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210416885.8A CN114779694A (en) 2022-04-20 2022-04-20 Double-backup data acquisition control circuit and control method for large buoy

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210416885.8A CN114779694A (en) 2022-04-20 2022-04-20 Double-backup data acquisition control circuit and control method for large buoy

Publications (1)

Publication Number Publication Date
CN114779694A true CN114779694A (en) 2022-07-22

Family

ID=82430664

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210416885.8A Pending CN114779694A (en) 2022-04-20 2022-04-20 Double-backup data acquisition control circuit and control method for large buoy

Country Status (1)

Country Link
CN (1) CN114779694A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115755685A (en) * 2022-11-09 2023-03-07 中国海洋大学 Dual-processor ocean drifting buoy control system

Citations (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101469990A (en) * 2008-09-11 2009-07-01 哈尔滨工程大学 Dual-CPU embedded navigation computer
CN101980311A (en) * 2010-08-27 2011-02-23 国家海洋局第二海洋研究所 Method for giving alarm to low oxygen phenomenon of inshore ocean by monitoring buoys
US20110266086A1 (en) * 2010-02-23 2011-11-03 Welker Kenneth E Seismic Data Acquisition Using Self-Propelled Underwater Vehicles
US20120085544A1 (en) * 2010-10-12 2012-04-12 Bp Exploration Operating Company Limited Marine subsea free-standing riser systems and methods
CN103176939A (en) * 2013-01-16 2013-06-26 安徽工程大学 Redundant serial communication device with automatic replacing function
CN103605303A (en) * 2013-10-31 2014-02-26 杭州电子科技大学 Injection-molding-machine digital IO switch-over terminal junction box with redundancy detection function
CN103885363A (en) * 2014-03-19 2014-06-25 青岛海洋地质研究所 Data acquisition circuit for seabed environment home position monitor platform
CN104182304A (en) * 2014-08-12 2014-12-03 西北工业大学 Universal multi-mode redundant pico/nano satellite on-board computer system
CN104950760A (en) * 2015-06-17 2015-09-30 中国海洋大学 Power supply management integrated marine monitoring general data collector
CN107934735A (en) * 2017-12-19 2018-04-20 国家深海基地管理中心 A kind of electric remote control formula sea instrument lays mechanism
CN108401240A (en) * 2018-04-09 2018-08-14 滑县浩之本网络科技有限公司 A kind of buoy redundancy communication device based on high in the clouds storage
CN108521319A (en) * 2018-04-09 2018-09-11 郑州琼佩电子技术有限公司 A kind of buoy redundance communicating method based on high in the clouds storage
CN110244598A (en) * 2019-05-10 2019-09-17 中国船舶重工集团公司第七一五研究所 A kind of sink-float profile buoy control circuit and control method certainly
CN110281896A (en) * 2019-05-29 2019-09-27 浙江亚太机电股份有限公司 The electronic control unit control system of EPB+P grades of dual control dual redundant backups
CN110542917A (en) * 2019-08-31 2019-12-06 华南理工大学 marine environment nuclear radiation monitoring system and monitoring method thereof
CN209877962U (en) * 2019-06-14 2019-12-31 中船海洋探测技术研究院有限公司 Real-time data acquisition circuit based on redundancy mechanism
CN110658749A (en) * 2019-09-12 2020-01-07 中国科学院声学研究所北海研究站 Low-power-consumption data acquisition and storage system and method for base type acoustic submerged buoy
CN111142450A (en) * 2020-01-15 2020-05-12 大连理工大学 Water quality data acquisition and storage system and method based on double single-chip microcomputers
CN111260900A (en) * 2020-01-08 2020-06-09 中国电子科技集团公司电子科学研究院 Buoy-based multi-system heterogeneous data processing system
WO2020244048A1 (en) * 2019-06-03 2020-12-10 中国科学院南海海洋研究所 Air-sea real-time observation buoy system employing beidou and iridium satellite communication
US20200386545A1 (en) * 2017-06-27 2020-12-10 The First Institute Of Oceanography, Soa New Submerged Buoy Data Acquisition System
US20210101661A1 (en) * 2019-10-03 2021-04-08 Continental Shelf Associates, Inc. Underwater data capture and transmission system having a variable buoy
CN112834718A (en) * 2021-01-08 2021-05-25 江苏省无锡环境监测中心 Buoy water quality on-line monitoring system
CN113483740A (en) * 2021-06-22 2021-10-08 北京锋泛科技有限公司 Buoy, data observation method, data observation device, electronic equipment and storage medium
CN113485089A (en) * 2021-07-05 2021-10-08 浙江胄天科技股份有限公司 Control method for monitoring system in mobile offshore environment monitoring equipment
CN114189820A (en) * 2021-11-17 2022-03-15 青岛杰瑞自动化有限公司 Buoy data acquisition system and control method
CN216185845U (en) * 2021-11-05 2022-04-05 青岛杰瑞自动化有限公司 Multi-parameter ocean monitoring buoy
CN216356090U (en) * 2021-11-08 2022-04-19 北京工业大学 Intelligent dual-backup power supply system for security equipment

Patent Citations (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101469990A (en) * 2008-09-11 2009-07-01 哈尔滨工程大学 Dual-CPU embedded navigation computer
US20110266086A1 (en) * 2010-02-23 2011-11-03 Welker Kenneth E Seismic Data Acquisition Using Self-Propelled Underwater Vehicles
CN101980311A (en) * 2010-08-27 2011-02-23 国家海洋局第二海洋研究所 Method for giving alarm to low oxygen phenomenon of inshore ocean by monitoring buoys
US20120085544A1 (en) * 2010-10-12 2012-04-12 Bp Exploration Operating Company Limited Marine subsea free-standing riser systems and methods
CN103176939A (en) * 2013-01-16 2013-06-26 安徽工程大学 Redundant serial communication device with automatic replacing function
CN103605303A (en) * 2013-10-31 2014-02-26 杭州电子科技大学 Injection-molding-machine digital IO switch-over terminal junction box with redundancy detection function
CN103885363A (en) * 2014-03-19 2014-06-25 青岛海洋地质研究所 Data acquisition circuit for seabed environment home position monitor platform
CN104182304A (en) * 2014-08-12 2014-12-03 西北工业大学 Universal multi-mode redundant pico/nano satellite on-board computer system
CN104950760A (en) * 2015-06-17 2015-09-30 中国海洋大学 Power supply management integrated marine monitoring general data collector
US20200386545A1 (en) * 2017-06-27 2020-12-10 The First Institute Of Oceanography, Soa New Submerged Buoy Data Acquisition System
CN107934735A (en) * 2017-12-19 2018-04-20 国家深海基地管理中心 A kind of electric remote control formula sea instrument lays mechanism
CN108401240A (en) * 2018-04-09 2018-08-14 滑县浩之本网络科技有限公司 A kind of buoy redundancy communication device based on high in the clouds storage
CN108521319A (en) * 2018-04-09 2018-09-11 郑州琼佩电子技术有限公司 A kind of buoy redundance communicating method based on high in the clouds storage
CN110244598A (en) * 2019-05-10 2019-09-17 中国船舶重工集团公司第七一五研究所 A kind of sink-float profile buoy control circuit and control method certainly
CN110281896A (en) * 2019-05-29 2019-09-27 浙江亚太机电股份有限公司 The electronic control unit control system of EPB+P grades of dual control dual redundant backups
WO2020244048A1 (en) * 2019-06-03 2020-12-10 中国科学院南海海洋研究所 Air-sea real-time observation buoy system employing beidou and iridium satellite communication
CN209877962U (en) * 2019-06-14 2019-12-31 中船海洋探测技术研究院有限公司 Real-time data acquisition circuit based on redundancy mechanism
CN110542917A (en) * 2019-08-31 2019-12-06 华南理工大学 marine environment nuclear radiation monitoring system and monitoring method thereof
CN110658749A (en) * 2019-09-12 2020-01-07 中国科学院声学研究所北海研究站 Low-power-consumption data acquisition and storage system and method for base type acoustic submerged buoy
US20210101661A1 (en) * 2019-10-03 2021-04-08 Continental Shelf Associates, Inc. Underwater data capture and transmission system having a variable buoy
CN111260900A (en) * 2020-01-08 2020-06-09 中国电子科技集团公司电子科学研究院 Buoy-based multi-system heterogeneous data processing system
CN111142450A (en) * 2020-01-15 2020-05-12 大连理工大学 Water quality data acquisition and storage system and method based on double single-chip microcomputers
CN112834718A (en) * 2021-01-08 2021-05-25 江苏省无锡环境监测中心 Buoy water quality on-line monitoring system
CN113483740A (en) * 2021-06-22 2021-10-08 北京锋泛科技有限公司 Buoy, data observation method, data observation device, electronic equipment and storage medium
CN113485089A (en) * 2021-07-05 2021-10-08 浙江胄天科技股份有限公司 Control method for monitoring system in mobile offshore environment monitoring equipment
CN216185845U (en) * 2021-11-05 2022-04-05 青岛杰瑞自动化有限公司 Multi-parameter ocean monitoring buoy
CN216356090U (en) * 2021-11-08 2022-04-19 北京工业大学 Intelligent dual-backup power supply system for security equipment
CN114189820A (en) * 2021-11-17 2022-03-15 青岛杰瑞自动化有限公司 Buoy data acquisition system and control method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115755685A (en) * 2022-11-09 2023-03-07 中国海洋大学 Dual-processor ocean drifting buoy control system

Similar Documents

Publication Publication Date Title
CN111290315B (en) Dual-mode Internet of things control system and method
CN114779694A (en) Double-backup data acquisition control circuit and control method for large buoy
CN212367306U (en) Ship remote data management system and ship
CN102540224A (en) Fishing net tracker based on automatic ship identification technology and method thereof
CN114237132A (en) Redundant satellite positioning communication system for wave glider
CN106292430A (en) Data acquisition unit
CN110389555B (en) Monitoring system and monitoring method for marine transformer
CN207689930U (en) Humidity control system and data platform
CN108319128B (en) Fault-tolerant control system and method for wave glider with emergency function
CN207704501U (en) A kind of OBD monitoring devices and system
CN211603013U (en) Water quality monitoring device and system
CN110446245B (en) Transmission method, terminal equipment and storage medium of original observation data
CN110212937B (en) Low-power-consumption module based on single Beidou module and multi-card data transmission mode
CN111601369B (en) Energy-saving control system and method
CN113125668A (en) Low-power consumption control system of water quality monitoring buoy
CN111798653A (en) Data acquisition method and device
CN103714684A (en) Environmental monitoring networking method and device based on combination of Zigbee module and 433M radio frequency module
CN103197618A (en) Method and system of monitoring wind-driven generator
CN116073884A (en) Ocean buoy communication system and method based on high-low orbit satellite fusion
US20180316988A1 (en) Battery management device, battery management system, and battery management method
CN104035421A (en) Intelligent control system and method of water pump
CN214845208U (en) Low-power consumption control system of water quality monitoring buoy
CN210693993U (en) On-vehicle POE switch
CN211321339U (en) Grain condition information gateway device for collecting grain logistics process
CN208572439U (en) A kind of ship monitor management equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination