Communication method, computer device and computer readable storage medium
By dynamically selecting the target communication mode and optimizing the data transmission strategy, the problem of low communication efficiency of infrared imagers in variable detection scenarios is solved, and efficient and reliable data transmission is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- GUANGZHOU KETENG INFORMATION TECH
- Filing Date
- 2026-02-09
- Publication Date
- 2026-06-02
AI Technical Summary
The single communication mode of infrared imagers is difficult to adapt to the changing detection scenarios, resulting in low communication efficiency.
Based on the status information of the infrared imager, the attribute information of the task to be transmitted, and the link information of the current communication mode, the appropriate target communication mode is dynamically selected, and data caching and interference type identification are performed during the switching process to optimize communication.
It improves the communication efficiency and data transmission quality of infrared imagers in complex and variable detection scenarios, ensures the continuity and real-time nature of data transmission, and reduces packet loss rate.
Smart Images

Figure CN122138014A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a communication method, computer device and computer-readable storage medium. Background Technology
[0002] Infrared imagers can receive infrared radiation emitted by the object under test, enabling non-contact detection of the surface temperature field of the object and converting it into a visualized temperature distribution image.
[0003] In related technologies, infrared imagers are configured with a single communication mode for data transmission.
[0004] However, the single communication mode in related technologies is difficult to adapt to the changing detection scenarios, resulting in low communication efficiency of infrared imagers. Summary of the Invention
[0005] Therefore, it is necessary to provide a communication method, computer device, and computer-readable storage medium to address the aforementioned technical problems, which can adapt to various detection scenarios and thus improve the communication efficiency of infrared imagers.
[0006] In a first aspect, this application provides a communication method, including:
[0007] Based on at least one of the status information of the infrared imager, the task attribute information of the task to be transmitted by the infrared imager, and the link information of the current communication mode of the infrared imager, if it is determined that the infrared imager meets the mode switching conditions, the target communication mode to be switched is selected from the candidate communication modes supported by the infrared imager.
[0008] Control the infrared imager to switch from the current communication mode to the target communication mode, and conduct communication based on the target communication mode.
[0009] In one embodiment, the mode switching condition includes at least one of the following: the link information of the current communication mode indicates that the current signal strength is lower than a preset strength threshold; the link information of the current communication mode indicates that the communication connection between the infrared imager and the communication terminal is abnormal; the status information indicates that the communication distance does not match the current communication mode; wherein, the communication distance is the communication distance between the infrared imager and the communication terminal; the link information of the current communication mode indicates that the operating frequency band of the current communication mode is located in an interference frequency band; the task attribute information indicates that the amount of data to be transmitted exceeds the throughput capacity of the current communication mode; the link information of the current communication mode indicates that the signal-to-noise ratio of the current communication link is lower than the signal-to-noise ratio threshold corresponding to the current communication mode.
[0010] In one embodiment, controlling the infrared imager to switch from the current communication mode to the target communication mode and to communicate based on the target communication mode includes: controlling the infrared imager to cache untransmitted data in the task to be transmitted; after the untransmitted data has been cached, controlling the infrared imager to switch from the current communication mode to the target communication mode; after the infrared imager switches to the target communication mode, controlling the infrared imager to read the cached untransmitted data, and communicating with the communication terminal based on the untransmitted data and the task attribute information in the target communication mode.
[0011] In one embodiment, controlling the infrared imager to communicate based on the target communication mode includes: acquiring electromagnetic signals of the environment in which the infrared imager is located; determining the type of interference the environment causes to the infrared imager based on the electromagnetic signals; adjusting target data based on the type of interference; wherein the target data includes the task to be transmitted and / or the link information of the target communication mode; and controlling the infrared imager to communicate based on the adjusted target data in the target communication mode.
[0012] In one embodiment, determining the type of interference of the environment on the infrared imager based on the electromagnetic signal includes: performing time-frequency transformation on the electromagnetic signal to obtain a frequency domain signal corresponding to the electromagnetic signal; determining the frequency peak value and amplitude variance based on the frequency domain signal; and determining the type of interference of the environment on the infrared imager based on the frequency peak value and the amplitude variance.
[0013] In one embodiment, determining the type of environmental interference to the infrared imager based on the peak frequency and the amplitude variance includes: determining the type of environmental interference to the infrared imager as a known interference type when the confidence level between the peak frequency and the preset frequency range meets a confidence threshold, and the confidence level between the amplitude variance and the preset amplitude variance range meets the confidence threshold; and determining the type of interference as an unknown interference type when the confidence level between the peak frequency and the preset frequency range does not meet the confidence threshold, and / or the confidence level between the amplitude variance and the preset amplitude variance range does not meet the confidence threshold.
[0014] In one embodiment, adjusting the target data according to the interference type includes: adjusting the operating frequency band in the link information of the target communication mode when the interference type is inverter interference; adjusting the operating channel in the link information of the target communication mode when the interference type is co-frequency device interference; and encoding the data to be transmitted corresponding to the task to be transmitted when the interference type is lightning interference.
[0015] In one embodiment, before determining that the infrared imager meets the mode switching condition based on at least one of the infrared imager's status information, the task attribute information of the infrared imager's task to be transmitted, and the link information of the infrared imager's current communication mode, the method further includes: sending a probe frame to a communication terminal; acquiring a response frame from the communication terminal to the probe frame; parsing the response frame to determine the target communication protocol of the communication terminal; and, if the target communication protocol is inconsistent with the infrared imager's current communication protocol, controlling the infrared imager to switch the current communication protocol to the target communication protocol.
[0016] Secondly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:
[0017] Based on at least one of the status information of the infrared imager, the task attribute information of the task to be transmitted by the infrared imager, and the link information of the current communication mode of the infrared imager, if it is determined that the infrared imager meets the mode switching conditions, the target communication mode to be switched is selected from the candidate communication modes supported by the infrared imager.
[0018] Control the infrared imager to switch from the current communication mode to the target communication mode, and conduct communication based on the target communication mode.
[0019] Thirdly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the following steps:
[0020] Based on at least one of the status information of the infrared imager, the task attribute information of the task to be transmitted by the infrared imager, and the link information of the current communication mode of the infrared imager, if it is determined that the infrared imager meets the mode switching conditions, the target communication mode to be switched is selected from the candidate communication modes supported by the infrared imager.
[0021] Control the infrared imager to switch from the current communication mode to the target communication mode, and conduct communication based on the target communication mode.
[0022] Fourthly, this application also provides a computer program product, including a computer program that, when executed by a processor, performs the following steps:
[0023] Based on at least one of the status information of the infrared imager, the task attribute information of the task to be transmitted by the infrared imager, and the link information of the current communication mode of the infrared imager, if it is determined that the infrared imager meets the mode switching conditions, the target communication mode to be switched is selected from the candidate communication modes supported by the infrared imager.
[0024] Control the infrared imager to switch from the current communication mode to the target communication mode, and conduct communication based on the target communication mode.
[0025] The aforementioned communication method, computer equipment, and computer-readable storage medium, based on at least one of the following: the status information of the infrared imager, the task attribute information of the infrared imager's task to be transmitted, and the link information of the infrared imager's current communication mode, determine that the infrared imager meets the mode switching conditions. Then, it selects a target communication mode to switch to from the candidate communication modes supported by the infrared imager, thereby controlling the infrared imager to switch from the current communication mode to the target communication mode, and conducting communication based on the target communication mode. Because the switching conditions are determined and the target communication mode is selected based on at least one of the following: the status information of the infrared imager, the task attribute information of the infrared imager's task to be transmitted, and the link information of the infrared imager's current communication mode, the infrared imager can dynamically select a suitable target communication mode according to actual needs. This overcomes the technical problem that fixed communication modes are difficult to adapt to complex and ever-changing detection scenarios, and improves the communication efficiency of the infrared imager. Attached Figure Description
[0026] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0027] Figure 1 This is a flowchart illustrating a communication method in one embodiment;
[0028] Figure 2 This is a schematic diagram of a communication process based on a target communication mode in one embodiment;
[0029] Figure 3 This is a schematic diagram of the communication process with the communication terminal in one embodiment;
[0030] Figure 4 This is a flowchart illustrating the process of determining the type of environmental interference to an infrared imager in one embodiment.
[0031] Figure 5 This is a flowchart illustrating the communication method in another embodiment;
[0032] Figure 6 This is a flowchart illustrating the communication method in yet another embodiment;
[0033] Figure 7 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0034] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0035] It should be noted that the terms "first," "second," etc., used in this application can be used to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish the first element from the second element. The terms "comprising" and "having," and any variations thereof, used in this application, are intended to cover non-exclusive inclusion. The term "multiple" used in this application refers to two or more. The term "and / or" used in this application refers to one of the embodiments, or any combination of multiple embodiments.
[0036] Currently, infrared imagers transmit data based on fixed communication modes (such as Bluetooth, wireless network communication, or mobile communication). Therefore, infrared imagers with fixed communication modes have significant limitations in detection scenarios. For example, for infrared imagers configured with Bluetooth or wireless network communication modes, the current communication modes cannot meet the transmission requirements when applied to scenarios such as outdoor inspections that require long-distance transmission.
[0037] In view of this, embodiments of this application provide a communication method.
[0038] In one exemplary embodiment, such as Figure 1 As shown, a communication method is provided. Taking the application of this method to a server as an example, it includes the following steps S101 to S102. Wherein:
[0039] S101, based on at least one of the status information of the infrared imager, the task attribute information of the infrared imager's task to be transmitted, and the link information of the current communication mode of the infrared imager, if it is determined that the infrared imager meets the mode switching conditions, the target communication mode to be switched is selected from the candidate communication modes supported by the infrared imager.
[0040] In this embodiment, the infrared imager supports multiple communication modes, including but not limited to mobile communication mode, wireless network communication mode, and Bluetooth communication mode. Mobile communication mode relies on cellular mobile communication networks, enabling the infrared imager to transmit data over a wide area while in motion. Wireless network communication mode does not rely on wired transmission media, using radio waves, microwaves, or other wireless signals as the transmission carrier to achieve communication between the infrared imager and the communication terminal. Bluetooth communication mode is a short-range (e.g., typically effective within 10 meters) communication mode based on Bluetooth technology. The target communication mode and the current communication mode are two different communication modes among the multiple communication modes supported by the infrared imager.
[0041] For example, the status information of an infrared imager may include its physical status information and operational status information. The physical status information may include the imager's geographical location, while the operational status information may include its operating mode (inspection, debugging, etc.). The task attribute information of the task to be transmitted may include the task type, the amount of data to be transmitted, and the target receiving end. The target receiving end is what is subsequently referred to as the communication end.
[0042] The link information of the current communication mode can represent the connection status information of the communication link between the infrared imager and the communication terminal in the current communication mode. For example, the connection status information may include signal strength, signal-to-noise ratio, network registration status, transmission rate, packet loss rate, etc.
[0043] In one embodiment, the so-called mode switching condition is a quantitative condition used to measure whether the current communication mode of the infrared imager meets the requirements for switching communication modes when executing the task to be transmitted. If the mode switching condition is met, it indicates that the infrared imager has higher communication efficiency when communicating based on other communication modes; conversely, if the mode switching condition is not met, it indicates that the infrared imager has higher communication efficiency when communicating based on the current communication mode. Specifically, the mode switching condition may include mode switching conditions corresponding to status information, mode switching conditions corresponding to task attributes, and mode switching conditions corresponding to link information. For example, if it is determined that the infrared imager meets the mode switching condition, the target communication mode to be switched to is selected from the candidate communication modes supported by the infrared imager based on at least one of the infrared imager's status information, the task attribute information of the infrared imager's task to be transmitted, and the link information of the infrared imager's current communication mode.
[0044] For example, when the current communication mode is mobile communication mode, in response to the infrared imager meeting the mode switching conditions, a target communication mode matching the task to be transmitted can be selected from wireless network communication mode and Bluetooth communication mode based on at least one of the infrared imager's status information, the task attribute information of the infrared imager's task to be transmitted, and the link information of the infrared imager's current communication mode. If all candidate communication modes match the task to be transmitted, the candidate communication mode with lower cost is selected as the target communication mode.
[0045] S102 controls the infrared imager to switch from the current communication mode to the target communication mode and to communicate based on the target communication mode.
[0046] For example, after determining the target communication mode to be switched to, a disconnection signal and a reconnection signal are generated. The disconnection signal indicates that the communication link between the communication module and the communication terminal corresponding to the current communication mode in the infrared imager is broken. The reconnection signal indicates that a communication connection is established between the communication module and the communication terminal corresponding to the target communication mode in the infrared imager. After the communication connection between the communication module and the communication terminal corresponding to the target communication mode in the infrared imager is established, it indicates that the infrared imager has switched from the current communication mode to the target communication mode, and thus communication can be performed using the target communication mode.
[0047] In some embodiments, the data transmitted between the infrared imager and the communication terminal includes a high-frame-rate, high-resolution continuous thermal image sequence (i.e., an image stream or video stream), which is large in volume and requires continuous, real-time transmission. Therefore, to avoid the loss of other low-frame-rate data, such as thermal image data, at the moment of switching and before and after switching, the switching latency must be less than or equal to 10 microseconds.
[0048] Optionally, before the infrared imager communicates, that is, before executing the above S101, the communication mode can be manually switched in advance to verify the delay when switching between two communication modes. If the delay exceeds 10 microseconds, the sub-circuits in the infrared imager are checked step by step until the delay when switching between two communication modes is less than or equal to 10 microseconds.
[0049] The aforementioned communication method, based on at least one of the following: the status information of the infrared imager, the task attribute information of the infrared imager's task to be transmitted, and the link information of the infrared imager's current communication mode, determines that the infrared imager meets the mode switching conditions. Then, it selects the target communication mode from the candidate communication modes supported by the infrared imager, thereby controlling the infrared imager to switch from the current communication mode to the target communication mode, and conducting communication based on the target communication mode. Because the switching conditions are determined and the target communication mode is selected based on at least one of the following, the infrared imager can dynamically select a suitable target communication mode according to actual needs. This overcomes the technical problem that fixed communication modes are difficult to adapt to complex and ever-changing detection scenarios, and improves the communication efficiency of the infrared imager.
[0050] Based on the above embodiments, the mode switching conditions, by example, include at least one of the following:
[0051] The link information of the current communication mode indicates that the current signal strength is lower than the preset strength threshold; the link information of the current communication mode indicates that the communication connection between the infrared imager and the communication terminal is abnormal; the status information indicates that the communication distance does not match the current communication mode; the link information of the current communication mode indicates that the operating frequency band of the current communication mode is located in the interference frequency band; the task attribute information indicates that the amount of data to be transmitted exceeds the throughput capacity of the current communication mode; the link information of the current communication mode indicates that the signal-to-noise ratio of the current communication link is lower than the signal-to-noise ratio threshold corresponding to the current communication mode.
[0052] For example, when the current communication mode is mobile communication mode, the mode switching conditions include at least one of the following: (1) Status information indicates that the communication distance does not match the mobile communication mode, for example, the communication distance is reduced from the order of km to the order of m; wherein, the communication distance is the communication distance between the infrared imager and the communication terminal, and the communication terminal can be the measurement terminal of the infrared imager or a terminal, server, etc. used to upload thermal image data; (2) Link information indicates that the communication connection between the infrared imager and the communication terminal is abnormal, for example, the network registration status information in the link information is disconnected; (3) Link information indicates that the current signal strength is lower than the preset strength threshold corresponding to the mobile communication mode, for example, the preset strength threshold corresponding to the mobile communication mode can be -85dBm (milliwatt decibels); (4) Link information indicates that the signal-to-noise ratio of the current communication link is lower than the signal-to-noise ratio threshold corresponding to the mobile communication mode, wherein, the signal-to-noise ratio can be the signal-to-noise ratio in the working frequency band corresponding to the mobile communication mode, for example, the signal-to-noise ratio threshold corresponding to the mobile communication mode can be -60dBm, and the working frequency band corresponding to the mobile communication mode can be 2500 MHz. -2690MHz; (5) Link information characterizes the working frequency band of the mobile communication mode located within the interference frequency band.
[0053] For example, when the current communication mode is wireless network communication mode, the mode switching conditions include at least one of the following: (1) the status information indicates that the communication distance does not match the wireless network communication mode, for example, the communication distance increases from the order of hundreds of meters to the order of kilometers; (2) the link information indicates that the communication connection between the infrared imager and the communication terminal is abnormal, for example, the network registration status information in the link information is disconnected; (3) the link information indicates that the current signal strength is lower than the preset strength threshold corresponding to the wireless network communication mode, for example, the preset strength threshold corresponding to the wireless network communication mode can be -85dBm (milliwatt decibels); (4) the link information indicates that the signal-to-noise ratio of the current communication link is lower than the signal-to-noise ratio threshold corresponding to the wireless network communication mode, wherein the signal-to-noise ratio can be the signal-to-noise ratio in the working frequency band corresponding to the wireless network communication mode, for example, the signal-to-noise ratio threshold corresponding to the wireless network communication mode can be -60dBm.
[0054] For example, when the current communication mode is Bluetooth communication mode, the mode switching conditions include at least one of the following: (1) the status information indicates that the communication distance does not match the Bluetooth communication mode, for example, the communication distance increases from the meter level to the hundred-meter level; (2) the link information indicates that the communication connection between the infrared imager and the communication end is abnormal, for example, the network registration status information in the link information is disconnected; (3) the task attribute information indicates that the amount of data to be transmitted exceeds the throughput capacity of the Bluetooth communication mode, for example, the amount of data to be transmitted is greater than 1MB, while the Bluetooth communication mode transmission rate is about 11.5KB / s, which requires 87s or even longer to complete the task to be transmitted, and cannot meet the real-time communication requirements.
[0055] In one exemplary embodiment, such as Figure 2 As shown, S102 above, controlling the infrared imager to switch from the current communication mode to the target communication mode, and performing communication based on the target communication mode, includes the following S201-S203. Wherein:
[0056] S201 controls the infrared imager to buffer untransmitted data in the task to be transmitted.
[0057] Among them, untransmitted data can refer to data that the infrared imager has not yet transmitted to the communication terminal when performing the task to be transmitted in the current communication mode.
[0058] For example, to prevent the loss of untransmitted data due to the switching of communication modes, a data caching function can be called to process the untransmitted data into fragments and cache the fragmentation results in the local storage device of the infrared imager.
[0059] S202, after the untransmitted data has been buffered, controls the infrared imager to switch from the current communication mode to the target communication mode.
[0060] Optionally, after the untransmitted data has been buffered, the infrared imager is controlled to disconnect the communication link corresponding to the current communication mode and establish a communication link for the target communication mode, so as to switch from the current communication mode to the target communication mode.
[0061] S203: After the infrared imager switches to the target communication mode, it controls the infrared imager to read the cached untransmitted data and communicates with the communication terminal based on the untransmitted data and task attribute information in the target communication mode.
[0062] In some embodiments, after the communication link of the target communication mode is established and the infrared imager switches to the target communication mode, the infrared imager is controlled to read the untransmitted data cached locally, and generate a new task to be transmitted based on the untransmitted data and task attribute information. In the target communication mode, the infrared imager is controlled to communicate with the communication terminal based on the new task to be transmitted.
[0063] Before switching the target communication mode, this embodiment caches the untransmitted data of the task to be transmitted and then reads it. In this way, the infrared imager is controlled to communicate in the target communication mode, which solves the technical problem of data packet loss of the task to be transmitted due to link interruption at the moment of switching. This ensures the continuity and real-time performance of data transmission and improves the transmission efficiency and quality of the infrared imager during the communication process.
[0064] In some embodiments, such as Figure 3 As shown, in S203 above, after the infrared imager switches to the target communication mode, it controls the infrared imager to read the cached untransmitted data, and in the target communication mode, communicates with the communication terminal based on the untransmitted data and task attribute information, including the following S301-S304. Wherein:
[0065] S301, acquire the electromagnetic signals of the environment in which the infrared imager is located.
[0066] Electromagnetic signals refer to radio wave signals present in the environment where the infrared imager is located that may affect communication.
[0067] In some embodiments, a radio frequency antenna can be used to collect electromagnetic signals from the environment in which the infrared imager is located.
[0068] S302, determine the type of environmental interference to the infrared imager based on electromagnetic signals.
[0069] For example, electromagnetic signals can be processed to obtain their parameter information, which can then be used to analyze the type of environmental interference affecting the infrared imager. Furthermore, feature extraction can be performed on the electromagnetic signals, and the extracted features can be used to analyze the type of environmental interference affecting the infrared imager.
[0070] Among them, the type of interference can reflect the main source of electromagnetic signals. For example, the type of interference can include frequency converter interference, interference from equipment on the same frequency, and lightning interference.
[0071] In some embodiments, to ensure the accuracy of the interference type, the electromagnetic signal can be subjected to feature extraction or data processing multiple times to obtain the interference type corresponding to each feature extraction or data processing. If the interference types obtained multiple times are not the same, S301 can be returned to be executed again to reacquire the electromagnetic signal of the environment where the infrared imager is located, until the interference types obtained multiple times in S302 are the same, and the interference type is determined as the interference type of the environment to the infrared imager.
[0072] S303, adjust the target data according to the type of interference.
[0073] The target data includes link information for the task to be transmitted and / or the target communication mode.
[0074] Optionally, different interference types correspond to different anti-interference strategies. Therefore, after determining the interference type, the corresponding anti-interference strategy can be selected based on the interference type, and the target data can be adjusted based on the corresponding anti-interference strategy.
[0075] In some embodiments, if the interference type is determined to be lightning interference, it indicates that the environment where the infrared imager is located is causing sudden and strong interference to the infrared imager, and alarm information can be output while executing anti-interference strategies.
[0076] S304 controls the infrared imager to communicate based on adjusted target data in target communication mode.
[0077] For example, after adjusting the target data, the infrared imager is controlled to communicate with the communication terminal in target communication mode based on the adjusted target data.
[0078] In one embodiment, when the target communication mode is a wireless network communication mode, insufficient transmission power of the infrared imager during communication will lead to weak received signals and a high bit error rate; conversely, excessive transmission power will cause unnecessary energy consumption and exacerbate environmental interference. Therefore, the transmission power of the infrared imager during communication can be adjusted to further improve transmission efficiency.
[0079] Optionally, based on Friis (Friis transmission equation), it is known that under ideal conditions, the relationship between transmit power and receive power satisfies the following equation (1).
[0080] P r = P t + G t + G r – L (1)
[0081] Among them, P r P represents the received power at the communication end. t G represents the transmit power of an infrared imager. t G represents the transmit antenna gain. r L represents the receiving antenna gain, and L represents the transmission loss, which is related to the communication distance.
[0082] According to the above formula (1), the transmission loss can be calculated when the communication distance is determined, and the transmission power can be adjusted according to the transmitting antenna gain, the receiving antenna gain and the preset receiving power of the communication end to improve the transmission efficiency of the infrared imager.
[0083] It should be noted that the above Figure 3 The execution of S301-S304 after S101 shown is only an exemplary embodiment. In other embodiments of this application, S301-S304 may be executed before S101, and this application does not limit this.
[0084] This example identifies the type of interference based on the collected electromagnetic signals and executes targeted anti-interference strategies according to the different types of interference, thereby improving the robustness and reliability of data transmission of the target communication mode in complex electromagnetic environments and significantly reducing the packet loss rate compared to related technologies.
[0085] Based on the above embodiments, in one embodiment, such as Figure 4 As shown, in S302 above, the type of interference of the environment to the infrared imager is determined based on the electromagnetic signal, including the following S401-S403.
[0086] S401 performs time-frequency transformation on the electromagnetic signal to obtain the frequency domain signal corresponding to the electromagnetic signal.
[0087] For example, a fast Fourier transform (FFT) can be used to perform a time-frequency transformation on the electromagnetic signal to obtain the corresponding frequency domain signal. For instance, a Hanning window can be applied to the electromagnetic signal before the FFT to reduce spectral leakage after the time-frequency transformation.
[0088] S402 determines the peak frequency and amplitude variance based on the frequency domain signal.
[0089] Optionally, the peak frequency and amplitude variance can be determined based on the signal amplitude corresponding to each frequency in the frequency domain signal. The peak frequency represents the frequency at which the energy of the electromagnetic signal is most concentrated, and the amplitude variance is used to reflect the fluctuation intensity of the electromagnetic signal.
[0090] Specifically, the process of determining the peak frequency may include selecting the frequency point corresponding to the peak amplitude from the amplitude corresponding to each frequency point in the frequency domain signal, recording the serial number corresponding to the frequency point, and then using the following formula (2) to obtain the peak frequency f. max The specific value.
[0091] f max =k(α / N) (2)
[0092] Where k represents the sequence number corresponding to the frequency point recorded above, α represents the sampling rate, and N represents the number of sampling points (i.e., the total number of frequency points in the frequency domain signal).
[0093] S403 determines the type of environmental interference to the infrared imager based on the frequency peak value and amplitude variance.
[0094] For example, the type of interference from the environment to the infrared imager can be determined based on the frequency peak threshold or preset frequency range corresponding to the frequency peak, and the amplitude equation threshold or preset amplitude variance range corresponding to the amplitude variance.
[0095] In one embodiment, determining the type of environmental interference to the infrared imager based on the frequency peak value and amplitude variance includes: determining the type of environmental interference to the infrared imager as a known interference type when the confidence level between the frequency peak value and a preset frequency range meets a confidence threshold, and the confidence level between the amplitude variance and a preset amplitude variance range meets a confidence threshold.
[0096] Known interference types include the aforementioned inverter interference, interference from equipment operating on the same frequency, and lightning interference. Confidence level indicates the degree of match between two values (ranges). The confidence threshold is typically set to 95%.
[0097] For example, different known interference types correspond to different preset frequency ranges and different preset amplitude variance ranges. Therefore, based on the different preset frequency ranges and different preset amplitude variance ranges, the known interference type of the environment on the infrared imager can be determined to be inverter interference, interference from equipment operating on the same frequency, or lightning interference.
[0098] For example, the preset frequency ranges corresponding to inverter interference, co-frequency equipment interference, or lightning interference are 100MHz~200MHz, 2.4GHz / 5GHz, and 1MHz~30MHz, respectively, and the preset amplitude variance ranges corresponding to inverter interference, co-frequency equipment interference, or lightning interference are 0.6V~1.0V, 0.3V~0.7V, and 1.0V~2.0V, respectively.
[0099] Specifically, if the confidence level of the peak frequency within the preset frequency range of 100MHz to 200MHz is greater than or equal to the confidence threshold, and the confidence level of the amplitude variance within the preset amplitude variance range of 0.6V to 1.0V is greater than or equal to the confidence threshold, the environmental interference to the infrared imager can be determined to be inverter interference. If the confidence level of the peak frequency within the preset frequency range of 2.4GHz / 5GHz is greater than or equal to the confidence threshold, and the confidence level of the amplitude variance within the preset amplitude variance range of 0.3V to 0.7V is greater than or equal to the confidence threshold, the environmental interference to the infrared imager can be determined to be co-frequency device interference. If the confidence level of the peak frequency within the preset frequency range of 1MHz to 30MHz is greater than or equal to the confidence threshold, and the confidence level of the amplitude variance within the preset amplitude variance range of 1.0V to 2.0V is greater than or equal to the confidence threshold, the environmental interference to the infrared imager can be determined to be lightning interference.
[0100] Conversely, if the confidence level between the peak frequency and the preset frequency range does not meet the confidence threshold, and / or the confidence level between the amplitude variance and the preset amplitude variance range does not meet the confidence threshold, the interference type is determined to be an unknown interference type.
[0101] In some embodiments, if the confidence level between the frequency peak and the preset frequency range corresponding to each known interference type is less than the confidence threshold, and / or the confidence level between the amplitude variance and the preset amplitude variance range corresponding to each known interference type is less than the confidence threshold, it can be determined that the interference type does not belong to any known interference type, and therefore, it can be determined as an unknown interference type.
[0102] This embodiment determines whether the interference type is known or unknown by setting a confidence threshold and based on the confidence between the frequency peak and the preset frequency range, as well as the confidence between the amplitude variance and the preset amplitude variance range. This reduces the risk of misjudging the interference type. Furthermore, by combining the preset frequency range and preset amplitude variance range corresponding to different known interference types, the specific known interference type is accurately identified, laying a foundation for implementing different anti-interference measures based on the different interference types.
[0103] This embodiment analyzes interference types based on the dual characteristics of frequency peak value and amplitude variance, breaking through the technical barrier of relying solely on signal strength to judge interference in related technologies. It analyzes the characteristics such as the fluctuation of electromagnetic signals, providing a reliable data source for determining the type of interference.
[0104] Based on the above embodiments, in an exemplary embodiment, adjusting the target data according to the type of interference may be as follows: if the interference type is inverter interference, adjust the operating frequency band in the link information of the target communication mode; if the interference type is co-frequency device interference, adjust the operating channel in the link information of the target communication mode; if the interference type is lightning interference, encode the data to be transmitted corresponding to the transmission task.
[0105] In some embodiments, the peak frequency of the inverter interference is between 100MHz and 200MHz. That is, the inverter interference is a narrowband and fixed frequency type of interference. Therefore, the operating frequency band in the link information of the target communication mode can be adjusted based on the peak frequency of the inverter interference to avoid the transmission efficiency being too low due to inverter interference in the entire operating frequency band of the target communication mode.
[0106] In some embodiments, co-frequency device interference refers to interference caused by other devices in the environment where the infrared imager operates at the same macroscopic frequency band as the infrared imager. Therefore, in the case of co-frequency device interference, the working channel in the link information of the target communication mode can be adjusted from the current working channel to an idle channel in the working channel of the same working frequency band without changing the working frequency band.
[0107] For example, the strength of the electromagnetic signal on the current working channel can be detected. If the electromagnetic signal strength is higher than a preset safety strength threshold, it indicates that the transmission quality of the current working channel is difficult to meet the communication requirements. Therefore, other working channels corresponding to the current working frequency band can be scanned, and based on the electromagnetic signal strength and idle status of other working channels, an idle channel with lower electromagnetic signal strength can be selected to control the infrared imager to switch working channels.
[0108] In some embodiments, the frequency domain signal of the electromagnetic signal corresponding to lightning interference has a wide spectrum, which is difficult to avoid by switching channels or adjusting the operating frequency band. Therefore, the data to be transmitted can be encoded so that when the infrared imager communicates with the communication end, even if there is strong lightning interference in the environment, causing some information in the data to be transmitted to be lost, the communication end can still use the coding redundancy to recover the data to be transmitted before the loss of information.
[0109] For example, the data to be transmitted corresponding to the transmission task can be encoded using a dual encoding technique of Turbo code encoding and LDPC (Low-density parity-check code) encoding.
[0110] Specifically, in the Turbo code encoding process, the data to be transmitted can first be shuffled and reassembled. Then, redundant parity bits are added to the reassembled data to establish a mapping relationship between the backup data and the redundant parity bits, resulting in first encoded data. This first encoded data is then used as input data for LDPC encoding. A preset sparse binary parity-check matrix is used to determine the parity bits of the first encoded data, and the first encoded data and the parity bits are concatenated to obtain second encoded data. Optionally, the second encoded data can be used as the data to be transmitted in the task to be transmitted, for communication with the communication end.
[0111] This embodiment implements anti-interference strategies corresponding to the characteristics of different known interference types, enabling the infrared imager to achieve the highest anti-interference performance with the lowest power consumption and resource cost. It solves the problem of poor adaptability of single or fixed anti-interference methods in complex electromagnetic environments, resulting in low transmission efficiency, and ensures that the infrared thermal imager can reliably and stably transmit the data to be transmitted in various interference scenarios.
[0112] In some embodiments, such as Figure 5 As shown, before executing S101 above, the communication method further includes the following S501-S504. Wherein:
[0113] S501 sends a probe frame to the communication terminal.
[0114] For example, probe frames are used to actively detect, discover, and identify the communication protocols used by the communication endpoints.
[0115] For example, the format of the probe frame can be (0x01 0x03 0x00 0x00 0x00 0x01 0x84 0x0A).
[0116] S502, Obtain the response frame from the communication end to the probe frame.
[0117] Optionally, the response frame is a data packet that the communication end replies to after receiving the probe frame, according to its own communication protocol specifications, including the communication protocol used by the communication end.
[0118] For example, the format of the response frame can be (0x01 0x03 0x02 0x00 0x28 0x79 0x8A).
[0119] S503 parses the response frame to determine the target communication protocol of the communication end.
[0120] For example, the target communication protocol used by the communication terminal can be identified based on the structure and content of the response frame, and the consistency between the target communication protocol used by the communication terminal and the current communication protocol of the infrared imager can be determined.
[0121] S504: If the target communication protocol is inconsistent with the current communication protocol of the infrared imager, control the infrared imager to switch the current communication protocol to the target communication protocol.
[0122] If the target communication protocol is inconsistent with the current communication protocol of the infrared imager, protocol conversion can be performed according to the protocol stack configured inside the infrared imager to switch the current communication protocol to the target communication protocol, thereby ensuring the quality of data transmission in subsequent communications.
[0123] In this embodiment, before the infrared imager communicates, the target communication protocol of the communication end corresponding to the task to be transmitted is identified by using detection frames and response frames. If the target communication protocol is inconsistent with the current communication protocol of the infrared imager, the infrared imager is controlled to switch the current communication protocol to the target communication protocol. This does not require additional hardware protocol converters, thus reducing the cost and complexity of the communication system integration of the infrared imager.
[0124] Based on the above embodiments, in an exemplary embodiment, an optional communication method is provided, such as... Figure 6 As shown, it may include:
[0125] S601 sends a probe frame to the communication terminal.
[0126] S602, Obtain the response frame from the communication end to the probe frame.
[0127] S603 parses the response frame to determine the target communication protocol of the communication end.
[0128] If the target communication protocol is inconsistent with the current communication protocol of the infrared imager, execute S604 as follows; otherwise, if the target communication protocol is consistent with the current communication protocol of the infrared imager, execute S605 as follows.
[0129] S604 controls the infrared imager to switch the current communication protocol to the target communication protocol.
[0130] S605, based on at least one of the status information of the infrared imager, the task attribute information of the task to be transmitted by the infrared imager, and the link information of the current communication mode of the infrared imager, if it is determined that the infrared imager meets the mode switching conditions, the target communication mode to be switched is selected from the candidate communication modes supported by the infrared imager.
[0131] S606 controls the infrared imager to buffer untransmitted data in the transmission task.
[0132] S607 controls the infrared imager to switch from the current communication mode to the target communication mode after the untransmitted data has been buffered.
[0133] S608, after the infrared imager switches to the target communication mode, controls the infrared imager to read the cached untransmitted data, and communicates with the communication terminal based on the untransmitted data and task attribute information in the target communication mode.
[0134] S609 acquires electromagnetic signals from the environment in which the infrared imager is located.
[0135] S610 performs time-frequency transformation on the electromagnetic signal to obtain the corresponding frequency domain signal.
[0136] S611 determines the peak frequency and amplitude variance based on the frequency domain signal.
[0137] S612 determines the type of environmental interference to the infrared imager based on the frequency peak value and amplitude variance.
[0138] If the confidence level between the peak frequency and the preset frequency range meets the confidence threshold, and the confidence level between the amplitude variance and the preset amplitude variance range meets the confidence level, then the type of interference of the environment to the infrared imager is determined to be a known interference type.
[0139] If the confidence level between the peak frequency and the preset frequency range does not meet the confidence threshold, and / or if the confidence level between the amplitude variance and the preset amplitude variance range does not meet the confidence threshold, the interference type is determined to be an unknown interference type.
[0140] S613 adjusts the target data according to the type of interference.
[0141] When the interference type is inverter interference, adjust the operating frequency band in the link information of the target communication mode;
[0142] In the case of interference of the same frequency device, the working channel in the link information of the target communication mode is adjusted;
[0143] In the case of lightning interference, the data to be transmitted corresponding to the transmission task is encoded.
[0144] S614 controls the infrared imager to communicate based on adjusted target data in target communication mode.
[0145] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages in other steps. It is understood that the steps in different embodiments can be freely combined as needed, and all non-contradictory solutions formed by such combinations are within the scope of protection of this application.
[0146] Each module in the aforementioned communication device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.
[0147] In one exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 7 As shown, this computer device includes a processor, memory, input / output (I / O) interfaces, and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores the status information of the infrared imager, the task attribute information of the infrared imager's pending transmission tasks, and the link information of the infrared imager's current communication mode. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communicating with external terminals via a network connection. When the computer program is executed by the processor, it implements a communication method.
[0148] It should be noted that when the computer device is a server, it can be located inside or outside the infrared imager; this application does not impose any restrictions.
[0149] Those skilled in the art will understand that Figure 7 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0150] In one exemplary embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:
[0151] Based on at least one of the following: the status information of the infrared imager, the task attribute information of the infrared imager's task to be transmitted, and the link information of the current communication mode of the infrared imager, if the infrared imager meets the mode switching conditions, the target communication mode to be switched is selected from the candidate communication modes supported by the infrared imager.
[0152] Control the infrared imager to switch from the current communication mode to the target communication mode, and conduct communication based on the target communication mode.
[0153] In one embodiment, when the processor executes the computer program, it further implements the following steps: controlling the infrared imager to cache untransmitted data in the task to be transmitted; after the untransmitted data has been cached, controlling the infrared imager to switch from the current communication mode to the target communication mode; after the infrared imager switches to the target communication mode, controlling the infrared imager to read the cached untransmitted data, and communicating with the communication terminal based on the untransmitted data and task attribute information in the target communication mode.
[0154] In one embodiment, when the processor executes the computer program, it further performs the following steps: acquiring electromagnetic signals of the environment in which the infrared imager is located; determining the type of interference of the environment to the infrared imager based on the electromagnetic signals; adjusting the target data according to the type of interference; wherein the target data includes link information of the task to be transmitted and / or the target communication mode; and controlling the infrared imager to communicate based on the adjusted target data in the target communication mode.
[0155] In one embodiment, when the processor executes the computer program, it further performs the following steps: performing time-frequency transformation on the electromagnetic signal to obtain the frequency domain signal corresponding to the electromagnetic signal; determining the frequency peak value and amplitude variance based on the frequency domain signal; and determining the type of interference from the environment to the infrared imager based on the frequency peak value and amplitude variance.
[0156] In one embodiment, when the processor executes the computer program, it further performs the following steps: if the confidence level between the peak frequency and the preset frequency range meets a confidence threshold, and the confidence level between the amplitude variance and the preset amplitude variance range meets a confidence threshold, the type of interference to the infrared imager by the environment is determined to be a known interference type; if the confidence level between the peak frequency and the preset frequency range does not meet a confidence threshold, and / or the confidence level between the amplitude variance and the preset amplitude variance range does not meet a confidence threshold, the type of interference is determined to be an unknown interference type.
[0157] In one embodiment, when the processor executes the computer program, it further performs the following steps: when the interference type is inverter interference, adjusting the operating frequency band in the link information of the target communication mode; when the interference type is co-frequency device interference, adjusting the operating channel in the link information of the target communication mode; and when the interference type is lightning interference, encoding the data to be transmitted corresponding to the transmission task.
[0158] In one embodiment, when the processor executes the computer program, it further performs the following steps: sending a probe frame to the communication terminal; obtaining a response frame from the communication terminal to the probe frame; parsing the response frame to determine the target communication protocol of the communication terminal; and controlling the infrared imager to switch the current communication protocol to the target communication protocol if the target communication protocol is inconsistent with the current communication protocol of the infrared imager.
[0159] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:
[0160] Based on at least one of the following: the status information of the infrared imager, the task attribute information of the infrared imager's task to be transmitted, and the link information of the current communication mode of the infrared imager, if the infrared imager meets the mode switching conditions, the target communication mode to be switched is selected from the candidate communication modes supported by the infrared imager.
[0161] Control the infrared imager to switch from the current communication mode to the target communication mode, and conduct communication based on the target communication mode.
[0162] In one embodiment, when the processor executes the computer program, it further implements the following steps: controlling the infrared imager to cache untransmitted data in the task to be transmitted; after the untransmitted data has been cached, controlling the infrared imager to switch from the current communication mode to the target communication mode; after the infrared imager switches to the target communication mode, controlling the infrared imager to read the cached untransmitted data, and communicating with the communication terminal based on the untransmitted data and task attribute information in the target communication mode.
[0163] In one embodiment, when the processor executes the computer program, it further performs the following steps: acquiring electromagnetic signals of the environment in which the infrared imager is located; determining the type of interference of the environment to the infrared imager based on the electromagnetic signals; adjusting the target data according to the type of interference; wherein the target data includes link information of the task to be transmitted and / or the target communication mode; and controlling the infrared imager to communicate based on the adjusted target data in the target communication mode.
[0164] In one embodiment, when the processor executes the computer program, it further performs the following steps: performing time-frequency transformation on the electromagnetic signal to obtain the frequency domain signal corresponding to the electromagnetic signal; determining the frequency peak value and amplitude variance based on the frequency domain signal; and determining the type of interference from the environment to the infrared imager based on the frequency peak value and amplitude variance.
[0165] In one embodiment, when the processor executes the computer program, it further performs the following steps: if the confidence level between the peak frequency and the preset frequency range meets a confidence threshold, and the confidence level between the amplitude variance and the preset amplitude variance range meets a confidence threshold, the type of interference to the infrared imager by the environment is determined to be a known interference type; if the confidence level between the peak frequency and the preset frequency range does not meet a confidence threshold, and / or the confidence level between the amplitude variance and the preset amplitude variance range does not meet a confidence threshold, the type of interference is determined to be an unknown interference type.
[0166] In one embodiment, when the processor executes the computer program, it further performs the following steps: when the interference type is inverter interference, adjusting the operating frequency band in the link information of the target communication mode; when the interference type is co-frequency device interference, adjusting the operating channel in the link information of the target communication mode; and when the interference type is lightning interference, encoding the data to be transmitted corresponding to the transmission task.
[0167] In one embodiment, when the processor executes the computer program, it further performs the following steps: sending a probe frame to the communication terminal; obtaining a response frame from the communication terminal to the probe frame; parsing the response frame to determine the target communication protocol of the communication terminal; and controlling the infrared imager to switch the current communication protocol to the target communication protocol if the target communication protocol is inconsistent with the current communication protocol of the infrared imager.
[0168] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps:
[0169] Based on at least one of the following: the status information of the infrared imager, the task attribute information of the infrared imager's task to be transmitted, and the link information of the current communication mode of the infrared imager, if the infrared imager meets the mode switching conditions, the target communication mode to be switched is selected from the candidate communication modes supported by the infrared imager.
[0170] Control the infrared imager to switch from the current communication mode to the target communication mode, and conduct communication based on the target communication mode.
[0171] In one embodiment, when the processor executes the computer program, it further implements the following steps: controlling the infrared imager to cache untransmitted data in the task to be transmitted; after the untransmitted data has been cached, controlling the infrared imager to switch from the current communication mode to the target communication mode; after the infrared imager switches to the target communication mode, controlling the infrared imager to read the cached untransmitted data, and communicating with the communication terminal based on the untransmitted data and task attribute information in the target communication mode.
[0172] In one embodiment, when the processor executes the computer program, it further performs the following steps: acquiring electromagnetic signals of the environment in which the infrared imager is located; determining the type of interference of the environment to the infrared imager based on the electromagnetic signals; adjusting the target data according to the type of interference; wherein the target data includes link information of the task to be transmitted and / or the target communication mode; and controlling the infrared imager to communicate based on the adjusted target data in the target communication mode.
[0173] In one embodiment, when the processor executes the computer program, it further performs the following steps: performing time-frequency transformation on the electromagnetic signal to obtain the frequency domain signal corresponding to the electromagnetic signal; determining the frequency peak value and amplitude variance based on the frequency domain signal; and determining the type of interference from the environment to the infrared imager based on the frequency peak value and amplitude variance.
[0174] In one embodiment, when the processor executes the computer program, it further performs the following steps: if the confidence level between the peak frequency and the preset frequency range meets a confidence threshold, and the confidence level between the amplitude variance and the preset amplitude variance range meets a confidence threshold, the type of interference to the infrared imager by the environment is determined to be a known interference type; if the confidence level between the peak frequency and the preset frequency range does not meet a confidence threshold, and / or the confidence level between the amplitude variance and the preset amplitude variance range does not meet a confidence threshold, the type of interference is determined to be an unknown interference type.
[0175] In one embodiment, when the processor executes the computer program, it further performs the following steps: when the interference type is inverter interference, adjusting the operating frequency band in the link information of the target communication mode; when the interference type is co-frequency device interference, adjusting the operating channel in the link information of the target communication mode; and when the interference type is lightning interference, encoding the data to be transmitted corresponding to the transmission task.
[0176] In one embodiment, when the processor executes the computer program, it further performs the following steps: sending a probe frame to the communication terminal; obtaining a response frame from the communication terminal to the probe frame; parsing the response frame to determine the target communication protocol of the communication terminal; and controlling the infrared imager to switch the current communication protocol to the target communication protocol if the target communication protocol is inconsistent with the current communication protocol of the infrared imager.
[0177] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.
[0178] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0179] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A communication method, characterized in that, The method includes: Based on at least one of the status information of the infrared imager, the task attribute information of the task to be transmitted by the infrared imager, and the link information of the current communication mode of the infrared imager, if it is determined that the infrared imager meets the mode switching conditions, the target communication mode to be switched is selected from the candidate communication modes supported by the infrared imager. Control the infrared imager to switch from the current communication mode to the target communication mode, and conduct communication based on the target communication mode.
2. The method according to claim 1, characterized in that, The mode switching conditions include at least one of the following: The link information of the current communication mode indicates that the current signal strength is lower than a preset strength threshold; The link information of the current communication mode indicates an abnormal communication connection between the infrared imager and the communication terminal; The status information indicates that the communication distance does not match the current communication mode; wherein, the communication distance is the communication distance between the infrared imager and the communication terminal; The link information of the current communication mode indicates that the operating frequency band of the current communication mode is located within the interference frequency band; The task attribute information indicates that the amount of data to be transmitted exceeds the throughput capacity of the current communication mode; The link information of the current communication mode indicates that the signal-to-noise ratio of the current communication link is lower than the signal-to-noise ratio threshold corresponding to the current communication mode.
3. The method according to claim 1, characterized in that, The control of the infrared imager to switch from the current communication mode to the target communication mode, and to perform communication based on the target communication mode, includes: The infrared imager is controlled to buffer untransmitted data in the task to be transmitted. After the untransmitted data has been buffered, the infrared imager is controlled to switch from the current communication mode to the target communication mode; After the infrared imager switches to the target communication mode, it is controlled to read the cached untransmitted data and communicate with the communication terminal based on the untransmitted data and the task attribute information in the target communication mode.
4. The method according to any one of claims 1-3, characterized in that, Controlling the infrared imager to communicate based on the target communication mode includes: Acquire the electromagnetic signals of the environment in which the infrared imager is located; Based on the electromagnetic signal, determine the type of interference from the environment to the infrared imager; The target data is adjusted according to the type of interference; wherein the target data includes the link information of the task to be transmitted and / or the target communication mode; The infrared imager is controlled to communicate based on the adjusted target data in the target communication mode.
5. The method according to claim 4, characterized in that, The step of determining the type of interference from the environment to the infrared imager based on the electromagnetic signal includes: Perform time-frequency transformation on the electromagnetic signal to obtain the frequency domain signal corresponding to the electromagnetic signal; Based on the frequency domain signal, determine the frequency peak value and amplitude variance; The type of interference from the environment to the infrared imager is determined based on the peak frequency and the amplitude variance.
6. The method according to claim 5, characterized in that, Determining the type of environmental interference on the infrared imager based on the peak frequency and the amplitude variance includes: If the confidence level between the peak frequency and the preset frequency range meets the confidence level threshold, and the confidence level between the amplitude variance and the preset amplitude variance range meets the confidence level threshold, then the interference type of the environment on the infrared imager is determined to be a known interference type. If the confidence level between the peak frequency and the preset frequency range does not meet the confidence threshold, and / or if the confidence level between the amplitude variance and the preset amplitude variance range does not meet the confidence threshold, the interference type is determined to be an unknown interference type.
7. The method according to claim 4, characterized in that, The adjustment of the target data according to the type of interference includes: When the interference type is inverter interference, the operating frequency band in the link information of the target communication mode is adjusted. In the case where the interference type is co-frequency device interference, the working channel in the link information of the target communication mode is adjusted; In the case where the interference type is lightning interference, the data to be transmitted corresponding to the task to be transmitted is encoded.
8. The method according to any one of claims 1-3, characterized in that, Before determining that the infrared imager meets the mode switching conditions based on at least one of the infrared imager's status information, the task attribute information of the infrared imager's task to be transmitted, and the link information of the infrared imager's current communication mode, the method further includes: Send probe frames to the communication terminal; Obtain the response frame of the communication terminal to the probe frame; The response frame is parsed to determine the target communication protocol of the communication terminal; If the target communication protocol is inconsistent with the current communication protocol of the infrared imager, the infrared imager is controlled to switch the current communication protocol to the target communication protocol.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1-8.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1-8.