CN108959115B - Data recording system and recording method based on suspended detection sonar - Google Patents

Data recording system and recording method based on suspended detection sonar Download PDF

Info

Publication number
CN108959115B
CN108959115B CN201810492129.7A CN201810492129A CN108959115B CN 108959115 B CN108959115 B CN 108959115B CN 201810492129 A CN201810492129 A CN 201810492129A CN 108959115 B CN108959115 B CN 108959115B
Authority
CN
China
Prior art keywords
data
time
module
cache region
date
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.)
Active
Application number
CN201810492129.7A
Other languages
Chinese (zh)
Other versions
CN108959115A (en
Inventor
肖业君
刘诗林
庄孜
孙琬蓉
邓超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Changsha Kingsignal Defense Technology Co ltd
Original Assignee
Changsha Kingsignal Defense Technology 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 Changsha Kingsignal Defense Technology Co ltd filed Critical Changsha Kingsignal Defense Technology Co ltd
Priority to CN201810492129.7A priority Critical patent/CN108959115B/en
Publication of CN108959115A publication Critical patent/CN108959115A/en
Application granted granted Critical
Publication of CN108959115B publication Critical patent/CN108959115B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/0223User address space allocation, e.g. contiguous or non contiguous base addressing
    • G06F12/023Free address space management
    • G06F12/0238Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory
    • G06F12/0246Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory in block erasable memory, e.g. flash memory
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S15/00Systems using the reflection or reradiation of acoustic waves, e.g. sonar systems
    • G01S15/88Sonar systems specially adapted for specific applications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/0802Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
    • G06F12/0866Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches for peripheral storage systems, e.g. disk cache
    • G06F12/0871Allocation or management of cache space

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • General Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Electric Clocks (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

A data recording system and a data recording method based on suspension type detection sonar comprise a cabin body (1); a sonar sensor (2) connected with one end of the cabin body (1); an electronic processing board (3) arranged in the cabin body (1); a wireless transceiver module (4) connected with the cabin body (1) and the electronic processing board (3); a transceiving radio station (5) for communication connection with the wireless transceiving module (4); a PC (6) connected with the transceiver radio station (5) through a data line; the electronic processing board (3) comprises a DSP processing chip, a USART serial port module, an SPI module, an SD card module and a storage module, and the electronic processing board (3) is used for resolving and recording data detected by the sonar sensor (2); the recorded data are sent to the transceiving radio station (5) through the wireless transceiving module (4), and the transceiving radio station (5) receives the data sent by the wireless transceiving module (4) in real time and exchanges the data with the PC (6).

Description

Data recording system and recording method based on suspension type detection sonar
Technical Field
The invention relates to the technical field of data recording, in particular to a data recording system based on a suspended detection sonar, and further relates to a data recording method based on a suspended detection sonar.
Background
Sonar detection utilizes underwater sound waves to detect underwater targets, and is widely applied to torpedo guidance, torpedo fuzes, fish detection, marine oil exploration, ship navigation, underwater operation, hydrographic measurement, surveying of submarine geology and landforms and the like. At present, sonar detection is basically adopted for underwater detection, and for a complex marine environment, noise and obstacles are encountered in the detection process, so that data required for sonar detection is increasingly huge, and a large amount of complex data needs to be recorded.
CN106707826a, 2017, 05, month and 24, discloses a steering data recording circuit, which comprises a microprocessor and a peripheral circuit of the microprocessor; the peripheral circuit comprises a crystal oscillator circuit, a power supply circuit, an RS485 serial port circuit and an SD card circuit; the microprocessor employs STM32F103RCT6.
At present, most of data recording and storage uses a RAM and a FLASH in a single chip microcomputer or an SD card and a U disk device. However, the data stored in the RAM and the FLASH generally cannot be intuitively analyzed and exported by a user, and the amount of data to be stored is small, which results in that a large amount of complex data cannot be recorded; if data stored in devices such as an SD card and a usb disk are written directly, an upper computer program needs to be written additionally to export the stored data, and disordered data is likely to occur during export, which is difficult to analyze, and this makes data processing and analysis difficult in the later period. Data transmission also uses wired connection such as watertight connector, but the wiring is various, and signal interference is more, especially in floated detection sonar class underwater detection system, the wiring environment is limited, and transmission distance reaches 3-5km, leads to the system often can't record a large amount of and complicated detection raw data, and the frame is lost in the data, and the bit error rate increases to can't reach the purpose of detecting.
Disclosure of Invention
In order to overcome the defects of the prior art, the invention aims to provide a data recording system and a data recording method based on a suspended detection sonar, which can store a large amount of data, can transmit the data to a PC through a wireless communication mode and can be intuitively led out by the PC.
In order to solve the technical problem, according to one aspect of the present invention, the present invention provides a data recording system based on a suspended detection sonar, comprising a cabin; a sonar sensor connected with one end of the cabin body; an electronic processing board mounted in the cabin body; the wireless transceiving module is connected with the cabin and the electronic processing board; the receiving and transmitting radio station is used for realizing communication connection with the wireless receiving and transmitting module; the PC is connected with the transceiving radio station through a data line; the electronic processing board comprises a DSP processing chip, and a USART module, an SPI module and an SD card module which are in communication connection with the DSP processing chip; the electronic processing board resolves and records the obtained data; the recorded data is sent to a transceiving radio station through a wireless transceiving module, and the transceiving radio station receives the data sent by the wireless transceiving module in real time and exchanges the data with a PC (personal computer).
As a further improvement of the present invention, in the data recording system based on a suspended detection sonar, the electronic processing board mounts the file system and allocates a first buffer area, a second buffer area, a third buffer area and a time information buffer area;
the data transmitted by the SPI module comprises target data information detected based on a suspension type detection sonar; the data transmitted by the USART module comprise position information and current time information based on the position of a suspended detection sonar; the DSP processing chip monitors whether data are transmitted in real time and judges the source of the data;
when the DSP processing chip detects that the USART module is transmitting data, the transmitted data content is judged; when the transmitted data content is time information, writing the time information into a time information cache region; the DSP processing chip judges whether the SD card module has a date folder of the time and the date; if the date folder of the date exists, the DSP processing chip reads time information of hour, minute and second in the time information cache region, and a time file named according to the time information of hour, minute and second is established under the date folder of the date; if the date folder of the time and date does not exist, the DSP processing chip reads the information of the year, the month and the day in the time information cache region, creates a new date folder named according to the information of the year, the month and the day on the SD card module, reads the time information of the hour, the minute and the second in the time information cache region, and creates a time file named according to the time information of the hour, the minute and the second under the new date folder; when the transmitted data content is azimuth information data based on the position of the suspended detection sonar, the DSP processing chip starts to write the data from the initial address of the third cache region, judges whether the third cache region is full after the data is written, and if the cache region is not full, an address pointer of the written data points to the end address of the written data; if the cache region is full, the address pointer of the written data points to the first address of the third cache region, and other written data are covered;
when the DSP processing chip detects that the SPI module transmits data, the data is written from the first address of the first cache region, and the data transmitted by the SPI module in the first 0.5s time is written into the first cache region; when the first cache area is full, opening the time file created by the SD card module, enabling the address pointer of the SD card module to point to the first address of the time file created by the SD card module, and storing data in the first 0.5s time transmitted by the SPI module into the time file; writing data in the last 0.5s time transmitted by the SPI module from the first address of the second cache region; when all data transmitted by the SPI module within the later 0.5s are received and written, an address pointer of the second cache region points to the end address of the data transmitted by the written SPI module within the later 0.5s, and azimuth information data in the third cache region are written into the second cache region; opening a time file created by the SD card module, enabling an address pointer of the SD card module to point to a tail address of data written in the time file, and storing data and azimuth information data within the last 0.5s time transmitted by the SPI module into the time file;
data transmitted by the USART module and the SPI module within 1s form a data packet, and the data packet comprises data written into the SPI module of the first cache region within the first 0.5s time and data written into the SPI module of the second cache region within the second 0.5s time and azimuth information data; the writing mode of the data transmitted by the USART module and the SPI module in each 1s is carried out according to the steps, and no error, leakage and frame loss are ensured during data transmission and storage;
after writing a data packet into the time file of the SD card module, the DSP processing chip judges whether the total data written in the time file reaches 1 minute duration, and if the total data does not reach 1 minute duration, the DSP processing chip continues to store the data of the next data packet into the time file in the SD card module; if the time length of 1 minute is reached, the time of the time information cache region is increased by 1 minute and then written into the time information cache region, and the previous time information is covered; the DSP processing chip judges whether the SD card module has a date folder of the modified time and date; if the date folder of the date exists, the DSP processing chip reads the modified time information of hour, minute and second in the time information cache region, and a next time file named according to the modified time information of hour, minute and second is created under the date folder of the date; if the date folder of the time and date does not exist, the DSP processing chip reads the modified year, month and day date information in the time information cache region, creates a next date folder named according to the modified year, month and day date information on the SD card module, reads the modified time, minute and second information in the time information cache region, and creates a next time file named according to the modified time, minute and second information under the new date folder; then storing the data of the next data packet into the next time file in the SD card module;
the data stored in the SD card module is sent to a transceiving radio station through a wireless transceiving module, and the transceiving radio station receives the data sent by the wireless transceiving module in real time and transmits the data to a PC (personal computer); the data can be copied or deleted in the PC.
According to another aspect of the invention, the invention provides a data recording method based on a suspended detection sonar, which is applied to a data recording system based on a suspended detection sonar, wherein the data recording system based on a suspended detection sonar comprises a cabin body; a sonar sensor connected with one end of the cabin; an electronic processing board mounted within the capsule; the wireless transceiving module is connected with the cabin body and the electronic processing board; the receiving and transmitting radio station is used for realizing communication connection with the wireless receiving and transmitting module; the PC is connected with the transceiving radio station through a data line; the electronic processing board comprises a DSP processing chip, and a USART module, an SPI module and an SD card module which are in communication connection with the DSP processing chip; the electronic processing board resolves and records the obtained data; the electronic processing board mounts a file system and allocates a first cache region, a second cache region, a third cache region and a time information cache region;
the data transmitted by the SPI module comprises target data information detected based on a suspension type detection sonar; the data transmitted by the USART module comprise position information and current time information based on the position of a suspended detection sonar; the DSP processing chip monitors whether data are transmitted in real time and judges the source of the data;
when the DSP processing chip detects that the USART module is transmitting data, the transmitted data content is judged; when the transmitted data content is time information, writing the time information into a time information cache region; the DSP processing chip judges whether the SD card module has a date folder of the time and the date; if the date folder of the date exists, the DSP processing chip reads time information of hour, minute and second in the time information cache region, and a time file named according to the time information of hour, minute and second is established under the date folder of the date; if the date folder of the time and date does not exist, the DSP processing chip reads the information of the year, the month and the day in the time information cache region, creates a new date folder named according to the information of the year, the month and the day on the SD card module, reads the time information of the hour, the minute and the second in the time information cache region, and creates a time file named according to the time information of the hour, the minute and the second under the new date folder; when the transmitted data content is azimuth information data based on the position of the suspended detection sonar, the DSP processing chip starts to write the data from the initial address of the third cache region, judges whether the third cache region is full after the data is written, and if the cache region is not full, an address pointer of the written data points to the end address of the written data; if the cache region is full, the address pointer of the written data points to the first address of the third cache region, and other written data are covered;
when the DSP processing chip detects that the SPI module transmits data, the data is written from the first address of the first cache region, and the data transmitted by the SPI module in the first 0.5s time is written into the first cache region; when the first cache area is full, opening the time file created by the SD card module, enabling the address pointer of the SD card module to point to the first address of the time file created by the SD card module, and storing data in the first 0.5s time transmitted by the SPI module into the time file; writing data in the last 0.5s time transmitted by the SPI module from the first address of the second cache region; when all data within the later 0.5s time transmitted by the SPI module are received and written, an address pointer of the second cache region points to the end address of the data within the later 0.5s time transmitted by the written SPI module, and azimuth information data in the third cache region is written into the second cache region; opening a time file created by the SD card module, enabling an address pointer of the SD card module to point to a tail address of data written in the time file, and storing data and azimuth information data within the last 0.5s time transmitted by the SPI module into the time file;
data transmitted by the USART module and the SPI module within 1s form a data packet, and the data packet comprises data written into the SPI module of the first cache region within the first 0.5s time and data written into the SPI module of the second cache region within the second 0.5s time and azimuth information data; the writing mode of the data transmitted by the USART module and the SPI module in each 1s is carried out according to the steps, and no error, leakage and frame loss are ensured during data transmission and storage;
after writing a data packet into the time file of the SD card module, the DSP processing chip judges whether the total data written in the time file reaches 1 minute duration, and if the total data does not reach 1 minute duration, the data of the next data packet is continuously stored into the time file in the SD card module; if the time length of 1 minute is reached, the time of the time information cache region is increased by 1 minute and then written into the time information cache region, and the previous time information is covered; the DSP processing chip judges whether the SD card module has a date folder of the modified time and date; if the date folder of the date exists, the DSP processing chip reads the modified time information of hour, minute and second in the time information cache region, and a next time file named according to the modified time information of hour, minute and second is created under the date folder of the date; if the date folder of the time and date does not exist, the DSP processing chip reads the modified year, month and day date information in the time information cache region, creates a next date folder named according to the modified year, month and day date information on the SD card module, reads the modified time, minute and second information in the time information cache region, and creates a next time file named according to the modified time, minute and second information under the new date folder; then storing the data of the next data packet into the next time file in the SD card module;
the data stored in the SD card module is sent to a transceiving radio station through a wireless transceiving module, and the transceiving radio station receives the data sent by the wireless transceiving module in real time and transmits the data to a PC (personal computer); the data can be copied or deleted in the PC.
The technical scheme provided by the invention can realize orderly storage of a large amount of data by taking time as a file name, ensures no error and leakage of the data, and can intuitively transmit the data to the PC through a wireless communication mode so as to analyze and process the data. The transmission distance is long, and the defect that the transmission distance can only reach 3-5km in the existing wiring communication technology is overcome.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a schematic diagram of the structural principle of the embodiment based on a suspended detection sonar.
Detailed Description
The invention will be further explained with reference to the drawings.
As shown in fig. 1, the sonar data recording system based on suspension detection comprises a cabin body 1, a sonar sensor 2 connected with one end of the cabin body 1, an electronic processing board 3 installed in the cabin body 1, a wireless transceiver module 4 connected with the cabin body 1 and the electronic processing board 3, a transceiver radio station 5 for realizing communication connection with the wireless transceiver module 4, a PC 6 connected with the transceiver radio station 5 through a data line, wherein the electronic processing board 3 comprises a DSP processing chip, and a USART module, an SPI module and an SD card module which are in communication connection with the DSP processing chip; target data information such as target frequency and azimuth, sound pressure and particle vibration speed and the like can be solved through FFT (fast Fourier transform) on P sound pressure channel information, X-axis channel particle information and Y-axis channel particle information which are collected in the detection process of the sonar sensor 2, azimuth information and current time information of the position of the suspended detection sonar are transmitted to the electronic processing board 3, and the electronic processing board 3 is used for solving and recording the obtained data; the electronic processing board 3 mounts the file system and allocates a first cache region, a second cache region, a third cache region and a time information cache region.
The data recording process of the data recording system based on the suspended detection sonar comprises the following steps:
the data transmitted by the SPI module comprises target data information detected based on a suspension type detection sonar; data transmitted by the USART module comprise position information and current time information based on the position of the suspended detection sonar; the DSP processing chip monitors whether data are transmitted in real time and judges the source of the data.
When the DSP processing chip detects that the USART module is transmitting data, the transmitted data content is judged; when the transmitted data content is time information, writing the time information into a time information cache region; the DSP processing chip judges whether the SD card module has a date folder of the time and the date; if the date folder of the date exists, the DSP processing chip reads time information of hour, minute and second in the time information cache region, and a time file named according to the time information of hour, minute and second is established under the date folder of the date; if the date folder of the time and date does not exist, the DSP processing chip reads the year, month and day date information in the time information cache region, creates a new date folder named according to the year, month and day date information on the SD card module, reads the time information of the hour, minute and second in the time information cache region, and creates a time file named according to the time information of the hour, minute and second under the new date folder; when the transmitted data content is azimuth information data based on the position of the suspended detection sonar, the DSP processing chip starts to write the data from the first address of the third cache region, judges whether the third cache region is full after the data is written, and if the cache region is not full, the address pointer for writing the data points to the end address of the written data; if the cache region is full, the address pointer of the written data points to the first address of the third cache region, and other written data are covered.
When the DSP processing chip detects that the SPI module transmits data, the data is written from the first address of the first cache region, and the data transmitted by the SPI module in the first 0.5s time is written into the first cache region; when the first cache area is full, opening the time file created by the SD card module, enabling an address pointer of the SD card module to point to the first address of the time file created by the SD card module, and storing data within the first 0.5s time transmitted by the SPI module into the time file; writing data in the last 0.5s time transmitted by the SPI module from the first address of the second cache region; when all data transmitted by the SPI module within the later 0.5s are received and written, an address pointer of the second cache region points to the end address of the data transmitted by the written SPI module within the later 0.5s, and azimuth information data in the third cache region are written into the second cache region; and opening the time file created by the SD card module, enabling the address pointer of the SD card module to point to the tail address of the written data of the time file, and storing the data and the azimuth information data within the later 0.5s transmitted by the SPI module into the time file.
Data transmitted by the USART module and the SPI module within 1s form a data packet, and the data packet comprises data written into the SPI module of the first cache region within the first 0.5s time and data written into the SPI module of the second cache region within the second 0.5s time and azimuth information data; the writing mode of the data transmitted by the USART module and the SPI module in every 1s is carried out according to the steps, and no error leakage and frame loss are ensured during data transmission and storage.
After writing a data packet into the time file of the SD card module, the DSP processing chip judges whether the total data written in the time file reaches 1 minute duration, and if the total data does not reach 1 minute duration, the data of the next data packet is continuously stored into the time file in the SD card module; if the time length of 1 minute is reached, the time of the time information cache region is increased by 1 minute and then written into the time information cache region, and the previous time information is covered; the DSP processing chip judges whether the SD card module has a date folder of the modified time and date; if the date folder of the date exists, the DSP processing chip reads the modified time information of hour, minute and second in the time information cache region, and a next time file named according to the modified time information of hour, minute and second is created under the date folder of the date; if the date folder of the time and date does not exist, the DSP processing chip reads the modified year, month and day date information in the time information cache region, creates a next date folder named according to the modified year, month and day date information on the SD card module, reads the modified time, minute and second information in the time information cache region, and creates a next time file named according to the modified time, minute and second information under the new date folder; and then storing the data of the next data packet into the next time file in the SD card module.
The data stored in the SD card module is sent to a transceiver radio station 5 through a wireless transceiver module 4, and the transceiver radio station 5 receives the data sent by the wireless transceiver module 4 in real time and transmits the data to a PC 6; the data can be copied or deleted in the PC 6.
The technical scheme provided by the invention can realize ordered storage of a large amount of data by taking time as a file name, ensures no error and leakage of the data, and can intuitively transmit the data to the PC through a wireless communication mode so as to analyze and process the data. The transmission distance is long, and the defect that the transmission distance can only reach 3-5km in the existing wiring communication technology is overcome.
Various modifications and alterations to this invention will become apparent to those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the claims of the present invention should be included in the protection scope of the present invention.

Claims (2)

1. A data recording system based on a suspended detection sonar is characterized by comprising a cabin body (1); a sonar sensor (2) connected with one end of the cabin body (1); an electronic processing board (3) arranged in the cabin body (1); a wireless transceiver module (4) connected with the cabin body (1) and the electronic processing board (3); a transceiver radio station (5) for making a communication connection with the radio transceiver module (4); a PC (6) connected with the transceiver radio station (5) through a data line; the electronic processing board (3) comprises a DSP processing chip, a USART module, an SPI module and an SD card module which are in communication connection with the DSP processing chip; the electronic processing board (3) resolves and records the obtained data; the recorded data is sent to a transceiving radio station (5) through a wireless transceiving module (4), and the transceiving radio station (5) receives the data sent by the wireless transceiving module (4) in real time and exchanges the data with a PC (6);
the electronic processing board (3) mounts a file system and allocates a first cache region, a second cache region, a third cache region and a time information cache region;
the data transmitted by the SPI module comprises target data information detected based on a suspension type detection sonar; the data transmitted by the USART module comprise position information and current time information based on the position of a suspended detection sonar; the DSP processing chip monitors whether data are transmitted in real time and judges the source of the data;
when the DSP processing chip detects that the USART module is transmitting data, the transmitted data content is judged; when the transmitted data content is time information, writing the time information into a time information cache region; the DSP processing chip judges whether the SD card module has a date folder of the time and the date; if the date folder of the date exists, the DSP processing chip reads time information of the hour, minute and second in the time information cache region, and a time file named according to the time information of the hour, minute and second is created under the date folder of the date; if the date folder of the time and date does not exist, the DSP processing chip reads the year, month and day date information in the time information cache region, creates a new date folder named according to the year, month and day date information on the SD card module, reads the time information of the hour, minute and second in the time information cache region, and creates a time file named according to the time information of the hour, minute and second under the new date folder; when the transmitted data content is azimuth information data based on the position of the suspended detection sonar, the DSP processing chip starts to write the data from the initial address of the third cache region, judges whether the third cache region is full after the data is written, and if the cache region is not full, an address pointer of the written data points to the end address of the written data; if the cache region is full, the address pointer of the written data points to the first address of the third cache region, and other written data are covered;
when the DSP processing chip detects that the SPI module transmits data, the data is written from the first address of the first cache region, and the data transmitted by the SPI module in the first 0.5s time is written into the first cache region; when the first cache area is full, opening the time file created by the SD card module, enabling the address pointer of the SD card module to point to the first address of the time file created by the SD card module, and storing data in the first 0.5s time transmitted by the SPI module into the time file; writing data in the last 0.5s time transmitted by the SPI module from the first address of the second cache region; when all data within the later 0.5s time transmitted by the SPI module are received and written, an address pointer of the second cache region points to the end address of the data within the later 0.5s time transmitted by the written SPI module, and azimuth information data in the third cache region is written into the second cache region; opening a time file created by the SD card module, wherein an address pointer of the SD card module points to a tail address of written data of the time file, and storing data and azimuth information data within the last 0.5s time transmitted by the SPI module into the time file;
data transmitted by the USART module and the SPI module within 1s form a data packet, and the data packet comprises data written into the SPI module of the first cache region within the first 0.5s time and data written into the SPI module of the second cache region within the second 0.5s time and azimuth information data; the writing mode of the data transmitted by the USART module and the SPI module in each 1s is carried out according to the steps, and no error, leakage and frame loss are ensured during data transmission and storage;
after writing a data packet into the time file of the SD card module, the DSP processing chip judges whether the total data written in the time file reaches 1 minute duration, and if the total data does not reach 1 minute duration, the DSP processing chip continues to store the data of the next data packet into the time file in the SD card module; if the time length of 1 minute is reached, increasing the time of the time information cache region by 1 minute, writing the time information into the time information cache region, and covering the previous time information; the DSP processing chip judges whether the SD card module has a date folder of the modified time and date; if the date folder of the date exists, the DSP processing chip reads the modified time information of hour, minute and second in the time information cache region, and a next time file named according to the modified time information of hour, minute and second is created under the date folder of the date; if the date folder of the time and date does not exist, the DSP processing chip reads the modified year, month and day date information in the time information cache region, creates a next date folder named according to the modified year, month and day date information on the SD card module, reads the modified time information of hour, minute and second in the time information cache region, and creates a next time file named according to the modified time information of hour, minute and second under the new date folder; then storing the data of the next data packet into the next time file in the SD card module;
the data stored in the SD card module is sent to a transceiving radio station (5) through a wireless transceiving module (4), and the transceiving radio station (5) receives the data sent by the wireless transceiving module (4) in real time and transmits the data to a PC (6); the PC 6 can copy or delete data.
2. A data recording method based on a suspended detection sonar is characterized by being applied to a data recording system based on a suspended detection sonar, wherein the data recording system based on a suspended detection sonar comprises a cabin body (1); a sonar sensor (2) connected with one end of the cabin body (1); an electronic processing board (3) arranged in the cabin body (1); the wireless transceiving module (4) is connected with the cabin body (1) and the electronic processing board (3); a transceiver radio station (5) for making a communication connection with the radio transceiver module (4); a PC (6) connected with the transceiver radio station (5) through a data line; the electronic processing board (3) comprises a DSP processing chip, a USART module, an SPI module and an SD card module, wherein the USART module, the SPI module and the SD card module are in communication connection with the DSP processing chip; the electronic processing board (3) resolves and records the obtained data; the electronic processing board (3) mounts a file system and allocates a first cache region, a second cache region, a third cache region and a time information cache region;
the data transmitted by the SPI module comprises target data information detected based on a suspension type detection sonar; the data transmitted by the USART module comprise position information and current time information based on the position of a suspended detection sonar; the DSP processing chip monitors whether data are transmitted in real time and judges the source of the data;
when the DSP processing chip detects that the USART module is transmitting data, the transmitted data content is judged; when the transmitted data content is time information, writing the time information into a time information cache region; the DSP processing chip judges whether the SD card module has a date folder of the time and the date; if the date folder of the date exists, the DSP processing chip reads time information of hour, minute and second in the time information cache region, and a time file named according to the time information of hour, minute and second is established under the date folder of the date; if the date folder of the time and date does not exist, the DSP processing chip reads the year, month and day date information in the time information cache region, creates a new date folder named according to the year, month and day date information on the SD card module, reads the time information of the hour, minute and second in the time information cache region, and creates a time file named according to the time information of the hour, minute and second under the new date folder; when the transmitted data content is azimuth information data based on the position of the suspended detection sonar, the DSP processing chip starts to write the data from the initial address of the third cache region, judges whether the third cache region is full after the data is written, and if the cache region is not full, an address pointer of the written data points to the end address of the written data; if the cache region is full, the address pointer of the written data points to the first address of the third cache region, and other written data are covered;
when the DSP processing chip detects that the SPI module transmits data, the data is written from the first address of the first cache region, and the data in the first 0.5s time transmitted by the SPI module is written into the first cache region; when the first cache area is full, opening the time file created by the SD card module, enabling the address pointer of the SD card module to point to the first address of the time file created by the SD card module, and storing data in the first 0.5s time transmitted by the SPI module into the time file; writing data in the last 0.5s time transmitted by the SPI module from the first address of the second cache region; when all data within the later 0.5s time transmitted by the SPI module are received and written, an address pointer of the second cache region points to the end address of the data within the later 0.5s time transmitted by the written SPI module, and azimuth information data in the third cache region is written into the second cache region; opening a time file created by the SD card module, enabling an address pointer of the SD card module to point to a tail address of data written in the time file, and storing data and azimuth information data within the last 0.5s time transmitted by the SPI module into the time file;
the data transmitted by the USART module and the SPI module within 1s form a data packet, and the data packet comprises data written into the SPI module of the first cache region within the first 0.5s time and data written into the SPI module of the second cache region within the second 0.5s time and azimuth information data; the writing mode of the data transmitted by the USART module and the SPI module in each 1s is carried out according to the steps, and no error, leakage and frame loss are ensured during data transmission and storage;
after writing a data packet into the time file of the SD card module, the DSP processing chip judges whether the total data written in the time file reaches 1 minute duration, and if the total data does not reach 1 minute duration, the data of the next data packet is continuously stored into the time file in the SD card module; if the time length of 1 minute is reached, the time of the time information cache region is increased by 1 minute and then written into the time information cache region, and the previous time information is covered; the DSP processing chip judges whether the SD card module has a date folder of the modified time and date; if the date folder of the date exists, the DSP processing chip reads the modified time information of hour, minute and second in the time information cache region, and a next time file named according to the modified time information of hour, minute and second is created under the date folder of the date; if the date folder of the time and date does not exist, the DSP processing chip reads the modified year, month and day date information in the time information cache region, creates a next date folder named according to the modified year, month and day date information on the SD card module, reads the modified time, minute and second information in the time information cache region, and creates a next time file named according to the modified time, minute and second information under the new date folder; then storing the data of the next data packet into the next time file in the SD card module;
the data stored in the SD card module is sent to a transceiving radio station (5) through a wireless transceiving module (4), and the transceiving radio station (5) receives the data sent by the wireless transceiving module (4) in real time and transmits the data to a PC (6); the PC 6 can copy or delete data.
CN201810492129.7A 2018-05-22 2018-05-22 Data recording system and recording method based on suspended detection sonar Active CN108959115B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810492129.7A CN108959115B (en) 2018-05-22 2018-05-22 Data recording system and recording method based on suspended detection sonar

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810492129.7A CN108959115B (en) 2018-05-22 2018-05-22 Data recording system and recording method based on suspended detection sonar

Publications (2)

Publication Number Publication Date
CN108959115A CN108959115A (en) 2018-12-07
CN108959115B true CN108959115B (en) 2023-03-24

Family

ID=64499359

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810492129.7A Active CN108959115B (en) 2018-05-22 2018-05-22 Data recording system and recording method based on suspended detection sonar

Country Status (1)

Country Link
CN (1) CN108959115B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0565389A1 (en) * 1992-02-24 1993-10-13 Gemplus Card International IC-card personalization process
CN101345929A (en) * 2008-09-03 2009-01-14 北京交通大学 Digital sound-recording system of radio station
CN103267901A (en) * 2013-04-19 2013-08-28 中国科学院深圳先进技术研究院 Electromagnetic wave strength detection device and method
CN203275998U (en) * 2013-05-28 2013-11-06 西安建筑科技大学 Remote monitoring system for overspeed of trackless rubber-tyred vehicle
CN104601730A (en) * 2015-02-11 2015-05-06 中国科学院光电技术研究所 Embedded remote real-time recording system
CN105282685A (en) * 2015-08-31 2016-01-27 上海迈利船舶科技有限公司 Marine AIS data wireless recording system and recording method thereof
CN106199611A (en) * 2016-08-19 2016-12-07 乐鑫信息科技(上海)有限公司 The internet of things equipment of integrated sonar and applicable Space environment detection system thereof
CN106301845A (en) * 2015-05-30 2017-01-04 四川泰瑞创通讯技术股份有限公司 Switch logger module
CN106443686A (en) * 2016-10-20 2017-02-22 上海海洋大学 Sonar fish shoal detection system
WO2017124691A1 (en) * 2016-01-19 2017-07-27 深圳市比特眼科技有限公司 Novel drive recorder
WO2017140096A1 (en) * 2016-02-18 2017-08-24 北京臻迪科技股份有限公司 Unmanned ship and system
CN206833004U (en) * 2017-05-10 2018-01-02 吉林大学 Triple channel wireless seismic detector data collecting system
CN206920935U (en) * 2017-07-20 2018-01-23 南京信息工程大学 A kind of intelligent carriage for studying under water

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060070108A1 (en) * 2004-09-30 2006-03-30 Martin Renkis Wireless video surveillance system & method with digital input recorder interface and setup
WO2007052531A1 (en) * 2005-11-04 2007-05-10 Matsushita Electric Industrial Co., Ltd. File recording device and imaging device

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0565389A1 (en) * 1992-02-24 1993-10-13 Gemplus Card International IC-card personalization process
CN101345929A (en) * 2008-09-03 2009-01-14 北京交通大学 Digital sound-recording system of radio station
CN103267901A (en) * 2013-04-19 2013-08-28 中国科学院深圳先进技术研究院 Electromagnetic wave strength detection device and method
CN203275998U (en) * 2013-05-28 2013-11-06 西安建筑科技大学 Remote monitoring system for overspeed of trackless rubber-tyred vehicle
CN104601730A (en) * 2015-02-11 2015-05-06 中国科学院光电技术研究所 Embedded remote real-time recording system
CN106301845A (en) * 2015-05-30 2017-01-04 四川泰瑞创通讯技术股份有限公司 Switch logger module
CN105282685A (en) * 2015-08-31 2016-01-27 上海迈利船舶科技有限公司 Marine AIS data wireless recording system and recording method thereof
WO2017124691A1 (en) * 2016-01-19 2017-07-27 深圳市比特眼科技有限公司 Novel drive recorder
WO2017140096A1 (en) * 2016-02-18 2017-08-24 北京臻迪科技股份有限公司 Unmanned ship and system
CN106199611A (en) * 2016-08-19 2016-12-07 乐鑫信息科技(上海)有限公司 The internet of things equipment of integrated sonar and applicable Space environment detection system thereof
CN106443686A (en) * 2016-10-20 2017-02-22 上海海洋大学 Sonar fish shoal detection system
CN206833004U (en) * 2017-05-10 2018-01-02 吉林大学 Triple channel wireless seismic detector data collecting system
CN206920935U (en) * 2017-07-20 2018-01-23 南京信息工程大学 A kind of intelligent carriage for studying under water

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
Embedded Wireless Data Acquisition system for unmanned vehicle in underwater environment;Ayushi S. Jaiswal 等;《2015 IEEE Underwater Technology (UT)》;20150518;第1-6页 *
侧扫声呐探测数据管理系统设计与实现;韩春花 等;《海洋通报》;20110430;第30卷(第2期);第188-192页 *
基于SD卡的GPS轨迹记录仪研究设计;齐文达;《科学技术与工程》;20111008(第28期);全文 *
基于SD卡的电能耗用记录仪设计与实现;徐爱钧;《电子技术应用》;20101006(第10期);全文 *
基于TMS320VC5509A的声呐阵流噪声数据采集系统;江国和等;《舰船科学技术》;20090515(第05期);全文 *

Also Published As

Publication number Publication date
CN108959115A (en) 2018-12-07

Similar Documents

Publication Publication Date Title
EP0860648A3 (en) Automated gas cylinder tracking system
RU2008137971A (en) COORDINATED RECORDING OPERATIONS ON THE TIRE ADDRESS CHANNEL
CN103163567B (en) Based on air gun wavelet bubble ratio analytical approach and the device of energy
CN107168644A (en) High-speed high capacity broadband I/Q data loggers based on SFP optical fiber interfaces
CN108563176A (en) A kind of buoy micro-system for marine exploration
WO2015052668A1 (en) Sonar depth display
CN103573261A (en) Underground ultrasonic roof and floor measuring method and device
CN103759751A (en) Underwater towed type multi-parameter posture recording device and method
CN108959115B (en) Data recording system and recording method based on suspended detection sonar
CN108959114B (en) Sonar detection data recording device and recording method
CN201910080U (en) Dynamic data collecting system of railway train
US9728013B2 (en) Engine detection
CN104132689A (en) On-missile data measurement recorder
CN108318489A (en) A kind of system and method for the real-time storage of Tunnel testing data
CN201047741Y (en) Blasting vibrating monitoring data capture equipment
CN101915937A (en) Seismic data recording method and system of marine streamer
CN101131323A (en) Collecting device for road landscape information and locating information
CN210466095U (en) Pipeline magnetic leakage internal detection data acquisition unit
CN204649208U (en) IMU equipment and comprise its aircraft
CN110907986B (en) Method and device for acquiring seismic data
CN203673070U (en) Data exploration system for movable oil pipe based on Beidou satellite
CN204374433U (en) The autonomous harvester of a kind of submarine blast bottom vibrations
CN205678435U (en) A kind of sound wave pipe leakage positioner
US20170199713A1 (en) Automatic Data Display Selection
CN203311623U (en) Automatic logger capable of reading GPS information by double channels

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
GR01 Patent grant
GR01 Patent grant