[go: up one dir, main page]

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
channel
energy spectrum
address
data
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

本发明公开了一种多道能谱数据序列化压缩与还原方法,包括多道能谱数据道址与计数值编码方法和编码数据传输省略方法;其采用独特的“多道能谱数据道址与计数值编码方法”与“编码数据传输省略方法”。首先对多道能谱数据进行重新编码,再而针对实时多道能谱测量中,数据传输时间间隔越小,计数为零的道越多的特点,采用“计数为零的道,编码的前置零,以及连续道道址编码等”省略传输的方法。有效减少实际数据传输量,从而达到无损压缩的效果,在室内外多道γ能谱分析,多元素X荧光分析,能谱法测氡,以及能谱法气溶胶测量等应用领域,具有很好的推广前景。The invention discloses a method for serializing, compressing and restoring multi-channel energy spectrum data, including a multi-channel energy spectrum data channel address and count value encoding method and a coded data transmission omission method; it adopts a unique "multi-channel energy spectrum data channel address" and count value encoding method" and "encoded data transmission omitting method". Firstly, the multi-channel energy spectrum data is re-encoded, and then in the real-time multi-channel energy spectrum measurement, the smaller the data transmission time interval, the more channels with zero counts. Zero setting, and continuous channel address coding, etc." methods to omit transmission. Effectively reduce the amount of actual data transmission, so as to achieve the effect of lossless compression, in indoor and outdoor multi-channel gamma energy spectrum analysis, multi-element X-ray fluorescence analysis, energy spectrometry radon measurement, and energy spectrometry aerosol measurement and other application fields, it has good performance. promotion prospects.

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.一种多道能谱数据序列化压缩与还原方法,其特征在于,包括多道能谱数据道址与计数值编码方法和编码数据传输省略方法;1. a multi-channel energy spectrum data serialization compression and reduction method, is characterized in that, comprises multi-channel energy spectrum data address and count value coding method and coded data transmission omitting method; 所述多道能谱数据道址与计数值编码方法:将多道能谱数据中的每一道的高达20bit道址与该道高达20bit计数值加上字头重新编码为8组8bit二进制数,其包括:Described multi-channel energy spectrum data channel address and count value encoding method: re-encoding the up to 20bit channel address of each channel in the multi-channel energy spectrum data and the up to 20bit count value of this channel plus the prefix into 8 groups of 8bit binary numbers, It includes: 4组8bit道址数据A0至A3;4 groups of 8bit address data A0 to A3; 4组8bit计数率数据D0至D3;4 groups of 8bit count rate data D0 to D3; 每组8bit数据最高3bit由字头000至111,分别标识D3至A0;Each group of 8-bit data has a maximum of 3 bits from the prefix 000 to 111, which respectively identify D3 to A0; 所述编码数据传输省略方法含有:The encoded data transmission omitting method includes: 编码数据传输时可采取3种省略规则;There are three omission rules that can be adopted when transmitting encoded data; 计数为零的道,全部8组编码可以省略不传输;For the track with a count of zero, all 8 groups of codes can be omitted and not transmitted; 道址编码或计数值编码,前置零可以省略不传输;Address code or count value code, the leading zero can be omitted and not transmitted; 传输该道的道址为上一道址加1时,道址编码可以省略不传输。When the address of the transmission channel is the previous address plus 1, the address code 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 (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111610549B (en) * 2020-05-13 2024-11-01 明峰医疗系统股份有限公司 Direct comparison FPGA-ADC device based on single carry chain
CN115685308B (en) * 2022-12-27 2023-03-17 成都理工大学 A method for muon imaging 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) Signal encoding method, signal encoding device, signal decoding method, signal decoding device, and recording medium
CN108761518B (en) Multi-channel energy spectrum data serialization compression and reduction method
RU2719690C2 (en) Audio encoder and audio decoder with volume metadata and program boundaries
CN1064773C (en) Method and apparatus for encoding digital signals, method and apparatus for decoding the coded signals, and medium for recording the coded signals
KR101401224B1 (en) Apparatus, method, and computer-readable medium for decoding an audio signal
CN108153483B (en) Time sequence data compression method based on attribute grouping
CN103457609A (en) Lossless compressing method and lossless uncompressing method of fault wave record data
CN102324938A (en) Analog-to-digital converter, analog-to-digital conversion system, data reading system and related methods
EP2587480B1 (en) Pulse encoding and decoding method and pulse codec
CN116016606A (en) Sewage treatment operation and maintenance data efficient management system based on intelligent cloud
CN104038232A (en) Testing data compression and decompression method based on secondary exclusive-or operation
CN101202548A (en) A double-run data encoding method
CN102904580A (en) X-BIT compressed encoding algorithm
CN116522059A (en) Least square fitting method and motor discrete transmission data processing method
CN104579358B (en) A kind of fault recorder data compression method
Shi-yi et al. Error correcting cyclic redundancy checks based on confidence declaration
CN108254724A (en) Improve the SAR data compressibility and method of compression quality BAQ
CN1180537C (en) Receiver with improved decoder
CN114036098A (en) A compression and restoration method for wireless transmission of multi-channel energy spectrum data
CN104270225B (en) A kind of code-word type blind-identification method of error control coding
US3646445A (en) Adaptive extremal coding of analog signals
JPS61154246A (en) Information transmission method and encoding and decoding apparatuses used therefor
US3383655A (en) Code converters
CN103929177B (en) A/D quantization bit conversion system and method in GNSS receiver
Huang et al. Fast ECG data compression algorithms suitable for microprocessor systems

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