Antenna detection method, image recorder and detection equipment
By using attenuation circuit in the image recorder to simulate the attenuation value of the capsule after entering the human body, and conduct antenna failure testing, the problem of detecting capsule waste in the prior art is solved, and more accurate and efficient antenna failure detection is achieved.
Patent Information
- Application Number
- CN202510096114.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-21
- Publication Date
- 2025-04-18
AI Technical Summary
In the prior art, when detecting the failure of the image recorder antenna, it is necessary to turn on the capsule and enter the human body before determining whether the communication is normal, resulting in the failure of the antenna that may not be discovered in time before detection, resulting in wasting of the detection capsule.
Before the detection capsule is used, the transmitting data is attenuated through the attenuation circuit in the image recorder, and the attenuation value after the capsule enters the human body is simulated. The fault test is carried out by the antennas in the image recorder to determine whether there is a fault in the antenna.
It avoids wasting detection capsules due to the fault of the image tester, improves the accuracy and efficiency of antenna fault detection, and ensures the reliability of the detection process.
Smart Images

Figure CN119846325A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of fault detection, and in particular to an antenna detection method, an image recorder and detection equipment. Background Art
[0002] The antenna of the image recorder is usually connected to the recorder using a connector and is worn on the user in the form of a vest or belt. In order to cover a larger communication range, the number of antennas is generally 2 to 20. During the inspection, the user lives a normal life. Because the antenna is used multiple times, or the user takes crowded public transportation, or the user takes off the antenna unit and does not carefully place it according to regulations but folds and bends it at will. The antenna is often squeezed and bent, which will cause performance degradation, resulting in communication interruption during the inspection. It is difficult to judge the degradation of antenna performance from the appearance, and the capsule can only be opened to see whether the communication is normal. The existing method is to open the capsule, first judge whether the communication is normal in vitro, and then swallow the capsule. Due to the attenuation of the human body, after the capsule enters the human body, the wireless signal strength will drop by more than 30dB compared to the outside of the body. At this time, the faulty antenna may cause the inability to communicate normally. The capsule is a disposable sterilized product. If the image recorder is found to be faulty after opening, the capsule cannot be used again, which will cause waste. Summary of the invention
[0003] The purpose of the present invention is to provide an antenna detection method, an image recorder and a detection device. Before the detection capsule is used, the antenna of the image recorder is tested for faults without the need for the capsule to avoid wasting the detection capsule due to a fault of the image tester.
[0004] In order to solve the above technical problems, the present invention provides a method for detecting an antenna, wherein the image recorder is connected to an attenuation circuit, and the method comprises:
[0005] generating transmission data, and sending the transmission data to the attenuation circuit;
[0006] Controlling the attenuation circuit to perform power attenuation on the transmitted data, wherein the power attenuation value of the attenuation circuit is related to the attenuation value of the detection capsule in the human body;
[0007] Control the current transmitting antenna to send the transmission data after power attenuation;
[0008] Using the remaining antennas except the current transmitting antenna as current receiving antennas in sequence;
[0009] Determine whether the received data of the current receiving antenna is the same as the sent data;
[0010] If they are different, it indicates that there is a fault in the current transmitting antenna and the current receiving antenna.
[0011] On the other hand, controlling the attenuation circuit to perform power attenuation on the transmitted data further includes:
[0012] Determine the transmission power P1 of the antenna of the image recorder and the transmission power P2 of the capsule;
[0013] The signal loss during transmission is determined according to a transmission formula, where the transmission formula is loss=32.44+20log(f)+20log(d), where f is the transmission frequency and d is the distance;
[0014] Determine the power attenuation value of the attenuation circuit according to the transmission power P1 of the antenna, the transmission power P2 of the capsule and the loss, wherein the power attenuation value=P1-(P2-human body attenuation value)+loss;
[0015] The attenuation circuit is controlled to perform power attenuation on the transmission data at the power attenuation value.
[0016] On the other hand, controlling the current transmitting antenna to send the transmission data after power attenuation includes:
[0017] Selecting one antenna from among a plurality of antennas in the image recorder as a current transmitting antenna;
[0018] Connecting the current transmitting antenna to the output end of the attenuation circuit;
[0019] Generate transmission data and send it to the input end of the attenuation circuit;
[0020] The current transmitting antenna is controlled to transmit the transmission data after power attenuation.
[0021] On the other hand, the remaining antennas except the current transmitting antenna are used as current receiving antennas in sequence, including:
[0022] Selecting any one antenna in the image recorder except the current transmitting antenna as the current receiving antenna;
[0023] Acquire reception data received by the current receiving antenna;
[0024] After determining whether the received data of the current receiving antenna is the same as the sent data, the method further includes:
[0025] If the received data is the same as the transmitted data, an antenna in the image recorder other than the current transmitting antenna that has not been used as the current receiving antenna is selected as the current receiving antenna, and the step of acquiring the received data received by the current receiving antenna is entered.
[0026] On the other hand, the image recorder also includes a radio frequency transmitting circuit and a radio frequency receiving circuit;
[0027] The control end of the radio frequency transmitting circuit is connected to the processor, and the output end of the radio frequency receiving circuit is connected to the processor;
[0028] The control attenuation circuit performs power attenuation on the generated transmission data, including:
[0029] Generate sending data;
[0030] The input end of the attenuation circuit is controlled to be connected to the output end of the radio frequency transmitting circuit, the output end of the attenuation circuit is connected to the current transmitting antenna, and the current receiving antenna is connected to the input end of the radio frequency receiving circuit.
[0031] On the other hand, it also includes a first switch and a second switch that is equal in number to and corresponds to the antennas;
[0032] The first active end of the first switch is connected to the input end of the attenuation circuit, the second active end of the first switch is connected to the output end of the attenuation circuit, the fixed end of the first switch is connected to the output end of the radio frequency transmission circuit, the control end of each of the second switches is connected to the processor, the fixed end of each of the second switches is connected to the corresponding antenna, the first active end of each of the second switches is connected to the output end of the attenuation circuit, and the second active end of each of the second switches is connected to the input end of the radio frequency receiving circuit;
[0033] Controlling the current transmitting antenna in the image recorder to transmit the transmission data after power attenuation, including:
[0034] Controlling the fixed end of the first switch to be connected to the first active end, and the fixed end of the second switch corresponding to the current transmitting antenna to be connected to the first active end;
[0035] After the remaining antennas except the current transmitting antenna are used as current receiving antennas in sequence, the method further includes:
[0036] The fixed end of the second switch corresponding to the current receiving antenna is controlled to be connected to the second active end.
[0037] In order to solve the above technical problems, the present invention further provides an image recorder, comprising:
[0038] Memory for storing computer programs;
[0039] The processor is used to implement the steps of the above-mentioned antenna detection method when executing the computer program.
[0040] On the other hand, it also includes a radio frequency transmitting circuit and a radio frequency receiving circuit;
[0041] The control end of the radio frequency transmitting circuit is connected to the processor, and the output end of the radio frequency receiving circuit is connected to the processor;
[0042] The radio frequency transmitting circuit is used to send the transmission data to the attenuation circuit, and the radio frequency receiving circuit is used to send the reception data to the processor.
[0043] On the other hand, it also includes a first switch and a second switch that is equal in number to and corresponds to the antennas;
[0044] The first active end of the first switch is connected to the input end of the attenuation circuit, the second active end of the first switch is connected to the output end of the attenuation circuit, the fixed end of the first switch is connected to the output end of the radio frequency transmission circuit, the control end of each of the second switches is connected to the processor, the fixed end of each of the second switches is connected to the corresponding antenna, the first active end of each of the second switches is connected to the output end of the attenuation circuit, and the second active end of each of the second switches is connected to the input end of the radio frequency receiving circuit;
[0045] The first switch is used to connect its own fixed end to the first active end so that the attenuation circuit performs power attenuation for the generated data, or to connect its own fixed end to the second active end so that the generated data is sent to the current transmitting antenna. The second switch is used to connect its own fixed end to the first active end so that the corresponding antenna serves as the current transmitting antenna, and to connect its own fixed end to the second active end so that the corresponding antenna serves as the current receiving antenna.
[0046] In order to solve the above technical problems, the present invention also provides a detection device, comprising the above image recorder and a detection capsule;
[0047] The detection capsule is used to capture images after being swallowed by a user and send the images to the image recorder.
[0048] The present application provides an antenna detection method, an image recorder, and a detection device, which relate to the field of fault detection, including controlling the attenuation circuit in the image recorder to attenuate the power of the generated transmission data; controlling the current transmitting antenna in the image recorder to transmit the transmission data after power attenuation; using the remaining antennas in the image recorder as the current receiving antennas in turn; if the receiving data of the current receiving antenna is different from the transmitting data, it indicates that there is a fault in the current transmitting antenna and the current receiving antenna. To detect whether the antenna of the image recorder itself is faulty, the attenuation circuit can simulate the attenuation value after the detection capsule enters the human body, thereby avoiding the situation where the faulty antenna can communicate before the detection capsule enters the human body, but cannot communicate after the signal attenuates after entering the human body. Before the detection capsule is used, the antenna of the image recorder is tested for faults without the cooperation of the capsule, thereby avoiding wasting the detection capsule due to the failure of the image tester. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the prior art and the drawings required for use in the embodiments are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0050] Figure 1 A flow chart of an antenna detection method provided by the present invention;
[0051] Figure 2 This is an appearance diagram of an image recorder provided by the present invention;
[0052] Figure 3 A structural schematic diagram of an image recorder provided by the present invention;
[0053] Figure 4 A schematic structural diagram of a detection device provided by the present invention. DETAILED DESCRIPTION
[0054] The core of the present invention is to provide an antenna detection method, an image recorder and a detection device. Before the detection capsule is used, the antenna of the image recorder is tested for faults without the need for the capsule to avoid wasting the detection capsule due to a fault in the image tester.
[0055] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0056] Figure 1 A flow chart of an antenna detection method provided by the present invention, wherein the antenna detection method is applied to a processor in an image recorder, comprising:
[0057] S11: Generate transmission data and send the transmission data to the attenuation circuit;
[0058] S12: controlling the attenuation circuit to attenuate the power of the transmitted data, wherein the power attenuation value of the attenuation circuit is related to the attenuation value of the capsule to be detected in the human body;
[0059] S13: Control the current transmitting antenna to send the transmission data after power attenuation;
[0060] S14: Using the remaining antennas except the current transmitting antenna as current receiving antennas in sequence;
[0061] S15: Determine whether the received data and the sent data of the current receiving antenna are the same; if not, proceed to step S16;
[0062] S16: It indicates that there is a fault in the current transmitting antenna and the current receiving antenna.
[0063] The existing capsule endoscope system consists of a detection capsule and an image recorder. The capsule is disposable and the image recorder is reusable. After the user swallows the detection capsule, the antenna of the image recorder is usually worn on the user in the form of a vest or belt. Figure 2 This is an appearance diagram of an image recorder provided by the present invention. The antenna of the image recorder is usually connected to the display using a connector and is worn on the user in the form of a vest or belt. In order to cover a larger communication range, the number of antennas generally ranges from 2 to 20. During the inspection, the user lives a normal life. Due to multiple uses of the antenna, or the user riding crowded public transportation, or the user taking off the antenna unit and not placing it carefully as required but folding and bending it at will. The antenna is often squeezed, bent, etc., which will cause performance degradation, resulting in communication interruption during the inspection.
[0064] When the image recorder and the detection capsule are operating normally, information can be transmitted between the detection capsule and the image recorder. For example, the detection capsule transmits the captured human body image to the image recorder. Therefore, whether the antenna of the image recorder and the antenna in the detection capsule are normal determines whether the image transmission is smooth. Therefore, the present application adopts the method of testing the antenna inside the image recorder before using the detection capsule. The antennas in the image recorder send and receive data to each other, and detect the sending and receiving functions in turn to determine whether the antenna is faulty. If the sent data is the same as the received data, then the current transmitting antenna and the current receiving antenna are fault-free, and the current transmitting antenna and the current receiving antenna can be replaced later to determine whether other antennas are faulty. If the sent data is not the same as the received data, then the current transmitting antenna and the current receiving antenna are faulty and an error needs to be reported.
[0065] It is difficult to judge the degradation of antenna performance from the appearance, and the only way is to open the capsule to see if the communication is normal. The existing method is to open the capsule, first judge whether the communication is normal in vitro, and then swallow the capsule. Due to the attenuation of the human body, after the capsule enters the human body, the wireless signal strength will drop by more than 30dB compared to the external body. At this time, the faulty antenna may cause the failure of normal communication. For example, a normal antenna can receive a -80dB wireless signal, but a faulty antenna can only receive a -60dB signal. During external communication, the capsule's transmission signal is -40dB, and the communication is normal. After the capsule enters the human body, the signal attenuates to -70dB, and the faulty antenna cannot communicate. The capsule is a disposable sterilized product. If the image recorder is found to be faulty after opening, the capsule cannot be used again, which will cause waste. Furthermore, in order to avoid the above-mentioned attenuation, an attenuation circuit is set inside the image recorder. The attenuation circuit will attenuate the transmitted data, which will simulate the situation where the detection capsule enters the human body, avoiding the situation where the faulty capsule can communicate normally before the capsule enters the human body, but cannot communicate after entering the human body.
[0066] The present application provides an antenna detection method, which relates to the field of fault detection, including controlling the attenuation circuit in the image recorder to attenuate the power of the generated transmission data; controlling the current transmitting antenna in the image recorder to transmit the transmission data after power attenuation; using the remaining antennas in the image recorder as the current receiving antennas in turn; if the receiving data of the current receiving antenna is different from the transmitting data, it indicates that there is a fault in the current transmitting antenna and the current receiving antenna. To detect whether the antenna of the image recorder itself is faulty, the attenuation circuit can simulate the attenuation value after the detection capsule enters the human body, thereby avoiding the situation where the faulty antenna can communicate before the detection capsule enters the human body, but cannot communicate after the signal attenuates after entering the human body. Before the detection capsule is used, the antenna of the image recorder is tested for faults without the cooperation of the capsule, thereby avoiding wasting the detection capsule due to the failure of the image tester.
[0067] Based on the above embodiments:
[0068] In some embodiments, controlling the attenuation circuit to perform power attenuation on the transmitted data further includes:
[0069] Determine the transmission power P1 of the antenna of the image recorder and the transmission power P2 of the capsule;
[0070] The signal loss during transmission is determined according to the transmission formula: loss = 32.44 + 20log (f) + 20log (d), where f is the transmission frequency and d is the distance.
[0071] The power attenuation value of the attenuation circuit is determined according to the transmission power P1 of the antenna, the transmission power P2 of the capsule and the loss. The power attenuation value = P1- (P2-human body attenuation value) + loss;
[0072] The attenuation circuit is controlled to perform power attenuation on the transmission data according to the power attenuation value.
[0073] The purpose of the attenuation circuit is to verify whether the antenna works properly under low power conditions, according to the Friis transmission formula for wireless signals in free space: loss = 32.44 + 20log (f) + 20log (d), where f is the operating frequency and d is the distance.
[0074] According to the actual distance between the antennas, a suitable attenuation circuit can be designed. For example, the distance between antenna 1 and other antennas is 0.1~0.3m, and the attenuation of the wireless signal at this distance is about 5~14dB. The transmission power of the belt antenna is P1 dBm, the transmission power of the capsule is P2 dBm, and the attenuation of the human body is generally about 30dB. Therefore, the attenuation value of the attenuation circuit can be designed to be P1-(P2-30) +5 dB.
[0075] For example, if the transmission power of the belt antenna is 0dBm and the transmission power of the capsule is -40dBm, the attenuation value of the attenuation circuit should be 65dB.
[0076] Figure 3 A structural schematic diagram of an image recorder provided by the present invention;
[0077] In some embodiments, controlling the current transmitting antenna to transmit the transmission data after power attenuation includes:
[0078] Selecting an antenna from among a plurality of antennas in the image recorder as a current transmitting antenna;
[0079] Connect the current transmitting antenna to the output end of the attenuation circuit;
[0080] generating transmission data and sending the data to the input end of the attenuation circuit;
[0081] Control the current transmitting antenna to send the transmission data after power attenuation.
[0082] For example, there are four antennas in total, and antenna 1 is used as the current transmitting antenna. Then the first transmitting antenna needs to be connected to the attenuation circuit, and the attenuated transmission data is transmitted to antenna 1, and antenna 1 transmits the transmission data. At this time, the detection capsule is not turned on, and antenna 1 needs to send data to the current receiving antenna.
[0083] At this time, among the four antennas, antenna 1 has been used as the current transmitting antenna, so the current receiving antenna can only be selected from antenna 2, antenna 3 and antenna 4. Antenna 2, antenna 3 and antenna 4 are used as the current receiving antennas to receive data in turn.
[0084] In some embodiments, the remaining antennas except the current transmitting antenna are used as current receiving antennas in sequence, including:
[0085] Select any antenna in the image recorder except the current transmitting antenna as the current receiving antenna;
[0086] Get the received data received by the current receiving antenna;
[0087] After determining whether the received data of the current receiving antenna is the same as the sent data, the method further includes:
[0088] If the received data is the same as the transmitted data, an antenna other than the current transmitting antenna in the image recorder that has not been used as the current receiving antenna is selected as the current receiving antenna, and the step of obtaining the received data received by the current receiving antenna is entered.
[0089] Assuming that antenna 2 is the current receiving antenna, the control compares the received data returned by antenna 2 with the transmitted data generated by the RF transmitting circuit after receiving it. For example, the microcontroller sends 128 bytes of data from antenna 1, and then determines that the data received from antenna 2 is consistent with the transmitted data, then it can be concluded that antenna 1 and antenna 2 are normal. If the data is inconsistent, there are two possibilities, antenna 1 is faulty, or antenna 2 is faulty. Regardless of the fault, the microcontroller will display an error through the LCD display or sound and light indication, prompting the user to replace the antenna. Similarly, each antenna is used as the transmitting source in turn, and the remaining antennas are used as the receiving end to detect whether the antenna is normal.
[0090] In some embodiments, the image recorder further includes a radio frequency transmitting circuit and a radio frequency receiving circuit;
[0091] The control end of the radio frequency transmitting circuit is connected to the processor, and the output end of the radio frequency receiving circuit is connected to the processor;
[0092] The control attenuation circuit performs power attenuation on the transmitted data, including:
[0093] Generate sending data;
[0094] The input end of the control attenuation circuit is connected to the output end of the radio frequency transmitting circuit, the output end of the attenuation circuit is connected to the current transmitting antenna, and the current receiving antenna is connected to the input end of the radio frequency receiving circuit.
[0095] RF (Radio Frequency), RF circuit is divided into RF transmitting circuit and RF receiving circuit.
[0096] In some embodiments, it further includes a first switch and a second switch that is equal in number to the antennas and corresponds one to one;
[0097] The first active end of the first switch is connected to the input end of the attenuation circuit, the second active end of the first switch is connected to the output end of the attenuation circuit, the fixed end of the first switch is connected to the output end of the radio frequency transmission circuit, the control end of each second switch is connected to the processor, the fixed end of each second switch is connected to the corresponding antenna, the first active end of each second switch is connected to the output end of the attenuation circuit, and the second active end of each second switch is connected to the input end of the radio frequency receiving circuit;
[0098] Control the current transmitting antenna to send the transmitted data after power attenuation, including:
[0099] Control the fixed end of the first switch to be connected to the first active end, and the fixed end of the second switch corresponding to the current transmitting antenna to be connected to the first active end;
[0100] After the remaining antennas except the current transmitting antenna are used as the current receiving antennas in turn, the following further includes:
[0101] The fixed end of the second switch corresponding to the current receiving antenna is controlled to be connected to the second active end.
[0102] Considering the ease of control, if there are n antennas, then n second switches and one first switch need to be set. The first switch is set considering that no attenuation is required when the image recorder is working normally, so the fixed end of the first switch is connected to the second active end. At this time, the data output by the RF transmitting circuit is not attenuated and can directly reach the antenna. In the early stage of testing, it is necessary to pass through the attenuation circuit, so it is necessary to connect the fixed end of the first switch to the first active end. Considering that the antenna may be used as a transmitting end or a receiving end, when the fixed end of the second switch is connected to the first active end, the antenna acts as a transmitting antenna, and when the fixed end of the second switch is connected to the second active end, the antenna acts as a receiving antenna.
[0103] Figure 3A schematic structural diagram of an image recorder provided by the present invention, the image recorder comprises:
[0104] Memory for storing computer programs;
[0105] The processor is used to implement the steps of the above-mentioned antenna detection method when executing the computer program.
[0106] In some embodiments, it also includes a radio frequency transmitting circuit and a radio frequency receiving circuit;
[0107] The control end of the radio frequency transmitting circuit is connected to the processor, and the output end of the radio frequency receiving circuit is connected to the processor;
[0108] The radio frequency transmitting circuit is used to send the transmission data to the attenuation circuit, and the radio frequency receiving circuit is used to send the reception data to the processor.
[0109] In some embodiments, it further includes a first switch and a second switch that is equal in number to the antennas and corresponds one to one;
[0110] The first active end of the first switch is connected to the input end of the attenuation circuit, the second active end of the first switch is connected to the output end of the attenuation circuit, the fixed end of the first switch is connected to the output end of the radio frequency transmission circuit, the control end of each second switch is connected to the processor, the fixed end of each second switch is connected to the corresponding antenna, the first active end of each second switch is connected to the output end of the attenuation circuit, and the second active end of each second switch is connected to the input end of the radio frequency receiving circuit;
[0111] The first switch is used to connect its own fixed end to the first active end so that the attenuation circuit performs power attenuation to generate data, or to connect its own fixed end to the second active end so as to generate data and send it to the current transmitting antenna. The second switch is used to connect its own fixed end to the first active end so that the corresponding antenna serves as the current transmitting antenna, and to connect its own fixed end to the second active end so that the corresponding antenna serves as the current receiving antenna.
[0112] For an introduction to the image recorder provided in this application, please refer to the above-mentioned embodiments, which will not be described in detail here.
[0113] Figure 4 A schematic diagram of the structure of a detection device provided by the present invention, the detection device comprises the above-mentioned image recorder and a detection capsule;
[0114] The detection capsule is used to capture images after being swallowed by the user and send them to an image recorder.
[0115] The LED (Light-Emitting Diode) light source in the capsule is used to illuminate the human body, the CMOS image sensor can perform digital-to-analog conversion on the captured image, the battery is used to power the CMOS (Complementary Metal Oxide Semiconductor) image sensor, and the control circuit transmits the digital image information out of the human body through the radio frequency circuit and antenna. After the image recorder receives the image outside the human body through the antenna, radio frequency circuit and control circuit, it displays it to the user through an LCD (Liquid Crystal Display) or an audio-visual display. The control circuit includes a processor.
[0116] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0117] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0118] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for detecting an antenna, characterized in that: Applied to an image recorder, the image recorder is connected to an attenuation circuit, and the method comprises: generating transmission data, and sending the transmission data to the attenuation circuit; Controlling the attenuation circuit to perform power attenuation on the transmitted data, wherein the power attenuation value of the attenuation circuit is related to the attenuation value of the capsule to be detected in the human body; Control the current transmitting antenna to send the transmission data after power attenuation; Using the remaining antennas except the current transmitting antenna as current receiving antennas; Determine whether the received data of the current receiving antenna is the same as the sent data; If they are different, it indicates that there is a fault in the current transmitting antenna and the current receiving antenna.
2. The antenna detection method according to claim 1, characterized in that: Controlling the attenuation circuit to perform power attenuation on the transmitted data includes: Determine the transmission power P1 of the antenna of the image recorder and the transmission power P2 of the capsule; The signal loss during transmission is determined according to a transmission formula, where the transmission formula is loss=32.44+20log(f)+20log(d), where f is the transmission frequency and d is the distance; Determine the power attenuation value of the attenuation circuit according to the transmission power P1 of the antenna, the transmission power P2 of the capsule and the loss, wherein the power attenuation value=P1-(P2-human body attenuation value)+loss; The attenuation circuit is controlled to perform power attenuation on the transmission data at the power attenuation value.
3. The antenna detection method according to claim 1, characterized in that: Controlling the current transmitting antenna to transmit the transmission data after power attenuation includes: Selecting one antenna from among a plurality of antennas in the image recorder as a current transmitting antenna; Connecting the current transmitting antenna to the output end of the attenuation circuit; Generate transmission data and send it to the input end of the attenuation circuit; The current transmitting antenna is controlled to transmit the transmission data after power attenuation.
4. The antenna detection method according to claim 1, characterized in that: The remaining antennas except the current transmitting antenna are sequentially used as current receiving antennas, including: Selecting any one antenna in the image recorder except the current transmitting antenna as the current receiving antenna; Acquire reception data received by the current receiving antenna; After determining whether the received data of the current receiving antenna is the same as the sent data, the method further includes: If the received data is the same as the transmitted data, an antenna in the image recorder other than the current transmitting antenna that has not been used as the current receiving antenna is selected as the current receiving antenna, and the step of obtaining the received data received by the current receiving antenna is entered.
5. The antenna detection method according to claim 1, characterized in that: The image recorder also includes a radio frequency transmitting circuit and a radio frequency receiving circuit; The control end of the radio frequency transmitting circuit is connected to the processor, and the output end of the radio frequency receiving circuit is connected to the processor; The control attenuation circuit performs power attenuation on the generated transmission data, including: Generate sending data; The input end of the attenuation circuit is controlled to be connected to the output end of the radio frequency transmitting circuit, the output end of the attenuation circuit is connected to the current transmitting antenna, and the current receiving antenna is connected to the input end of the radio frequency receiving circuit.
6. The antenna detection method according to claim 5, characterized in that: It also includes a first switch and a second switch that is equal in number to the antennas and corresponds one to one; The first active end of the first switch is connected to the input end of the attenuation circuit, the second active end of the first switch is connected to the output end of the attenuation circuit, the fixed end of the first switch is connected to the output end of the radio frequency transmission circuit, the control end of each of the second switches is connected to the processor, the fixed end of each of the second switches is connected to the corresponding antenna, the first active end of each of the second switches is connected to the output end of the attenuation circuit, and the second active end of each of the second switches is connected to the input end of the radio frequency receiving circuit; Controlling the current transmitting antenna to transmit the transmission data after power attenuation includes: Controlling the fixed end of the first switch to be connected to the first active end, and the fixed end of the second switch corresponding to the current transmitting antenna to be connected to the first active end; After the remaining antennas except the current transmitting antenna are used as current receiving antennas in sequence, the method further includes: The fixed end of the second switch corresponding to the current receiving antenna is controlled to be connected to the second active end.
7. An image recorder, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the antenna detection method according to any one of claims 1 to 6 when executing the computer program.
8. The image recorder according to claim 7, characterized in that: It also includes a radio frequency transmitting circuit and a radio frequency receiving circuit; The control end of the radio frequency transmitting circuit is connected to the processor, and the output end of the radio frequency receiving circuit is connected to the processor; The radio frequency transmitting circuit is used to send the transmission data to the attenuation circuit, and the radio frequency receiving circuit is used to send the reception data to the processor.
9. The image recorder according to claim 8, characterized in that It also includes a first switch and a second switch that is equal in number to the antennas and corresponds one to one; The first active end of the first switch is connected to the input end of the attenuation circuit, the second active end of the first switch is connected to the output end of the attenuation circuit, the fixed end of the first switch is connected to the output end of the radio frequency transmission circuit, the control end of each of the second switches is connected to the processor, the fixed end of each of the second switches is connected to the corresponding antenna, the first active end of each of the second switches is connected to the output end of the attenuation circuit, and the second active end of each of the second switches is connected to the input end of the radio frequency receiving circuit; The first switch is used to connect its own fixed end to the first active end so that the attenuation circuit performs power attenuation for the generated data, or to connect its own fixed end to the second active end so that the generated data is sent to the current transmitting antenna. The second switch is used to connect its own fixed end to the first active end so that the corresponding antenna serves as the current transmitting antenna, and to connect its own fixed end to the second active end so that the corresponding antenna serves as the current receiving antenna.
10. A detection device comprising the image recorder according to any one of claims 7 to 9, further comprising a detection capsule; The detection capsule is used to capture images after being swallowed by a user and send the images to the image recorder.