Device and method for recording internal measurement data of underwater platform

By designing an underwater platform data recording device that integrates components such as microprocessors, communication chips, etc., the problem that data recording devices in the prior art cannot guarantee the real-time, effectiveness and integrity of data is achieved, and efficient and reliable data recording is achieved.

CN119807124APending Publication Date: 2025-04-11YICHANG TESTING TECHNIQUE RESEARCH INSTITUTE
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411587805.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-08
Publication Date
2025-04-11

AI Technical Summary

Technical Problem

The existing underwater platform data recording devices give priority to ensuring battery life in terms of performance and battery life, and cannot guarantee the real-time, effectiveness and integrity of the data.

Method used

A data recording device including a microprocessor, communication chip, clock chip, storage unit, DC-DC voltage stabilization chip, energy consumption management unit and external interface was designed. By building a minimum system, circuit design is simplified, and the AD acquisition function and software watchdog mechanism that comes with the microcontroller is used to reduce overall power consumption, and precisely control the power-up and power-down of the product through the energy consumption management unit.

Benefits of technology

Real-time, effectiveness and integrity of data is achieved, overall power consumption is reduced, energy efficiency management mechanism is improved, and reliable recording of internal test data on the underwater platform is ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119807124A_ABST
    Figure CN119807124A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of underwater platform data recording, in particular to an underwater platform internal measurement data recording device and method. The device comprises a microprocessor, the microprocessor is in communication connection with an external interface, and the external interface is in communication connection with a depth sensor, a magnetic compass and a fuze system; the communication chip is in communication connection with the microprocessor and the external interface; the clock chip is in communication connection with the microprocessor; the storage unit is in communication connection with the microprocessor; the DC-DC voltage stabilizing chip is in communication connection with the microprocessor and the storage unit; the energy consumption management unit is in communication connection with the microprocessor and the DC-DC voltage stabilization chip. Compared with a traditional recording device, by building a minimum system, circuit design is simplified, an AD acquisition chip and a voltage monitoring chip which are high in power consumption are omitted, and an AD acquisition function and a software watchdog mechanism of a single-chip microcomputer are used, so that overall power consumption is reduced, and real-time performance, effectiveness and integrity of data are guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of underwater platform data recording, and in particular to a device and method for recording internal measurement data of an underwater platform. Background Art

[0002] During the development process of underwater platforms, a large number of lake and sea tests are required. Due to its unique closed nature, the test process cannot be monitored in real time. A method is needed to collect and record the data of the entire cycle of the underwater platform sinking test. The data generated during the test is used to analyze the data generated during the test, which will help the development of the product. The data processing results can also be used as a criterion for whether the test or exercise is successful.

[0003] The data generated by underwater platforms during tests or exercises mainly come from fuze systems, depth sensors, and magnetic compasses. Due to the large amount of data and the wide variety of data, and limited by space factors, the data recording devices in the existing technology can only give priority to endurance advantages in terms of performance and endurance, and cannot guarantee the real-time, validity, and integrity of the data. Therefore, unique devices and methods need to be developed for the collection and recording of multiple types of data to ensure the real-time, validity, and integrity of the data. Summary of the invention

[0004] In view of the shortcomings of the prior art mentioned above, the purpose of the present invention is to provide a data recording device and method for underwater platform internal measurement, which solves the problem that the data recording devices in the prior art can only give priority to the endurance advantage in terms of performance and endurance, but cannot guarantee the real-time, validity and integrity of the data.

[0005] In order to achieve the above-mentioned purpose and other related purposes, the present invention provides a device for recording internal measurement data of an underwater platform, comprising:

[0006] A microprocessor is communicatively connected to an external interface, and the external interface is communicatively connected to a depth sensor, a magnetic compass, and a fuze system;

[0007] A communication chip, which is communicatively connected with the microprocessor and the external interface;

[0008] A clock chip, which is communicatively connected with the microprocessor;

[0009] A storage unit, which is communicatively connected with the microprocessor;

[0010] A DC-DC voltage stabilizing chip, which is communicatively connected with the microprocessor and the storage unit;

[0011] The energy consumption management unit is communicatively connected with the microprocessor and the DC-DC voltage stabilizing chip.

[0012] In one embodiment of the present invention, the external interface includes an AD interface, an RS485 interface, and an IO interface; the microprocessor is used to receive AD data and IO data from the depth sensor and the fuze system respectively through the AD interface and the IO interface, the communication chip is used to receive RS485 data from the fuze system through the RS485 interface, and the communication chip is used to output a TTL signal to the microprocessor.

[0013] In one embodiment of the present invention, the energy consumption management unit includes a power conversion unit and a storage unit power-on circuit; the input end of the power conversion unit is connected to a preset cable power supply, and the preset cable power supply is used as an input to control the conduction of the power conversion unit, and the storage unit power-on circuit is connected to the microprocessor for control through the microprocessor.

[0014] In one embodiment of the present invention, the power conversion unit includes a first NMOS tube, the gate of the first NMOS tube is connected to one end of the seventh resistor R7, the other end of the seventh resistor R7 is respectively connected to one end of the first capacitor C1, one end of the sixth resistor R6, and one end of the third resistor R3, the other end of the third resistor R3 is connected to the DC-DC voltage regulator chip, the other end of the first capacitor C1 and the other end of the sixth resistor R6 are grounded, the drain of the first NMOS tube is respectively connected to one end of the fourth resistor R4 and the power-on loop of the storage unit, the other end of the fourth resistor R4 is connected to the preset cable power supply, and the source of the first NMOS tube is grounded.

[0015] In one embodiment of the present invention, the power-on circuit of the storage unit includes a second NMOS tube and a PMOS tube, the gate of the second NMOS tube is connected to one end of a ninth resistor R9, the other end of the ninth resistor R9 is respectively connected to one end of a third capacitor C3, one end of an eighth resistor R8, and one end of a fourth resistor R4, the other end of the third capacitor C3 and the other end of the eighth resistor R8 are grounded, the source of the second NMOS tube is grounded, the drain of the second NMOS tube is connected to one end of a fifth resistor R5, the other end of the fifth resistor R5 is respectively connected to one end of a first resistor R1, one end of a second capacitor C2, and one end of a second resistor R2, the other end of the second resistor R2 is connected to the gate of the PMOS tube, the other end of the first resistor R1, the other end of the second capacitor C2, and the source of the PMOS tube are all connected to a preset cable power supply, the drain of the PMOS tube is respectively connected to one end of a fourth capacitor C4 and the microprocessor, and the other end of the fourth capacitor C4 is grounded.

[0016] In one embodiment of the present invention, the model of the microprocessor is an STM32L4 chip, the model of the DC-DC voltage regulator chip is XC8222, and the model of the clock chip is JYC3231.

[0017] The present invention also provides a method for recording internal measurement data of an underwater platform, comprising the above-mentioned device for recording internal measurement data of an underwater platform, and the method for recording internal measurement data of an underwater platform comprises:

[0018] S1. When the IO interface in the external interface is at a low level, enter the working mode;

[0019] S2, in the working mode, starting the second timer thread and serial port receiving thread of the microprocessor, and enabling IO port interruption;

[0020] S3. When the microprocessor receives serial port data, the semaphore is released, the semaphore is received in the serial port receiving thread, and serial port data is read from the RS485 interface. The microprocessor prohibits all interrupt responses, records the clock tick value of the clock chip, and writes the serial port data into the cache of the microprocessor in the serial port receiving thread.

[0021] In one embodiment of the present invention, the release of the semaphore is derived from a level conversion or a full-second pulse of an IO interface.

[0022] In one embodiment of the present invention, when the RS485 interface does not read new data within 30ms and is triggered by the rising edge of the synchronous clock, the IO data and the serial port data are written into the cache of the microprocessor.

[0023] In one embodiment of the present invention, the capacity of the cache is judged, and when the capacity is greater than half, the data in the cache is written into an SD card connected to the microprocessor.

[0024] As described above, the device and method for recording internal measurement data of an underwater platform of the present invention have the following beneficial effects:

[0025] (1) The data recording device for underwater platform internal measurement of the present invention includes a microprocessor, a communication chip, a clock chip, a storage unit, a DC-DC voltage regulator chip, an energy consumption management unit, and an external interface. The present invention simplifies the circuit design by building a minimum system compared with the traditional recording device, removes the AD acquisition chip and voltage monitoring chip with high power consumption, and uses the AD acquisition function of the single-chip microcomputer and the software watchdog mechanism, thereby reducing the overall power consumption and ensuring the real-time, validity, and integrity of the data.

[0026] (2) The data recording device for underwater platform internal measurement of the present invention improves the energy efficiency management mechanism, reduces power consumption, and uses hardware design methods to build an energy consumption management system. Through software control and changes in external environmental conditions, the power-on and power-off of product peripherals are accurately controlled.

[0027] (3) The method for recording internal test data of an underwater platform of the present invention is developed based on the embedded real-time operating system RT-Thread, which has higher real-time performance. According to the characteristics of the recorded data, the double cache mechanism of the single-chip microcomputer is utilized, and the characteristics of the synchronization clock and the communication message sending timing of the underwater platform fuze system are fully utilized, which not only improves the real-time performance of the data, but also ensures the integrity and validity of the data. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 A principle block diagram of a device for recording internal measurement data of an underwater platform provided in an embodiment of the present application.

[0029] Figure 2 A principle block diagram of an energy consumption management unit for an underwater platform internal measurement data recording device provided in an embodiment of the present application.

[0030] Figure 3 A workflow diagram of a method for recording internal measurement data of an underwater platform provided in an embodiment of the present application.

[0031] Component number description

[0032] 1 Microprocessor

[0033] 2 Communication chip

[0034] 3 Clock chip

[0035] 4 Storage Units

[0036] 5 DC-DC voltage regulator chip

[0037] 6 Energy Management Unit

[0038] 7 External Interface DETAILED DESCRIPTION

[0039] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.

[0040] It should be noted that the illustrations provided in the following embodiments are only used to illustrate the basic concept of the present invention in a schematic manner, and thus the illustrations only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0041] Terms such as first or second can be used to describe various components, but these components are not limited by the above terms. The above terms are used to distinguish one component from another component, for example, without departing from the scope of the concept according to the present disclosure, a first component can be referred to as a second component, and similarly, a second component can be referred to as a first component.

[0042] In addition, "connected / coupled" means that one component is directly electrically coupled to another component or is indirectly electrically coupled through another component. The singular form may include the plural form unless explicitly stated in the sentence. In addition, "include / comprise" or "includes / comprises" used in this specification indicates that one or more components, steps, operations, and elements exist or have been added. The specific structural or functional descriptions of the examples of the implementation of the concepts disclosed in this specification are only illustrated to describe the examples of the implementation of the concepts, and the examples of the implementation of the concepts can be implemented in various forms, but these descriptions are not limited to the examples of the implementation described in this specification.

[0043] According to the concept, various modifications and changes can be applied to the examples of the embodiments, so that the examples of the embodiments will be illustrated in the drawings and described in the specification. However, the examples of the embodiments according to the concept are not limited to the specific embodiments, but include all changes, equivalents or replacements included in the spirit and technical scope of the present disclosure.

[0044] It should be understood that when an element is described as being "coupled" or "connected" to another element, the element may be directly coupled or directly connected to the other element, or may be coupled or connected to the other element through a third element. Conversely, it should be understood that when an element is referred to as being "directly coupled to" or "directly coupled to" another element, no other element is placed between them. Other expressions describing the relationship between components (i.e., "between" and "directly between" or "adjacent to" and "directly adjacent to") need to be interpreted in the same manner.

[0045] The terms used in this specification are only used to describe specific examples of the embodiments and are not intended to limit the present disclosure. If there is no clear opposite meaning in the context, the singular form may include the plural form. In this specification, it should be understood that the term "including" or "having" indicates the presence of the features, quantities, steps, operations, components, parts or combinations thereof described in the specification, but the possibility of the presence or addition of one or more other features, quantities, steps, operations, components, parts or combinations thereof cannot be precluded.

[0046] If there is no contrary definition, all terms (including technical terms or scientific terms) used herein have the same meaning as those generally understood by ordinary technicians in the field. If the terms defined in the commonly used dictionary are not clearly defined in this specification, they should be interpreted as having the same meaning as in the context of the relevant technology, and not interpreted as ideal or overly formal meanings.

[0047] Descriptions of well-known components and processing techniques may be omitted so as not to unnecessarily obscure the embodiments of the disclosure.

[0048] Throughout the specification, the same reference numerals refer to the same elements. Thus, even if a reference numeral is not mentioned or described with reference to one figure, it may be mentioned or described with reference to another figure. Furthermore, even if a reference numeral is not shown in one figure, it may be mentioned or described with reference to another figure.

[0049] In addition, the logic level of the signal may be different or opposite to the described logic level. For example, a signal described as having a logic "high" level may alternatively have a logic "low" level, and a signal described as having a logic "low" level may alternatively have a logic "high" level.

[0050] The following will describe the various embodiments of the present disclosure in detail with reference to the accompanying drawings. However, it will be appreciated by those skilled in the art that in the various embodiments of the present disclosure, many technical details are provided in order to enable the reader to better understand the present disclosure. However, even without these technical details and various changes and modifications based on the following embodiments, the technical solutions claimed in the present disclosure can be implemented.

[0051] See also Figure 1 , Figure 1 The principle block diagram of a device for recording data of an underwater platform internal measurement provided by an embodiment of the present application. The present invention provides a device for recording data of an underwater platform internal measurement, including a microprocessor 1, a communication chip 2, a clock chip 3, a storage unit 4, a DC-DC voltage regulator chip 5, an energy consumption management unit 6, and an external interface 7. The microprocessor 1 is communicatively connected to the external interface 7, and the external interface 7 is communicatively connected to the depth sensor, the magnetic compass, and the fuze system; the communication chip 2 is communicatively connected to the microprocessor 1 and the external interface 7; the clock chip 3 is communicatively connected to the microprocessor 1; the storage unit 4 is communicatively connected to the microprocessor 1; the DC-DC voltage regulator chip 5 is communicatively connected to the microprocessor 1 and the storage unit 4; the energy consumption management unit 6 is communicatively connected to the microprocessor 1 and the DC-DC voltage regulator chip 5.

[0052] Specifically, the microprocessor 1 is also connected to an SD card.

[0053] In one embodiment of the present invention, the data recording device for underwater platform internal measurement of the present invention selects low-power series chips as much as possible in circuit design, and uses the least core components to realize data acquisition and storage, wherein the microprocessor 1 can be a low-power single-chip microcomputer, and the data recording device for underwater platform internal measurement includes a microprocessor 1, a DC-DC voltage regulator chip 5, a communication chip 2, and a clock chip 3. In terms of design, by building a minimum system, the circuit design is simplified compared to the traditional recording device, the AD acquisition chip and voltage monitoring chip with high power consumption are removed, and the AD acquisition function and software watchdog mechanism of the microprocessor 1 are used, thereby reducing the overall power consumption. In order to further improve the energy efficiency management mechanism of the recording device and reduce power consumption, the present invention also builds an energy consumption management unit 6, which accurately controls the power-on and power-off of the product peripherals through software control and changes in the external environment state.

[0054] Specifically, the external interface 7 includes an AD interface, an RS485 interface, and an IO interface; the microprocessor 1 is used to receive AD data and IO data from the depth sensor and the fuze system through the AD interface and the IO interface, respectively; the communication chip 2 is used to receive RS485 data from the fuze system through the RS485 interface; and the communication chip 2 is used to output a TTL signal to the microprocessor 1.

[0055] Specifically, the model of the microprocessor 1 is an STM32L4 chip, the model of the DC-DC voltage regulator chip 5 is XC8222, and the model of the clock chip 3 is JYC3231.

[0056] In one embodiment of the present invention, the microprocessor 1 of the present invention is an ARM microprocessor, which is the carrier of software operation. The outside should contain at least one SDIO interface, one AD interface, and 4 TTL communication interfaces. The STM32L4 ultra-low power series single-chip microcomputer is used. The microprocessor 1 adjusts the voltage in time according to different application requirements during operation to achieve dynamic balance of power consumption. In the dynamic operation mode, the power consumption per MHz is as low as 36uA. The communication chip 2 is SM3485 of Shenzhen Guowei, with an operating voltage of 3.3V and a maximum communication rate of 12Mbps. The DC-DC voltage regulator chip is XC8222 of Jiangsu Zhanxin, which has an input voltage range of 4.5V-36V, a maximum output current of 3A, and an energy conversion efficiency of about 80%. The clock chip 3 is JYC3231 of China Electronics 58 Institute, which outputs a signal with a frequency of 32768Hz through pin 3 as the external RTC input of the single-chip microcomputer with an accuracy of ±2ppm. All its chips are replaced according to actual use requirements.

[0057] Specifically, the energy consumption management unit 6 includes a power conversion unit and a storage unit power-on circuit; the input end of the power conversion unit is connected to a preset cable power supply, and the preset cable power supply is used as an input to control the conduction of the power conversion unit, and the storage unit power-on circuit is connected to the microprocessor 1 for control through the microprocessor 1.

[0058] In one embodiment of the present invention, the energy consumption management unit 6 is composed of several control circuits. The first is a power conversion unit, which is composed of three-stage field effect transistors. The preset cable power supply is used as an input to control the conduction of the field effect transistor. When the device is connected through the parameter preset cable, the power supply source of the entire system is switched to the device to achieve the effect of saving energy; the second is a storage unit power-on circuit, which is composed of a group of PNP field effect transistors and a group of NPN field effect transistors. When the module is not stored, the ARM microprocessor controls the storage unit to power off.

[0059] In one embodiment of the present invention, when the data recording device for underwater platform internal measurement of the present invention is connected to the parameter preset cable, the ARM microprocessor recognizes that the corresponding port line is at a high level, and the system enters the communication mode. In this mode, the functions of reading and clearing the storage module data, calibrating the clock of the ARM microprocessor, setting the working mode, etc. can be completed. When the parameter preset cable is unplugged, the system enters the working mode and starts to collect and record the data of the depth sensor, magnetic compass, and fuze system.

[0060] See also Figure 2 , Figure 2A principle block diagram of an energy consumption management unit for an underwater platform internal measurement data recording device provided in an embodiment of the present application. The power conversion unit includes a first NMOS tube, the gate of the first NMOS tube is connected to one end of the seventh resistor R7, the other end of the seventh resistor R7 is respectively connected to one end of the first capacitor C1, one end of the sixth resistor R6, and one end of the third resistor R3, the other end of the third resistor R3 is connected to the DC-DC voltage regulator chip 5, the other end of the first capacitor C1 and the other end of the sixth resistor R6 are grounded, the drain of the first NMOS tube is respectively connected to one end of the fourth resistor R4 and the power-on circuit of the storage unit, the other end of the fourth resistor R4 is connected to the preset cable power supply, and the source of the first NMOS tube is grounded. The power-on circuit of the storage unit includes a second NMOS tube and a PMOS tube, the gate of the second NMOS tube is connected to one end of a ninth resistor R9, the other end of the ninth resistor R9 is respectively connected to one end of a third capacitor C3, one end of an eighth resistor R8, and one end of a fourth resistor R4, the other end of the third capacitor C3 and the other end of the eighth resistor R8 are grounded, the source of the second NMOS tube is grounded, the drain of the second NMOS tube is connected to one end of a fifth resistor R5, the other end of the fifth resistor R5 is respectively connected to one end of a first resistor R1, one end of a second capacitor C2, and one end of a second resistor R2, the other end of the second resistor R2 is connected to the gate of the PMOS tube, the other end of the first resistor R1, the other end of the second capacitor C2, and the source of the PMOS tube are all connected to a preset cable power supply, the drain of the PMOS tube is respectively connected to one end of a fourth capacitor C4 and the microprocessor 1, and the other end of the fourth capacitor C4 is grounded.

[0061] See also Figure 3 , Figure 3 The present invention also provides a method for recording internal measurement data of an underwater platform, including the above-mentioned device for recording internal measurement data of an underwater platform, and the method for recording internal measurement data of an underwater platform includes:

[0062] Step S1: When the IO interface in the external interface 7 is at a low level, enter the working mode.

[0063] Step S2: in the working mode, start the second timer thread and serial port receiving thread of the microprocessor 1, and enable IO interface interruption.

[0064] Step S3, when the microprocessor 1 receives serial port data, the semaphore is released, the semaphore is received in the serial port receiving thread, and the serial port data is read from the RS485 interface, the microprocessor 1 prohibits all interrupt responses, records the clock tick value of the clock chip 3, and writes the serial port data into the cache of the microprocessor 1 in the serial port receiving thread.

[0065] Specifically, the release of the semaphore is derived from a level conversion or a full-second pulse of the IO interface.

[0066] Specifically, the method for recording internal test data of an underwater platform also includes writing the IO data and the serial port data into the cache of the microprocessor 1 when the RS485 interface does not read new data within 30ms and is triggered by the rising edge of the synchronous clock.

[0067] Specifically, the method for recording internal measurement data of an underwater platform further includes determining the capacity of the cache, and when the capacity is greater than half, writing the data in the cache into an SD card connected to the microprocessor 1 .

[0068] In one embodiment of the present invention, when the mode recognition port line, i.e., the IO interface line, is at a low level, the working mode is entered, in which the second timer thread and the serial port receiving thread are started, and the IO interface interrupt is enabled. When there is data in the serial port, a semaphore is released, i.e., a variable used by the operating system to indicate the state, and the semaphore is received in the serial port receiving thread, and the byte data, i.e., the data generated by the tested product during the working process, is read from the 485 bus. At this time, the system will prohibit all interrupt responses to ensure that it is not interrupted by other interrupts at this time, and then record the current clock tick value, and write the serial port data into the cache in the serial port data receiving thread.

[0069] In the program data recording unit, the software in the internal data measurement device of the underwater platform will cyclically judge the sem_IO_data semaphore (a variable generated by judging whether the IO interface has changed. When the IO interface undergoes a point-to-point conversion, the system will release the semaphore). The release of the semaphore comes from the conversion of the IOIO interface level or the full-second pulse. When the semaphore is obtained, all interrupt responses will be prohibited and the interrupt response will be re-enabled after the status of the IO interface is obtained. At this time, if the status of the IO interface is directly written into the cache, there is a certain probability that the serial port data will be discontinuous and the same frame message will be interrupted. Therefore, a set of judgments will be added to the software process: when there is no new data on the 485 bus within 30ms and it is triggered by the rising edge of the synchronous clock, the data (IO data, serial port data, etc.) will be written into the cache.

[0070] In the above process, IO data and serial port data are placed in the same circular buffer. When the buffer is full, the program will not fall into an exception, but will overwrite the data from the beginning. Therefore, when the second pulse is triggered or the IO level changes, the capacity of the buffer is judged. When it is greater than half, the buffer data is written to the SD card. Writing data to the SD card will occupy certain resources, so the double buffer mechanism of the microcontroller is used to synchronize the SD card data in the external low-priority thread to ensure the smooth operation of the program.

[0071] The method for recording data of the internal test of the underwater platform of the present invention is different from the traditional method for recording data of the internal test of the underwater platform in that the software is developed based on the embedded real-time operating system RT-Thread, and has higher real-time performance. According to the characteristics of the recorded data, the double buffer mechanism of the single-chip microcomputer is utilized to formulate a set of data recording methods, which makes full use of the characteristics of the synchronization clock of the underwater platform fuze system and the timing of sending communication messages, which not only improves the real-time performance of the data, but also ensures the integrity and validity of the data. The traditional single-chip microcomputer clock and the external clock chip are only to the second for the time scale, which is far from enough for the requirements of underwater platform data recording. Taking depth acquisition as an example, under the premise of the time measurement scale of seconds, assuming that the maximum speed of the underwater platform sinking to the bottom can reach 5m / s, its error will directly affect the calculation of the target detection range. Therefore, in terms of software design, the traditional method of receiving time information using the clock I2C interface is abandoned, and its 32768Hz clock frequency is used to perform time calculations accurate to milliseconds, thereby improving the real-time performance of data recording.

[0072] The present invention also proposes an electronic device, which includes a processor and a memory, wherein the memory stores program instructions, and the processor runs the program instructions to implement the above-mentioned method for recording data for underwater platform internal measurement. The processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components; the memory may include a random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory. The memory can also be an internal memory of the random access memory (RAM) type, and the processor and memory can be integrated into one or more independent circuits or hardware, such as an application-specific integrated circuit (ASIC). It should be noted that the computer program in the above-mentioned memory can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, an electronic device, or a network device, etc.) to perform all or part of the steps of the methods of various embodiments of the present invention.

[0073] The present invention also proposes a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the above-mentioned method for recording data for underwater platform internal measurement. The computer-readable storage medium can be an electronic medium, a magnetic medium, an optical medium, an electromagnetic medium, an infrared medium, or a semiconductor system or a propagation medium. The computer-readable storage medium can also include semiconductor or solid-state memory, a magnetic tape, a removable computer disk, a random access memory (RAM), a read-only memory (ROM), a hard disk, and an optical disk. The optical disk can include a compact disk-read only memory (CD-ROM), a compact disk-read / write (CD-RW), and a DVD.

[0074] In summary, the data recording device for the internal test of the underwater platform of the present invention includes a microprocessor, a communication chip, a clock chip, a storage unit, a DC-DC voltage regulator chip, an energy consumption management unit, and an external interface. The present invention simplifies the circuit design by building a minimum system, removes the AD acquisition chip and voltage monitoring chip with high power consumption, and uses the AD acquisition function and software watchdog mechanism of the single-chip microcomputer, thereby reducing the overall power consumption and ensuring the real-time, validity, and integrity of the data. The data recording method for the internal test of the underwater platform of the present invention is developed based on the embedded real-time operating system RT-Thread, has higher real-time performance, and according to the characteristics of the recorded data, utilizes the double buffer mechanism of the single-chip microcomputer, and makes full use of the characteristics of the synchronization clock of the underwater platform fuze system and the timing of sending the communication message, which not only improves the real-time performance of the data, but also ensures the integrity and validity of the data.

[0075] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.

Claims

1. A device for recording data of underwater platform internal measurement, characterized in that: include: A microprocessor (1) is communicatively connected to an external interface (7), and the external interface (7) is communicatively connected to a depth sensor, a magnetic compass, and a fuze system; A communication chip (2) which is communicatively connected to the microprocessor (1) and the external interface (7); A clock chip (3) which is communicatively connected to the microprocessor (1); A storage unit (4) which is communicatively connected to the microprocessor (1); A DC-DC voltage stabilizing chip (5) which is communicatively connected to the microprocessor (1) and the storage unit (4); An energy consumption management unit (6) is communicatively connected with the microprocessor (1) and the DC-DC voltage stabilizing chip (5).

2. The device for recording internal measurement data of an underwater platform according to claim 1, characterized in that: The external interface (7) comprises an AD interface, an RS485 interface and an IO interface; the microprocessor (1) is used to receive AD data and IO data from the depth sensor and the fuze system respectively through the AD interface and the IO interface; the communication chip (2) is used to receive RS485 data from the fuze system through the RS485 interface; and the communication chip (2) is used to output a TTL signal to the microprocessor (1).

3. The device for recording internal measurement data of an underwater platform according to claim 1, characterized in that: The energy consumption management unit (6) comprises a power conversion unit and a storage unit power-on circuit; the input end of the power conversion unit is connected to a preset cable power supply, the preset cable power supply is used as an input to control the conduction of the power conversion unit, and the storage unit power-on circuit is connected to the microprocessor (1) for control via the microprocessor (1).

4. The device for recording internal measurement data of an underwater platform according to claim 3, characterized in that: The power conversion unit comprises a first NMOS transistor, the gate of the first NMOS transistor is connected to one end of a seventh resistor R7, the other end of the seventh resistor R7 is respectively connected to one end of a first capacitor C1, one end of a sixth resistor R6, and one end of a third resistor R3, the other end of the third resistor R3 is connected to the DC-DC voltage stabilizing chip (5), the other end of the first capacitor C1 and the other end of the sixth resistor R6 are grounded, the drain of the first NMOS transistor is respectively connected to one end of a fourth resistor R4 and a power-on circuit of a storage unit, the other end of the fourth resistor R4 is connected to a preset cable power supply, and the source of the first NMOS transistor is grounded.

5. The device for recording internal measurement data of an underwater platform according to claim 4, characterized in that: The storage unit power-on circuit comprises a second NMOS tube and a PMOS tube, the gate of the second NMOS tube is connected to one end of a ninth resistor R9, the other end of the ninth resistor R9 is respectively connected to one end of a third capacitor C3, one end of an eighth resistor R8, and one end of a fourth resistor R4, the other end of the third capacitor C3 and the other end of the eighth resistor R8 are grounded, the source of the second NMOS tube is grounded, the drain of the second NMOS tube is connected to one end of a fifth resistor R5, the other end of the fifth resistor R5 is respectively connected to one end of a first resistor R1, one end of a second capacitor C2, and one end of a second resistor R2, the other end of the second resistor R2 is connected to the gate of the PMOS tube, the other end of the first resistor R1, the other end of the second capacitor C2, and the source of the PMOS tube are all connected to a preset cable power supply, the drain of the PMOS tube is respectively connected to one end of a fourth capacitor C4 and the microprocessor (1), and the other end of the fourth capacitor C4 is grounded.

6. The device for recording internal measurement data of an underwater platform according to claim 1, characterized in that: The model of the microprocessor (1) is an STM32L4 chip, the model of the DC-DC voltage regulator chip (5) is XC8222, and the model of the clock chip (3) is JYC3231.

7. A method for recording internal measurement data of an underwater platform, characterized in that: The device for recording internal measurement data of an underwater platform according to any one of claims 1 to 6, wherein the method for recording internal measurement data of an underwater platform comprises: S1, when the IO interface in the external interface (7) is at a low level, enter the working mode; S2, in the working mode, starting the second timer thread and the serial port receiving thread of the microprocessor (1), and enabling the IO interface interrupt; S3, when the microprocessor (1) receives serial port data, the semaphore is released, the semaphore is received in the serial port receiving thread, and the serial port data is read from the RS485 interface, the microprocessor (1) prohibits all interrupt responses, records the clock tick value of the clock chip (3), and writes the serial port data into the cache of the microprocessor (1) in the serial port receiving thread.

8. A method for recording internal measurement data of an underwater platform according to claim 7, characterized in that: The release of the semaphore is derived from a level conversion or a full-second pulse of the IO interface.

9. A method for recording internal measurement data of an underwater platform according to claim 7, characterized in that: It also includes writing the IO data and the serial port data into the cache of the microprocessor (1) when the RS485 interface does not read new data within 30ms and is triggered by the rising edge of the synchronous clock.

10. A method for recording internal measurement data of an underwater platform according to claim 7, characterized in that: The method also includes judging the capacity of the cache, and when the capacity is greater than half, writing the data in the cache into an SD card connected to the microprocessor (1).

Citation Information

Patent Citations

  • Battery electric quantity liquid crystal display device of energy storage system

    CN103091637A

  • Low-power-consumption device for underwater glider controller and control method thereof

    CN109581903A

  • System starting circuit of handheld terminal based on high-voltage battery power supply

    CN111949105A

  • Signal acquisition equipment for reliability evaluation

    CN118312466A

  • Embedded remote data collection system

    CN206224185U