CN108134652B - Method and system for reducing data loss of PH capsule wireless detection system - Google Patents

Method and system for reducing data loss of PH capsule wireless detection system Download PDF

Info

Publication number
CN108134652B
CN108134652B CN201711407696.XA CN201711407696A CN108134652B CN 108134652 B CN108134652 B CN 108134652B CN 201711407696 A CN201711407696 A CN 201711407696A CN 108134652 B CN108134652 B CN 108134652B
Authority
CN
China
Prior art keywords
data packet
data
error correction
packet
capsule
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
CN201711407696.XA
Other languages
Chinese (zh)
Other versions
CN108134652A (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.)
Chongqing Jinshan Medical Technology Research Institute Co Ltd
Original Assignee
Chongqing Jinshan Medical Appliance 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 Chongqing Jinshan Medical Appliance Co Ltd filed Critical Chongqing Jinshan Medical Appliance Co Ltd
Priority to CN201711407696.XA priority Critical patent/CN108134652B/en
Publication of CN108134652A publication Critical patent/CN108134652A/en
Application granted granted Critical
Publication of CN108134652B publication Critical patent/CN108134652B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • G08C17/02Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0041Arrangements at the transmitter end
    • H04L1/0042Encoding specially adapted to other signal generation operation, e.g. in order to reduce transmit distortions, jitter, or to improve signal shape
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0045Arrangements at the receiver end
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0061Error detection codes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)

Abstract

The invention discloses a method and a system for reducing data loss of a PH capsule wireless detection system, wherein the method comprises the following steps: the micro processor end of the PH capsule adds error correction codes into the PH data packet and the first check; meanwhile, at least one replication data packet is added into the frame data, and the replication data packet comprises a PH data packet and a second check sum error correction code; and at the micro-processor end of the recorder, firstly, calculating a syndrome of the PH data packet added with the error correction code, judging the correctness, acquiring the correct PH data packet, and when the correct PH data packet cannot be acquired, verifying the PH data packet corrected by the error correction decoding by utilizing the first verification or the second verification in the data packet to acquire the correct PH data packet. The method discovers and corrects errors of the PH data packet in transmission through forward error correction coding and decoding, checks the corrected PH data packet, and sends a duplicate data packet containing the PH data packet to increase the anti-interference capability of transmission, thereby reducing the loss of data frames.

Description

Method and system for reducing data loss of PH capsule wireless detection system
Technical Field
The invention relates to the technical field of medical treatment, in particular to a method and a system for reducing data loss of a PH capsule wireless detection system.
Background
Gastroesophageal reflux disease (GERD) refers to symptoms or complications such as heartburn, acid regurgitation, and poststernal pain caused by the reflux of stomach contents to the esophagus, and seriously affects the quality of life of patients. The incidence of GERD is increasing with changes in people's lifestyle and dietary structure. The diagnosis basis of GERD mainly comprises clinical symptoms, PPI experimental treatment, gastroscopy, esophageal pH detection and other dynamic methods, wherein acid reflux is the main reason of GERD, and esophageal pH detection is the diagnosis basis of GERD, so that the detection of esophageal pH value is more and more important.
The traditional method is to apply 24-hour catheter type esophagus PH detection, mainly insert a PH electrode into the esophagus through nostrils and place the esophagus 5cm above the upper esophageal sphincter, and connect the other end of the catheter with a portable recorder for evaluating the patient symptom correlation and treatment effect.
In recent years, the wireless esophageal capsule PH detection system appearing on the market is improved on the basis of the system, the system comprises a PH capsule, a data recorder, analysis software and a fixing device, the defects are overcome to a certain extent, the PH capsule is fixed on the wall of an esophagus by a pin fixing mode, and recorded PH data are transmitted from a video module in the PH capsule to a receiving module on the data recorder at the waist of a patient in an infinite mode.
In 2010, Esparza EA teaches that the reason why 60 patients using the PH capsule wireless detection system failed was analyzed, and the rate of failure due to signal transmission problems (data loss) was 4.5%. The data loss is caused by that part of bits are lost during transmission to cause received data misplacement (receiving data of other frames), and part of bits are bit errors and lost without verification at the receiving end of the data frame.
Disclosure of Invention
The invention aims to at least solve the technical problems in the prior art, and particularly provides a method and a system for reducing data loss of a PH capsule wireless detection system.
In order to achieve the above object of the present invention, a first aspect of the present invention provides a method for reducing data loss of a PH capsule wireless detection system, comprising a microprocessor transmission processing step of the PH capsule; or both the microprocessor sending processing step of the PH capsule and the microprocessor receiving processing step of the recorder;
the microprocessor sending and processing steps of the PH capsule comprise:
s11, packaging the PH data acquired within the time t into a PH data packet by the micro processor of the PH capsule, and adding a first check sum and a first error correction code into the PH data packet to obtain a first data packet;
s12, copying the PH data packet and adding a second check sum and a second error correction code into the copied PH data packet to obtain a copied data packet;
s13, adding a frame header before the first packet;
s14, the frame header, the first data packet and the at least one copied data packet are combined into frame data, and the frame data are sent to the microprocessor of the recorder after being processed;
the microprocessor receiving and processing steps of the recorder comprise:
s21, the micro processor of the recorder receives the frame data and removes the frame head;
s22, respectively calculating syndromes of the PH data packets in the first data packet and the duplicate data packet, judging the correctness of the PH data packets based on the syndromes, if at least one PH data packet is correct, storing the correct PH data packet by using a recorder, and if the data transmission of the frame is finished, otherwise, entering S23;
s23, carrying out error correction decoding on the first data packet and the copied data packet to obtain two corrected PH data packets, a first check and/or a second check;
and S24, verifying the corrected two PH data by using the corrected first verification and/or second verification, if at least one PH data packet passes the verification, storing the correct PH data packet by using the recorder, otherwise, considering that the data frame is lost, and finishing the transmission of the frame data.
Error correction coding and decoding are added into a PH data packet and verification at the micro processor end of the PH capsule, and meanwhile, a duplicate data packet containing the PH data packet is sent to improve the anti-interference capability of a data frame; the method comprises the steps of calculating a syndrome and judging correctness of PH data packets added with error correction codes at a micro-processor end of a recorder, obtaining correct PH data packets, finding and correcting errors of the PH data packets by error correction decoding, and when the judgment of the correctness of the PH data packets fails, verifying the corrected two PH data packets by using corrected first verification and/or second verification, so that the verification passing rate is increased, and the loss of data frames is reduced.
In another preferred embodiment of the present invention, in the step S11, a PH packet and a first parity in the first packet are respectively added with a first error correction code;
and/or in the step S12, adding a second error correction code to the PH packet and the second parity in the duplicate packet, respectively.
Different error correction codes are added to the first check, the second check and the PH data, so that the PH data packet error or the first check or the second check error can be conveniently distinguished at the micro-processor end of the recorder. Since effective PH data is needed for disease diagnosis, if the first check or the second check is in error and the PH data packet is not in error, the data frame can still be reserved, and the loss rate is reduced.
In still another preferred embodiment of the present invention, in the step S11, the PH packet in the first packet is divided into two or more parts, and a first error correction code is added to each part;
in the step S12, the PH packet in the duplicate packet is divided into two or more identical parts, and a second error correction code is added to each part.
The probability of losing the whole data packet due to partial data errors in the PH data packet is reduced, and the anti-interference capability of data transmission is enhanced.
In still another preferred embodiment of the present invention, in the step of S22,
respectively calculating syndromes of all parts of the PH data packet in the first data packet, and judging the correctness of all parts in the PH data packet based on the syndromes;
respectively calculating syndromes of all parts of the PH data packet in the duplicate data packet, and judging the correctness of all parts in the PH data packet based on all the syndromes;
and if the correct part of the PH data packet in the first data packet and the correct part of the PH data packet in the duplicate data packet can be combined to form a complete PH data packet, storing the combined PH data packet by using a recorder, and finishing the transmission of the frame data.
And the syndromes and judgment are calculated in parts for the PH data packets, and the correctness of the whole PH data packet is judged by combining correct parts in the two PH data packets, so that the loss of the data packets can be further reduced.
In another preferred embodiment of the present invention, the PH data packet and the first error correction code of the first check added to the first data packet are the same or different;
and/or the PH data packet added into the duplicate data packet and the second error correction code of the second check are the same or different.
The PH data packets respectively added into the first data packets are the same as the first error correction codes of the first check, and the PH data packets respectively added into the duplicate data packets are the same as the second error correction codes of the second check, so that the processes of adding the error correction codes, calculating the syndromes and decoding are simplified; the PH data packet added into the first data packet is different from the first error correction code of the first check, and the PH data packet added into the duplicate data packet is different from the second error correction code of the second check, so that the anti-interference capability in data frame transmission is improved.
In a further preferred embodiment of the invention, the first error correction coding and the second error correction coding are identical or different.
The first error correction coding and the second error correction coding are the same, so that the processes of adding the error correction coding, calculating the syndrome and decoding are simplified; the first error correction code and the second error correction code are different, so that the anti-interference capability in data frame transmission is improved.
In a further preferred embodiment of the invention, the first check and the second check are identical or different.
The first check and the second check are the same, and the first check and the second check after being corrected by the error correction decoding can check any corrected PH data packet without matching and corresponding, thereby being beneficial to reducing the loss of data frames.
In a further preferred embodiment of the present invention, the first error correction coding and/or the second error correction coding is forward error correction coding.
Forward error correction coding can automatically correct transmission errors. And the PH data packet information is ensured to be complete.
According to a second aspect of the present invention, there is provided a wireless PH capsule detection system comprising a PH capsule and a recorder,
the PH capsule comprises a PH sensor, a sampling circuit, a micro-processor of the PH capsule and a wireless sending module;
the recorder comprises a wireless receiving module and a microprocessor of the recorder;
the output end of the PH sensor is connected with the input end of a sampling circuit, the output end of the sampling circuit is connected with the signal input end of a microprocessor of a PH capsule, the data output end of the microprocessor of the PH capsule is connected with the input end of a wireless sending module, the output end of the wireless sending module is wirelessly connected with the input end of a wireless receiving module, and the output end of the wireless receiving module is connected with the data input end of the microprocessor of a recorder;
the microprocessor of the PH capsule and the microprocessor of the recorder respectively carry out PH data sending processing and receiving processing according to any one of the methods so as to reduce data loss.
Error correction coding and decoding and data packet copying are added in the PH data packet wireless data transmission, so that the data frame loss is effectively reduced, and the patient detection success rate of a PH capsule wireless detection system is improved.
Drawings
FIG. 1 is a data frame structure diagram of a PH capsule wireless detection system in the prior art;
FIG. 2 is a diagram of a data frame structure in accordance with one embodiment of the present invention;
FIG. 3 is a flow chart of a method performed in one embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
In the description of the present invention, it is to be understood that the terms "longitudinal", "lateral", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", and the like, indicate orientations or positional relationships based on those shown in the drawings, and are used merely for convenience of description and for simplicity of description, and do not indicate or imply that the referenced devices or elements must have a particular orientation, be constructed in a particular orientation, and be operated, and thus, are not to be construed as limiting the present invention.
In the description of the present invention, unless otherwise specified and limited, it is to be noted that the terms "mounted," "connected," and "connected" are to be interpreted broadly, and may be, for example, a mechanical connection or an electrical connection, a communication between two elements, a direct connection, or an indirect connection via an intermediate medium, and specific meanings of the terms may be understood by those skilled in the art according to specific situations.
Fig. 1 is a diagram of a data frame structure of a PH capsule wireless detection system in the prior art, PH data collected in a data frame sending period T is combined into one frame of data by adding a frame header and checking, and the frame of data is sent to a recorder, the recorder checks the received frame of data, if the check is passed, an effective PH data packet is stored, and if the check is failed, the data frame is discarded. This data frame structure exists during transmission: when part of the bits are lost or part of the bits are error codes, the detection and the error correction cannot be carried out, and the PH data is only sent once, so that the data frame is easy to lose due to the fact that the data frame does not pass the verification at a receiving end.
The invention provides a method for reducing data loss of a PH capsule wireless detection system, which comprises a microprocessor sending processing step of the PH capsule in a preferred embodiment; or both the microprocessor sending processing step of the PH capsule and the microprocessor receiving processing step of the recorder;
the microprocessor sending processing steps of the PH capsule comprise:
s11, packaging the PH data acquired within the time t into a PH data packet by the micro processor of the PH capsule, and adding a first check sum and a first error correction code into the PH data packet to obtain a first data packet;
s12, copying the PH data packet and adding a second check sum and a second error correction code into the copied PH data packet to obtain a copied data packet;
s13, adding a frame header before the first packet;
s14, the frame header, the first data packet and the at least one copied data packet are combined into frame data, and the frame data are sent to the microprocessor of the recorder after being processed;
the receiving and processing steps of the microprocessor of the recorder comprise:
s21, the micro processor of the recorder receives the frame data and removes the frame head;
s22, respectively calculating syndromes of the PH data packets in the first data packet and the duplicate data packet, judging the correctness of the PH data packets based on the syndromes, if at least one PH data packet is correct, storing the correct PH data packet by using a recorder, and if the data transmission of the frame is finished, otherwise, entering S23;
s23, carrying out error correction decoding on the first data packet and the copied data packet to obtain two corrected PH data packets, a first check and/or a second check;
and S24, verifying the corrected two PH data packets by using the corrected first verification and/or second verification, if at least one PH data packet passes the verification, storing the correct PH data packet by using the recorder, otherwise, considering that the data frame is lost, and finishing the transmission of the frame data.
In this embodiment, the PH data is encapsulated into a PH data packet, which is a process of combining PH data collected within t time into a fixed byte data packet. The number of bytes of the PH data packet is the sum of the number of bytes occupied by each PH data in the PH data packet, or is determined according to the number of bytes occupied by the total number of bits of the PH data packet. The data sequence in the PH data packet can be combined according to the acquisition sequence, or the low byte data of each PH data can be put in front of the PH data packet, and then the high byte data of each PH data can be combined in the back of the PH data packet.
Such as: the number of PH data collected in the time t is 4, each PH data comprises 10 bits, and two bytes of storage space are needed, so that 8 bytes of storage space are needed in total. Or, according to the PH data packet containing 4 × 10-40 bits of data, only 5 bytes of storage space are occupied, and in order to save space, the 40 bits of data may be combined into 40/8-5 bytes of data packet. The data sequence in the PH data packet can be combined according to the PH acquisition sequence, or the first 8-bit low byte data of each PH data can be placed in front to form 4 byte data, and then the 2-bit high byte of each PH data can be combined into one byte to be placed in the back.
In this embodiment, the frame data processing includes filtering and modulation, and the frame header is removed after the frame data received by the microprocessor of the recorder is demodulated.
In this embodiment, the duplicate packet may also be obtained by duplicating the first packet. In consideration of the timeliness of data transmission, it is preferable that the number of the duplicated data packets is 1. At the micro-processor end of the recorder, the calculation process of the syndrome corresponds to the type of the error correction coding, the calculation methods and the correction processes of the syndromes of different types of error correction coding are different, the syndromes of the PH data packets in the first data packet and the duplicate data packet are respectively calculated according to the type of the error correction coding, if the syndrome is zero, the PH data packet corresponding to the syndrome is correct, and if the syndrome is not zero, the corresponding PH data packet is wrong, and the error correction decoding correction is needed.
In this embodiment, when the syndromes of the PH data packets are not zero, that is, when the PH data packets are all determined to be erroneous, the corrected PH data packets may be respectively checked by using the first check and/or the second check after correction in the error correction decoding, if at least one PH data packet passes the check, the PH data packet passing the check is stored by using the recorder, otherwise, the check data packet is considered to be lost.
In this embodiment, the first parity and the second parity may be 2 bytes, and the error correction code added in the first parity may be different from or the same as the error correction code added in the second parity. The time T is at least one acquisition period T, and the acquisition period T corresponds to the sampling frequency of a PH sensor in the PH capsule wireless detection system.
In a preferred embodiment of the present invention, in step S11, the PH data packet and the first parity in the first data packet are respectively added with a first error correction code;
and/or adding a second error correction code to the PH packet and the second parity in the duplicate packet, respectively, in the step S12.
In this embodiment, error correction coding is performed on the PH data packet in the first data packet or the PH data packet in the duplicate data packet, and then error correction coding is performed on the first check or the second check; or the error correction coding is carried out on the first check or the second check, and then the error correction coding is carried out on the PH data packet in the first data packet or the PH data packet in the duplicate data packet. By adding different error correction codes into the PH data packet and the first check or the second check, which part of data has errors can be distinguished, and the correctness judgment of the PH data packet is not influenced by the errors of the first check or the second check.
In a preferred embodiment of the present invention, in step S11, the PH packet in the first packet is divided into two or more parts, and a first error correction code is added to each part;
in step S12, the PH packet in the duplicate packet is divided into two or more identical portions, and a second error correction code is added to each portion.
In this embodiment, it is assumed that one PH packet is 6 bytes, which is divided into 3 parts, each part is 2 bytes, and different or the same error correction codes are selected to be added to each part, and the PH packet in the first packet and the PH packet in the duplicate packet are respectively processed according to the above method, so that the PH packet in the first packet obtains 3 parts added with the error correction codes, which are denoted as x1, x2, and x3, and similarly, the PH packet in the duplicate packet obtains 3 parts added with the error correction codes, which are denoted as y1, y2, and y 3. After receiving the data at the recorder's microprocessor, syndromes for x1, x2, x3, y1, y2, y3 are calculated, respectively, and the correctness of the six parts is judged based on the syndromes. And judging whether the syndromes of x1, x2 and x3 are all zero or the syndromes of y1, y2 and y3 are all zero, if so, judging that the corresponding PH data packet is correct.
In a preferred embodiment of the present invention, in the step of S22,
respectively calculating syndromes of all parts of the PH data packet in the first data packet, and judging the correctness of all parts in the PH data packet based on the syndromes;
respectively calculating syndromes of all parts of the PH data packet in the duplicate data packet, and judging the correctness of all parts in the PH data packet based on all the syndromes;
and if the correct part of the PH data packet in the first data packet and the correct part of the PH data packet in the duplicate data packet can be combined to form a complete PH data packet, storing the combined PH data packet by using a recorder, and finishing the transmission of the frame data.
In this embodiment, the x1 syndrome and the y1 syndrome are determined, and if one of the syndromes is zero, the corresponding PH data portion is correct; the x2 syndrome and the y2 syndrome, the x3 syndrome and the y3 syndrome are sequentially judged. If the correct partial combining can be combined into a complete PH packet, the combined PH packet is considered correct and can be stored. For example, the syndromes of x1, y2 and y3 are all zero, which indicates that x1, y2 and y3 are all correct, and they can be combined into a correct PH packet, thereby reducing the PH packet loss rate.
In a preferred embodiment of the present invention, the PH data packet and the first error correction code of the first check added to the first data packet, respectively, are the same or different;
and/or the PH data packet and the second error correction code of the second check added into the duplicate data packet respectively are the same or different.
In this embodiment, the error correction code added to the PH data packet in the first data packet is an RS error correction code, and the error correction code added in the first check is a BCH error correction code; and/or the error correction code added in the PH data packet of the copy data packet is RS error correction code, and the error correction code added in the second check is BCH error correction code.
In a preferred embodiment of the invention, the first error correction coding and the second error correction coding are identical or different.
In a preferred embodiment of the invention, the first check and the second check are identical or different.
In a preferred embodiment of the invention, the first error correction coding and/or the second error correction coding is/are forward error correction coding.
FEC coding, i.e. forward error correction coding, is to add some redundant symbols to the information sequence according to a certain rule, so that the information sequence is transformed from the sequence M without regularity into a digital sequence C (symbol sequence) with a certain regularity. That is, in the symbol sequence, there is correlation between the information symbols and the redundant symbols. At the receiving end, i.e. the microprocessor of the recorder, the microprocessor of the recorder decodes the received sequence R by means of the known coding rule, or checks whether the received sequence R complies with the predetermined rule, thereby finding out whether there is an error therein, and further correcting the error therein. The forward error correction coding and decoding finds and corrects the error code generated in the transmission process according to the correlation.
Fig. 3 is a flowchart of a preferred embodiment of a method for reducing data loss in a PH capsule wireless detection system according to the present invention, and fig. 2 is a block diagram of frame data in the embodiment, and the specific implementation process is as follows:
the microprocessor of the PH capsule performs the following steps:
packaging a PH data packet: packaging PH data collected in a data frame sending period T together to form a PH data packet D;
a first data packet obtaining step: adding a check 1 into the PH data packet D, wherein the check 1 is used for checking whether the PH data column is correct or not to form a data packet D1; error correction coding is respectively added to the PH data and the check 1 of the data packet D1 to form a data packet D2;
acquiring a copy data packet: copying the data packet D2 to obtain a copy data packet D3; or copying the PH data packet D, adding the check 2, and then adding the error correction code to obtain a copied data packet D3;
and a frame data forming step: and adding a frame header before the DATA packet D2, adding D3 after the DATA packet D2 to form frame DATA, processing and sending to a receiving end of the DATA recorder.
The microprocessor of the recorder performs the following steps:
a receiving and processing step: after receiving the DATA frame DATA, carrying out demodulation processing and removing a frame header;
and an error correction decoding processing step: respectively calculating syndromes of each part of the PH data packet in the data packet D2 and the duplicate data packet D3, and judging the correctness of each part of the PH data packet based on each syndrome; if the syndrome is zero, the PH data packet is correct, if the syndromes are not zero, no PH data packet is correct, error correction decoding is carried out, and the next step is carried out after error bits are judged and corrected.
A checking treatment step: respectively using two PH data packets D corrected by the correction decoding and the check 1 and the check 2, and storing the PH data packets passing the check by using a recorder as long as one PH data packet passes the check, and finishing the data transmission of the frame;
otherwise, the data frame transmitted this time is lost, and the data frame transmission process is ended.
The invention also provides a PH capsule wireless detection system, in a preferred embodiment, the system comprises a PH capsule and a recorder,
the PH capsule comprises a PH sensor, a sampling circuit, a micro-processor of the PH capsule and a wireless sending module;
the recorder comprises a wireless receiving module and a microprocessor of the recorder;
the output end of the PH sensor is connected with the input end of a sampling circuit, the output end of the sampling circuit is connected with the signal input end of a microprocessor of a PH capsule, the data output end of the microprocessor of the PH capsule is connected with the input end of a wireless sending module, the output end of the wireless sending module is wirelessly connected with the input end of a wireless receiving module, and the output end of the wireless receiving module is connected with the data input end of the microprocessor of a recorder;
the microprocessor of the PH capsule and the microprocessor of the recorder respectively carry out PH data sending processing and receiving processing according to any one of the methods so as to reduce data loss.
In this embodiment, the PH capsule further comprises a housing, a conveyor, a battery, a memory, etc.;
the recorder also comprises a memory power supply module, a data interface and the like.
The PH capsule is fixed on the esophagus through a conveyor, received esophagus acidity and alkalinity data are transmitted to a recorder carried outside a body in real time in a wireless signal mode to be stored and recorded, and a doctor analyzes the PH data recorded by the recorder by using data analysis software to know that the PH value of the esophagus of a patient changes, so that the condition of the digestive tract is diagnosed.
The work execution process of the PH capsule wireless detection system is as follows: starting a recorder → starting a PH capsule → a sensor in the PH capsule collects PH data according to sampling frequency → stores the collected PH data in the capsule → processes the data (adding a frame header, filtering, modulating and the like) → sending a frame of data to the recorder → processing and storing the PH data frame received by the data recorder according to a specified time period T.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
While embodiments of the invention have been shown and described, it will be understood by those of ordinary skill in the art that: various changes, modifications, substitutions and alterations can be made to the embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.

Claims (9)

1. A method for reducing data loss of a PH capsule wireless detection system is characterized by comprising a sending and processing step of a microprocessor of the PH capsule; or both the microprocessor sending processing step of the PH capsule and the microprocessor receiving processing step of the recorder;
the microprocessor sending and processing steps of the PH capsule comprise:
s11, packaging the PH data acquired within the time t into a PH data packet by the micro processor of the PH capsule, and adding a first check sum and a first error correction code into the PH data packet to obtain a first data packet;
s12, copying the PH data packet and adding a second check sum and a second error correction code into the copied PH data packet to obtain a copied data packet;
s13, adding a frame header before the first packet;
s14, the frame header, the first data packet and the at least one copied data packet are combined into frame data, and the frame data are sent to the microprocessor of the recorder after being processed;
the microprocessor receiving and processing steps of the recorder comprise:
s21, the micro processor of the recorder receives the frame data and removes the frame head;
s22, respectively calculating syndromes of the PH data packets in the first data packet and the duplicate data packet, judging the correctness of the PH data packets based on the syndromes, if at least one PH data packet is correct, storing the correct PH data packet by using a recorder, and if the data transmission of the frame is finished, otherwise, entering S23;
s23, carrying out error correction decoding on the first data packet and the copied data packet to obtain two corrected PH data packets, a first check and/or a second check; and S24, verifying the corrected two PH data packets by using the corrected first verification and/or second verification, if at least one PH data packet passes the verification, storing the correct PH data packet by using the recorder, otherwise, considering that the data frame is lost, and finishing the transmission of the frame data.
2. The method according to claim 1, wherein in the step S11, the PH data packet and the first parity in the first data packet are respectively added with a first error correction code;
and/or in the step S12, adding a second error correction code to the PH packet and the second parity in the duplicate packet, respectively.
3. The method as claimed in claim 2, wherein in the step S11, the PH packet in the first packet is divided into two or more parts, and a first error correction coding is added to each part separately;
in the step S12, the PH packet in the duplicate packet is divided into two or more identical parts, and a second error correction code is added to each part.
4. The method of claim 3, wherein in the S22 step,
respectively calculating syndromes of all parts of the PH data packet in the first data packet, and judging the correctness of all parts in the PH data packet based on the syndromes;
respectively calculating syndromes of all parts of the PH data packet in the duplicate data packet, and judging the correctness of all parts in the PH data packet based on all the syndromes;
and if the correct part of the PH data packet in the first data packet and the correct part of the PH data packet in the duplicate data packet can be combined to form a complete PH data packet, storing the combined PH data packet by using a recorder, and finishing the transmission of the frame data.
5. The method of claim 2, wherein the PH data packet and the first error correction code of the first parity added to the first data packet, respectively, are the same or different;
and/or the PH data packet added into the duplicate data packet and the second error correction code of the second check are the same or different.
6. The method of claim 1, wherein the first error correction coding and the second error correction coding are the same or different.
7. The method of claim 1, wherein the first checksum and the second checksum are the same or different.
8. The method of claim 1, wherein the first error correction coding and/or the second error correction coding is forward error correction coding.
9. A PH capsule wireless detection system is characterized by comprising a PH capsule and a recorder,
the PH capsule comprises a PH sensor, a sampling circuit, a micro-processor of the PH capsule and a wireless sending module;
the recorder comprises a wireless receiving module and a microprocessor of the recorder;
the output end of the PH sensor is connected with the input end of a sampling circuit, the output end of the sampling circuit is connected with the signal input end of a microprocessor of a PH capsule, the data output end of the microprocessor of the PH capsule is connected with the input end of a wireless sending module, the output end of the wireless sending module is wirelessly connected with the input end of a wireless receiving module, and the output end of the wireless receiving module is connected with the data input end of the microprocessor of a recorder;
the micro-processor of the PH capsule and the micro-processor of the recorder perform PH data transmission processing and reception processing, respectively, according to any of the methods of claims 1 to 8, to reduce data loss.
CN201711407696.XA 2017-12-22 2017-12-22 Method and system for reducing data loss of PH capsule wireless detection system Active CN108134652B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711407696.XA CN108134652B (en) 2017-12-22 2017-12-22 Method and system for reducing data loss of PH capsule wireless detection system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711407696.XA CN108134652B (en) 2017-12-22 2017-12-22 Method and system for reducing data loss of PH capsule wireless detection system

Publications (2)

Publication Number Publication Date
CN108134652A CN108134652A (en) 2018-06-08
CN108134652B true CN108134652B (en) 2020-09-25

Family

ID=62391612

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711407696.XA Active CN108134652B (en) 2017-12-22 2017-12-22 Method and system for reducing data loss of PH capsule wireless detection system

Country Status (1)

Country Link
CN (1) CN108134652B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113576408A (en) * 2021-07-16 2021-11-02 重庆金山医疗技术研究院有限公司 PH capsule, PH capsule wireless detection system and esophagus pH monitoring method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105790889A (en) * 2016-02-23 2016-07-20 北京杰睿中恒科技有限公司 Data transmission method and device based on orthogonal frequency division multiplexing and meter reading system
CN105991227A (en) * 2015-02-15 2016-10-05 中兴通讯股份有限公司 Data encoding method and apparatus
CN106209302A (en) * 2015-05-04 2016-12-07 中兴通讯股份有限公司 Data transmission processing method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010120156A2 (en) * 2009-04-17 2010-10-21 엘지전자 주식회사 Transmitting/receiving system and broadcast signal processing method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105991227A (en) * 2015-02-15 2016-10-05 中兴通讯股份有限公司 Data encoding method and apparatus
CN106209302A (en) * 2015-05-04 2016-12-07 中兴通讯股份有限公司 Data transmission processing method and device
CN105790889A (en) * 2016-02-23 2016-07-20 北京杰睿中恒科技有限公司 Data transmission method and device based on orthogonal frequency division multiplexing and meter reading system

Also Published As

Publication number Publication date
CN108134652A (en) 2018-06-08

Similar Documents

Publication Publication Date Title
US7519430B2 (en) Dynamic telemetry encoding for an implantable medical device
JP2006051336A (en) Device, system and method for in-vivo data error detection
Han et al. Maranello: Practical Partial Packet Recovery for 802.11.
US8850293B2 (en) Wireless transmission reliability
TWI686085B (en) Data transmission method of image pickup device and image sensor, information processing device, information processing method and program
WO2004061420A2 (en) Continuous glucose monitoring system and methods of use
CN103533045B (en) A kind of method fault-tolerant for PCIE data link layer high-performance
JPH0738540A (en) Automatic retransmission request data transmission method
CN108134652B (en) Method and system for reducing data loss of PH capsule wireless detection system
US7983252B2 (en) Enhanced frame aggregation in a wireless network system
JP2004537919A (en) Forward error correction system and method for packet-based communication systems
IL147208A0 (en) System and method for implementing hybrid automatic repeat request using parity check combining
CN110769206B (en) Electronic endoscope signal transmission method, device and system and electronic equipment
JP2005526414A5 (en)
JP2009189008A (en) Frame structure for improving frame synchronization in receiver
WO2022078426A1 (en) Data transmission method and system, and computer-readable storage medium
JP2005152401A (en) Biological signal data transmission/reception system, biological signal measuring instrument and biological signal data transmission/reception method
CN108155971B (en) Data transmission processing method and data transmission device of esophagus pH value detection system
KR101813051B1 (en) Apparatus and method for indicating error of transport packet in video and audio commnication system
JP3476788B2 (en) Communication system, transmission device, reception device, and communication system including these
CN112716464B (en) Perioperative wireless blood oxygen monitoring system
CN115567167A (en) Bus transmission data error correction method and device
US20210045621A1 (en) Capsule endoscope, receiver interworking with capsule endoscope and method for control of capsule endoscope
CN115633244B (en) Image data transmission method and image data transmission apparatus
CN111345768A (en) Picture integrity checking method, communication device and capsule endoscope 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
TR01 Transfer of patent right

Effective date of registration: 20210926

Address after: 401120 1-1, 2-1, 3-1, building 5, No. 18, Cuiping Lane 2, Huixing street, Yubei District, Chongqing

Patentee after: Chongqing Jinshan Medical Technology Research Institute Co.,Ltd.

Address before: 401120 1 office buildings, Jinshan International Industrial City, 18 of Nei sang Road, Hui Xing street, Yubei District, Chongqing.

Patentee before: CHONGQING JINSHAN MEDICAL APPLIANCE Co.,Ltd.

TR01 Transfer of patent right