A data recording apparatus and method for use in an underwater platform

By simplifying circuit design and energy management, and combining an embedded real-time operating system and a dual-buffering mechanism, the problem of underwater platform data recording devices being unable to guarantee data real-time performance, validity, and integrity has been solved, achieving low-power and high-efficiency data recording.

CN119807124BActive Publication Date: 2026-11-24YICHANG TESTING TECHNIQUE RESEARCH INSTITUTE
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411587805.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-08
Publication Date
2026-11-24
Estimated Expiration
2044-11-08

AI Technical Summary

Technical Problem

Existing underwater platform data recording devices can only prioritize endurance in terms of performance and range, and cannot guarantee the real-time nature, validity, and integrity of the data.

Method used

A data recording device for underwater platforms was designed, comprising a microprocessor, a communication chip, a clock chip, a storage unit, a DC-DC voltage regulator chip, and an energy management unit. By simplifying the circuit design, using low-power chips and software control, an energy management system was built. Combined with an embedded real-time operating system and a dual-buffering mechanism, the real-time performance, validity, and integrity of the data were achieved.

Benefits of technology

It reduces overall power consumption, improves data real-time performance and integrity, ensures data validity, and meets the data recording needs of underwater platforms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119807124B_ABST
    Figure CN119807124B_ABST
Patent Text Reader

Abstract

This invention relates to the field of underwater platform data recording technology, and in particular to a device and method for recording internal measurement data on an underwater platform. The invention includes a microprocessor, communication connections between the microprocessor and an external interface, and communication connections between the external interface and a depth sensor, magnetic compass, and fuse system; a communication chip communicating with the microprocessor and the external interface; a clock chip communicating with the microprocessor; a storage unit communicating with the microprocessor; a DC-DC voltage regulator chip communicating with the microprocessor and the storage unit; and a power management unit communicating with the microprocessor and the DC-DC voltage regulator chip. By building a minimal system, this invention simplifies the circuit design compared to traditional recording devices, eliminating high-power AD acquisition chips and voltage monitoring chips, and utilizing the built-in AD acquisition function of the microcontroller and a software watchdog mechanism, thereby reducing overall power consumption and ensuring the real-time performance, validity, and integrity of the data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of underwater platform data recording technology, and in particular to a device and method for recording internal measurement data on an underwater platform. Background Technology

[0002] During the development of underwater platforms, numerous lake and sea tests are required. Due to their unique enclosed nature, it is impossible to monitor the test process in real time. Therefore, a method is needed to collect and record data throughout the entire cycle of underwater platform bottoming tests. This data can be analyzed to aid in product development, and the processing results can also be used as a criterion for determining the success of tests or exercises.

[0003] The data generated by underwater platforms during tests or exercises mainly comes from the fuse system, depth sensor, and magnetic compass. Due to the large volume and variety of data, and the limited space, existing data recording devices can only prioritize the advantage of endurance in terms of performance and endurance, and cannot guarantee the real-time performance, validity, and integrity of the data. Therefore, special devices and methods need to be developed for the collection and recording of multiple types of data to ensure the real-time performance, validity, and integrity of the data. Summary of the Invention

[0004] In view of the shortcomings of the prior art described above, the purpose of this invention is to provide a data recording device and method for underwater platforms, which solves the problem that the data recording devices in the prior art can only prioritize the advantage of endurance in terms of performance and endurance, and cannot guarantee the real-time performance, validity and integrity of the data.

[0005] To achieve the above and other related objectives, the present invention provides a device for recording internal measurement data on an underwater platform, comprising:

[0006] A microprocessor that communicates with an external interface, which in turn communicates with a depth sensor, a magnetic compass, and a fuze system;

[0007] A communication chip that communicates with the microprocessor and external interfaces;

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

[0009] A storage unit that is communicatively connected to the microprocessor;

[0010] The DC-DC voltage regulator chip is communicatively connected to the microprocessor and the storage unit;

[0011] The energy management unit communicates with the microprocessor and the DC-DC voltage regulator 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 management unit includes a power conversion unit and a storage unit power-on circuit; the input terminal of the power conversion unit is connected to a preset cable power supply, which is used as an input to control the power conversion unit to conduct; the storage unit power-on circuit is connected to the microprocessor and is used for control by the microprocessor.

[0014] In one embodiment of the present invention, the power conversion unit includes 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 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 regulator chip. The other ends of the first capacitor C1 and the sixth resistor R6 are grounded. The drain of the first NMOS transistor is connected to one end of a fourth resistor R4 and the power-on circuit of the memory cell. The other end of the fourth resistor R4 is connected to a preset cable power supply. The source of the first NMOS transistor is grounded.

[0015] In one embodiment of the present invention, the power-on circuit of the storage cell includes a second NMOS transistor and a PMOS transistor. The gate of the second NMOS transistor is connected to one end of a ninth resistor R9. The other end of the ninth resistor R9 is 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 ends of the third capacitor C3 and the eighth resistor R8 are grounded. The source of the second NMOS transistor is grounded. The drain of the second NMOS transistor is connected to one end of a fifth resistor R5. The other end of the fifth resistor R5 is 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 transistor. The other ends of the first resistor R1, the second capacitor C2, and the source of the PMOS transistor are all connected to a preset cable power supply. The drain of the PMOS transistor is connected to one end of a fourth capacitor C4 and the microprocessor. The other end of the fourth capacitor C4 is grounded.

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

[0017] The present invention also provides a method for recording internal test data on an underwater platform, comprising the above-mentioned device for recording internal test data on an underwater platform, wherein the method for recording internal test data on an underwater platform includes:

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

[0019] S2. In the operating mode, start the microprocessor's second timer thread, serial port receiving thread, and enable IO port interrupts;

[0020] S3. When the microprocessor receives serial port data, it releases a semaphore, receives the semaphore in the serial port receiving thread, and reads serial port data from the RS485 interface. The microprocessor disables all interrupt responses, records the clock tick value of the clock chip, and writes the serial port data into the microprocessor's cache in the serial port receiving thread.

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

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

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

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

[0025] (1) The underwater platform internal measurement data recording device of the present invention includes a microprocessor, a communication chip, a clock chip, a storage unit, a DC-DC voltage regulator chip, an energy management unit, and an external interface. By building a minimum system, the present invention simplifies the circuit design compared with traditional recording devices, removes the high-power AD acquisition chip and voltage monitoring chip, and uses the built-in AD acquisition function of the microcontroller 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 testing of the present invention improves the energy efficiency management mechanism, reduces power consumption, and builds an energy management system using hardware design methods. Through software control and changes in the external environment, it can accurately control the power-on and power-off of the product peripherals.

[0027] (3) The method for recording internal test data of 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 dual buffering mechanism of the microcontroller is utilized, and the characteristics of the synchronization clock of the underwater platform fuse system and the timing of communication message transmission are fully utilized, which not only improves the real-time performance of the data, but also ensures the integrity and validity of the data. Attached Figure Description

[0028] Figure 1 This is a schematic diagram of a data recording device for an underwater platform, provided as an embodiment of this application.

[0029] Figure 2 This is a schematic block diagram of an energy management unit for an underwater platform internal measurement data recording device, provided as an embodiment of this application.

[0030] Figure 3 This is a flowchart illustrating a method for recording internal test data on an underwater platform, as provided in an embodiment of this application.

[0031] Component designation explanation

[0032] 1. Microprocessor

[0033] 2. Communication Chip

[0034] 3. Clock chip

[0035] 4 storage units

[0036] 5 DC-DC voltage regulator chips

[0037] 6 Energy Management Unit

[0038] 7 External Interfaces Detailed Implementation

[0039] The following specific examples illustrate the implementation of the present invention. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that, unless otherwise specified, the following embodiments and features described therein can be combined with each other.

[0040] It should be noted that the illustrations provided in the following embodiments are only schematic representations of the basic concept of the present invention. Therefore, the illustrations only show the components related to the present invention and are not drawn according to the actual number, shape and size of the components in the actual implementation. In the actual implementation, the form, quantity and proportion of each component can be arbitrarily changed, and the layout of the components may also be more complex.

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

[0042] Furthermore, "connected / linked" indicates that one component is directly electrically connected to another component or indirectly electrically connected through another component. Unless otherwise explicitly stated in the sentence, the singular form may include the plural form. Additionally, the terms "comprising / including" or "containing / including" as used in this specification indicate the presence or addition of one or more components, steps, operations, and elements. Specific structural or functional descriptions of examples of embodiments of the concepts disclosed in this specification are merely illustrative to describe examples of embodiments of the concepts, and examples of embodiments of the concepts can be implemented in various forms, but these descriptions are not limited to the examples of embodiments described in this specification.

[0043] Based on the concept, various modifications and changes can be applied to examples of embodiments, such that examples of embodiments will be illustrated in the accompanying drawings and described in the specification. However, examples of embodiments based on the concept are not limited to specific embodiments, but include all changes, equivalents, or substitutions included within the spirit and scope of this disclosure.

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

[0045] The terminology used in this specification is for the purpose of describing specific examples of implementations only and is not intended to limit this disclosure. The singular form may include the plural form unless there is an explicit contrary meaning in the context. It should be understood in this specification that the terms "comprising" or "having" indicate the presence of the features, quantities, steps, operations, components, parts, or combinations thereof described in the specification, but do not preclude the possibility of the presence or addition of one or more other features, quantities, steps, operations, components, parts, or combinations thereof.

[0046] Unless otherwise defined, all terms used herein (including technical or scientific terms) shall have the same meaning as commonly understood by one of ordinary skill in the art. If a term is not clearly defined in a common dictionary in this specification, it shall be interpreted as having the same meaning as in the context of the relevant art, and not as an ideal or overly formal meaning.

[0047] Descriptions of known components and processing techniques may be omitted to avoid unnecessarily obscuring the embodiments of this disclosure.

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

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

[0050] The embodiments of this disclosure will now be described in detail with reference to the accompanying drawings. However, those skilled in the art will understand that many technical details have been provided in the embodiments of this disclosure to facilitate a better understanding of the disclosure. However, the technical solutions claimed in this disclosure can be implemented even without these technical details and various variations and modifications based on the following embodiments.

[0051] Please see Figure 1 , Figure 1 This invention provides a schematic block diagram of a data recording device for an underwater platform, as provided in an embodiment of this application. The device includes a microprocessor 1, a communication chip 2, a clock chip 3, a storage unit 4, a DC-DC voltage regulator chip 5, an energy management unit 6, and an external interface 7. The microprocessor 1 is communicatively connected to the external interface 7, which is also communicatively connected to a depth sensor, a magnetic compass, and a 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 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 testing utilizes low-power chips in its circuit design, employing a minimal number of core components to achieve data acquisition and storage. The microprocessor 1 can be a low-power microcontroller. The data recording device for underwater platform internal testing includes a microprocessor 1, a DC-DC voltage regulator chip 5, a communication chip 2, and a clock chip 3. By building a minimal system, the circuit design is simplified compared to traditional recording devices, eliminating high-power AD acquisition chips and voltage monitoring chips. The microprocessor 1's built-in AD acquisition function and software watchdog mechanism are used, thereby reducing overall power consumption. To further improve the energy efficiency management mechanism of the recording device and reduce power consumption, the present invention includes an energy management unit 6, which precisely controls the power-on and power-off of peripheral devices through software control and changes in external environmental conditions.

[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 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.

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

[0056] In one embodiment of this invention, the microprocessor 1 is an ARM microprocessor, which serves as the software execution platform. Externally, it should include at least one SDIO interface, one AD interface, and four TTL communication interfaces. It uses the STM32L4 ultra-low-power microcontroller. The microprocessor 1 adjusts its voltage dynamically to meet different application requirements, achieving dynamic power balance. In dynamic operation mode, the power consumption is as low as 36uA per MHz. The communication chip 2 is the SM3485 from Shenzhen Guowei, with an operating voltage of 3.3V and a maximum communication rate of 12Mbps. The DC-DC regulator chip is the XC8222 from Jiangsu Zhanxin, with an input voltage range of 4.5V-36V, a maximum output current of 3A, and an energy conversion efficiency of approximately 80%. The clock chip 3 is the JYC3231 from the 58th Research Institute of China Electronics Technology Group Corporation, which outputs a 32768Hz frequency signal through pin 3 as the external RTC input for the microcontroller, with an accuracy of ±2ppm. All chips are replaced according to actual usage requirements.

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

[0058] In one embodiment of the present invention, the energy management unit 6 is composed of several control circuits. One is a power conversion unit, which is composed of three-stage field-effect transistors. The field-effect transistors are turned on by using a preset cable power supply as an input. 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 set of PNP field-effect transistors and a set of NPN field-effect transistors. When there is no storage module, the ARM microprocessor controls the storage unit to be powered off.

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

[0060] Please see Figure 2 , Figure 2This is a schematic block diagram of an energy management unit for an underwater platform internal measurement data recording device provided in an embodiment of this application. The power conversion unit includes 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 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 regulator chip 5. The other ends of the first capacitor C1 and the sixth resistor R6 are grounded. The drain of the first NMOS transistor is connected to one end of a fourth resistor R4 and the power-on circuit of the storage unit. The other end of the fourth resistor R4 is connected to a preset cable power supply. The source of the first NMOS transistor is grounded. The power-on circuit of the memory cell includes a second NMOS transistor and a PMOS transistor. The gate of the second NMOS transistor is connected to one end of a ninth resistor R9. The other end of the ninth resistor R9 is 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 ends of the third capacitor C3 and the eighth resistor R8 are grounded. The source of the second NMOS transistor is grounded. The drain of the second NMOS transistor is connected to one end of a fifth resistor R5. The other end of the fifth resistor R5 is 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 transistor. The other ends of the first resistor R1, the second capacitor C2, and the source of the PMOS transistor are all connected to a preset cable power supply. The drain of the PMOS transistor is connected to one end of a fourth capacitor C4 and the microprocessor 1. The other end of the fourth capacitor C4 is grounded.

[0061] Please see Figure 3 , Figure 3 This application provides a flowchart of a method for recording internal test data on an underwater platform. The invention also provides a method for recording internal test data on an underwater platform, including the aforementioned device for recording internal test data on an underwater platform. The method includes:

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

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

[0064] Step S3: When the microprocessor 1 receives serial port data, it releases a semaphore, receives the semaphore in the serial port receiving thread, and reads serial port data from the RS485 interface. The microprocessor 1 disables all interrupt responses, records the clock tick value of the clock chip 3, and writes the serial port data into the buffer of the microprocessor 1 in the serial port receiving thread.

[0065] Specifically, the release of the semaphore originates from a level transition or a full-second pulse at the I / O interface.

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

[0067] Specifically, the method for recording internal test data of an underwater platform also includes determining the capacity of the cache; if the capacity is greater than half, the data in the cache is written to an SD card connected to the microprocessor 1.

[0068] In one embodiment of the present invention, when the pattern recognition line (i.e., the IO interface line) is low, the system enters the working mode. In this mode, a second timer thread and a serial port receiving thread are started, and IO interface interrupts are enabled. When there is data on the serial port, a semaphore is released, which is a variable used by the operating system to represent the state. The serial port receiving thread receives this semaphore and reads the byte of data (i.e., the data generated by the product under test during operation) from the 485 bus. At this time, the system disables all interrupt responses to ensure that it is not interrupted by other interrupts. The current clock tick value is then recorded, and the serial port data is written to the buffer in the serial port data receiving thread.

[0069] In the program data recording unit, the software in the underwater platform's internal test data device will cyclically check the sem_IO_data semaphore (a variable used to determine whether the IO interface has changed; the system will release this semaphore when the IO interface undergoes a level transition). The release of this semaphore originates from the IO interface level transition or a full-second pulse. After acquiring this semaphore, all interrupt responses will be disabled, and interrupt responses will be re-enabled after acquiring the IO interface status. If the IO interface status is directly written into the buffer at this time, there is a certain probability that the serial port data will be discontinuous and the same frame of data will be interrupted. Therefore, a set of judgments will be added to the software flow: if there is no new data on the 485 bus within 30ms and it is triggered by the rising edge of the synchronous clock, then the data (IO data, serial port data, etc.) will be written into the buffer.

[0070] In the above process, both I / O data and serial port data are stored in the same circular buffer. When the buffer is full, the program will not crash; instead, it will overwrite the data from the beginning. Therefore, when the second pulse is triggered or the I / O level changes, the buffer capacity is checked. If the buffer is more than half full, the data is written to the SD card. Writing data to the SD card consumes some resources, so the microcontroller's dual-buffer mechanism is used to synchronize the SD card data in an external low-priority thread to ensure smooth program operation.

[0071] The underwater platform internal measurement data recording method of this invention differs from traditional underwater platform internal measurement data recording methods in that the software is developed based on the embedded real-time operating system RT-Thread, possessing higher real-time performance. Based on the characteristics of the recorded data, it utilizes the dual-buffering mechanism of a microcontroller to formulate a data recording method that fully leverages the characteristics of the underwater platform's fuze system's synchronization clock and communication message transmission timing, improving both data real-time performance and ensuring data integrity and validity. Traditional microcontroller clocks and external clock chips only provide time scales down to the second, which is far from sufficient for the requirements of underwater platform data recording. Taking depth acquisition as an example, assuming a maximum sinking speed of 5 m / s for a time measurement scale of seconds, the error will directly affect the calculation of the target detection range. Therefore, in terms of software design, this method abandons the traditional method of receiving time information via the clock I2C interface, instead utilizing its 32768Hz clock frequency for millisecond-level time calculations, thereby improving the real-time performance of data recording.

[0072] This invention also proposes an electronic device comprising a processor and a memory. The memory stores program instructions, and the processor executes these program instructions to implement the aforementioned method for recording internal test data on an underwater platform. 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 gate or transistor logic devices, or discrete hardware components. The memory may include Random Access Memory (RAM) and may also include Non-Volatile Memory, such as at least one disk storage device. The memory can also be an internal memory of the Random Access Memory (RAM) type. 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 when the computer program in the aforementioned memory is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, electronic device, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of the present invention.

[0073] This invention also proposes a computer-readable storage medium storing computer instructions for instructing a computer to execute the aforementioned method for recording internal measurement data on an underwater platform. The computer-readable storage medium can be an electronic medium, magnetic medium, optical medium, electromagnetic medium, infrared medium, or a semiconductor system or propagation medium. The computer-readable storage medium may also include semiconductor or solid-state memory, magnetic tape, removable computer disk, random access memory (RAM), read-only memory (ROM), hard disk, and optical disc. Optical discs may include optical disc-read-only memory (CD-ROM), optical disc-read / write (CD-RW), and DVD.

[0074] In summary, the underwater platform internal test data recording device of the present invention includes a microprocessor, a communication chip, a clock chip, a storage unit, a DC-DC voltage regulator chip, a power management unit, and an external interface. By building a minimal system, the present invention simplifies the circuit design compared to traditional recording devices, eliminating the high-power AD acquisition chip and voltage monitoring chip. It utilizes the built-in AD acquisition function of the microcontroller and a software watchdog mechanism, thereby reducing overall power consumption and ensuring the real-time performance, validity, and integrity of the data. The underwater platform internal test data recording method of the present invention is developed based on the embedded real-time operating system RT-Thread, possessing higher real-time performance. Furthermore, based on the characteristics of the recorded data, it utilizes the microcontroller's dual-buffering mechanism, fully leveraging the characteristics of the underwater platform's fuze system's synchronization clock and communication message transmission timing, thus improving data real-time performance while ensuring data integrity and validity.

[0075] The above embodiments are merely illustrative of the principles and effects of the present invention and are not intended to limit the invention. Any person skilled in the art can 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 those skilled in the art without departing from the spirit and technical concept disclosed in the present invention should still be covered by the claims of the present invention.

Claims

1. A device for recording internal measurement data on an underwater platform, characterized in that, include: The microprocessor (1) is connected in communication with an external interface (7), which is connected in communication with a depth sensor, a magnetic compass, and a fuze system. The communication chip (2) is connected to the microprocessor (1) and the external interface (7) for communication. A clock chip (3) is connected in communication with the microprocessor (1); Storage unit (4), which 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 management unit (6) is communicatively connected to the microprocessor (1) and the DC-DC voltage regulator chip (5); The energy 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, which is used as an input to control the power conversion unit to turn on; the storage unit power-on circuit is connected to the microprocessor (1) and is used to control the microprocessor (1). The power conversion unit includes 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 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 regulator chip (5). The other ends of the first capacitor C1 and the sixth resistor R6 are grounded. The drain of the first NMOS transistor is connected to one end of a fourth resistor R4 and the power-on circuit of the memory cell. The other end of the fourth resistor R4 is connected to the preset cable power supply. The source of the first NMOS transistor is grounded. The power-on circuit of the storage unit includes a second NMOS transistor and a PMOS transistor. The gate of the second NMOS transistor is connected to one end of the ninth resistor R9. The other end of the ninth resistor R9 is connected to one end of the third capacitor C3, one end of the eighth resistor R8, and one end of the fourth resistor R4. The other ends of the third capacitor C3 and the eighth resistor R8 are grounded. The source of the second NMOS transistor is grounded. The drain of the second NMOS transistor is connected to one end of the fifth resistor R5. The other end of the fifth resistor R5 is connected to one end of the first resistor R1, one end of the second capacitor C2, and one end of the second resistor R2. The other end of the second resistor R2 is connected to the gate of the PMOS transistor. The other ends of the first resistor R1, the second capacitor C2, and the source of the PMOS transistor are all connected to a preset cable power supply. The drain of the PMOS transistor is connected to one end of the fourth capacitor C4 and the microprocessor (1). The other end of the fourth capacitor C4 is grounded.

2. The data recording device for underwater platform internal measurement according to claim 1, characterized in that: 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 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 data recording device for underwater platform internal measurement according to claim 1, characterized in that: The microprocessor (1) is an STM32L4 chip, the DC-DC voltage regulator chip (5) is an XC8222, and the clock chip (3) is a JYC3231.

4. A method for recording internal measurement data on an underwater platform, characterized in that, The underwater platform internal measurement data recording device according to any one of claims 1 to 3, wherein the underwater platform internal measurement data recording method comprises: S1. When the IO interface in the external interface (7) is low, the working mode is entered; S2. In the working mode, start the second timer thread, serial port receiving thread, and enable IO interface interrupt of the microprocessor (1); S3. When the microprocessor (1) receives serial port data, it releases a semaphore, receives the semaphore in the serial port receiving thread, and reads serial port data from the RS485 interface. The microprocessor (1) disables all interrupt responses, records the clock tick value of the clock chip (3), and writes the serial port data into the buffer of the microprocessor (1) in the serial port receiving thread.

5. The method for recording internal measurement data of an underwater platform according to claim 4, characterized in that: The release of the semaphore originates from a level transition or a full-second pulse at the I / O interface.

6. The method for recording internal measurement data of an underwater platform according to claim 4, characterized in that: It also includes writing the IO data and serial port data into the cache of the microprocessor (1) when no new data is read within 30ms of the RS485 interface and the synchronous clock rising edge triggers it.

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

Citation Information

Patent Citations

  • 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