Communication method, ion rod, infrared equipment and electronic equipment
By setting an abnormality detection module in the ion rod and sending frequency switching requests, the problem of user manual recovery after interference between the ion rod and infrared device communication channel is solved, and the function of automatically restoring the communication channel is realized, improving the user experience.
Patent Information
- Application Number
- CN202510305958.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-14
- Publication Date
- 2025-04-11
Smart Images

Figure CN119815451A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a communication method, an ion rod, an infrared device and an electronic device. Background Art
[0002] Ion rod is a highly efficient device for eliminating static electricity. It is widely used in electronic manufacturing, printing and packaging, plastic processing, medical equipment and other fields to neutralize the static charge on the surface of objects and prevent damage caused by static discharge.
[0003] At present, for the convenience of users, an infrared module can be provided in the ion rod. By using an infrared device, such as an infrared remote controller, the user can remotely control the ion rod, and the status parameters of the ion rod can also be displayed on the infrared device. During the communication process between the ion rod and the infrared device, when the communication channel between the ion rod and the infrared device is disturbed, the integrity and accuracy of the signal cannot be guaranteed, and the ion rod continues to respond to wrong or incomplete signals, which may cause misoperation.
[0004] In order to avoid the above problems, the ion rod can be configured to actively disconnect the communication channel with the infrared device when abnormal interference is detected, ensuring that the ion rod or infrared device is in a safe state. At this time, the user is often required to manually check and restore the communication channel between the ion rod and the infrared device, affecting the user experience. Summary of the invention
[0005] The main purpose of this application is to provide a communication method, an ion rod, an infrared device and an electronic device, aiming to solve the technical problem that when the communication channel between the ion rod and the infrared device in the prior art is disturbed and disconnected, the user needs to manually check and restore it, which affects the user's experience.
[0006] To achieve the above object, the present application provides a communication method, which is applied to an ion rod communicating with an infrared device, and the method comprises: Determining whether there is an abnormality in the communication channel with the infrared device; If there is an abnormality, the communication channel is disconnected after sending a frequency switching request to the infrared device, so that the infrared device determines the target frequency information from a plurality of pre-configured preset frequency information according to the frequency switching request, and switches the current frequency of the communication channel to the target frequency corresponding to the target frequency information; Acquire the target frequency switched by the infrared device; The communication channel with the infrared device is restored at the target frequency.
[0007] In one embodiment, the step of acquiring the target frequency switched by the infrared device includes: Determining whether a broadcast signal carrying the target frequency information and sent by the infrared device through broadcasting is received; If the broadcast signal is received, extracting the target frequency information in the broadcast signal, and determining the target frequency corresponding to the target frequency information; If the broadcast signal is not received, the current frequency is switched to the frequencies corresponding to the preset frequency information in sequence at preset time intervals until the target frequency with the test signal is detected, and the test signal is sent by the infrared transmitter at the target frequency.
[0008] In one embodiment, the step of determining whether there is an abnormality in the communication channel with the infrared device includes: Acquire a plurality of infrared data sent by the infrared device within a preset time period; Comparing the bit error rate of each infrared data with a preset bit error rate threshold; When the number of infrared data whose bit error rate exceeds the preset bit error rate threshold reaches a preset number, it is determined whether there is an abnormality in the communication channel with the infrared device.
[0009] In one embodiment, the step of restoring the communication channel with the infrared device at the target frequency comprises: receiving recovered data sent by the infrared device at the target frequency; Determining whether the bit error rate of the recovered data exceeds the preset bit error rate threshold; If not, in response to the recovery data, feedback confirmation data to the infrared device, so that the infrared device verifies the confirmation data, and when the verification is passed, it is determined that the communication channel is successfully restored; If so, the method returns to the step of sending a frequency switching request to the infrared device and then disconnecting the communication channel until the bit error rate of the restored data sent by the infrared device based on the switched frequency does not exceed the preset bit error rate threshold.
[0010] In addition, to achieve the above purpose, the present application also proposes a communication method, which is applied to an infrared device communicating with an ion rod, and the method includes: Determining whether a frequency switching request sent by the ion rod is received; If the frequency switching request is received, determining target frequency information from a plurality of pre-configured preset frequency information according to the frequency switching request; Switching the current frequency of the communication channel with the ion rod to the target frequency corresponding to the target frequency information; The target frequency information is synchronized to the ion rod, so that the ion rod can restore the communication channel at the target frequency.
[0011] In one embodiment, if the frequency switching request is received, the step of determining the target frequency information from a plurality of pre-configured preset frequency information according to the frequency switching request includes: Determining whether the frequency switching request carries designated frequency information; If yes, determining frequency information corresponding to the designated frequency information from a plurality of pre-configured preset frequency information as the target frequency information; If not, the target frequency information is determined according to a plurality of pre-configured preset frequency information.
[0012] In one embodiment, if not, the step of determining the target frequency information according to a plurality of pre-configured preset frequency information includes: If not, obtaining a frequency information table containing pre-configured information of a plurality of preset frequencies; Selecting the preset frequency information with the highest frequency priority in the frequency information table as the candidate frequency information; Determining whether the signal strength of the candidate frequency information is lower than a preset strength threshold; If it is lower than the preset strength threshold, the candidate frequency information is used as the target frequency information; If it is not lower than the preset strength threshold, the alternative frequency information with the highest priority is removed from the frequency information table, and the step of selecting the preset frequency information with the highest frequency priority in the frequency information table as the alternative frequency information is returned until the target frequency information with a signal strength lower than the preset strength threshold is obtained.
[0013] In addition, to achieve the above-mentioned purpose, the present application also proposes an ion rod, which comprises: Anomaly detection module, used to determine whether there is an anomaly in the communication channel with the infrared device; a request sending module, configured to disconnect the communication channel after sending a frequency switching request to the infrared device if an abnormality exists, so that the infrared device determines the target frequency information from a plurality of pre-configured preset frequency information according to the frequency switching request, and switches the current frequency of the communication channel to the target frequency corresponding to the target frequency information; A frequency acquisition module, used to acquire the target frequency switched by the infrared device; The communication recovery module is used to recover the communication channel with the infrared device at the target frequency.
[0014] In addition, to achieve the above purpose, the present application also proposes an infrared device, which includes: A request receiving module, used to determine whether a frequency switching request sent by the ion rod is received; A frequency determination module, configured to determine target frequency information from a plurality of pre-configured preset frequency information according to the frequency switching request if the frequency switching request is received; A frequency switching module, used for switching the current frequency of the communication channel with the ion rod to the target frequency corresponding to the target frequency information; The frequency synchronization module is used to synchronize the target frequency information to the ion rod so that the ion rod can restore the communication channel at the target frequency.
[0015] In addition, to achieve the above-mentioned purpose, the present application also proposes an electronic device, which includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the computer program is configured to implement the steps of the communication method applied to the ion rod or infrared device as described above.
[0016] One or more technical solutions proposed in this application have at least the following technical effects: The communication method applied to the ion rod of the present application determines whether there is an abnormality in the communication channel between the ion rod and the infrared device; if there is an abnormality, a frequency switching request is sent to the infrared device and then the communication channel is disconnected, so that the infrared device determines the target frequency information from a plurality of pre-configured preset frequency information according to the frequency switching request, and switches the current frequency of the communication channel to the target frequency corresponding to the target frequency information; obtains the target frequency switched by the infrared device; and restores the communication channel with the infrared device at the target frequency. Before the communication channel between the ion rod and the infrared device of the present application is abnormally disconnected, the ion rod sends a frequency switching request to the infrared device, so that the infrared device selects the target frequency based on the frequency switching request, and switches the current frequency of the communication channel to the target frequency; after the communication channel between the ion rod and the infrared device is abnormally disconnected, the ion rod can obtain the infrared device and reselect the target frequency, and automatically restore the communication channel at the target frequency, thereby eliminating the need for the user to manually check and restore, effectively improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0018] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0019] Figure 1 This is a flow chart of a first embodiment of the communication method for an ion rod of the present application; Figure 2 This is a flow chart of a second embodiment of the communication method for an ion rod of the present application; Figure 3 This is a flow chart of a first embodiment of a communication method for infrared devices according to the present application; Figure 4 This is a block diagram of the module structure of the ion rod of this application; Figure 5 This is a block diagram of the module structure of the infrared device of this application; Figure 6 This is a schematic diagram of the hardware structure of the electronic device of this application.
[0020] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0021] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0022] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0023] The main solution of the embodiment of the present application is: the ion rod determines whether there is an abnormality in the communication channel between the ion rod and the infrared device; if there is an abnormality, a frequency switching request is sent to the infrared device and the communication channel is disconnected, so that the infrared device determines the target frequency information from the pre-configured multiple preset frequency information according to the frequency switching request, and switches the current frequency of the communication channel to the target frequency corresponding to the target frequency information; obtains the target frequency switched by the infrared device; and restores the communication channel between the infrared device and the infrared device at the target frequency.
[0024] Since the prior art requires the user to manually check and restore the communication channel between the ion rod and the infrared device, the user experience is affected.
[0025] The present application provides a solution. Before the communication channel between the ion rod and the infrared device is abnormally disconnected, the ion rod sends a frequency switching request to the infrared device, so that the infrared device selects the target frequency based on the frequency switching request and switches the current frequency of the communication channel to the target frequency. After the communication channel between the ion rod and the infrared device is abnormally disconnected, the ion rod can obtain the infrared device to reselect the target frequency and automatically restore the communication channel at the target frequency, thereby eliminating the need for the user to manually check and restore, effectively improving the user experience.
[0026] Based on this, the present application embodiment provides a communication method, referring to Figure 1 , Figure 1 It is a flow chart of the first embodiment of the communication method applied to the ion rod of the present application.
[0027] In this embodiment, the communication method is applied to an ion rod communicating with an infrared device, and the communication method includes steps S10 to S40: Step S10, determining whether there is an abnormality in the communication channel with the infrared device.
[0028] It should be noted that the execution subject of this embodiment may be an ion rod, which is provided with a microcontroller, a chip with network communication and program running functions, or other electronic devices capable of realizing the above functions.
[0029] It is understandable that the infrared device can be a remote control or control device based on infrared signal transmission, such as an infrared remote controller, and the core function of the infrared device is to transmit instructions through infrared light encoding and decoding. The ion rod is provided with an infrared module and a corresponding control circuit, so that the ion rod can communicate with the infrared device.
[0030] It should be noted that the above communication channel can be a logical channel for communication, that is, a logical path for the ion rod and the infrared device to transmit data.
[0031] It is understandable that the user can manipulate the infrared device to perform corresponding control operations, such as pressing the corresponding button of the infrared device to make the infrared emitting diode of the infrared device convert the electrical signal into an infrared light signal and emit it. The infrared module of the ion rod can receive the infrared light signal and convert it into an electrical signal. The microcontroller of the ion rod can decode the received electrical signal, identify the specific control instructions, and perform corresponding functions, such as switching, adjusting the ion output intensity, or setting the timing. In addition, the ion rod can also feed back its own status information (such as the current working mode, ion output intensity, etc.) to the infrared device through the infrared module. After receiving the status information of the ion rod, the infrared device can display it so that the user can know the status of the ion rod and improve the user experience.
[0032] It should be noted that in order to ensure the synchronization of data transmission, before the above-mentioned infrared device and the ion rod start communicating, the infrared device can first send a synchronization code to the ion rod. After receiving the synchronization code, the ion rod enters the preparation state for receiving data, and also replies to the infrared device to confirm the synchronization code, thereby calibrating the start time of communication and ensuring the synchronization of subsequent data transmission.
[0033] It is understandable that during the communication process, the ion rod and the infrared device can divide the transmitted long instructions into multiple short data packets and send them. Each short data packet is confirmed separately, so that if a short data packet is lost or erroneous, only the short data packet needs to be resent instead of the entire long instruction, thereby improving the stability of communication.
[0034] Furthermore, before sending a command, the ion rod or infrared device can first detect the intensity of environmental interference. When it is detected that the intensity of environmental interference reaches a set threshold and it is determined that the environmental interference is strong, the external signal can be temporarily shielded and communication can be resumed after the interference disappears.
[0035] In a specific implementation, the above-mentioned ion rod can exchange heartbeat signals with the infrared device at a fixed period (such as every 1 second), that is, the ion rod sends a pre-defined data packet to the infrared device at a fixed period, and the infrared device replies with a confirmation data packet to the ion rod after receiving the data packet. When an external interference source usually interferes within the communication frequency of the communication channel, it will emit noise with the same or close frequency as the infrared signal, making it impossible for the infrared module of the ion rod to correctly identify the confirmation data packet of the infrared device. Based on this, when the ion rod does not detect the confirmation data packet sent by the infrared device within the set time, it can be determined that the communication is subject to external interference, that is, there is an abnormality in the communication channel between the ion rod and the infrared device.
[0036] The communication frequency is the carrier frequency used for communication between the infrared device and the ion rod, such as 38kHz.
[0037] Step S20, if there is an abnormality, disconnect the communication channel after sending a frequency switching request to the infrared device, so that the infrared device determines the target frequency information from a plurality of pre-configured preset frequency information according to the frequency switching request, and switches the current frequency of the communication channel to the target frequency corresponding to the target frequency information.
[0038] It should be noted that the above-mentioned preset frequency information may be information representing the frequency value. Different preset frequency information corresponds to different frequencies (i.e., communication frequencies), such as 38kHz, 40kHz, 56kHz, etc. The preset frequency information is pre-configured by the user, and the preset frequency information is added to the same table to form a frequency information table, which is then stored in the infrared device and the ion rod respectively.
[0039] It is understandable that the frequency switching request may be a request or instruction to instruct the infrared device to switch the currently used communication frequency.
[0040] In the specific implementation, the user can specify a frequency in the frequency information table as the main frequency. During the communication process, the infrared device and the ion rod will communicate with the main frequency first. When the above-mentioned ion rod detects an abnormality in the communication channel, it can trigger a frequency switching request and send the frequency switching request to the infrared device through the infrared module. The ion rod can then disconnect the communication channel to avoid damage to the transmitted data packet (such as bit error, packet loss) caused by abnormal interference. At the same time, it can also stop the ion rod from receiving unreliable data caused by interference, and prevent accidental operations caused by erroneous instructions (such as mis-triggering of the ion rod switch, mode switching, etc.).
[0041] Among them, the user can pre-specify the frequency that should be switched when the communication is abnormal. At this time, the frequency switching request can instruct the infrared device to switch the frequency specified by the user. Based on this, the ion bar can pre-detect whether there is specified frequency information input by the user. If so, a frequency switching instruction corresponding to the specified frequency information is generated. If not, a frequency switching instruction that does not specify the preset frequency information is generated.
[0042] Furthermore, when the infrared device receives the frequency switching instruction, it can parse the frequency switching request, and when the frequency switching instruction has specified preset frequency information, it can traverse the frequency information table and determine the frequency information corresponding to the frequency switching request from the pre-configured multiple preset frequency information as the target frequency information. When the frequency switching instruction does not specify the preset frequency information, the infrared device can randomly select other frequency information other than the current frequency of the communication channel from each preset frequency information as the target frequency information.
[0043] Furthermore, in order to avoid the target frequency information being occupied, the above-mentioned infrared device can also monitor whether there is signal activity at the target frequency corresponding to the target frequency information, such as monitoring whether data is sent or received at the target frequency. If there is no signal activity at the target frequency, it is determined that the target frequency is not occupied and can be used for the subsequent recovery of the communication channel; if there is signal activity at the target frequency, the preset frequency information without data sent is re-acquired, and any preset frequency information other than the information corresponding to the current frequency of the communication channel is randomly selected from the preset frequency information without data sent as the idle target frequency information, thereby improving the selection accuracy of the target frequency.
[0044] Step S30, obtaining the target frequency switched by the infrared device.
[0045] In a specific implementation, since the communication frequency selected by the ion rod is not idle on the infrared device side, there is a situation where the communication frequency selected by the ion rod and the communication frequency selected by the infrared device are inconsistent. Therefore, after the infrared device switches the current frequency to the target frequency, it is necessary to synchronize the target frequency to the ion rod. However, the above-mentioned ion rod has disconnected the communication channel with the infrared device. After the infrared device switches the current frequency to the target frequency, the target frequency can no longer be synchronized to the ion rod through the communication channel. In order to avoid the above problems, Bluetooth modules can be pre-set in the infrared device and the ion rod respectively. The infrared device can send infrared signals to the outside at the target frequency. The above-mentioned ion rod can pre-monitor whether there is an infrared signal at the frequency selected by it. If there is an infrared signal, it is determined that the frequency selected by itself is consistent with the frequency selected by the infrared device, and the frequency selected by itself is used as the target frequency; if there is no infrared signal, a Bluetooth connection is established with the infrared device, and the target frequency of the infrared module is obtained through the Bluetooth module.
[0046] In a feasible implementation, step S30 may include steps S301 to S303: Step S301, determining whether a broadcast signal carrying the target frequency information and sent by the infrared device is received.
[0047] In a specific implementation, in order to avoid abnormal conditions of the Bluetooth module of the ion bar or infrared device, the infrared device may send a broadcast signal to the outside after switching the current frequency of the communication channel to the target frequency, and the broadcast signal carries the target frequency information. After the ion bar disconnects the communication channel, if no infrared signal is detected at the frequency selected by it, it may enter the monitoring mode, in which it may determine whether a broadcast signal carrying the target frequency information is received.
[0048] Step S302: If the broadcast signal is received, extract the target frequency information in the broadcast signal, and determine the target frequency corresponding to the target frequency information.
[0049] In a specific implementation, when the ion rod receives a broadcast signal, it can further extract the target frequency information in the broadcast signal, and further extract the frequency represented by the target frequency information as the target frequency.
[0050] Step S303, if the broadcast signal is not received, the current frequency is switched to the frequencies corresponding to the preset frequency information in sequence at preset time intervals until the target frequency with the test signal is detected, and the test signal is sent by the infrared transmitter at the target frequency.
[0051] It should be noted that the above-mentioned preset time interval may be a pre-set interval, such as 100 ms.
[0052] In a specific implementation, after the infrared device switches the current frequency of the communication channel to the target frequency, it can also randomly send any infrared signal as a test signal at the target frequency. When the ion rod does not receive the broadcast signal, it can traverse the frequency information table, switch the frequencies corresponding to the preset frequency information in sequence at preset time intervals, and monitor whether there is a test signal sent by the infrared device at each frequency. When a test signal is monitored at a certain frequency, the traversal is stopped and the frequency of the monitored test signal is used as the target frequency.
[0053] In addition, if the ion bar fails to detect the target frequency through any of the above methods, a warning message may be triggered and the user may make manual adjustments.
[0054] Step S40, restoring the communication channel with the infrared device at the target frequency.
[0055] In a specific implementation, when the above-mentioned infrared device switches the target frequency and the communication channel with the ion rod is not restored, it can continue to send a test signal at the target frequency. When the ion rod obtains the target frequency and receives the test signal sent by the infrared device, it can respond to the test signal at the target frequency and send a confirmation signal to the infrared device. The confirmation signal can be a short data packet containing the ion rod identification information. After receiving the confirmation signal, the infrared device can verify whether the ion rod identification information is consistent with the identification information stored locally. When they are consistent, the confirmation signal is determined to be valid and the data of the ion rod is successfully received, and then the communication channel is determined to be restored. When they are inconsistent, the confirmation signal is determined to be invalid. At this time, the infrared device can reselect another preset frequency information and repeat the above process until the confirmation signal is detected to be valid and the data of the ion rod is successfully received. Among them, the above-mentioned ion rod identification information can be specific data for distinguishing different ion rods, such as a serial number.
[0056] The communication method provided in this embodiment is applied to the ion rod, by judging whether there is an abnormality in the communication channel between the ion rod and the infrared device; if there is an abnormality, a frequency switching request is sent to the infrared device and then the communication channel is disconnected, so that the infrared device determines the target frequency information from the pre-configured multiple preset frequency information according to the frequency switching request, and switches the current frequency of the communication channel to the target frequency corresponding to the target frequency information; obtains the target frequency switched by the infrared device; and restores the communication channel with the infrared device at the target frequency. In this embodiment, before the communication channel between the ion rod and the infrared device is abnormally disconnected, the ion rod sends a frequency switching request to the infrared device, so that the infrared device selects the target frequency based on the frequency switching request, and switches the current frequency of the communication channel to the target frequency; after the communication channel between the ion rod and the infrared device is abnormally disconnected, the ion rod can obtain the infrared device to reselect the target frequency, and automatically restore the communication channel at the target frequency, thereby eliminating the need for the user to manually check and restore, effectively improving the user experience.
[0057] Based on the first embodiment of the present application applied to the ion rod, the second embodiment of the present application is proposed. In the second embodiment of the present application, the same or similar contents as those of the first embodiment applied to the ion rod can be referred to the above introduction, and will not be repeated later. Figure 2 , Figure 2 It is a flow chart of the second embodiment of the communication method applied to the ion rod of the present application.
[0058] Since the method of exchanging heartbeat signals to detect whether there is an abnormality in the communication channel requires periodic signal transmission and reception, there is a certain delay, and after the signal is lost, it is necessary to wait for a certain period of time before determining the abnormality. The abnormality detection accuracy of the communication channel is low, so this embodiment is proposed. In this embodiment, step S10 may include steps S101~S103: Step S101, obtaining a plurality of infrared data sent by the infrared device within a preset time period.
[0059] It should be noted that the above-mentioned preset time period may be a pre-set time period, such as 30 seconds or 60 seconds before the current time.
[0060] It is understandable that the infrared data may be a predefined known data sequence, such as 10101010, which is used to detect whether there is an abnormality in the communication channel. The infrared device and the ion bar both store the infrared data.
[0061] In a specific implementation, the ion rod receives infrared data sent by infrared recognition in the communication channel of the main frequency. In order to detect whether the communication channel is abnormal in real time, the ion rod can obtain at least two or all infrared data sent by the infrared device within a preset time period.
[0062] Step S102: comparing the bit error rate of each infrared data with a preset bit error rate threshold.
[0063] It should be noted that the preset bit error rate threshold may be a pre-set threshold used to measure whether the communication channel is abnormal. The bit error rate of infrared data may be the ratio of the number of data bits incorrectly parsed by the ion rod to the total number of transmitted bits during infrared communication.
[0064] In a specific implementation, when the ion bar receives infrared data sent by the infrared device, it can compare each infrared data with the locally stored infrared data. For any infrared data received, when any data in the infrared data is inconsistent with the locally stored data, the data is determined to be erroneous. Based on this, the ratio of the number of erroneously parsed data bits in each infrared data to the total number of transmitted bits can be determined to obtain the bit error rate of the infrared data, and then the bit error rate of each infrared data is compared with the preset bit error rate threshold.
[0065] Step S103: when the number of infrared data whose bit error rate exceeds the preset bit error rate threshold reaches a preset number, it is determined whether there is an abnormality in the communication channel with the infrared device.
[0066] It should be noted that the above-mentioned preset number may be a pre-set number.
[0067] In a specific implementation, the above-mentioned ion rod can determine the number of infrared data whose bit error rate exceeds the preset bit error rate threshold. When the number reaches the set preset number, it is determined that a large amount of erroneous data is received and there is an abnormality in the communication channel. Conversely, when the number is lower than the set preset number, it is determined that the communication channel is not abnormal.
[0068] In addition, in another feasible implementation, the ion rod can also directly detect the signal strength of the real-time control signal transmitted by the infrared device. When the signal strength does not reach the set strength threshold, it is judged that the communication quality is poor. Within the set time, if the number of control signals received that are lower than the strength threshold reaches a preset number, it is judged that there is an abnormality in the communication channel.
[0069] This embodiment compares the bit error rate of each infrared data with the preset bit error rate, and counts the number of infrared data whose bit error rate exceeds the preset bit error rate threshold. When the number reaches the preset number, it determines whether there is an abnormality in the communication channel between the infrared device without delaying waiting, thereby effectively improving the abnormality accuracy of the communication channel.
[0070] In the above-mentioned method in which the ion rod responds to the test signal sent by the infrared device and feeds back a confirmation signal to the infrared device to restore the communication channel, if it is interfered and receives an erroneous test signal, it will still respond to the erroneous test signal and feed back a confirmation signal, resulting in the communication channel being unable to be restored, or the communication quality after the communication channel is restored cannot be guaranteed, which leads to low recovery accuracy of the communication channel. Therefore, this embodiment is proposed. In this embodiment, step S40 may include steps S401~S404: Step S401, receiving the restored data sent by the infrared device at the target frequency.
[0071] It should be noted that the above recovery data can be a predefined known data sequence used to recover the communication channel. The infrared device and the ion rod both store the recovery data. In a feasible manner, the above infrared signal can be directly used as the recovery signal.
[0072] In a specific implementation, after the infrared device switches the current frequency of the communication channel to the target frequency, it can continuously send the recovery data at the target frequency. After the ion rod acquires the target frequency, it can receive the recovery data at the target frequency.
[0073] Step S402, determining whether the bit error rate of the restored data exceeds the preset bit error rate threshold.
[0074] In a specific implementation, when the ion rod receives the recovery data sent by the infrared device, it can compare each recovery data with the locally stored recovery data. When any data in the recovery data is inconsistent with the locally stored data, the data is determined to be erroneous. The ion rod can determine the ratio of the number of erroneous data bits to the total number of transmitted bits to obtain the bit error rate of the recovery data, and then compare the bit error rate of the recovery data with a preset bit error rate threshold to determine whether the bit error rate of the recovery data exceeds the preset bit error rate threshold.
[0075] Step S403: if not, in response to the recovery data, a confirmation signal is fed back to the infrared device, so that the infrared device verifies the confirmation data, and when the verification is successful, it is determined that the communication channel is successfully restored.
[0076] In a specific implementation, when the ion rod detects that the bit error rate of the restored data does not exceed the preset bit error rate threshold, it determines that the correct restored data has been received. At this time, it can respond to the restored data and feed back a confirmation signal to the infrared device. The confirmation signal can be a short data packet containing the ion rod identification information. After receiving the confirmation signal, the infrared device can verify whether the ion rod identification information is consistent with the locally stored identification information. When they are consistent, it is determined that the confirmation signal is valid and the data of the ion rod is successfully received, and then the communication channel is determined to be restored. When they are inconsistent, the confirmation signal is determined to be invalid. At this time, the infrared device can reselect another preset frequency information and repeat the above process until it is detected that the confirmation signal is valid and the data of the ion rod is successfully received.
[0077] Step S404: If yes, return to the step of disconnecting the communication channel after sending a frequency switching request to the infrared device, until the bit error rate of the restored data sent by the infrared device based on the switched frequency does not exceed the preset bit error rate threshold.
[0078] In a specific implementation, when the above-mentioned ion rod detects that the bit error rate of the recovered data exceeds the preset bit error rate threshold, it determines that erroneous recovered data has been received, and then it can be determined that the target frequency is still interfered with. At this time, a frequency switching request can be re-sent to the infrared device to enable the infrared device to reselect a new frequency, that is, returning to the step of sending the frequency switching request to the infrared device and then disconnecting the communication channel, and repeating the above process until the bit error rate of the recovered data sent by the frequency selected by the infrared device does not exceed the preset bit error rate threshold.
[0079] This embodiment determines whether the bit error rate of the recovered data exceeds a preset bit error rate threshold; if not, in response to the recovered data, confirmation data is fed back to the infrared device, so that the infrared device verifies the confirmation data, and when the verification passes, it is determined that the communication channel has been successfully recovered; if so, the step of sending a frequency switching request to the infrared device and then disconnecting the communication channel is returned until the bit error rate of the recovered data sent by the infrared device based on the switched frequency does not exceed the preset bit error rate threshold, thereby avoiding the ion rod from feeding back a confirmation signal based on an erroneous test signal, and effectively improving the recovery accuracy of the communication channel.
[0080] This embodiment also provides a communication method, referring to Figure 3 , Figure 3 This is a flow chart of a first embodiment of a communication method for infrared devices according to the present application.
[0081] In this embodiment, the communication method is applied to an infrared device that communicates with an ion rod, and the communication method includes steps S50 to S80: Step S50, determining whether a frequency switching request sent by the ion rod is received.
[0082] It should be noted that the execution subject of this embodiment may be an infrared device, which is provided with a microcontroller or chip with network communication and program running functions, or other electronic equipment capable of realizing the above functions.
[0083] In a specific implementation, the infrared device can determine the frequency switching request received by the ion rod. The user can pre-specify the frequency to be switched when the communication is abnormal. At this time, the frequency switching request can instruct the infrared device to switch the frequency specified by the user. If the user does not specify the frequency to be switched when the communication is abnormal, the preset frequency information is randomly selected from the frequency information representation, and a frequency switching instruction corresponding to the selected preset frequency information is generated.
[0084] It should be understood that the above-mentioned infrared device can exchange heartbeat signals with the ion rod at a fixed period (such as every 1 second), that is, the ion rod sends a pre-defined data packet to the infrared device at a fixed period, and the infrared device replies a confirmation data packet to the ion rod after receiving the data packet. When an external interference source usually interferes within the communication frequency of the communication channel, it will emit noise with the same or close frequency as the infrared signal, making it impossible for the infrared device to receive the data packet sent by the ion rod. Based on this, when the infrared device does not receive the frequency switching request sent by the ion rod and does not detect the data packet sent by the ion rod within the set time, it can be determined that the communication is subject to external interference, that is, there is an abnormality in the communication channel between the ion rod and the ion rod.
[0085] It should be understood that in order to improve the detection accuracy of the communication channel, the infrared device can obtain multiple infrared data sent by the ion rod within a preset time period, compare each infrared data with the locally stored infrared data, and for any infrared data received, when any data in the infrared data is inconsistent with the locally stored data, the data is determined to be erroneous. Based on this, the ratio of the number of erroneously parsed data bits in each infrared data to the total number of transmitted bits can be determined to obtain the bit error rate of the infrared data, and then the bit error rate of each infrared data is compared with the preset bit error rate threshold to determine the number of infrared data whose bit error rate exceeds the preset bit error rate threshold. When the number reaches the preset number, it is determined that the received erroneous data is large and the communication channel is abnormal. On the contrary, when the number is lower than the preset number, it is determined that the communication channel is not abnormal.
[0086] In another feasible implementation, the infrared device can also directly detect the signal strength of the real-time data transmitted by the infrared device. When the signal strength does not reach the set strength threshold, it is determined that the communication quality is poor. Within the set time, if the number of control signals received that are lower than the strength threshold reaches a preset number, it is determined that there is an abnormality in the communication channel.
[0087] Step S60: If the frequency switching request is received, determine the target frequency information from a plurality of pre-configured preset frequency information according to the frequency switching request.
[0088] In a specific implementation, when receiving a frequency switching instruction, the infrared device may parse the frequency switching request, traverse the frequency information table, and determine the frequency information corresponding to the frequency switching request as the target frequency information from a plurality of pre-configured preset frequency information.
[0089] In order to improve the selection accuracy of the target frequency, another feasible implementation is proposed. In this implementation, step S60 may include steps S61 to S63: Step S61, determining whether the frequency switching request carries designated frequency information.
[0090] In a specific implementation, the infrared device can detect whether the frequency switching request carries designated frequency information, where the designated frequency information is preset frequency information pre-specified by the user or preset frequency information randomly selected by the ion rod.
[0091] Step S62: If yes, determine the frequency information corresponding to the designated frequency information from the pre-configured multiple preset frequency information as the target frequency information.
[0092] In a specific implementation, when the infrared device detects that the frequency switching request carries designated frequency information, it can determine frequency information corresponding to the designated frequency information from a plurality of pre-configured preset frequency information as the target frequency information.
[0093] Furthermore, in order to avoid the target frequency information being occupied, the above-mentioned infrared device can also monitor whether there is signal activity at the target frequency corresponding to the target frequency information, such as monitoring whether data is sent or received at the target frequency. If there is no signal activity at the target frequency, it is determined that the target frequency is not occupied and can be used for subsequent communication channel recovery; if there is signal activity at the target frequency, the preset frequency information without data sent is re-acquired, and any preset frequency information is randomly selected from the preset frequency information without data sent as the idle target frequency information, thereby improving the selection accuracy of the target frequency.
[0094] Step S63: if not, determine the target frequency information according to the pre-configured multiple preset frequency information.
[0095] In a specific implementation, when the infrared device detects that the frequency switching request does not carry the designated frequency information, it can determine to randomly select any preset frequency information other than the information corresponding to the current frequency of the communication channel from the preset frequency information as the target frequency information.
[0096] In a feasible implementation, step S63 may include steps S631 to S635: Step S631: if not, obtain a frequency information table containing pre-configured multiple preset frequency information.
[0097] In a specific implementation, when the infrared device detects that the frequency switching request does not carry the designated frequency information, it can obtain the frequency information table containing pre-configured preset frequency information.
[0098] Step S632: Select the preset frequency information with the highest frequency priority in the frequency information table as the candidate frequency information.
[0099] In a specific implementation, different frequency priorities may be configured in advance for the frequencies corresponding to the preset frequency information in the frequency information table according to the actual application scenario, such as main frequency: 38kHz (frequency priority 1), backup frequency 1: 40kHz (frequency priority 2), backup frequency 2: 56kHz (frequency priority 3), etc. The above infrared device may determine the frequency priority of each preset frequency information, and then use the preset frequency information with the highest priority (such as 38kHz) as the alternative frequency information.
[0100] Step S633: determine whether the signal strength of the candidate frequency information is lower than a preset strength threshold.
[0101] It should be noted that the above-mentioned preset strength threshold can be a threshold for measuring whether the frequency is in use. When the frequency is not occupied, its signal strength is low or zero; when the frequency is occupied, there is signal transmission and reception, and the signal strength is certain, so the preset strength threshold can be set in advance for measurement.
[0102] In a specific implementation, the above-mentioned device can detect the signal strength of the candidate frequency information and compare the signal strength with a preset strength threshold.
[0103] Step S634: If the strength is lower than the preset strength threshold, the candidate frequency information is used as the target frequency information.
[0104] In a specific implementation, when the infrared device detects that the signal strength of the alternative frequency is lower than a preset strength threshold, it determines that the alternative frequency is not occupied and can use the alternative frequency information as idle target frequency information.
[0105] Step S635, if it is not lower than the preset strength threshold, the alternative frequency information with the highest priority is removed from the frequency information table, and the step of selecting the preset frequency information with the highest frequency priority in the frequency information table as the alternative frequency information is returned until the target frequency information with a signal strength lower than the preset strength threshold is obtained.
[0106] In a specific implementation, when the above-mentioned infrared device detects that the signal strength of the alternative frequency is not lower than the preset strength threshold, it determines that the alternative frequency is occupied. At this time, the high-priority alternative frequency information can be removed from the frequency information table, and the step of selecting the preset frequency information with the highest frequency priority in the frequency information table as the alternative frequency information is returned, that is, the highest preset frequency information is reselected from other preset frequency information other than the highest priority preset frequency information, and the above process is repeated until the target frequency information below the preset strength threshold is selected.
[0107] In addition, after traversing all preset frequency information, if no idle target frequency information is found, a warning message may be triggered and the system enters a waiting state for manual adjustment by the user.
[0108] It should be understood that when determining the alternative frequency information, it is also possible to monitor whether there is signal activity at the alternative frequency corresponding to the alternative frequency information. When there is no signal activity, an operation is performed to determine whether the signal strength of the alternative frequency information is lower than a preset strength threshold. When there is signal activity, continue to traverse the preset frequency information of the next priority level, and then repeat the above process to improve the selection accuracy of the idle target frequency information.
[0109] Step S70, switching the current frequency of the communication channel with the ion rod to the target frequency corresponding to the target frequency information.
[0110] Step S80, synchronizing the target frequency information to the ion rod, so that the ion rod can restore the communication channel at the target frequency.
[0111] In a specific implementation, the infrared device may switch the current frequency of the communication channel with the ion rod to the target frequency, then establish a Bluetooth connection with the ion rod, and synchronize the target frequency information to the ion rod through the Bluetooth module.
[0112] In order to avoid abnormal conditions of the Bluetooth module of the ion rod or infrared device, the above-mentioned infrared device can send a broadcast signal to the outside after switching the current frequency of the communication channel to the target frequency. The broadcast signal carries the target frequency information, so that the ion rod can receive the broadcast signal after the communication channel is disconnected, thereby further extracting the target frequency information from the broadcast signal.
[0113] In addition, after the infrared device switches the current frequency of the communication channel to the target frequency, it can also randomly send any infrared signal as a test signal at the target frequency. When the ion rod does not receive the broadcast signal, it can traverse the frequency information table, switch the frequencies corresponding to the preset frequency information in sequence at preset time intervals, and monitor whether there is a test signal sent by the infrared device at each frequency. When a test signal is monitored at a certain frequency, the traversal is stopped and the frequency of the monitored test signal is used as the target frequency.
[0114] Furthermore, when the above-mentioned infrared device switches the target frequency and the communication channel with the ion rod is not restored, it can continue to send a test signal at the target frequency. When the ion rod obtains the target frequency and receives the test signal sent by the infrared device, it can respond to the test signal at the target frequency and send a confirmation signal to the infrared device. The confirmation signal can be a short data packet containing the ion rod identification information. After receiving the confirmation signal, the infrared device can verify whether the ion rod identification information is consistent with the identification information stored locally. When they are consistent, it is determined that the confirmation signal is valid and the data of the ion rod is successfully received, and then the communication channel is determined to be restored. When they are inconsistent, the confirmation signal is determined to be invalid. At this time, the infrared device can reselect another preset frequency information and repeat the above process until it is detected that the confirmation signal is valid and the data of the ion rod is successfully received.
[0115] The communication method provided in this embodiment is applied to infrared equipment, by judging whether a frequency switching request sent by an ion rod is received; if a frequency switching request is received, the target frequency information is determined from a plurality of pre-configured preset frequency information according to the frequency switching request; the current frequency of the communication channel is switched to the target frequency corresponding to the target frequency information; the target frequency information is synchronized to the ion rod, so that the ion rod restores the communication channel at the target frequency. The infrared equipment of this embodiment selects the target frequency based on the frequency switching request of the ion rod, switches the current frequency of the communication channel to the target frequency, and automatically restores the communication channel at the target frequency, thereby eliminating the need for the user to manually check and restore, and effectively improving the user experience.
[0116] It should be noted that the above embodiments are only used to understand the present application and do not constitute a limitation on the communication method of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.
[0117] This application also provides an ion rod, please refer to Figure 4 , Figure 4 This is a block diagram of the module structure of the ion rod of the present application, and the ion rod includes: The abnormality detection module 10 is used to determine whether there is an abnormality in the communication channel with the infrared device.
[0118] The request sending module 20 is used to disconnect the communication channel after sending a frequency switching request to the infrared device if there is an abnormality, so that the infrared device determines the target frequency information from a plurality of pre-configured preset frequency information according to the frequency switching request, and switches the current frequency of the communication channel to the target frequency corresponding to the target frequency information.
[0119] The frequency acquisition module 30 is used to acquire the target frequency switched by the infrared device.
[0120] The communication recovery module 40 is used to recover the communication channel with the infrared device at the target frequency.
[0121] The ion rod provided by the present application adopts the communication method applied to the ion rod in the above embodiment, which can solve the technical problem that when the communication channel between the ion rod and the infrared device in the prior art is disturbed and disconnected, the user needs to manually check and restore, which affects the user's experience. Compared with the prior art, the beneficial effects of the ion rod provided by the present application are the same as the beneficial effects of the communication method applied to the ion rod provided in the above embodiment, and the other technical features in the ion rod are the same as the features disclosed in the above embodiment method applied to the ion rod, which will not be repeated here.
[0122] This application also provides an infrared device, please refer to Figure 5 , Figure 5 This is a module structure diagram of the infrared device of this application, and the infrared device includes: The request receiving module 50 is used to determine whether a frequency switching request sent by the ion rod is received.
[0123] The frequency determination module 60 is configured to determine target frequency information from a plurality of pre-configured preset frequency information according to the frequency switching request if the frequency switching request is received.
[0124] The frequency switching module 70 is used to switch the current frequency of the communication channel with the ion rod to the target frequency corresponding to the target frequency information.
[0125] The frequency synchronization module 80 is used to synchronize the target frequency information to the ion rod, so that the ion rod can restore the communication channel at the target frequency.
[0126] The infrared device provided by the present application adopts the communication method applied to the infrared device in the above-mentioned embodiment, which can solve the technical problem that when the communication channel between the ion rod and the infrared device in the prior art is disconnected due to interference, the user needs to manually check and restore it, which affects the user's experience. Compared with the prior art, the beneficial effects of the infrared device provided by the present application are the same as the beneficial effects of the communication method applied to the infrared device provided in the above-mentioned embodiment, and the other technical features in the infrared device are the same as the features disclosed in the above-mentioned embodiment method applied to the infrared device, which will not be repeated here.
[0127] The present application provides an electronic device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned communication method applied to the ion rod or infrared device.
[0128] Reference below Figure 6 , Figure 6 This is a schematic diagram of the hardware structure of the electronic device of the present application. It shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present application. The electronic devices in the embodiments of the present application may include but are not limited to ion rods, infrared devices, terminals with ion rod or infrared device functions such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc. Figure 6 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0129] like Figure 6As shown, the electronic device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which may perform various appropriate actions and processes according to a program stored in a read-only memory 1002 or a program loaded from a storage device 1003 to a random access memory 1004. In the random access memory 1004, various programs and data required for the operation of the electronic device are also stored. The processing device 1001, the read-only memory 1002, and the random access memory 1004 are connected to each other via a bus 1005. An input / output interface 1006 is also connected to the bus. Generally, the following systems may be connected to the input / output interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although the electronic device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have instead.
[0130] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a read-only memory 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0131] The electronic device provided by the present application adopts the above-mentioned communication method applied to the ion rod or infrared device, which can solve the technical problem that when the communication channel between the ion rod and the infrared device is disturbed and disconnected, the user needs to manually check and restore it, which affects the user's experience. Compared with the prior art, the beneficial effects of the electronic device provided by the present application are the same as the beneficial effects of the communication method applied to the ion rod or infrared device provided in the above-mentioned embodiment, and the other technical features in the electronic device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0132] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0133] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0134] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A communication method, characterized in that: The method is applied to an ion rod communicating with an infrared device, and the method comprises: Determining whether there is an abnormality in the communication channel with the infrared device; If there is an abnormality, disconnect the communication channel after sending a frequency switching request to the infrared device, so that the infrared device determines the target frequency information from a plurality of pre-configured preset frequency information according to the frequency switching request, and switches the current frequency of the communication channel to the target frequency corresponding to the target frequency information; Acquire the target frequency switched by the infrared device; The communication channel with the infrared device is restored at the target frequency.
2. The communication method according to claim 1, characterized in that: The step of acquiring the target frequency switched by the infrared device comprises: Determining whether a broadcast signal carrying the target frequency information and sent by the infrared device through broadcasting is received; If the broadcast signal is received, extracting the target frequency information in the broadcast signal, and determining the target frequency corresponding to the target frequency information; If the broadcast signal is not received, the current frequency is switched to the frequencies corresponding to the preset frequency information in sequence at preset time intervals until the target frequency with the test signal is detected, and the test signal is sent by the infrared transmitter at the target frequency.
3. The communication method according to claim 1, characterized in that: The step of determining whether there is an abnormality in the communication channel with the infrared device comprises: Acquire a plurality of infrared data sent by the infrared device within a preset time period; Comparing the bit error rate of each infrared data with a preset bit error rate threshold; When the number of infrared data whose bit error rate exceeds the preset bit error rate threshold reaches a preset number, it is determined whether there is an abnormality in the communication channel with the infrared device.
4. The communication method according to claim 3, characterized in that: The step of restoring the communication channel with the infrared device at the target frequency comprises: receiving recovered data sent by the infrared device at the target frequency; Determining whether the bit error rate of the recovered data exceeds the preset bit error rate threshold; If not, in response to the recovery data, feedback confirmation data to the infrared device, so that the infrared device verifies the confirmation data, and when the verification is passed, it is determined that the communication channel is successfully restored; If so, the method returns to the step of sending a frequency switching request to the infrared device and then disconnecting the communication channel until the bit error rate of the restored data sent by the infrared device based on the switched frequency does not exceed the preset bit error rate threshold.
5. A communication method, characterized in that: The method is applied to an infrared device communicating with an ion rod, and the method comprises: Determining whether a frequency switching request sent by the ion rod is received; If the frequency switching request is received, determining target frequency information from a plurality of pre-configured preset frequency information according to the frequency switching request; Switching the current frequency of the communication channel with the ion rod to the target frequency corresponding to the target frequency information; The target frequency information is synchronized to the ion rod, so that the ion rod can restore the communication channel at the target frequency.
6. The communication method according to claim 5, characterized in that: The step of determining the target frequency information from a plurality of pre-configured preset frequency information according to the frequency switching request if the frequency switching request is received comprises: Determining whether the frequency switching request carries designated frequency information; If yes, determining frequency information corresponding to the designated frequency information from a plurality of pre-configured preset frequency information as the target frequency information; If not, the target frequency information is determined according to a plurality of pre-configured preset frequency information.
7. The communication method according to claim 6, characterized in that: If not, the step of determining the target frequency information according to the pre-configured multiple preset frequency information includes: If not, obtaining a frequency information table containing pre-configured information of a plurality of preset frequencies; Selecting the preset frequency information with the highest frequency priority in the frequency information table as the candidate frequency information; Determining whether the signal strength of the candidate frequency information is lower than a preset strength threshold; If it is lower than the preset strength threshold, the candidate frequency information is used as the target frequency information; If it is not lower than the preset strength threshold, the alternative frequency information with the highest priority is removed from the frequency information table, and the step of selecting the preset frequency information with the highest frequency priority in the frequency information table as the alternative frequency information is returned until the target frequency information with a signal strength lower than the preset strength threshold is obtained.
8. An ion rod, characterized in that: The ion rod comprises: Anomaly detection module, used to determine whether there is an anomaly in the communication channel with the infrared device; a request sending module, configured to disconnect the communication channel after sending a frequency switching request to the infrared device if an abnormality exists, so that the infrared device determines the target frequency information from a plurality of pre-configured preset frequency information according to the frequency switching request, and switches the current frequency of the communication channel to the target frequency corresponding to the target frequency information; A frequency acquisition module, used to acquire the target frequency switched by the infrared device; The communication recovery module is used to recover the communication channel with the infrared device at the target frequency.
9. An infrared device, characterized in that: The infrared device comprises: A request receiving module, used to determine whether a frequency switching request sent by the ion rod is received; A frequency determination module, configured to determine target frequency information from a plurality of pre-configured preset frequency information according to the frequency switching request if the frequency switching request is received; A frequency switching module, used for switching the current frequency of the communication channel with the ion rod to the target frequency corresponding to the target frequency information; The frequency synchronization module is used to synchronize the target frequency information to the ion rod so that the ion rod can restore the communication channel at the target frequency.
10. An electronic device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the communication method according to any one of claims 1 to 4 or claims 5 to 7.
Citation Information
Patent Citations
Bluetooth batch network distribution method and device
CN118714543A
DMB handover method and system using zone-based channel quality information
KR1020090056678A
Communication Link Adjustment Method and Apparatus, Electronic Device, and Readable Medium
US20230035731A1
Air conditioner communication method allowing for automatic change of wireless communication channel
WO2022184182A1