CN108761518B - Multi-channel energy spectrum data serialization compression and reduction method - Google Patents

Multi-channel energy spectrum data serialization compression and reduction method Download PDF

Info

Publication number
CN108761518B
CN108761518B CN201810313819.1A CN201810313819A CN108761518B CN 108761518 B CN108761518 B CN 108761518B CN 201810313819 A CN201810313819 A CN 201810313819A CN 108761518 B CN108761518 B CN 108761518B
Authority
CN
China
Prior art keywords
energy spectrum
channel
data
coding
spectrum data
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
CN201810313819.1A
Other languages
Chinese (zh)
Other versions
CN108761518A (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.)
Chengdu Univeristy of Technology
Original Assignee
Chengdu Univeristy of Technology
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 Chengdu Univeristy of Technology filed Critical Chengdu Univeristy of Technology
Priority to CN201810313819.1A priority Critical patent/CN108761518B/en
Publication of CN108761518A publication Critical patent/CN108761518A/en
Application granted granted Critical
Publication of CN108761518B publication Critical patent/CN108761518B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01TMEASUREMENT OF NUCLEAR OR X-RADIATION
    • G01T1/00Measuring X-radiation, gamma radiation, corpuscular radiation, or cosmic radiation
    • G01T1/36Measuring spectral distribution of X-rays or of nuclear radiation spectrometry

Landscapes

  • Physics & Mathematics (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • High Energy & Nuclear Physics (AREA)
  • Molecular Biology (AREA)
  • Other Investigation Or Analysis Of Materials By Electrical Means (AREA)

Abstract

The invention discloses a multi-channel energy spectrum data serialization compression and reduction method, which comprises a multi-channel energy spectrum data channel address and count value coding method and a coding data transmission omission method; the method adopts a unique coding method of multichannel energy spectrum data channel address and counting value and a coding data transmission omitting method. Firstly, recoding multi-channel energy spectrum data, and aiming at the characteristics that in real-time multi-channel energy spectrum measurement, the data transmission time interval is smaller, and the number of channels with zero count is larger, adopting a method of 'channels with zero count, leading zero of code, coding continuous channel addresses and the like' to omit transmission. The method effectively reduces the actual data transmission quantity, thereby achieving the effect of lossless compression, and has good popularization prospect in the application fields of indoor and outdoor multi-channel gamma energy spectrum analysis, multi-element X fluorescence analysis, radon measurement by an energy spectrum method, aerosol measurement by an energy spectrum method and the like.

Description

Multi-channel energy spectrum data serialization compression and reduction method
Technical Field
The invention relates to the technical field of nuclear physics experiments, nuclear instruments and electronics, in particular to a multi-channel energy spectrum data serialization compression and reduction method.
Background
In various fields of nuclear physics experiments, nuclear technology applications, and the like (for example, alpha spectrum measurement in radioactive aerosol measurement), a multichannel energy spectrum analyzer (multichannel analyzer for short, MCA, also called multichannel pulse amplitude analyzer in the field of electronics) is often required to digitize energy signals of photons and particles deposited in a detector to obtain multichannel energy spectrum data. Through multi-channel energy spectrum analysis, physical quantities such as related nuclide content or related nuclear radiation exposure rate can be measured. The energy spectrum data is generally acquired by control circuits (called lower computers) such as a microcontroller MCU (microprogrammed control unit), a singlechip and the like, and transmitted to an energy spectrum analysis microcomputer (called an upper computer) with higher operation performance in real time (not more than once per second) or at regular time (every minute, hour or once every day). In order to reduce the number of wires between the upper and lower computers, the transmission is generally performed in a serial manner.
In recent years, with the improvement of the technical process of the nuclear radiation detector, the comprehensive indexes such as energy resolution, the highest counting rate and the like are greatly improved. Therefore, the number of analysis tracks of the multi-channel spectrum analyzer requiring subsequent adaptation is up to 16384 tracks, and the counting capacity of each track should be up to 16 bits. In addition, at least 1bit of start bit and stop bit is needed in serial transmission. If the entire line data is required to be transmitted once per second, the bit rate of transmission is theoretically at least: 16384 × (16+2) ═ 294912 bps. This has greatly exceeded the standard for maximum bit rates of 110592bps for serial transmission such as RS-232. Therefore, the invention is a method which has simple algorithm, is suitable for being realized in a single chip microcomputer or a microcontroller, can compress multi-channel spectrum data before serial transmission and can be quickly and completely restored at a data receiving party, and has very important practical value.
Disclosure of Invention
The invention aims to provide a method for compressing and restoring multi-channel energy spectrum data in a serialized mode, wherein the algorithm is simple and suitable for being realized in a single chip microcomputer or a microcontroller, the multi-channel energy spectrum data can be compressed before serial transmission, and can be quickly and completely restored at a data receiving party.
In order to achieve the purpose, the invention provides the following technical scheme: a multi-channel energy spectrum data serialization compression and reduction method comprises a multi-channel energy spectrum data channel address and count value coding method and a coding data transmission omission method.
Preferably, the method for encoding the multichannel energy spectrum data channel address and the count value comprises the following steps: recoding up to 20bit addresses of each track in the multichannel energy spectrum data and up to 20bit count values of the track plus a header into 8 groups of 8bit binary numbers, which comprises:
4 sets of 8-bit address data A0-A3;
4 sets of 8bit count rate data D0 through D3;
each group of 8-bit data has a maximum of 3 bits, identified by headers 000 to 111 as D3 to A0, respectively.
Preferably, the method for omitting coded data transmission includes:
3 omission rules can be adopted during coded data transmission;
for lanes with a count of zero, all 8 groups of codes may be omitted from non-transmission;
the track address coding or the counting value coding, the preposed zero can omit non-transmission;
when the channel address of the channel is transmitted as the previous channel address plus 1, the channel address coding can be omitted and not transmitted.
Compared with the prior art, the invention has the beneficial effects that:
1. the method for compressing and restoring the multi-channel energy spectrum data in a serialized mode effectively reduces the actual data transmission amount by adopting a unique method for encoding the multi-channel energy spectrum data channel address and the counting value to be matched with an encoding data transmission omitting method, and aiming at the characteristic that in real-time multi-channel energy spectrum measurement, the smaller the data transmission time interval is, the more the channels with zero counting are, so that the effect of lossless compression is achieved.
2. The multi-channel energy spectrum data serialization compression and reduction method only relates to the most basic binary digit operation and logic judgment of a microcomputer and a microcontroller, has low requirement on the operational capability of a data transmission upper computer, and can completely recover the compressed multi-channel energy spectrum data in a reverse direction; the method is realized by completely using software without extra hardware circuit support, reduces the data transmission amount, improves the real-time performance of data transmission, improves the reliability due to reduction of total code error amount, and has good popularization prospect in the application fields of indoor and outdoor multi-channel gamma energy spectrum analysis, multi-element X fluorescence analysis, energy spectrum radon measurement, energy spectrum aerosol measurement and the like.
Detailed Description
The following examples will explain the present invention in detail, however, the present invention is not limited thereto. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the embodiment of the invention: a multi-channel energy spectrum data serialization compression and reduction method is provided, which comprises a multi-channel energy spectrum data channel address and count value coding method and a coding data transmission omission method.
The coding method of the multi-channel energy spectrum data track address and the counting value is characterized in that the up to 20bit track address of each channel in the multi-channel energy spectrum data and the up to 20bit counting value of the channel are added with a header to be recoded into 8 groups of 8-bit binary numbers; see attached table 1 for coding methods.
TABLE 1 energy spectrum data channel address and counting value coding method table
Figure BDA0001623202340000031
Figure BDA0001623202340000041
For example: 20-bit track address data binary numbers AB 0-AB 19 are split into 4 groups of 5-bit binary numbers AB 0-AB 4, AB 5-AB 9, AB 10-AB 14, AB 15-AB 19 and the like, and 011, 010, 001 and 000 identification headers are added before the 5 groups of the binary numbers respectively; if the actual track address is less than 20 bits, the compatibility can be realized by complementing 0 at a high bit; similarly, 20-bit count value binary numbers DB 0-DB 19 are split into 4 groups of 5-bit binary numbers such as DB 0-DB 4, DB 5-DB 9, DB 10-DB 14 and DB 15-DB 19, and 111, 110, 101 and 100 identification headers are respectively added before the 5 groups of binary numbers; if the actual count value is less than 20 bits, the compatibility can be realized by complementing 0 at a high bit; in this way, the 20bit track addresses AB0 through AB19 for each track, along with the count binary numbers DB0 through DB19 for the track 20bit, may be re-encoded as 8 binary numbers a0 through A3, along with C0 through C3, and then the 8 binary numbers may be transmitted to the serial port in the order of "first track address encoding, then count encoding" and "first high, then low".
Before transmission, according to the following 3 rules, the corresponding encoded data of the track address or the count value can be omitted from non-transmission, thereby greatly reducing the data amount of actual transmission; the core idea of the method is that 3 omission rules can be adopted during the transmission of the coded data, including: (1) for lanes with a count of zero, all 8 groups of codes may be omitted from non-transmission; (2) the track address coding or the counting value coding, the preposed zero can omit non-transmission; (3) when the channel address of the channel is transmitted as the previous channel address plus 1, the channel address coding can be omitted and not transmitted.
In summary, the following steps: according to the multi-channel energy spectrum data serialization compression and reduction method provided by the invention, a unique multi-channel energy spectrum data channel address and count value coding method is adopted to be matched with an encoding data transmission omission method, and the actual data transmission quantity is effectively reduced by aiming at the characteristics that in real-time multi-channel energy spectrum measurement, the smaller the data transmission time interval is, the more channels with zero count are, so that the lossless compression effect is achieved; the method only relates to the most basic binary digit operation and logic judgment of a microcomputer and a microcontroller, has low requirement on the operational capability of a data transmission upper computer, and can completely recover compressed multi-channel energy spectrum data in a reverse direction on the upper computer; the method is realized by completely using software without extra hardware circuit support, reduces the data transmission amount, improves the real-time performance of data transmission, improves the reliability due to reduction of total code error amount, and has good popularization prospect in the application fields of indoor and outdoor multi-channel gamma energy spectrum analysis, multi-element X fluorescence analysis, energy spectrum radon measurement, energy spectrum aerosol measurement and the like.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (1)

1. A multi-channel energy spectrum data serialization compression and reduction method is characterized by comprising a multi-channel energy spectrum data channel address and count value coding method and a coding data transmission omission method;
the multichannel energy spectrum data channel address and count value coding method comprises the following steps: recoding up to 20bit addresses of each track in the multichannel energy spectrum data and up to 20bit count values of the track plus a header into 8 groups of 8bit binary numbers, which comprises:
4 sets of 8-bit address data A0-A3;
4 sets of 8bit count rate data D0 through D3;
the maximum 3 bits of each group of 8-bit data are respectively marked from D3 to A0 from the head of a character 000 to 111;
the coded data transmission omission method comprises the following steps:
3 omission rules can be adopted during coded data transmission;
for lanes with a count of zero, all 8 groups of codes may be omitted from non-transmission;
the track address coding or the counting value coding, the preposed zero can omit non-transmission;
when the channel address of the channel is transmitted as the previous channel address plus 1, the channel address coding can be omitted and not transmitted.
CN201810313819.1A 2018-04-10 2018-04-10 Multi-channel energy spectrum data serialization compression and reduction method Active CN108761518B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810313819.1A CN108761518B (en) 2018-04-10 2018-04-10 Multi-channel energy spectrum data serialization compression and reduction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810313819.1A CN108761518B (en) 2018-04-10 2018-04-10 Multi-channel energy spectrum data serialization compression and reduction method

Publications (2)

Publication Number Publication Date
CN108761518A CN108761518A (en) 2018-11-06
CN108761518B true CN108761518B (en) 2021-12-17

Family

ID=63981526

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810313819.1A Active CN108761518B (en) 2018-04-10 2018-04-10 Multi-channel energy spectrum data serialization compression and reduction method

Country Status (1)

Country Link
CN (1) CN108761518B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115685308B (en) * 2022-12-27 2023-03-17 成都理工大学 Muon imaging method based on domain randomization

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010068126A1 (en) * 2008-12-12 2010-06-17 Rafal Pietrak A method of encoding and decoding of synchronous serial transmission, particularly for low power devices and fiber optics media
CN102664636A (en) * 2012-05-16 2012-09-12 苏州大学 Variable length coding and decoding method and device
CN106576186A (en) * 2014-08-21 2017-04-19 Lg 电子株式会社 Apparatus for transmitting broadcast signal, apparatus for receiving broadcast signal, method for transmitting broadcast signal, and method for receiving broadcast signal
CN107197247A (en) * 2011-05-24 2017-09-22 太阳专利托管公司 Method for encoding images and picture coding device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100525726B1 (en) * 2003-05-22 2005-11-02 전자부품연구원 High speed 8bit/10bit encoder/decoder by reduction of logic group

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010068126A1 (en) * 2008-12-12 2010-06-17 Rafal Pietrak A method of encoding and decoding of synchronous serial transmission, particularly for low power devices and fiber optics media
CN107197247A (en) * 2011-05-24 2017-09-22 太阳专利托管公司 Method for encoding images and picture coding device
CN102664636A (en) * 2012-05-16 2012-09-12 苏州大学 Variable length coding and decoding method and device
CN106576186A (en) * 2014-08-21 2017-04-19 Lg 电子株式会社 Apparatus for transmitting broadcast signal, apparatus for receiving broadcast signal, method for transmitting broadcast signal, and method for receiving broadcast signal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
高灵敏度多元素现场X荧光探测系统的研制;林延畅;《中国博士学位论文全文数据库》;20071215;全文 *

Also Published As

Publication number Publication date
CN108761518A (en) 2018-11-06

Similar Documents

Publication Publication Date Title
CN1118196A (en) Method and device for encoding signal, method and device for decoding signal, and recording medium
CN1064773C (en) Method and apparatus for encoding digital signals, method and apparatus for decoding the coded signals, and medium for recording the coded signals
EP0717503B1 (en) Digital coding and decoding method
DE69025464T2 (en) Error correction in data storage devices
DE69217522T2 (en) Digital message transmission system with concatenated codes and receiver and decoder used in this system
CN108761518B (en) Multi-channel energy spectrum data serialization compression and reduction method
CN102298137B (en) Method for compressing adaptive data-rate original data of satellite-borne SAR (Synthetic Aperture Radar)
CN107135004A (en) A kind of adaptive real-time lossless compression method to earthquake data flow
CN109936360B (en) Pulse counting device and radiation detection system
EP2587480B1 (en) Pulse encoding and decoding method and pulse codec
WO1989002196A1 (en) Method and apparatus for digital encoding and decoding
CN110061733B (en) Pulse signal counting method, pulse signal reconstruction method and chip
CN104579358A (en) Fault recording data compression method
CA1227574A (en) Differential data coding and decoding process and system restricting propagation of transmission errors
US3646445A (en) Adaptive extremal coding of analog signals
CN114036098A (en) Compression and recovery method for wireless transmission of multi-channel energy spectrum data
NL8403078A (en) METHOD FOR TRANSFERRING INFORMATION, CODER FOR APPLICATION IN THE METHOD AND DECODER FOR APPLICATION IN THE METHOD
US8432302B2 (en) Method and apparatus for line coding
CN103297182A (en) Sending method and device of spectrum sensing measurement data
CN107248899B (en) Turbo code based signal non-uniform error code protection method
CA1273112A (en) Method and apparatus for the channelized serial transmission of redundantly encoded binary data
CN110146867B (en) Full waveform laser radar waveform data compression and decompression method
Huang et al. Fast ECG data compression algorithms suitable for microprocessor systems
CN114935676B (en) Digital circuit and method for preprocessing trigger data based on FPGA
CN116684003B (en) Quantum communication-based railway line air-ground comprehensive monitoring method and system

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