[go: up one dir, main page]

CN113595580B - Wireless communication method, electronic device, antenna and tuning device - Google Patents

Wireless communication method, electronic device, antenna and tuning device Download PDF

Info

Publication number
CN113595580B
CN113595580B CN202110872637.XA CN202110872637A CN113595580B CN 113595580 B CN113595580 B CN 113595580B CN 202110872637 A CN202110872637 A CN 202110872637A CN 113595580 B CN113595580 B CN 113595580B
Authority
CN
China
Prior art keywords
channel state
antenna
electromagnetic wave
channel
communication quality
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110872637.XA
Other languages
Chinese (zh)
Other versions
CN113595580A (en
Inventor
张书俊
王剑
李鑫
周经伟
陈武
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Publication of CN113595580A publication Critical patent/CN113595580A/en
Application granted granted Critical
Publication of CN113595580B publication Critical patent/CN113595580B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/38Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
    • H04B1/40Circuits
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01QANTENNAS, i.e. RADIO AERIALS
    • H01Q1/00Details of, or arrangements associated with, antennas
    • H01Q1/12Supports; Mounting means
    • H01Q1/22Supports; Mounting means by structural association with other equipment or articles
    • H01Q1/24Supports; Mounting means by structural association with other equipment or articles with receiving set
    • H01Q1/241Supports; Mounting means by structural association with other equipment or articles with receiving set used in mobile communications, e.g. GSM
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01QANTENNAS, i.e. RADIO AERIALS
    • H01Q1/00Details of, or arrangements associated with, antennas
    • H01Q1/36Structural form of radiating elements, e.g. cone, spiral, umbrella; Particular materials used therewith
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01QANTENNAS, i.e. RADIO AERIALS
    • H01Q23/00Antennas with active circuits or circuit elements integrated within them or attached to them
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/38Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
    • H04B1/40Circuits
    • H04B1/401Circuits for selecting or indicating operating mode
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Radio Transmission System (AREA)
  • Transceivers (AREA)

Abstract

本申请实施例提供了无线通信方法、电子设备、天线及调谐器件,获取电子设备的天线在不同的通道状态下接收到的各电磁波信号;对各通道状态下接收到的电磁波信号进行分析,通过算法筛选出通信质量最好的通道状态;即使电子设备工作在不同的环境,也能够使天线工作在通信质量最好的通道状态下,通过工作在通信质量最好的通道状态下的天线进行数据收发,能够满足不同环境的无线通信需求,显著提升无线通信质量,明显改善无线产品的环境适应性。

Figure 202110872637

The embodiment of the present application provides a wireless communication method, an electronic device, an antenna, and a tuning device to obtain various electromagnetic wave signals received by the antenna of the electronic device in different channel states; analyze the electromagnetic wave signals received in each channel state, and pass The algorithm screens out the channel state with the best communication quality; even if the electronic equipment works in different environments, it can make the antenna work in the channel state with the best communication quality, and transmit data through the antenna working in the channel state with the best communication quality Sending and receiving can meet the wireless communication needs of different environments, significantly improve the quality of wireless communication, and significantly improve the environmental adaptability of wireless products.

Figure 202110872637

Description

无线通信方法、电子设备、天线及调谐器件Wireless communication method, electronic device, antenna and tuning device

技术领域technical field

本申请涉及通信技术领域,特别是涉及无线通信方法、电子设备、天线及调谐器件。The present application relates to the technical field of communication, in particular to a wireless communication method, electronic equipment, antenna and tuning device.

背景技术Background technique

随着无线通信技术的发展,用户对无线通信质量的要求也越来越高。然而不同于有线通信,不同的通信环境会对产品的无线通信性能造成较大的影响;实际通信环境差异,会导致无线通信的质量和参数恶化,甚至无法工作。With the development of wireless communication technology, users have higher and higher requirements on the quality of wireless communication. However, unlike wired communication, different communication environments will have a greater impact on the wireless communication performance of the product; differences in actual communication environments will lead to deterioration of the quality and parameters of wireless communication, or even failure to work.

相关技术中,手机等产品通过SIM卡识别不同国家的通信频段从而进行自适应工作频段的调节,来实现全网通覆盖。但是即使是针对相同型号的通信设备,因为设备自身误差、安装环境差异、复杂多径效应、物料单体和组装一致性差异、环境温度和湿度差异、区域遮挡差异等实际通信环境的差异,依然会造成无线通信质量差的问题。In related technologies, mobile phones and other products identify communication frequency bands of different countries through SIM cards to adjust adaptive working frequency bands to achieve full Netcom coverage. However, even for the same type of communication equipment, due to the differences in actual communication environments such as equipment errors, differences in installation environments, complex multipath effects, differences in material monomers and assembly consistency, differences in ambient temperature and humidity, and differences in area occlusions, etc. It will cause the problem of poor wireless communication quality.

发明内容Contents of the invention

本申请实施例的目的在于提供一种无线通信方法、电子设备、天线及调谐器件,以实现提高无线通信质量。具体技术方案如下:The purpose of the embodiments of the present application is to provide a wireless communication method, an electronic device, an antenna, and a tuning device, so as to improve the quality of wireless communication. The specific technical scheme is as follows:

第一方面,本申请实施例提供了一种无线通信方法,所述方法包括:In the first aspect, the embodiment of the present application provides a wireless communication method, the method including:

获取电子设备的天线在不同的通道状态下接收到的各电磁波信号,其中,所述电子设备包括至少一天线,至少一所述天线能够工作在不同的通道状态下,不同通道状态下天线的工作频段不同;Obtain the electromagnetic wave signals received by the antenna of the electronic device in different channel states, wherein the electronic device includes at least one antenna, at least one antenna can work in different channel states, and the working of the antenna in different channel states Different frequency bands;

对各通道状态下接收到的电磁波信号进行分析,确定出通信质量最好的通道状态;Analyze the electromagnetic wave signals received in each channel state to determine the channel state with the best communication quality;

使所述电子设备的天线切换到通信质量最好的通道状态下,并利用所述电子设备通过工作在通信质量最好的通道状态下的天线进行数据收发。The antenna of the electronic device is switched to the channel state with the best communication quality, and the electronic device is used to transmit and receive data through the antenna working in the channel state with the best communication quality.

在一种可能的实施方式中,所述获取电子设备的天线在不同的通道状态下接收到的各电磁波信号,包括:In a possible implementation manner, the acquiring the electromagnetic wave signals received by the antenna of the electronic device in different channel states includes:

使电子设备的天线在不同的时段工作在不同的通道状态下,利用所述电子设备的天线分别接收不同时段中的电磁波信号,得到天线在各通道状态下接收到的电磁波信号。Make the antenna of the electronic device work in different channel states at different time periods, use the antenna of the electronic device to receive electromagnetic wave signals in different time periods respectively, and obtain the electromagnetic wave signals received by the antenna in each channel state.

在一种可能的实施方式中,所述使电子设备的天线在不同的时段工作在不同的通道状态下,利用所述电子设备的天线分别接收不同时段中的电磁波信号,得到天线在各通道状态下接收到的电磁波信号,包括:In a possible implementation manner, the antenna of the electronic device is made to work in different channel states at different time periods, and the antenna of the electronic device is used to respectively receive electromagnetic wave signals in different time periods to obtain the state of the antenna in each channel. The received electromagnetic wave signals include:

按照预先确定的通道状态顺序,确定当前待切换到的目标通道状态;According to the pre-determined sequence of channel states, determine the current target channel state to be switched to;

将所述目标通道状态相应的天线切换到所述目标通道状态下,并利用该相应的天线接收电磁波信号;switching the antenna corresponding to the target channel state to the target channel state, and using the corresponding antenna to receive electromagnetic wave signals;

在该相应的天线在当前确定的通道状态下工作指定时长后,返回执行步骤:按照预先确定的通道状态顺序,确定当前待切换到的目标通道状态,直至当前确定的通道状态为最后一个通道状态。After the corresponding antenna works for a specified period of time in the currently determined channel state, return to the execution step: determine the current target channel state to be switched to according to the predetermined channel state sequence until the currently determined channel state is the last channel state .

在一种可能的实施方式中,所述指定时长与通道状态数量的乘积小于一个包数据的前导序列的时长。In a possible implementation manner, the product of the specified duration and the number of channel states is less than the duration of a preamble sequence of packet data.

在一种可能的实施方式中,所述对各通道状态下接收到的电磁波信号进行分析,确定出通信质量最好的通道状态,包括:In a possible implementation manner, the analysis of the received electromagnetic wave signals in each channel state to determine the channel state with the best communication quality includes:

分别对各通道状态下接收到的电磁波信号进行分析,得到各通道状态下接收到的电磁波信号的接收信号强度RSSI;Analyze the electromagnetic wave signals received in each channel state respectively, and obtain the received signal strength RSSI of the electromagnetic wave signals received in each channel state;

选取RSSI最大的电磁波信号的通道状态,作为通信质量最好的通道状态。The channel state of the electromagnetic wave signal with the largest RSSI is selected as the channel state with the best communication quality.

在一种可能的实施方式中,所述对各通道状态下接收到的电磁波信号进行分析,确定出通信质量最好的通道状态,包括:In a possible implementation manner, the analysis of the received electromagnetic wave signals in each channel state to determine the channel state with the best communication quality includes:

分别对各通道状态下接收到的电磁波信号进行分析,得到各通道状态下接收到的电磁波信号的信号强度及整机环境底噪;Analyze the electromagnetic wave signal received in each channel state respectively, and obtain the signal strength of the electromagnetic wave signal received in each channel state and the background noise of the whole machine environment;

在信号强度大于预设强度阈值的电磁波信号中,确定整机环境底噪最小的电磁波信号,得到目标电磁波信号;Among the electromagnetic wave signals whose signal intensity is greater than the preset intensity threshold, determine the electromagnetic wave signal with the smallest environmental noise floor of the whole machine, and obtain the target electromagnetic wave signal;

将目标电磁波信号对应的通道状态,作为通信质量最好的通道状态。The channel state corresponding to the target electromagnetic wave signal is taken as the channel state with the best communication quality.

在一种可能的实施方式中,所述使电子设备的天线在不同的时段工作在不同的通道状态下,利用所述电子设备的天线分别接收不同时段中的电磁波信号,得到天线在各通道状态下接收到的电磁波信号,包括:In a possible implementation manner, the antenna of the electronic device is made to work in different channel states at different time periods, and the antenna of the electronic device is used to respectively receive electromagnetic wave signals in different time periods to obtain the state of the antenna in each channel. The received electromagnetic wave signals include:

根据历史数据中各电磁波信号的分析结果,通过预设算法确定当前待切换到的通道状态;According to the analysis results of each electromagnetic wave signal in the historical data, the current channel state to be switched to is determined through a preset algorithm;

将所述电子设备的天线切换到当前确定的通道状态下工作指定时长,得到当前接收的电磁波信号;Switching the antenna of the electronic device to work for a specified time in the currently determined channel state to obtain the currently received electromagnetic wave signal;

所述对各通道状态下接收到的电磁波信号进行分析,确定出通信质量最好的通道状态,包括:The analysis of the received electromagnetic wave signals in each channel state to determine the channel state with the best communication quality includes:

判断当前接收的电磁波信号的RSSI是否满足预设质量条件,若满足,则将当前接收的电磁波信号对应的通道状态确定为通信质量最好的通道状态;若不满足,则将当前接收的电磁波信号的分析结果作为历史数据,返回执行步骤:根据历史数据中各电磁波信号的分析结果,通过预设算法确定当前待切换到的通道状态。Determine whether the RSSI of the currently received electromagnetic wave signal satisfies the preset quality condition. If so, determine the channel state corresponding to the currently received electromagnetic wave signal as the channel state with the best communication quality; The analysis results are used as historical data, and returned to the execution step: according to the analysis results of each electromagnetic wave signal in the historical data, the current channel state to be switched to is determined through a preset algorithm.

第二方面,本申请实施例提供了一种电子设备,包括:In a second aspect, the embodiment of the present application provides an electronic device, including:

至少一天线、调谐器件及无线收发模块,至少一所述天线能够工作在不同的通道状态下,不同通道状态下天线的工作频段不同;At least one antenna, a tuning device and a wireless transceiver module, at least one of the antennas can work in different channel states, and the working frequency bands of the antennas are different in different channel states;

所述天线,用于在指定的通道状态下收发电磁波信号;The antenna is used to send and receive electromagnetic wave signals in a specified channel state;

所述调谐器件,用于调节所述无线的通道状态,以使所述天线工作在指定的通道状态下;The tuning device is used to adjust the wireless channel state, so that the antenna works in a specified channel state;

所述无线收发模块,用于对各通道状态下接收到的电磁波信号进行分析,确定出通信质量最好的通道状态,并向所述调谐器件发送包括所述通信质量最好的通道状态的标识的通道切换消息;The wireless transceiver module is used to analyze the electromagnetic wave signals received in each channel state, determine the channel state with the best communication quality, and send an identification including the channel state with the best communication quality to the tuning device channel switch message;

所述调谐器件,还用于根据所述通道切换消息将所述天线调节到通信质量最好的通道状态下,以使所述无线收发模块通过工作在通信质量最好的通道状态下的天线进行数据收发。The tuning device is also used to adjust the antenna to the channel state with the best communication quality according to the channel switching message, so that the wireless transceiver module can perform the communication through the antenna working in the channel state with the best communication quality. Data sending and receiving.

在一种可能的实施方式中,所述调谐器件,具体用于:In a possible implementation manner, the tuning device is specifically used for:

按照预先确定的通道状态顺序,确定当前待切换到的通道状态;Determine the current channel status to be switched to according to the predetermined channel status sequence;

将相应的天线切换到当前确定的通道状态下,以使该相应的天线在当前待切换到的通道状态下接收电磁波信号;Switching the corresponding antenna to the currently determined channel state, so that the corresponding antenna receives electromagnetic wave signals in the current channel state to be switched to;

在该相应的天线在当前确定的通道状态下工作指定时长后,返回执行步骤:按照预先确定的通道状态顺序,确定当前待切换到的通道状态,直至当前确定的通道状态为最后一个通道状态。After the corresponding antenna works for a specified period of time in the currently determined channel state, return to the execution step: determine the current channel state to be switched to according to the predetermined channel state order, until the currently determined channel state is the last channel state.

在一种可能的实施方式中,所述指定时长与通道状态数量的乘积小于一个包数据的前导序列的时长。In a possible implementation manner, the product of the specified duration and the number of channel states is less than the duration of a preamble sequence of packet data.

在一种可能的实施方式中,所述无线收发模块具体用于:分别对各通道状态下接收到的电磁波信号进行分析,得到各通道状态下接收到的电磁波信号的RSSI;选取RSSI最大的电磁波信号的通道状态,作为通信质量最好的通道状态。In a possible implementation manner, the wireless transceiver module is specifically used to: respectively analyze the electromagnetic wave signals received in each channel state to obtain the RSSI of the electromagnetic wave signals received in each channel state; select the electromagnetic wave signal with the largest RSSI The channel state of the signal, as the channel state with the best communication quality.

在一种可能的实施方式中,所述无线收发模块具体用于:分别对各通道状态下接收到的电磁波信号进行分析,得到各通道状态下接收到的电磁波信号的信号强度及整机环境底噪;在信号强度大于预设强度阈值的电磁波信号中,确定整机环境底噪最小的电磁波信号,得到目标电磁波信号;将目标电磁波信号对应的通道状态,作为通信质量最好的通道状态。In a possible implementation manner, the wireless transceiver module is specifically configured to: respectively analyze the electromagnetic wave signals received in each channel state, and obtain the signal strength of the electromagnetic wave signals received in each channel state and the overall environment background. Noise; among the electromagnetic wave signals whose signal intensity is greater than the preset intensity threshold, determine the electromagnetic wave signal with the smallest environmental noise floor to obtain the target electromagnetic wave signal; use the channel state corresponding to the target electromagnetic wave signal as the channel state with the best communication quality.

在一种可能的实施方式中,所述无线收发模块,具体用于:根据历史数据中各电磁波信号的分析结果,通过预设算法确定当前待切换到的通道状态;In a possible implementation manner, the wireless transceiver module is specifically configured to: determine the current channel state to be switched to through a preset algorithm according to the analysis results of each electromagnetic wave signal in the historical data;

所述调谐器件,具体用于将所述电子设备的天线切换到当前确定的通道状态下工作指定时长;The tuning device is specifically used to switch the antenna of the electronic device to work for a specified time in the currently determined channel state;

所述无线收发模块,还用于:判断当前接收的电磁波信号的RSSI是否满足预设质量条件,若满足,则将当前接收的电磁波信号对应的通道状态确定为通信质量最好的通道状态;若不满足,则将当前接收的电磁波信号的分析结果作为历史数据,返回执行步骤:根据历史数据中各电磁波信号的分析结果,通过预设算法确定当前待切换到的通道状态。The wireless transceiver module is also used to: judge whether the RSSI of the currently received electromagnetic wave signal meets the preset quality condition, and if so, determine the channel state corresponding to the currently received electromagnetic wave signal as the channel state with the best communication quality; if If not, use the analysis result of the currently received electromagnetic wave signal as historical data, and return to the execution step: according to the analysis result of each electromagnetic wave signal in the historical data, determine the current channel state to be switched to through a preset algorithm.

第三方面,本申请实施例提供了一种电子设备,包括:In a third aspect, the embodiment of the present application provides an electronic device, including:

至少一天线及无线收发模块,至少一所述天线能够工作在不同的通道状态下,不同通道状态下天线的工作频段不同;At least one antenna and a wireless transceiver module, at least one of the antennas can work in different channel states, and the working frequency bands of the antennas are different in different channel states;

所述天线,用于在不同的通道状态下收发电磁波信号;The antenna is used to send and receive electromagnetic wave signals in different channel states;

所述无线收发模块,用于对各通道状态下接收到的电磁波信号进行分析,确定出通信质量最好的通道状态;并向所述天线发送包括所述通信质量最好的通道状态的标识的通道切换消息;The wireless transceiver module is configured to analyze the received electromagnetic wave signals in each channel state, and determine the channel state with the best communication quality; and send to the antenna a message including the channel state with the best communication quality channel switching message;

所述天线,还用于根据所述通道切换消息将所述天线调节到通信质量最好的通道状态下,以使所述无线收发模块通过工作在通信质量最好的通道状态下的天线进行数据收发。The antenna is also used to adjust the antenna to the channel state with the best communication quality according to the channel switching message, so that the wireless transceiver module transmits data through the antenna working in the channel state with the best communication quality send and receive.

在一种可能的实施方式中,所述天线具体用于:In a possible implementation manner, the antenna is specifically used for:

按照预先确定的通道状态顺序,确定当前待切换到的通道状态;Determine the current channel status to be switched to according to the predetermined channel status sequence;

将所述天线切换到当前确定的通道状态下,以使所述天线在当前待切换到的通道状态下接收电磁波信号;Switching the antenna to the currently determined channel state, so that the antenna receives electromagnetic wave signals in the current channel state to be switched to;

在所述天线在当前确定的通道状态下工作指定时长后,返回执行步骤:按照预先确定的通道状态顺序,确定当前待切换到的通道状态,直至当前确定的通道状态为最后一个通道状态。After the antenna works in the currently determined channel state for a specified period of time, return to the execution step: determine the current channel state to be switched to according to the predetermined channel state sequence until the currently determined channel state is the last channel state.

在一种可能的实施方式中,所述指定时长与通道状态数量的乘积小于一个包数据的前导序列的时长。In a possible implementation manner, the product of the specified duration and the number of channel states is less than the duration of a preamble sequence of packet data.

在一种可能的实施方式中,所述无线收发模块具体用于:分别对各通道状态下接收到的电磁波信号进行分析,得到各通道状态下接收到的电磁波信号的RSSI;选取RSSI最大的电磁波信号的通道状态,作为通信质量最好的通道状态。In a possible implementation manner, the wireless transceiver module is specifically used to: respectively analyze the electromagnetic wave signals received in each channel state to obtain the RSSI of the electromagnetic wave signals received in each channel state; select the electromagnetic wave signal with the largest RSSI The channel state of the signal, as the channel state with the best communication quality.

在一种可能的实施方式中,所述无线收发模块具体用于:分别对各通道状态下接收到的电磁波信号进行分析,得到各通道状态下接收到的电磁波信号的信号强度及整机环境底噪;在信号强度大于预设强度阈值的电磁波信号中,确定整机环境底噪最小的电磁波信号,得到目标电磁波信号;将目标电磁波信号对应的通道状态,作为通信质量最好的通道状态。In a possible implementation manner, the wireless transceiver module is specifically configured to: respectively analyze the electromagnetic wave signals received in each channel state, and obtain the signal strength of the electromagnetic wave signals received in each channel state and the overall environment background. Noise; among the electromagnetic wave signals whose signal intensity is greater than the preset intensity threshold, determine the electromagnetic wave signal with the smallest environmental noise floor to obtain the target electromagnetic wave signal; use the channel state corresponding to the target electromagnetic wave signal as the channel state with the best communication quality.

在一种可能的实施方式中,所述无线收发模块,具体用于:根据历史数据中各电磁波信号的分析结果,通过预设算法确定当前待切换到的通道状态;将所述电子设备的天线切换到当前确定的通道状态下工作指定时长,得到当前接收的电磁波信号;判断当前接收的电磁波信号的RSSI是否满足预设质量条件,若满足,则将当前接收的电磁波信号对应的通道状态确定为通信质量最好的通道状态;若不满足,则返回执行步骤:根据历史数据中各电磁波信号的分析结果,通过预设算法确定当前待切换到的通道状态。In a possible implementation manner, the wireless transceiver module is specifically configured to: determine the current channel state to be switched to through a preset algorithm according to the analysis results of each electromagnetic wave signal in the historical data; connect the antenna of the electronic device to Switch to the currently determined channel state and work for a specified period of time to obtain the currently received electromagnetic wave signal; judge whether the RSSI of the currently received electromagnetic wave signal meets the preset quality conditions, and if so, determine the channel state corresponding to the currently received electromagnetic wave signal as The channel state with the best communication quality; if it is not satisfied, return to the execution step: according to the analysis results of each electromagnetic wave signal in the historical data, determine the current channel state to be switched to through a preset algorithm.

第四方面,本申请实施例提供了一种天线,包括:In a fourth aspect, the embodiment of the present application provides an antenna, including:

天线单元及控制电路;Antenna unit and control circuit;

所述天线单元,用于在指定的通道状态下收发电磁波信号;The antenna unit is used to send and receive electromagnetic wave signals in a specified channel state;

所述控制电路,用于调节所述天线单元的通道状态,以使所述天线单元工作在指定的通道状态下;The control circuit is used to adjust the channel state of the antenna unit, so that the antenna unit works in a specified channel state;

所述控制电路,还用于将不同通道状态接收到的电磁波信号发送给无线收发模块,以使所述无线收发模块对各通道状态下接收到的电磁波信号进行分析,确定出通信质量最好的通道状态,并向所述天线返回包括所述通信质量最好的通道状态的标识的通道切换消息;The control circuit is also used to send the electromagnetic wave signals received in different channel states to the wireless transceiver module, so that the wireless transceiver module analyzes the electromagnetic wave signals received in each channel state, and determines the best communication quality channel status, and return to the antenna a channel switching message including the identification of the channel status with the best communication quality;

所述控制电路,还用于根据所述通道切换消息将所述天线单元调节到通信质量最好的通道状态下,以使所述无线收发模块通过工作在通信质量最好的通道状态下的天线单元进行数据收发。The control circuit is also used to adjust the antenna unit to the channel state with the best communication quality according to the channel switching message, so that the wireless transceiver module can pass through the antenna working in the channel state with the best communication quality The unit sends and receives data.

在一种可能的实施方式中,所述控制电路具体用于:In a possible implementation manner, the control circuit is specifically used for:

按照预先确定的通道状态顺序,确定当前待切换到的通道状态;Determine the current channel status to be switched to according to the predetermined channel status sequence;

将所述天线单元切换到当前确定的通道状态下,以使所述天线单元在当前待切换到的通道状态下接收电磁波信号;Switching the antenna unit to the currently determined channel state, so that the antenna unit receives electromagnetic wave signals in the channel state to be switched to;

在所述天线单元在当前确定的通道状态下工作指定时长后,返回执行步骤:按照预先确定的通道状态顺序,确定当前待切换到的通道状态,直至当前确定的通道状态为最后一个通道状态。After the antenna unit works for a specified period of time in the currently determined channel state, return to the execution step: determine the current channel state to be switched to according to the predetermined channel state sequence until the currently determined channel state is the last channel state.

在一种可能的实施方式中,所述指定时长与通道状态数量的乘积小于一个包数据的前导序列的时长。In a possible implementation manner, the product of the specified duration and the number of channel states is less than the duration of a preamble sequence of packet data.

第五方面,本申请实施例提供了一种调谐器件,包括:In the fifth aspect, the embodiment of the present application provides a tuning device, including:

无线收发模块接口、天线接口、控制器及通道状态电路;Wireless transceiver module interface, antenna interface, controller and channel state circuit;

所述天线接口,用于与天线进行连接;The antenna interface is used to connect with the antenna;

所述无线收发模块接口,用于与无线收发模块进行连接;The wireless transceiver module interface is used to connect with the wireless transceiver module;

所述控制器,用于控制所述通道状态电路,以使所述天线工作在不同的通道状态下;将所述天线在不同通道状态接收到的电磁波信号发送给所述无线收发模块,以使所述无线收发模块对各通道状态下接收到的电磁波信号进行分析,确定出通信质量最好的通道状态;并向所述天线发送包括所述通信质量最好的通道状态的标识的通道切换消息;The controller is configured to control the channel state circuit, so that the antenna works in different channel states; and send the electromagnetic wave signals received by the antenna in different channel states to the wireless transceiver module, so that The wireless transceiver module analyzes the electromagnetic wave signals received in each channel state to determine the channel state with the best communication quality; and sends a channel switching message including the identification of the channel state with the best communication quality to the antenna ;

所述控制器,还用于根据所述通道切换消息调节所述通道状态电路,以使所述天线工作在通信质量最好的通道状态下,从而使所述无线收发模块通过工作在通信质量最好的通道状态下的天线进行数据收发。The controller is further configured to adjust the channel state circuit according to the channel switching message, so that the antenna works in the channel state with the best communication quality, so that the wireless transceiver module works in the channel state with the best communication quality. An antenna in a good channel state performs data transmission and reception.

在一种可能的实施方式中,所述控制器具体用于:In a possible implementation manner, the controller is specifically configured to:

按照预先确定的通道状态顺序,确定当前待切换到的通道状态;Determine the current channel status to be switched to according to the predetermined channel status sequence;

调节所述通道状态电路,以使所述天线工作在当前确定的通道状态下,并在当前待切换到的通道状态下接收电磁波信号;Adjusting the channel state circuit so that the antenna works in the currently determined channel state and receives electromagnetic wave signals in the current channel state to be switched to;

当所述天线在当前确定的通道状态下工作指定时长后,返回执行步骤:按照预先确定的通道状态顺序,确定当前待切换到的通道状态,直至当前确定的通道状态为最后一个通道状态。After the antenna works in the currently determined channel state for a specified period of time, return to the execution step: determine the current channel state to be switched to according to the predetermined channel state sequence until the currently determined channel state is the last channel state.

在一种可能的实施方式中,所述指定时长与通道状态数量的乘积小于一个包数据的前导序列的时长。In a possible implementation manner, the product of the specified duration and the number of channel states is less than the duration of a preamble sequence of packet data.

本申请实施例有益效果:Beneficial effects of the embodiment of the application:

本申请实施例提供的无线通信方法、电子设备、天线及调谐器件,获取电子设备的天线在不同的通道状态下接收到的各电磁波信号,其中,电子设备包括至少一天线,至少一天线能够工作在不同的通道状态下,不同通道状态下天线的工作频段不同;对各通道状态下接收到的电磁波信号进行分析,确定出通信质量最好的通道状态;使电子设备的天线工作在通信质量最好的通道状态下,并利用电子设备通过工作在通信质量最好的通道状态下的天线进行数据收发。电子设备的天线可以工作在不同的通道状态下,不同通道状态下天线的工作频段不同,确定出通信质量最好的通道状态,将天线调整到通信质量最好的通道状态进行工作,电子设备通过工作在通信质量最好的通道状态下的天线进行数据收发,能够满足不同环境的无线通信需求,显著提升无线通信质量,明显改善无线产品的环境适应性。当然,实施本申请的任一产品或方法并不一定需要同时达到以上所述的所有优点。The wireless communication method, electronic equipment, antenna, and tuning device provided in the embodiments of the present application acquire electromagnetic wave signals received by the antenna of the electronic equipment in different channel states, wherein the electronic equipment includes at least one antenna, and at least one antenna can work In different channel states, the working frequency band of the antenna is different under different channel states; analyze the electromagnetic wave signal received in each channel state, and determine the channel state with the best communication quality; make the antenna of the electronic device work at the best communication quality In a good channel state, use electronic equipment to transmit and receive data through the antenna working in the channel state with the best communication quality. The antenna of the electronic device can work in different channel states. The working frequency band of the antenna is different under different channel states. The channel state with the best communication quality is determined, and the antenna is adjusted to the channel state with the best communication quality to work. The electronic device passes The antenna working in the channel state with the best communication quality can send and receive data, which can meet the needs of wireless communication in different environments, significantly improve the quality of wireless communication, and significantly improve the environmental adaptability of wireless products. Of course, implementing any product or method of the present application does not necessarily need to achieve all the above-mentioned advantages at the same time.

附图说明Description of drawings

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present application. Those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1为本申请实施例的无线通信方法的第一种示意图;FIG. 1 is a first schematic diagram of a wireless communication method according to an embodiment of the present application;

图2a为本申请实施例的一对一通信的一种示意图;FIG. 2a is a schematic diagram of one-to-one communication in an embodiment of the present application;

图2b为本申请实施例的一对多通信的一种示意图;FIG. 2b is a schematic diagram of one-to-many communication in an embodiment of the present application;

图2c为本申请实施例的多对多通信的一种示意图;FIG. 2c is a schematic diagram of many-to-many communication in an embodiment of the present application;

图3为本申请实施例的无线通信方法的第二种示意图;FIG. 3 is a second schematic diagram of a wireless communication method according to an embodiment of the present application;

图4为本申请实施例的电子设备的第一种示意图;FIG. 4 is a first schematic diagram of an electronic device according to an embodiment of the present application;

图5为本申请实施例的电子设备的第二种示意图;FIG. 5 is a second schematic diagram of an electronic device according to an embodiment of the present application;

图6a为本申请实施例的调谐器件的第一种示意图;FIG. 6a is a first schematic diagram of a tuning device according to an embodiment of the present application;

图6b为本申请实施例的调谐器件的第二种示意图;Fig. 6b is a second schematic diagram of the tuning device of the embodiment of the present application;

图7为本申请实施例的天线的一种示意图。FIG. 7 is a schematic diagram of an antenna according to an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员基于本申请所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art based on this application belong to the scope of protection of this application.

首先,对本申请中的专业术语进行解释:First, explain the technical terms in this application:

WiFi:英文全称为Wireless Fidelity,即无线保真,是基于IEEE 802.11b/g/n/ac协议的无线局域网技术,可以工作在2.4GHz和5GHz频段。WiFi: The full English name is Wireless Fidelity, that is, wireless fidelity. It is a wireless local area network technology based on the IEEE 802.11b/g/n/ac protocol and can work in the 2.4GHz and 5GHz frequency bands.

Zigbee:基于IEEE802.15.4标准的低功耗局域网协议,一种短距离、低功耗的无线通信技术。工作频率2.4GHz。Zigbee: A low-power LAN protocol based on the IEEE802.15.4 standard, a short-distance, low-power wireless communication technology. The working frequency is 2.4GHz.

Sub-1G:基于IEEE802.15.4g协议,一种长距离,低功耗的无线通信技术,工作频率433MHz、868MHz、915MHz。Sub-1G: Based on the IEEE802.15.4g protocol, a long-distance, low-power wireless communication technology with operating frequencies of 433MHz, 868MHz, and 915MHz.

LORA:(NMT,即Nano Molding Technology),是金属与塑料以纳米技术结合的工法。LORA: (NMT, Nano Molding Technology), is a method of combining metal and plastic with nanotechnology.

自适应调节:在通信过程中,因为环境的变化和参数的调整,无线通道可以自动调整,再有限的通道里面开始刷选和轮询,通信,从而确保通信质量最优。Adaptive adjustment: During the communication process, due to the change of the environment and the adjustment of parameters, the wireless channel can be automatically adjusted, and then start to brush and poll in the limited channel to communicate, so as to ensure the best communication quality.

频率可重构:在不同的时间内,天线系统能够实现不同的工作频率,兼顾不同环境的参数需求,可以形象比喻为重构成不同的天线来满足不同工作频率要求。Reconfigurable frequency: At different times, the antenna system can achieve different operating frequencies and take into account the parameter requirements of different environments. It can be compared to reconfiguring different antennas to meet different operating frequency requirements.

实时切换:一种智能和自适应的通信生态工作模式,根据不同的通信情况,实时切换和轮询、算法筛选等方式。Real-time switching: An intelligent and self-adaptive communication ecological working mode, according to different communication situations, real-time switching and polling, algorithm screening and other methods.

智能通信系统:区别于传统的固定通信模式,能根据环境和接收通道的通信质量进行实时切换和调整,达到最优结果。Intelligent communication system: Different from the traditional fixed communication mode, it can switch and adjust in real time according to the environment and the communication quality of the receiving channel to achieve optimal results.

为了提高无线通信质量,本申请实施例提供了一种无线通信方法,参见图1,该方法包括:In order to improve the quality of wireless communication, an embodiment of the present application provides a wireless communication method, see FIG. 1, the method includes:

S101,获取电子设备的天线在不同的通道状态下接收到的各电磁波信号,其中,所述电子设备包括至少一天线,至少一所述天线能够工作在不同的通道状态下,不同通道状态下天线的工作频段不同。S101. Acquire electromagnetic wave signals received by the antenna of the electronic device in different channel states, wherein the electronic device includes at least one antenna, at least one antenna can work in different channel states, and the antennas in different channel states The working frequency band is different.

本申请实施例的无线通信方法适用于以电磁波进行通信的电子设备,因此可以通过具备电磁波通信功能的电子设备实现,例如,该电子设备可以为手机、平板电脑、无线耳机、具备无线通信功能的摄像机、笔记本电脑或其他智能家电。本申请中的无线通信使用的协议包括但不限于Sub-1G、4G、5G、LORA、NB-IoT(Narrow Band Internet of Things,窄带物联网)、WIFI、Zigbee等。本申请实施例的无线通信方法并不仅限于例如图2a所示的一对一实时通信,也可以应用于一对多例如图2b所示,或多对多例如图2c所示的通信场景。电子设备中包括一个或多个天线,电子设备中的至少一个天线能够工作在不同的通道状态下;天线工作在不同的通道状态下的具体实现方式可以参见相关技术中的方式,例如,可以通过天线工艺、阻抗匹配等方式实现。电子设备中包括的天线的数量,以及每个天线能够支持的通道状态的数量均可以根据实际情况自定义设置。天线在各通道状态下均对应有相应的工作频段,一个通道状态对应一个工作频段,各通道状态的工作频段可以不同。一个例子中,在每次发送/接收一包数据时,均可以执行本申请实施例的无线通信方法。The wireless communication method in the embodiment of the present application is suitable for electronic devices that communicate with electromagnetic waves, so it can be realized by electronic devices with electromagnetic wave communication functions. For example, the electronic devices can be mobile phones, tablet computers, wireless earphones, wireless communication devices Video cameras, laptops, or other smart appliances. The protocols used for wireless communication in this application include but are not limited to Sub-1G, 4G, 5G, LORA, NB-IoT (Narrow Band Internet of Things, narrowband Internet of Things), WIFI, Zigbee, etc. The wireless communication method of the embodiment of the present application is not limited to the one-to-one real-time communication such as shown in FIG. 2a, and can also be applied to one-to-many communication scenarios such as shown in FIG. 2b, or many-to-many communication scenarios such as shown in FIG. 2c. The electronic device includes one or more antennas, and at least one antenna in the electronic device can work in different channel states; the specific implementation of the antenna working in different channel states can refer to the methods in related technologies, for example, it can be passed Antenna technology, impedance matching and other ways to achieve. The number of antennas included in the electronic device and the number of channel states each antenna can support can be customized according to actual conditions. The antenna has a corresponding working frequency band in each channel state, one channel state corresponds to one working frequency band, and the working frequency bands of each channel state can be different. In an example, the wireless communication method of the embodiment of the present application may be executed each time a packet of data is sent/received.

一个例子中,天线的不同通道状态可以通过天线的物理多通道实现,在其他例子中,也可以通过可调器件,例如开关、电容和二极管等,来实现通道状态的切换。这里的通道可以从频率维度和时间维度来实现,具体可以通过频分、时分来实现多个离散通道(每个离散通道对应一个通道状态),理论上可以实现无限个离散通道的划分,实际使用过程中,按照实际情况确定离散通道即通道状态的数量即可。实际运行环境中,每个通道状态下电磁波信号的强度是不同的,通过本申请实施例的无线通信方法,可以选取出通信质量最好的通道状态。In one example, different channel states of the antenna can be realized through physical multiple channels of the antenna, and in other examples, channel state switching can also be realized through adjustable devices, such as switches, capacitors, and diodes. The channel here can be realized from the frequency dimension and the time dimension. Specifically, multiple discrete channels can be realized through frequency division and time division (each discrete channel corresponds to a channel state). Theoretically, the division of an infinite number of discrete channels can be realized. In practice, In the process, it is sufficient to determine the number of discrete channels, that is, the number of channel states, according to the actual situation. In an actual operating environment, the strength of electromagnetic wave signals in each channel state is different. Through the wireless communication method of the embodiment of the present application, the channel state with the best communication quality can be selected.

S102,对各通道状态下接收到的电磁波信号进行分析,确定出通信质量最好的通道状态。S102. Analyze the received electromagnetic wave signal in each channel state, and determine the channel state with the best communication quality.

分别对每个通道状态的电磁波信号进行分析,确定出通信质量最好的通道状态得到通道状态(以下称为目标通道状态)。本申请中的通信质量最好是指指定的通信质量指标最好,例如,信噪比最大、RS-CINR(Carrier to Interference plus Noise Ratio,载波干扰噪声比)最大或RSSI(Received Signal Strength Indication,接收信号强度)最强等;此外,也可以结合多种通信质量指标进行加权平均来得到通信质量等。The electromagnetic wave signal of each channel state is analyzed separately, and the channel state with the best communication quality is determined to obtain the channel state (hereinafter referred to as the target channel state). The best communication quality in this application means that the specified communication quality index is the best, for example, the maximum signal-to-noise ratio, RS-CINR (Carrier to Interference plus Noise Ratio, carrier to interference noise ratio) maximum or RSSI (Received Signal Strength Indication, Received signal strength) is the strongest, etc.; in addition, the communication quality can also be obtained by combining multiple communication quality indicators for weighted average.

S103,使所述电子设备的天线切换到通信质量最好的通道状态下,并利用所述电子设备通过工作在通信质量最好的通道状态下的天线进行数据收发。S103. Switch the antenna of the electronic device to a channel state with the best communication quality, and use the electronic device to transmit and receive data through the antenna working in the channel state with the best communication quality.

通过软件和/或硬件的方式使电子设备的天线工作在通信质量最好的通道状态下,从而电子设备可以通过工作在通信质量最好的通道状态下的天线进行数据收发,从而提升无线通信质量,例如,设备的通信距离和通信的稳定性,这里设备指无线通信过程中的发射端或接收端,从而在有限或无限的离散通道之间进行切换。Make the antenna of the electronic device work in the channel state with the best communication quality through software and/or hardware, so that the electronic device can transmit and receive data through the antenna working in the channel state with the best communication quality, thereby improving the quality of wireless communication , for example, the communication distance of the device and the stability of the communication, where the device refers to the transmitter or receiver in the wireless communication process, thus switching between finite or infinite discrete channels.

在本申请实施例中,电子设备的天线可以工作在不同的通道状态下,不同通道状态下天线的工作频段不同,通过将天线调整到通信质量最好的通道状态进行工作,使得电子设备在通信质量最好的通道状态下的天线进行数据收发,能够满足不同环境的无线通信需求,显著提升无线通信质量,明显改善无线产品的环境适应性。In the embodiment of the present application, the antenna of the electronic device can work in different channel states, and the working frequency band of the antenna is different in different channel states. By adjusting the antenna to the channel state with the best communication quality to work, the electronic device can communicate Antennas with the best quality channels can transmit and receive data, which can meet the needs of wireless communication in different environments, significantly improve the quality of wireless communication, and significantly improve the environmental adaptability of wireless products.

在一种可能的实施方式中,所述获取电子设备的天线在不同的通道状态下接收到的各电磁波信号,包括:使电子设备的天线在不同的时段工作在不同的通道状态下,利用所述电子设备的天线分别接收不同时段中的电磁波信号,得到天线在各通道状态下接收到的电磁波信号。In a possible implementation manner, the acquiring the electromagnetic wave signals received by the antenna of the electronic device in different channel states includes: making the antenna of the electronic device work in different channel states at different time periods, using the The antennas of the electronic device respectively receive electromagnetic wave signals in different time periods, and obtain the electromagnetic wave signals received by the antennas in each channel state.

可以通过时分复用的方式,使天线在不同的时段工作在不同的通道状态下,从而可以获取到天线在各通道状态下接收到的电磁波信号。Time-division multiplexing can be used to make the antenna work in different channel states at different time periods, so that electromagnetic wave signals received by the antenna in each channel state can be obtained.

当通道状态的数量较少时,可以通过遍历的方式来选取通信质量最好的通道状态。在一种可能的实施方式中,所述使电子设备的天线在不同的时段工作在不同的通道状态下,利用所述电子设备的天线分别接收不同时段中的电磁波信号,得到天线在各通道状态下接收到的电磁波信号,包括:When the number of channel states is small, the channel state with the best communication quality can be selected by means of traversal. In a possible implementation manner, the antenna of the electronic device is made to work in different channel states at different time periods, and the antenna of the electronic device is used to respectively receive electromagnetic wave signals in different time periods to obtain the state of the antenna in each channel. The received electromagnetic wave signals include:

步骤一,按照预先确定的通道状态顺序,确定当前待切换到的目标通道状态。Step 1: Determine the current target channel state to be switched to according to the predetermined sequence of channel states.

通道状态顺序可以为预先设定的,例如,可以按照通道状态的工作频段由低到高或由高到低的顺序来排序各通道状态。通道状态顺序也可以根据上一次通信过程中各通道状态下电磁波信号的通信质量得到,例如,按照上一次通信过程中电磁波信号的通信质量由高到低的书信进行排序。一个例子中,通道状态顺序也可以为通过预设算法计算得到的。The order of the channel states may be preset, for example, the channel states may be sorted according to the order of the working frequency bands of the channel states from low to high or from high to low. The order of the channel states can also be obtained according to the communication quality of the electromagnetic wave signal in each channel state in the last communication process, for example, the letters are sorted according to the communication quality of the electromagnetic wave signal in the last communication process from high to low. In an example, the channel state sequence may also be calculated by a preset algorithm.

步骤二,将所述目标通道状态相应的天线切换到所述目标通道状态下,并利用该相应的天线接收电磁波信号。Step 2, switch the antenna corresponding to the target channel state to the target channel state, and use the corresponding antenna to receive electromagnetic wave signals.

步骤三,在该相应的天线在当前确定的通道状态下工作指定时长后,返回执行步骤一:按照预先确定的通道状态顺序,确定当前待切换到的目标通道状态,直至当前确定的通道状态为最后一个通道状态。Step 3: After the corresponding antenna works for a specified period of time in the currently determined channel state, return to step 1: determine the current target channel state to be switched to according to the predetermined channel state sequence until the currently determined channel state is The last channel state.

指定时长可以为一个时段的时长,指定时长可以根据实际情况自定义设置,本申请实施例中的通道状态的数量较少,可以为:指定时长与通道状态数量的乘积小于一个包数据的前导序列的时长。The specified duration can be the duration of a period of time, and the specified duration can be customized according to the actual situation. The number of channel states in the embodiment of this application is small, and it can be: the product of the specified duration and the number of channel states is less than the leading sequence of a packet of data duration.

例如电子设备中所有天线能够支持的通道状态的数量为n,一个包数据的前导序列的时长为S,则指定时长应当小于S/n。For example, the number of channel states supported by all antennas in the electronic device is n, and the duration of the preamble sequence of a packet of data is S, then the specified duration should be less than S/n.

前导序列信号是发送真实通信数据之前发送的一系列信号,可以理解为真实通信数据发送之前的试探信号或通知信号,对端无线设备在发送前导序列信号(以下称为第一前导序列信号),利用电子设备中的天线的在各通道状态分别接收第一前导序列信号。进而对各所述通道状态的第一前导序列信号进行分析,确定出通信质量最好的通道状态。The preamble signal is a series of signals sent before sending real communication data, which can be understood as a test signal or a notification signal before real communication data is sent. The antennas in the electronic device are used to receive the first preamble signal in each channel state respectively. Furthermore, the first preamble signal of each channel state is analyzed to determine the channel state with the best communication quality.

在本申请实施例中,指定时长与通道状态数量的乘积小于一个包数据的前导序列的时长,可以在发送真实通信数据之前确定出通信质量最好的通道状态,不影响真实通信数据的发送,并且不用发送额外的探测信号,能够提高通信效率。In the embodiment of the present application, the product of the specified duration and the number of channel states is less than the duration of the preamble sequence of a packet data, and the channel state with the best communication quality can be determined before sending real communication data without affecting the sending of real communication data. In addition, without sending an additional detection signal, communication efficiency can be improved.

在一种可能的实施方式中,所述对各通道状态下接收到的电磁波信号进行分析,确定出通信质量最好的通道状态,包括:In a possible implementation manner, the analysis of the received electromagnetic wave signals in each channel state to determine the channel state with the best communication quality includes:

步骤A,分别对各通道状态下接收到的电磁波信号进行分析,得到各通道状态下接收到的电磁波信号的接收信号强度RSSI。Step A: Analyze the electromagnetic wave signals received in each channel state respectively, and obtain the received signal strength RSSI of the electromagnetic wave signals received in each channel state.

步骤B,选取RSSI最大的电磁波信号的通道状态,作为通信质量最好的通道状态。Step B, selecting the channel state of the electromagnetic wave signal with the largest RSSI as the channel state with the best communication quality.

一个例子中,可以利用电子设备中的无线收发模块来确定各通道状态下接收到的电磁波信号的RSSI,无线收发模块本身便具备计算电磁波信号的RSSI的功能,可以直接复用该功能。一般情况下,无线收发模块同一时间仅能接收一个通道状态下采集的电磁信号,例如图3所示,依次将每个通道状态下接收的电磁波信号发送给无线收发模块,从而利用无线收发模块得到每个通道状态的通信质量。无线收发模块接收各通道状态下电磁波信号的次序可以根据实际情况自定义设置,均在本申请的保护范围内。在本申请实施例中,利用无线收发模块对各通道状态下接收的电磁波信号进行分析,不用增加额外的通信质量检测线路,可以节约成本。In one example, the wireless transceiver module in the electronic device can be used to determine the RSSI of the electromagnetic wave signal received in each channel state. The wireless transceiver module itself has the function of calculating the RSSI of the electromagnetic wave signal, and can directly multiplex this function. Under normal circumstances, the wireless transceiver module can only receive electromagnetic signals collected in one channel state at the same time. Communication quality for each channel state. The order in which the wireless transceiver module receives the electromagnetic wave signals in each channel state can be customized according to the actual situation, all of which are within the scope of protection of this application. In the embodiment of the present application, the wireless transceiver module is used to analyze the electromagnetic wave signals received in each channel state, without adding additional communication quality detection lines, which can save costs.

在一种可能的实施方式中,所述对各通道状态下接收到的电磁波信号进行分析,确定出通信质量最好的通道状态,包括:In a possible implementation manner, the analysis of the received electromagnetic wave signals in each channel state to determine the channel state with the best communication quality includes:

步骤一,分别对各通道状态下接收到的电磁波信号进行分析,得到各通道状态下接收到的电磁波信号的信号强度及整机环境底噪。Step 1: Analyze the electromagnetic wave signals received in each channel state respectively, and obtain the signal strength of the electromagnetic wave signals received in each channel state and the background noise of the whole machine environment.

电磁波信号的信号强度可以通过电磁波信号的RSSI值、RSRQ(Reference SignalReceiving Quality,参考信号接收质量)或RSRP(Reference Signal Receiving Power,参考信号接收功率)来表示。整机环境底噪为系统中除了有用信号以外的总噪声;整机环境底噪由设备板子本身的干扰及外部干扰发出,并经由天线或具备天线功能的器件接收产生。The signal strength of the electromagnetic wave signal may be represented by an RSSI value, RSRQ (Reference Signal Receiving Quality, reference signal receiving quality) or RSRP (Reference Signal Receiving Power, reference signal receiving power) of the electromagnetic wave signal. The environmental noise floor of the whole machine is the total noise in the system except for the useful signal; the environmental noise floor of the whole machine is emitted by the interference of the equipment board itself and external interference, and is received by the antenna or a device with an antenna function.

步骤二,在信号强度大于预设强度阈值的电磁波信号中,确定整机环境底噪最小的电磁波信号,得到目标电磁波信号。Step 2, among the electromagnetic wave signals whose signal intensity is greater than the preset intensity threshold, determine the electromagnetic wave signal with the smallest environmental noise floor of the whole machine, and obtain the target electromagnetic wave signal.

预设强度阈值可以根据实际情况自定义设置,需要满足设备的通信要求。在电磁波信号的信号强度大于预设强度阈值的情况下,说明利用该电磁波信号能够进行有效的通信。The preset intensity threshold can be customized according to the actual situation and needs to meet the communication requirements of the device. If the signal strength of the electromagnetic wave signal is greater than the preset strength threshold, it indicates that the electromagnetic wave signal can be used for effective communication.

步骤三,将目标电磁波信号对应的通道状态,作为通信质量最好的通道状态。Step 3, taking the channel state corresponding to the target electromagnetic wave signal as the channel state with the best communication quality.

在本申请实施例中,在信号强度大于预设强度阈值的电磁波信号中,确定整机环境底噪最小的电磁波信号,从而得到通信质量最好的通道状态,通过通道状态的选择,可以有效的改善由于天线本体接收到的干扰而导致的底噪抬升问题,最终降低整机环境底噪,提高通信质量。In the embodiment of the present application, among the electromagnetic wave signals whose signal strength is greater than the preset strength threshold, the electromagnetic wave signal with the smallest environmental noise floor of the whole machine is determined, so as to obtain the channel state with the best communication quality. Through the selection of the channel state, effective Improve the noise floor problem caused by the interference received by the antenna body, and finally reduce the noise floor of the whole machine environment and improve the communication quality.

在一种可能的实施方式中,所述对各通道状态下接收到的电磁波信号进行分析,确定出通信质量最好的通道状态,包括:In a possible implementation manner, the analysis of the received electromagnetic wave signals in each channel state to determine the channel state with the best communication quality includes:

利用调谐器件对各通道状态下接收到的第一前导序列信号进行分析,分别得到各所述通道状态的第一前导序列信号的RSSI;选取RSSI最高的通道状态,作为通信质量最好的通道状态。Utilize the tuning device to analyze the first preamble signal received under each channel state, and obtain the RSSI of the first preamble signal of each channel state respectively; select the channel state with the highest RSSI as the channel state with the best communication quality .

所述使所述电子设备的天线工作在通信质量最好的通道状态下,包括:The making the antenna of the electronic device work in the channel state with the best communication quality includes:

利用调谐器件调节所述无线的通道状态,以使所述天线工作在通信质量最好的通道状态下。A tuning device is used to adjust the wireless channel state, so that the antenna works in the channel state with the best communication quality.

在本申请实施例中,利用调谐器件实现无线的通道状态的切换,并且调谐器件检测RSSI来选取通信质量最好的通道状态,可以进一步增加通信速度。并且RSSI测量简单,能够减少调谐器件的复杂度,从而节约硬件成本。In the embodiment of the present application, the tuning device is used to switch the wireless channel state, and the tuning device detects RSSI to select the channel state with the best communication quality, which can further increase the communication speed. Moreover, RSSI measurement is simple, which can reduce the complexity of tuning devices, thereby saving hardware costs.

当通道状态的数量较多,例如,仅通过前导序列无法全部遍历完成时,可以通过预设算法来选取通信质量最好的通道状态。在一种可能的实施方式中,上述使电子设备的天线在不同的时段工作在不同的通道状态下,利用上述电子设备的天线分别接收不同时段中的电磁波信号,得到天线在各通道状态下接收到的电磁波信号,包括:When the number of channel states is large, for example, when only the preamble sequence cannot be traversed completely, the channel state with the best communication quality can be selected through a preset algorithm. In a possible implementation manner, the above-mentioned antennas of the electronic equipment are made to work in different channel states at different time periods, and the antennas of the above-mentioned electronic equipment are used to receive electromagnetic wave signals in different time periods respectively, so that the antennas receive signals in each channel state. received electromagnetic wave signals, including:

步骤a,根据历史数据中各电磁波信号的分析结果,通过预设算法确定当前待切换到的通道状态。Step a, according to the analysis results of each electromagnetic wave signal in the historical data, determine the current channel state to be switched to through a preset algorithm.

步骤b,将上述电子设备的天线切换到当前确定的通道状态下工作指定时长,得到当前接收的电磁波信号。Step b, switching the antenna of the above-mentioned electronic device to work for a specified time in the currently determined channel state to obtain the currently received electromagnetic wave signal.

上述对各通道状态下接收到的电磁波信号进行分析,确定出通信质量最好的通道状态,包括:The above analyzes the electromagnetic wave signals received in each channel state to determine the channel state with the best communication quality, including:

步骤c,判断当前接收的电磁波信号的RSSI是否满足预设质量条件,若满足,则将当前接收的电磁波信号对应的通道状态确定为通信质量最好的通道状态;若不满足,则将当前接收的电磁波信号的分析结果作为历史数据,返回执行步骤a:根据历史数据中各电磁波信号的分析结果,通过预设算法确定当前待切换到的通道状态。Step c, judging whether the RSSI of the currently received electromagnetic wave signal satisfies the preset quality condition, if so, then determine the channel state corresponding to the currently received electromagnetic wave signal as the channel state with the best communication quality; The analysis result of the electromagnetic wave signal is used as historical data, and returns to step a: according to the analysis result of each electromagnetic wave signal in the historical data, determine the current channel state to be switched to through a preset algorithm.

预设算法可以根据实际情况自定义设置,例如,预设算法可以为差值算法或中位数算法等。以中位数算法为例,假设有N个通道状态,按照通道状态对应的工作频段升序或降序的顺序,分别称为第1个至第N个通道状态。在一次连接的过程中,先分别获取第1个通道状态、第[N/2]个通道状态及第N个通道状态的电磁波信号的RSSI,其中,[]表示取整符号,可以为向上取整或向下取整。比较第1个通道状态的RSSI与第N个通道状态的RSSI的大小,将通道状态的区间减半,例如,在第1个通道状态的RSSI大于第N个通道状态的RSSI的情况下,将通道状态的区间减半,新的区间为第1个通道状态至第[N/2]个通道状态,取中值为第[N/4]个通道状态,调整天线工作在第[N/4]个通道状态下,从而得到第[N/4]个通道状态的RSSI;比较第1个通道状态的RSSI与第[N/2]个通道状态的RSSI,再次将区间减半,直至计算到最后一个通道状态或当前计算的通道状态的RSSI大于预设RSSI阈值,得到通信质量最好的通道状态。The preset algorithm can be customized according to the actual situation. For example, the preset algorithm can be a difference algorithm or a median algorithm. Taking the median algorithm as an example, assuming that there are N channel states, they are called the 1st to the Nth channel states in ascending or descending order of the working frequency bands corresponding to the channel states. In the process of one connection, first obtain the RSSI of the electromagnetic wave signal of the first channel state, the [N/2]th channel state, and the Nth channel state respectively, where [] represents the rounding symbol, which can be rounded up round up or down. Compare the RSSI of the first channel state with the RSSI of the Nth channel state, and halve the interval of the channel state. For example, if the RSSI of the first channel state is greater than the RSSI of the Nth channel state, set The interval of the channel state is halved, the new interval is from the first channel state to the [N/2]th channel state, the median value is the [N/4]th channel state, and the antenna is adjusted to work at the [N/4th] ] channel state, so as to obtain the RSSI of the [N/4]th channel state; compare the RSSI of the first channel state with the RSSI of the [N/2]th channel state, and then halve the interval again until the calculated The RSSI of the last channel state or the currently calculated channel state is greater than the preset RSSI threshold, and the channel state with the best communication quality is obtained.

本申请中的无线通信方法,适用于不同制式的无线设备中,例如Sub-1G、Lora、NB、WIFI、zigbee等,特别是窄带物联网设备中,由于环境差异(例如安装环境、复杂多径效应、物料单体和组装一致性的差异),会导致无线通信质量变差,接收端设备识别到后,自适应的优化筛选算法,最优通道的实现和固定,需要用到调谐组件来实现,此处的调谐组件是广义的,可以为天线的物理多通道,也可以为通过调谐器件,例如开关、电容和二极管等,来实现天线通道状态的切换,从而实现最优通道状态的筛选。天线的通道状态可以从频率维度和时间维度来实现,具体可以通过频分系统、时分系统来实现有限或无限个离散通道,从而提升无线设备实际通知质量,例如无线设备通信距离和通信的稳定性,此处的无线设备包括无线通信过程中的发射端及接收端,从而在有限或无限的离散通道之间进行切换,最终通过轮询或差值等不限定的优化算法,来确定通信质量最好的通道状态。The wireless communication method in this application is applicable to wireless devices of different standards, such as Sub-1G, Lora, NB, WIFI, zigbee, etc., especially in narrowband Internet of Things devices, due to environmental differences (such as installation environment, complex multipath effects, differences in material monomer and assembly consistency), will lead to poor wireless communication quality, after the receiving device is identified, the adaptive optimization screening algorithm, the realization and fixation of the optimal channel, need to use tuning components to achieve , the tuning component here is generalized, it can be the physical multi-channel of the antenna, or it can realize the switching of the antenna channel state through tuning devices, such as switches, capacitors and diodes, so as to realize the screening of the optimal channel state. The channel state of the antenna can be realized from the frequency dimension and the time dimension. Specifically, finite or infinite discrete channels can be realized through the frequency division system and time division system, so as to improve the actual notification quality of wireless devices, such as the communication distance and communication stability of wireless devices , the wireless device here includes the transmitting end and the receiving end in the wireless communication process, so as to switch between limited or infinite discrete channels, and finally determine the optimal communication quality through polling or difference and other unlimited optimization algorithms Good channel status.

本申请中的无线通信方法适用于以电磁波传输的设备,设备具备收发模式,在环境差异、位置和物料变更等情况下,通过接收智能系统去探测或识别无线通信的质量优劣,特别指接收前端链路的设计和算法,实现接收通道的多状态工作或探测,通过天线可重构设计和软件逻辑算法,实现设备在通信过程中,能实时根据环境引起的信号强度变化,及时调整天线工作频段,进行最优通信。The wireless communication method in this application is suitable for equipment that transmits by electromagnetic waves. The equipment has a sending and receiving mode. In the case of environmental differences, location and material changes, etc., the quality of wireless communication is detected or identified by the receiving intelligent system, especially the receiving The design and algorithm of the front-end link realize the multi-state work or detection of the receiving channel. Through the antenna reconfigurable design and software logic algorithm, the device can adjust the antenna work in real time according to the signal strength changes caused by the environment during the communication process. frequency band for optimal communication.

例如,针对在森林中工作的无线通信设备,在遇到下雨天气时,环境湿度明显增加,会导致无线通信设备之前使用的工作频段的通信质量变差。For example, for a wireless communication device working in a forest, when it encounters rainy weather, the ambient humidity increases significantly, which will cause the communication quality of the working frequency band previously used by the wireless communication device to deteriorate.

无线通信设备按照预先确定的通道状态顺序,确定当前待切换到的目标通道状态;将目标通道状态相应的天线切换到目标通道状态下,并利用该相应的天线接收电磁波信号;在该相应的天线在当前确定的通道状态下工作指定时长后,返回执行步骤:“按照预先确定的通道状态顺序,确定当前待切换到的目标通道状态”,直至当前确定的通道状态为最后一个通道状态,从而得到无线通信设备的天线在不同的通道状态下接收到的各电磁波信号。无线通信设备对各通道状态下接收到的电磁波信号进行分析,确定出通信质量最好的通道状态;无线通信设备将天线切换到通信质量最好的通道状态下,并通过工作在通信质量最好的通道状态下的天线进行数据收发,从而实现天线工作频段,实现最优通信。The wireless communication device determines the current target channel state to be switched to according to the predetermined channel state sequence; switches the antenna corresponding to the target channel state to the target channel state, and uses the corresponding antenna to receive electromagnetic wave signals; After working for a specified period of time in the currently determined channel state, return to the execution step: "according to the predetermined channel state sequence, determine the current target channel state to be switched to" until the currently determined channel state is the last channel state, thus obtaining Each electromagnetic wave signal received by the antenna of the wireless communication device in different channel states. The wireless communication equipment analyzes the electromagnetic wave signals received in each channel state, and determines the channel state with the best communication quality; the wireless communication device switches the antenna to the channel state with the best communication quality, and works on the best communication quality channel The antenna in the channel state performs data transmission and reception, so as to realize the working frequency band of the antenna and realize optimal communication.

本申请实施例还提供了一种电子设备,参见图4,包括:The embodiment of the present application also provides an electronic device, see Figure 4, including:

至少一天线11、调谐器件12及无线收发模块13,所述至少一天线11能够工作在不同的通道状态下,不同通道状态下天线11的工作频段不同;At least one antenna 11, a tuning device 12 and a wireless transceiver module 13, the at least one antenna 11 can work in different channel states, and the working frequency bands of the antenna 11 are different under different channel states;

所述天线11,用于在指定的通道状态下收发电磁波信号;The antenna 11 is used to send and receive electromagnetic wave signals in a specified channel state;

所述调谐器件12,用于调节所述无线的通道状态,以使所述天线工作在指定的通道状态下;The tuning device 12 is used to adjust the wireless channel state, so that the antenna works in a specified channel state;

所述无线收发模块13,用于对各通道状态下接收到的电磁波信号进行分析,确定出通信质量最好的通道状态,并向所述调谐器件发送包括所述通信质量最好的通道状态的标识的通道切换消息;The wireless transceiver module 13 is configured to analyze the electromagnetic wave signals received in each channel state, determine the channel state with the best communication quality, and send the channel state including the best communication quality to the tuning device. The identified channel switching message;

所述调谐器件12,还用于根据所述通道切换消息将所述天线调节到通信质量最好的通道状态下,以使所述无线收发模块通过工作在通信质量最好的通道状态下的天线进行数据收发。The tuning device 12 is also used to adjust the antenna to the channel state with the best communication quality according to the channel switching message, so that the wireless transceiver module can pass through the antenna working in the channel state with the best communication quality Send and receive data.

在一种可能的实施方式中,所述调谐器件,具体用于:In a possible implementation manner, the tuning device is specifically used for:

按照预设的通道状态顺序,确定当前待切换到的通道状态;Determine the current channel status to be switched to according to the preset channel status sequence;

将相应的天线切换到当前确定的通道状态下,以使该相应的天线在当前待切换到的通道状态下接收电磁波信号;Switching the corresponding antenna to the currently determined channel state, so that the corresponding antenna receives electromagnetic wave signals in the current channel state to be switched to;

在该相应的天线在当前确定的通道状态下工作指定时长后,返回执行步骤:按照预设的通道状态顺序,确定当前待切换到的通道状态,直至当前确定的通道状态为最后一个通道状态。After the corresponding antenna works for a specified period of time in the currently determined channel state, return to the execution step: determine the current channel state to be switched to according to the preset channel state sequence until the currently determined channel state is the last channel state.

在一种可能的实施方式中,所述指定时长与通道状态数量的乘积小于一个包数据的前导序列的时长。In a possible implementation manner, the product of the specified duration and the number of channel states is less than the duration of a preamble sequence of packet data.

在一种可能的实施方式中,所述无线收发模块具体用于:分别对各通道状态下接收到的电磁波信号进行分析,得到各通道状态下接收到的电磁波信号的接收信号强度RSSI;选取RSSI最大的电磁波信号的通道状态,作为通信质量最好的通道状态。In a possible implementation manner, the wireless transceiver module is specifically configured to: respectively analyze the electromagnetic wave signals received in each channel state to obtain the received signal strength RSSI of the electromagnetic wave signals received in each channel state; select the RSSI The channel state of the largest electromagnetic wave signal is the channel state with the best communication quality.

本申请实施例还提供了一种电子设备,包括:The embodiment of the present application also provides an electronic device, including:

至少一天线、调谐器件及无线收发模块,至少一所述天线能够工作在不同的通道状态下,不同通道状态下天线的工作频段不同;At least one antenna, a tuning device and a wireless transceiver module, at least one of the antennas can work in different channel states, and the working frequency bands of the antennas are different in different channel states;

所述天线,用于在指定的通道状态下收发电磁波信号;The antenna is used to send and receive electromagnetic wave signals in a specified channel state;

所述调谐器件,用于调节所述无线的通道状态,以使所述天线工作在指定的通道状态下;对天线在各通道状态下接收的电磁波信号进行分析,确定出通信质量最好的通道状态;将所述天线调节到通信质量最好的通道状态下,以使所述无线收发模块通过工作在通信质量最好的通道状态下的天线进行数据收发;The tuning device is used to adjust the wireless channel state, so that the antenna works in a specified channel state; analyze the electromagnetic wave signals received by the antenna in each channel state, and determine the channel with the best communication quality State: adjust the antenna to the channel state with the best communication quality, so that the wireless transceiver module performs data transmission and reception through the antenna working in the channel state with the best communication quality;

所述无线收发模块,用于通过工作在通信质量最好的通道状态下的天线进行数据收发。The wireless transceiver module is used to transmit and receive data through the antenna working in the channel state with the best communication quality.

在一种可能的实施方式中,所述调谐器件具体用于:针对每一通道状态,对该通道状态下接收到的电磁波信号进行分析,得到该通道状态的电磁波信号的RSSI;选取RSSI最高的电磁波信号的通道状态,得到通信质量最好的通道状态。In a possible implementation manner, the tuning device is specifically configured to: for each channel state, analyze the electromagnetic wave signal received in the channel state to obtain the RSSI of the electromagnetic wave signal in the channel state; select the highest RSSI The channel state of the electromagnetic wave signal is obtained to obtain the channel state with the best communication quality.

天线和无线收发模块间通过加入调谐器件,匹配不同的天线匹配网络,达到天线频率可重构设计。Tuning devices are added between the antenna and the wireless transceiver module to match different antenna matching networks to achieve a reconfigurable antenna frequency design.

在一种可能的实施方式中,所述无线收发模块,具体用于:根据历史数据中各电磁波信号的分析结果,通过预设算法确定当前待切换到的通道状态;In a possible implementation manner, the wireless transceiver module is specifically configured to: determine the current channel state to be switched to through a preset algorithm according to the analysis results of each electromagnetic wave signal in the historical data;

所述调谐器件,具体用于将所述电子设备的天线切换到当前确定的通道状态下工作指定时长;The tuning device is specifically used to switch the antenna of the electronic device to work for a specified time in the currently determined channel state;

所述无线收发模块,还用于:判断当前接收的电磁波信号的RSSI是否满足预设质量条件,若满足,则将当前接收的电磁波信号对应的通道状态确定为通信质量最好的通道状态;若不满足,则将当前接收的电磁波信号的分析结果作为历史数据,返回执行步骤:根据历史数据中各电磁波信号的分析结果,通过预设算法确定当前待切换到的通道状态。The wireless transceiver module is also used to: judge whether the RSSI of the currently received electromagnetic wave signal meets the preset quality condition, and if so, determine the channel state corresponding to the currently received electromagnetic wave signal as the channel state with the best communication quality; if If not, use the analysis result of the currently received electromagnetic wave signal as historical data, and return to the execution step: according to the analysis result of each electromagnetic wave signal in the historical data, determine the current channel state to be switched to through a preset algorithm.

本申请实施例还提供了一种电子设备,参见图5,包括:The embodiment of the present application also provides an electronic device, see Figure 5, including:

至少一天线21及无线收发模块22,所述至少一天线21能够工作在不同的通道状态下,不同通道状态下天线21的工作频段不同;At least one antenna 21 and a wireless transceiver module 22, the at least one antenna 21 can work in different channel states, and the working frequency bands of the antenna 21 are different under different channel states;

所述天线21,用于在不同的通道状态下收发电磁波信号;The antenna 21 is used to send and receive electromagnetic wave signals in different channel states;

所述无线收发模块22,用于对各通道状态下接收到的电磁波信号进行分析,确定出通信质量最好的通道状态;并向所述天线发送包括所述通信质量最好的通道状态的标识的通道切换消息;The wireless transceiver module 22 is configured to analyze the received electromagnetic wave signals in each channel state to determine the channel state with the best communication quality; and send an identification including the channel state with the best communication quality to the antenna channel switch message;

所述天线21,还用于根据所述通道切换消息将所述天线调节到通信质量最好的通道状态下,以使所述无线收发模块通过工作在通信质量最好的通道状态下的天线进行数据收发。The antenna 21 is also used to adjust the antenna to the channel state with the best communication quality according to the channel switching message, so that the wireless transceiver module can perform communication through the antenna working in the channel state with the best communication quality. Data sending and receiving.

在一种可能的实施方式中,所述天线具体用于:In a possible implementation manner, the antenna is specifically used for:

按照预设的通道状态顺序,确定当前待切换到的通道状态;Determine the current channel status to be switched to according to the preset channel status sequence;

将所述天线切换到当前确定的通道状态下,以使所述天线在当前待切换到的通道状态下接收电磁波信号;Switching the antenna to the currently determined channel state, so that the antenna receives electromagnetic wave signals in the current channel state to be switched to;

在所述天线在当前确定的通道状态下工作指定时长后,返回执行步骤:按照预设的通道状态顺序,确定当前待切换到的通道状态,直至当前确定的通道状态为最后一个通道状态。After the antenna works for a specified period of time in the currently determined channel state, return to the execution step: determine the current channel state to be switched to according to the preset channel state sequence until the currently determined channel state is the last channel state.

在一种可能的实施方式中,所述指定时长与通道状态数量的乘积小于一个包数据的前导序列的时长。In a possible implementation manner, the product of the specified duration and the number of channel states is less than the duration of a preamble sequence of packet data.

在一种可能的实施方式中,所述无线收发模块具体用于:分别对各通道状态下接收到的电磁波信号进行分析,得到各通道状态下接收到的电磁波信号的RSSI;选取RSSI最大的电磁波信号的通道状态,作为通信质量最好的通道状态。In a possible implementation manner, the wireless transceiver module is specifically used to: respectively analyze the electromagnetic wave signals received in each channel state to obtain the RSSI of the electromagnetic wave signals received in each channel state; select the electromagnetic wave signal with the largest RSSI The channel state of the signal, as the channel state with the best communication quality.

在一种可能的实施方式中,所述无线收发模块具体用于:分别对各通道状态下接收到的电磁波信号进行分析,得到各通道状态下接收到的电磁波信号的信号强度及整机环境底噪;在信号强度大于预设强度阈值的电磁波信号中,确定整机环境底噪最小的电磁波信号,得到目标电磁波信号;将目标电磁波信号对应的通道状态,作为通信质量最好的通道状态。In a possible implementation manner, the wireless transceiver module is specifically configured to: respectively analyze the electromagnetic wave signals received in each channel state, and obtain the signal strength of the electromagnetic wave signals received in each channel state and the overall environment background. Noise; among the electromagnetic wave signals whose signal intensity is greater than the preset intensity threshold, determine the electromagnetic wave signal with the smallest environmental noise floor to obtain the target electromagnetic wave signal; use the channel state corresponding to the target electromagnetic wave signal as the channel state with the best communication quality.

在一种可能的实施方式中,所述无线收发模块,具体用于:根据历史数据中各电磁波信号的分析结果,通过预设算法确定当前待切换到的通道状态;将所述电子设备的天线切换到当前确定的通道状态下工作指定时长,得到当前接收的电磁波信号;判断当前接收的电磁波信号的RSSI是否满足预设质量条件,若满足,则将当前接收的电磁波信号对应的通道状态确定为通信质量最好的通道状态;若不满足,则返回执行步骤:根据历史数据中各电磁波信号的分析结果,通过预设算法确定当前待切换到的通道状态。In a possible implementation manner, the wireless transceiver module is specifically configured to: determine the current channel state to be switched to through a preset algorithm according to the analysis results of each electromagnetic wave signal in the historical data; connect the antenna of the electronic device to Switch to the currently determined channel state and work for a specified period of time to obtain the currently received electromagnetic wave signal; judge whether the RSSI of the currently received electromagnetic wave signal meets the preset quality conditions, and if so, determine the channel state corresponding to the currently received electromagnetic wave signal as The channel state with the best communication quality; if it is not satisfied, return to the execution step: according to the analysis results of each electromagnetic wave signal in the historical data, determine the current channel state to be switched to through a preset algorithm.

一个例子中,上述电子设备为窄带物联网电子设备。In an example, the above-mentioned electronic device is an electronic device of narrowband Internet of Things.

本申请实施例还提供了一种电子设备,包括:The embodiment of the present application also provides an electronic device, including:

至少一天线及无线收发模块,至少一所述天线能够工作在不同的通道状态下,不同通道状态下天线的工作频段不同;At least one antenna and a wireless transceiver module, at least one of the antennas can work in different channel states, and the working frequency bands of the antennas are different in different channel states;

所述天线,用于调节所述无线的通道状态,并在指定的通道状态下收发电磁波信号;对所述天线在各通道状态下接收的电磁波信号进行分析,确定出通信质量最好的通道状态;将所述天线调节到通信质量最好的通道状态下,以使所述无线收发模块通过工作在通信质量最好的通道状态下的天线进行数据收发;The antenna is used to adjust the wireless channel state, and transmit and receive electromagnetic wave signals in a specified channel state; analyze the electromagnetic wave signals received by the antenna in each channel state, and determine the channel state with the best communication quality ; Adjusting the antenna to the channel state with the best communication quality, so that the wireless transceiver module performs data transmission and reception through the antenna working in the channel state with the best communication quality;

所述无线收发模块,用于通过工作在通信质量最好的通道状态下的天线进行数据收发。The wireless transceiver module is used to transmit and receive data through the antenna working in the channel state with the best communication quality.

在一种可能的实施方式中,所述天线具体用于:针对每一通道状态,对该通道状态下接收到的电磁波信号进行分析,得到该通道状态的电磁波信号的RSSI;选取RSSI最高的电磁波信号的通道状态,得到通信质量最好的通道状态。In a possible implementation manner, the antenna is specifically used to: analyze the electromagnetic wave signal received in the channel state for each channel state to obtain the RSSI of the electromagnetic wave signal in the channel state; select the electromagnetic wave signal with the highest RSSI The channel state of the signal, and the channel state with the best communication quality is obtained.

在一种可能的实施方式中,所述无线收发模块具体用于:分别对各通道状态下接收到的电磁波信号进行分析,得到各通道状态下接收到的电磁波信号的信号强度及整机环境底噪;在信号强度大于预设强度阈值的电磁波信号中,确定整机环境底噪最小的电磁波信号,得到目标电磁波信号;将目标电磁波信号对应的通道状态,作为通信质量最好的通道状态。In a possible implementation manner, the wireless transceiver module is specifically configured to: respectively analyze the electromagnetic wave signals received in each channel state, and obtain the signal strength of the electromagnetic wave signals received in each channel state and the overall environment background. Noise; among the electromagnetic wave signals whose signal intensity is greater than the preset intensity threshold, determine the electromagnetic wave signal with the smallest environmental noise floor to obtain the target electromagnetic wave signal; use the channel state corresponding to the target electromagnetic wave signal as the channel state with the best communication quality.

在一种可能的实施方式中,所述天线具体用于:In a possible implementation manner, the antenna is specifically used for:

按照预设的通道状态顺序,确定当前待切换到的通道状态;Determine the current channel status to be switched to according to the preset channel status sequence;

将所述天线切换到当前确定的通道状态下,以使所述天线在当前待切换到的通道状态下接收电磁波信号;Switching the antenna to the currently determined channel state, so that the antenna receives electromagnetic wave signals in the current channel state to be switched to;

在所述天线在当前确定的通道状态下工作指定时长后,返回执行步骤:按照预设的通道状态顺序,确定当前待切换到的通道状态,直至当前确定的通道状态为最后一个通道状态。After the antenna works for a specified period of time in the currently determined channel state, return to the execution step: determine the current channel state to be switched to according to the preset channel state sequence until the currently determined channel state is the last channel state.

在一种可能的实施方式中,所述指定时长与通道状态数量的乘积小于一个包数据的前导序列的时长。In a possible implementation manner, the product of the specified duration and the number of channel states is less than the duration of a preamble sequence of packet data.

上述实施例中的电子设备为支持电磁波通信功能的电子设备,例如,该电子设备可以为手机、平板电脑、无线耳机、具备无线通信功能的摄像机、笔记本电脑或其他智能家电。电子设备使用的无线通信协议包括但不限于Sub-1G、4G、5G、LORA、NB-IoT(Narrow BandInternet of Things,窄带物联网)、WIFI、Zigbee等。电子设备并不仅限于例如图2a所示的一对一实时通信,也可以应用于一对多实时通信例如图2b所示,或多对多实时通信例如图2c所示的通信场景。电子设备中包括的天线的数量,以及每个天线中包括的通道状态的数量均可以根据实际情况自定义设置。各通道状态均对应有对应的工作频段,各通道状态的工作频段可以不同。一个例子中,在每次发送/接收一包数据时,均可以执行一次目标通道状态的确定。The electronic device in the above embodiments is an electronic device that supports the electromagnetic wave communication function. For example, the electronic device may be a mobile phone, a tablet computer, a wireless headset, a camera with a wireless communication function, a notebook computer or other smart home appliances. The wireless communication protocols used by electronic devices include but are not limited to Sub-1G, 4G, 5G, LORA, NB-IoT (Narrow Band Internet of Things, narrowband Internet of Things), WIFI, Zigbee, etc. The electronic device is not limited to the one-to-one real-time communication such as shown in FIG. 2a, and can also be applied to one-to-many real-time communication such as that shown in FIG. 2b, or many-to-many real-time communication such as the communication scenario shown in FIG. 2c. The number of antennas included in the electronic device and the number of channel states included in each antenna can be custom-set according to actual conditions. Each channel state corresponds to a corresponding working frequency band, and the working frequency bands of each channel state can be different. In one example, the determination of the state of the target channel can be performed each time a packet of data is sent/received.

本申请实施例还提供了一种调谐器件,参见图6a,包括:The embodiment of the present application also provides a tuning device, see Figure 6a, including:

无线收发模块接口31、天线接口32、控制器33及通道状态电路34;Wireless transceiver module interface 31, antenna interface 32, controller 33 and channel state circuit 34;

所述天线接口32,用于与天线进行连接;The antenna interface 32 is used to connect with the antenna;

所述无线收发模块接口31,用于与无线收发模块进行连接;The wireless transceiver module interface 31 is used to connect with the wireless transceiver module;

所述控制器33,用于控制所述通道状态电路34的通断,以使所述天线工作在不同的通道状态下;将所述天线在不同通道状态接收到的电磁波信号发送给所述无线收发模块,以使所述无线收发模块对各通道状态下接收到的电磁波信号进行分析,确定出通信质量最好的通道状态;并向所述天线发送包括所述通信质量最好的通道状态的标识的通道切换消息;The controller 33 is used to control the on-off of the channel state circuit 34, so that the antenna works in different channel states; the electromagnetic wave signals received by the antenna in different channel states are sent to the wireless A transceiver module, so that the wireless transceiver module analyzes the electromagnetic wave signals received in each channel state, and determines the channel state with the best communication quality; and sends the information including the channel state with the best communication quality to the antenna The identified channel switching message;

所述控制器33,还用于根据所述通道切换消息调节所述通道状态电路,以使所述天线工作在通信质量最好的通道状态下,从而使所述无线收发模块通过工作在通信质量最好的通道状态下的天线进行数据收发。The controller 33 is also used to adjust the channel state circuit according to the channel switching message, so that the antenna works in the channel state with the best communication quality, so that the wireless transceiver module can operate at the communication quality The antenna in the best channel state performs data transmission and reception.

通道状态电路34可以为电感、电容及开关等器件组成的电路,通道状态电路34能够使天线工作在不同的通道状态下,控制器33通过调整通道状态电路34,实现使天线工作在指定的通道状态下。The channel state circuit 34 can be a circuit composed of devices such as inductors, capacitors, and switches. The channel state circuit 34 can make the antenna work in different channel states. The controller 33 can adjust the channel state circuit 34 to make the antenna work in a specified channel. state.

在一种可能的实施方式中,所述控制器33具体用于:In a possible implementation manner, the controller 33 is specifically configured to:

按照预设的通道状态顺序,确定当前待切换到的通道状态;Determine the current channel status to be switched to according to the preset channel status sequence;

调节所述通道状态电路,以使所述天线工作在当前确定的通道状态下,并在当前待切换到的通道状态下接收电磁波信号;Adjusting the channel state circuit so that the antenna works in the currently determined channel state and receives electromagnetic wave signals in the current channel state to be switched to;

当所述天线在当前确定的通道状态下工作指定时长后,返回执行步骤:按照预设的通道状态顺序,确定当前待切换到的通道状态,直至当前确定的通道状态为最后一个通道状态。After the antenna works for a specified period of time in the currently determined channel state, return to the execution step: determine the current channel state to be switched to according to the preset channel state sequence until the currently determined channel state is the last channel state.

在一种可能的实施方式中,所述指定时长与通道状态数量的乘积小于一个包数据的前导序列的时长。In a possible implementation manner, the product of the specified duration and the number of channel states is less than the duration of a preamble sequence of packet data.

本申请实施例还提供了一种调谐器件,包括:The embodiment of the present application also provides a tuning device, including:

无线收发模块接口、天线接口、控制器及通道状态电路;Wireless transceiver module interface, antenna interface, controller and channel state circuit;

所述天线接口,用于与天线进行连接;The antenna interface is used to connect with the antenna;

所述无线收发模块接口,用于与无线收发模块进行连接;The wireless transceiver module interface is used to connect with the wireless transceiver module;

所述控制器,用于控制所述通道状态电路的通断,以使所述天线工作在不同的通道状态下;对天线在各通道状态下接收的电磁波信号进行分析,确定出通信质量最好的通道状态;将所述天线调节到通信质量最好的通道状态下,以使所述无线收发模块通过工作在通信质量最好的通道状态下的天线进行数据收发。The controller is used to control the on-off of the channel state circuit, so that the antenna works in different channel states; analyze the electromagnetic wave signals received by the antenna in each channel state, and determine that the communication quality is the best the channel state; adjust the antenna to the channel state with the best communication quality, so that the wireless transceiver module can transmit and receive data through the antenna working in the channel state with the best communication quality.

天线与无线收发模块之间通过加入调谐器件,匹配不同的天线的不同通道状态,达到天线频率可重构设计,调谐器件的选通,可一分二、一分四、一分N等,可根据用户环境的复杂度和设备功耗要求进行设计。控制器执行软件算法,实现通道状态电路的调节,从而实现不同通道状态的切换。一个例子中,以双天线,8路信号为例,每收发一包数据,调谐器件可以自动切换及检测8个通道状态,进行最优解计算,选出最优通道状态与对端设备进行通信。调谐器件的切换数量不限,天线的数量不限,可以根据实际情况自定义设置,每发送一包数据,调谐器件自动切换的通道状态数不限,但是需小于等于设备所支持的最大通道状态数。一个例子中调谐器件还可以如图6b所示,其中,控制器、无线收发模块接口及通道状态电路未示出,天线接口即为ANT(Antenna hardware interface,天线硬件接口),通道状态电路有多个输出:RF1-RFn,VC1、VC2及VDD代表不同的电压信号的输入,控制器通过不同的电压信号,调节通道状态电路的输入,从而实现天线的通道状态的切换。By adding tuning devices between the antenna and the wireless transceiver module, different channel states of different antennas can be matched to achieve a reconfigurable antenna frequency design. Design according to the complexity of the user's environment and the power consumption requirements of the device. The controller executes a software algorithm to realize the adjustment of the channel state circuit, thereby realizing the switching of different channel states. In one example, taking dual antennas and 8-channel signals as an example, every time a packet of data is sent and received, the tuning device can automatically switch and detect 8 channel states, perform optimal solution calculations, and select the optimal channel state to communicate with the peer device . There is no limit to the switching number of tuning devices and the number of antennas. You can customize the settings according to the actual situation. Every time a packet of data is sent, the number of channel states that the tuning device automatically switches is unlimited, but it must be less than or equal to the maximum channel state supported by the device. number. In an example, the tuning device can also be as shown in Figure 6b, wherein, the controller, the wireless transceiver module interface and the channel state circuit are not shown, the antenna interface is ANT (Antenna hardware interface, antenna hardware interface), how many channel state circuits are there? One output: RF1-RFn, VC1, VC2 and VDD represent the input of different voltage signals, the controller adjusts the input of the channel state circuit through different voltage signals, so as to realize the switching of the channel state of the antenna.

在一种可能的实施方式中,所述控制器,具体用于按照预设的通道状态顺序,确定当前待切换到的通道状态;In a possible implementation manner, the controller is specifically configured to determine the current channel status to be switched to according to a preset channel status sequence;

调节所述通道状态电路,以使所述天线工作在当前确定的通道状态下,并在当前待切换到的通道状态下接收电磁波信号;Adjusting the channel state circuit so that the antenna works in the currently determined channel state and receives electromagnetic wave signals in the current channel state to be switched to;

当所述天线在当前确定的通道状态下工作指定时长后,返回执行步骤:按照预设的通道状态顺序,确定当前待切换到的通道状态,直至当前确定的通道状态为最后一个通道状态。After the antenna works for a specified period of time in the currently determined channel state, return to the execution step: determine the current channel state to be switched to according to the preset channel state sequence until the currently determined channel state is the last channel state.

在一种可能的实施方式中,所述指定时长与通道状态数量的乘积小于一个包数据的前导序列的时长。In a possible implementation manner, the product of the specified duration and the number of channel states is less than the duration of a preamble sequence of packet data.

在一种可能的实施方式中,所述控制器,具体用于针对每一通道状态,对该通道状态下接收到的电磁波信号进行分析,得到该通道状态的电磁波信号的RSSI;选取RSSI最高的电磁波信号的通道状态,得到通信质量最好的通道状态。In a possible implementation manner, the controller is specifically configured to, for each channel state, analyze the electromagnetic wave signal received in the channel state to obtain the RSSI of the electromagnetic wave signal in the channel state; select the highest RSSI The channel state of the electromagnetic wave signal is obtained to obtain the channel state with the best communication quality.

在一种可能的实施方式中,调谐器件中还包括存储器,用于进行相关数据的存储;存储器可以包括RAM(Random Access Memory,随机存取存储器),也可以包括NVM(Non-Volatile Memory,非易失性存储器),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离前述处理器的存储装置。In a possible implementation manner, the tuning device further includes a memory for storing related data; the memory may include RAM (Random Access Memory, random access memory), or NVM (Non-Volatile Memory, non-volatile volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one storage device located far away from the aforementioned processor.

上述的控制器可以是通用处理器,包括CPU(Central Processing Unit,中央处理器)等;还可以是DSP(Digital Signal Processing,数字信号处理器)、ASIC(ApplicationSpecific Integrated Circuit,专用集成电路)、FPGA(Field-Programmable Gate Array,现场可编程门阵列)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。Above-mentioned controller can be general-purpose processor, comprises CPU (Central Processing Unit, central processing unit) etc.; Can also be DSP (Digital Signal Processing, digital signal processor), ASIC (Application Specific Integrated Circuit, application-specific integrated circuit), FPGA (Field-Programmable Gate Array, Field Programmable Gate Array) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.

本申请实施例还提供了一种天线,参见图7,包括:The embodiment of the present application also provides an antenna, see Figure 7, including:

天线单元41及控制电路42;An antenna unit 41 and a control circuit 42;

所述天线单元41,用于在指定的通道状态下收发电磁波信号;The antenna unit 41 is used to send and receive electromagnetic wave signals in a specified channel state;

所述控制电路42,用于调节所述天线单元的通道状态,以使所述天线单元工作在指定的通道状态下;The control circuit 42 is used to adjust the channel state of the antenna unit, so that the antenna unit works in a specified channel state;

所述控制电路42,还用于将不同通道状态接收到的电磁波信号发送给无线收发模块,以使所述无线收发模块对各通道状态下接收到的电磁波信号进行分析,确定出通信质量最好的通道状态;并向所述天线发送包括所述通信质量最好的通道状态的标识的通道切换消息;The control circuit 42 is also used to send the electromagnetic wave signals received in different channel states to the wireless transceiver module, so that the wireless transceiver module analyzes the electromagnetic wave signals received in each channel state, and determines that the communication quality is the best channel state; and send to the antenna a channel switch message including the identification of the channel state with the best communication quality;

所述控制电路42,还用于根据所述通道切换消息将所述天线单元调节到通信质量最好的通道状态下,以使所述无线收发模块通过工作在通信质量最好的通道状态下的天线单元进行数据收发。The control circuit 42 is also used to adjust the antenna unit to the channel state with the best communication quality according to the channel switching message, so that the wireless transceiver module can pass through the channel state with the best communication quality. The antenna unit performs data transmission and reception.

一个例子中,上述天线单元可以为电小天线形式的天线单元,也可指大天线单元,以实现不同应用波束需求。In an example, the above-mentioned antenna unit may be an antenna unit in the form of an electrically small antenna, or may refer to a large antenna unit, so as to realize different application beam requirements.

在一种可能的实施方式中,所述控制电路具体用于:In a possible implementation manner, the control circuit is specifically used for:

按照预设的通道状态顺序,确定当前待切换到的通道状态;Determine the current channel status to be switched to according to the preset channel status sequence;

将所述天线单元切换到当前确定的通道状态下,以使所述天线单元在当前待切换到的通道状态下接收电磁波信号;Switching the antenna unit to the currently determined channel state, so that the antenna unit receives electromagnetic wave signals in the channel state to be switched to;

在所述天线单元在当前确定的通道状态下工作指定时长后,返回执行步骤:按照预设的通道状态顺序,确定当前待切换到的通道状态,直至当前确定的通道状态为最后一个通道状态。After the antenna unit works for a specified period of time in the currently determined channel state, return to the execution step: determine the current channel state to be switched to according to the preset channel state sequence until the currently determined channel state is the last channel state.

在一种可能的实施方式中,所述指定时长与通道状态数量的乘积小于一个包数据的前导序列的时长。In a possible implementation manner, the product of the specified duration and the number of channel states is less than the duration of a preamble sequence of packet data.

在一种可能的实施方式中,所述控制电路,具体用于:根据接收到的工作状态切换信号,将所述天线单元的通道状态切换为指定通道状态,其中,所述工作状态切换信号表示将所述天线单元切换到指定通道状态下,所述指定通道状态为根据历史数据中各电磁波信号的分析结果,通过预设算法确定出的当前待切换到的通道状态。In a possible implementation manner, the control circuit is specifically configured to: switch the channel state of the antenna unit to a designated channel state according to the received working state switching signal, wherein the working state switching signal indicates The antenna unit is switched to a specified channel state, and the specified channel state is the current channel state to be switched to determined by a preset algorithm according to the analysis results of the electromagnetic wave signals in the historical data.

本申请实施例还提供了一种天线,参见图,包括:The embodiment of the present application also provides an antenna, as shown in the figure, including:

天线单元及控制电路;Antenna unit and control circuit;

所述天线单元,用于在指定的通道状态下收发电磁波信号;The antenna unit is used to send and receive electromagnetic wave signals in a specified channel state;

所述控制电路,用于调节所述天线单元的通道状态,以使所述天线单元工作在指定的通道状态下;对所述天线单元在各通道状态下接收的电磁波信号进行分析,确定出通信质量最好的通道状态;将所述天线单元调节到通信质量最好的通道状态下,以使无线收发模块通过工作在通信质量最好的通道状态下的天线进行数据收发。The control circuit is used to adjust the channel state of the antenna unit, so that the antenna unit works in a specified channel state; analyze the electromagnetic wave signal received by the antenna unit in each channel state, and determine the communication The channel state with the best quality; adjust the antenna unit to the channel state with the best communication quality, so that the wireless transceiver module can transmit and receive data through the antenna working in the channel state with the best communication quality.

在一种可能的实施方式中,所述天线具体用于:针对每一通道状态,对该通道状态下接收到的电磁波信号进行分析,得到该通道状态的电磁波信号的RSSI;选取RSSI最高的电磁波信号的通道状态,得到通信质量最好的通道状态。In a possible implementation manner, the antenna is specifically used to: analyze the electromagnetic wave signal received in the channel state for each channel state to obtain the RSSI of the electromagnetic wave signal in the channel state; select the electromagnetic wave signal with the highest RSSI The channel state of the signal, and the channel state with the best communication quality is obtained.

在一种可能的实施方式中,所述控制电路具体用于:In a possible implementation manner, the control circuit is specifically used for:

按照预设的通道状态顺序,确定当前待切换到的通道状态;Determine the current channel status to be switched to according to the preset channel status sequence;

将所述天线单元切换到当前确定的通道状态下,以使所述天线单元在当前待切换到的通道状态下接收电磁波信号;Switching the antenna unit to the currently determined channel state, so that the antenna unit receives electromagnetic wave signals in the channel state to be switched to;

在所述天线单元在当前确定的通道状态下工作指定时长后,返回执行步骤:按照预设的通道状态顺序,确定当前待切换到的通道状态,直至当前确定的通道状态为最后一个通道状态。After the antenna unit works for a specified period of time in the currently determined channel state, return to the execution step: determine the current channel state to be switched to according to the preset channel state sequence until the currently determined channel state is the last channel state.

在一种可能的实施方式中,所述指定时长与通道状态数量的乘积小于一个包数据的前导序列的时长。In a possible implementation manner, the product of the specified duration and the number of channel states is less than the duration of a preamble sequence of packet data.

在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘SolidState Disk(SSD))等。In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server or data center Transmission to another website site, computer, server, or data center by wired (eg, coaxial cable, optical fiber, DSL) or wireless (eg, infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrated with one or more available media. The available medium may be a magnetic medium (for example, a floppy disk, a hard disk, or a magnetic tape), an optical medium (for example, DVD), or a semiconductor medium (for example, a Solid State Disk (SSD)).

需要说明的是,在本文中,各个可选方案中的技术特征只要不矛盾均可组合来形成方案,这些方案均在本申请公开的范围内。诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in this article, as long as there is no contradiction, the technical features in each optional solution can be combined to form a solution, and these solutions are within the scope of the disclosure of this application. Relational terms such as first and second, etc. are used only to distinguish one entity or operation from another and do not necessarily require or imply any such actual relationship or relationship between these entities or operations. order. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.

本说明书中的各个实施例均采用相关的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。Each embodiment in this specification is described in a related manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other.

以上所述仅为本申请的较佳实施例,并非用于限定本申请的保护范围。凡在本申请的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本申请的保护范围内。The above descriptions are only preferred embodiments of the present application, and are not intended to limit the protection scope of the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this application are included within the protection scope of this application.

Claims (21)

1. A method of wireless communication, the method comprising:
enabling an antenna of electronic equipment to work in different channel states at different time intervals, and utilizing the antenna of the electronic equipment to respectively receive electromagnetic wave signals at different time intervals to obtain the electromagnetic wave signals received by the antenna in each channel state, wherein the electronic equipment comprises at least one antenna, at least one antenna can work in different channel states, and the working frequency bands of the antennas are different in different channel states;
analyzing the electromagnetic wave signals received in each channel state to determine the channel state with the best communication quality;
switching the antenna of the electronic equipment to the channel state with the best communication quality, and performing data transceiving by using the antenna of the electronic equipment working in the channel state with the best communication quality;
the enabling of the antenna of the electronic device to work in different channel states at different time intervals, and respectively receiving the electromagnetic wave signals at different time intervals by using the antenna of the electronic device to obtain the electromagnetic wave signals received by the antenna in each channel state, includes:
determining a channel state to be switched currently through a preset algorithm according to the analysis result of each electromagnetic wave signal in the historical data;
switching the antenna of the electronic equipment to a currently determined channel state for a specified working time length to obtain a currently received electromagnetic wave signal;
the analyzing the electromagnetic wave signals received in each channel state to determine the channel state with the best communication quality includes:
judging whether the RSSI of the currently received electromagnetic wave signal meets a preset quality condition, if so, determining the channel state corresponding to the currently received electromagnetic wave signal as the channel state with the best communication quality; if not, taking the analysis result of the currently received electromagnetic wave signal as historical data, and returning to the execution step: and determining the current channel state to be switched to by a preset algorithm according to the analysis result of each electromagnetic wave signal in the historical data.
2. The method according to claim 1, wherein the operating the antenna of the electronic device in different channel states at different time intervals, and receiving the electromagnetic wave signals in different time intervals by using the antenna of the electronic device to obtain the electromagnetic wave signals received by the antenna in each channel state comprises:
determining a target channel state to be switched to currently according to a predetermined channel state sequence;
switching the antenna corresponding to the target channel state, and receiving an electromagnetic wave signal by using the corresponding antenna;
and after the corresponding antenna works for a specified time length in the currently determined channel state, returning to the execution step: and determining the current target channel state to be switched to according to the predetermined channel state sequence until the current determined channel state is the last channel state.
3. The method of claim 2 wherein the product of the specified duration and the number of channel states is less than the duration of a preamble sequence of a packet data.
4. The method according to any one of claims 1 to 3, wherein analyzing the electromagnetic wave signals received in each channel state to determine the channel state with the best communication quality comprises:
respectively analyzing the electromagnetic wave signals received in each channel state to obtain the received signal strength RSSI of the electromagnetic wave signals received in each channel state;
and selecting the channel state of the electromagnetic wave signal with the maximum RSSI as the channel state with the best communication quality.
5. The method according to any one of claims 1 to 3, wherein analyzing the electromagnetic wave signals received in each channel state to determine the channel state with the best communication quality comprises:
respectively analyzing the electromagnetic wave signals received in each channel state to obtain the signal intensity of the electromagnetic wave signals received in each channel state and the environment background noise of the whole machine;
determining the electromagnetic wave signal with the minimum background noise of the whole machine environment in the electromagnetic wave signals with the signal intensity larger than the preset intensity threshold value to obtain a target electromagnetic wave signal;
and taking the channel state corresponding to the target electromagnetic wave signal as the channel state with the best communication quality.
6. An electronic device, comprising:
the antenna comprises at least one antenna, a tuning device and a wireless transceiving module, wherein the at least one antenna can work in different channel states, and the working frequency bands of the antennas are different in the different channel states;
the antenna is used for receiving and transmitting electromagnetic wave signals in a specified channel state;
the tuning device is used for adjusting the channel state of the radio so as to enable the antenna to work in a specified channel state;
the wireless transceiver module is used for analyzing the electromagnetic wave signals received in each channel state, determining the channel state with the best communication quality, and sending a channel switching message comprising the identifier of the channel state with the best communication quality to the tuner;
the tuning device is further configured to adjust the antenna to a channel state with the best communication quality according to the channel switching message, so that the wireless transceiver module performs data transceiving through the antenna operating in the channel state with the best communication quality;
the wireless transceiver module is specifically configured to: determining a channel state to be switched currently through a preset algorithm according to the analysis result of each electromagnetic wave signal in the historical data;
the tuning device is specifically configured to switch an antenna of the electronic device to operate for a specified duration in a currently determined channel state;
the wireless transceiving module is further configured to: judging whether the RSSI of the currently received electromagnetic wave signal meets a preset quality condition, if so, determining the channel state corresponding to the currently received electromagnetic wave signal as the channel state with the best communication quality; if not, taking the analysis result of the currently received electromagnetic wave signal as historical data, and returning to the execution step: and determining the current channel state to be switched to by a preset algorithm according to the analysis result of each electromagnetic wave signal in the historical data.
7. The electronic device of claim 6, wherein the tuning component is specifically configured to:
determining a current channel state to be switched to according to a predetermined channel state sequence;
switching the corresponding antenna to the current determined channel state so that the corresponding antenna receives the electromagnetic wave signal in the current channel state to be switched to;
and after the corresponding antenna works for a specified time length in the currently determined channel state, returning to the execution step: and determining the channel state to be switched to at present according to the predetermined channel state sequence until the currently determined channel state is the last channel state.
8. The electronic device of claim 7, wherein the product of the specified duration and the number of channel states is less than the duration of a preamble sequence of a packet of data.
9. The electronic device according to any of claims 6-8, wherein the wireless transceiver module is specifically configured to: respectively analyzing the electromagnetic wave signals received in each channel state to obtain the RSSI of the electromagnetic wave signals received in each channel state; and selecting the channel state of the electromagnetic wave signal with the maximum RSSI as the channel state with the best communication quality.
10. The electronic device according to any of claims 6-8, wherein the wireless transceiver module is specifically configured to: respectively analyzing the electromagnetic wave signals received in each channel state to obtain the signal intensity of the electromagnetic wave signals received in each channel state and the environment background noise of the whole machine; determining the electromagnetic wave signal with the minimum background noise of the whole machine environment in the electromagnetic wave signals with the signal intensity larger than the preset intensity threshold value to obtain a target electromagnetic wave signal; and taking the channel state corresponding to the target electromagnetic wave signal as the channel state with the best communication quality.
11. An electronic device, comprising:
the antenna and the wireless transceiving module are arranged, the antenna can work in different channel states, and the working frequency bands of the antenna are different in different channel states;
the antenna is used for receiving and transmitting electromagnetic wave signals in different channel states;
the wireless transceiver module is used for analyzing the electromagnetic wave signals received under each channel state and determining the channel state with the best communication quality; and sending a channel switching message including an identification of the channel state with the best communication quality to the antenna;
the antenna is further configured to adjust the antenna to a channel state with the best communication quality according to the channel switching message, so that the wireless transceiver module performs data transceiving through the antenna operating in the channel state with the best communication quality;
the wireless transceiver module is specifically configured to: determining a channel state to be switched to currently through a preset algorithm according to the analysis result of each electromagnetic wave signal in the historical data; switching the antenna of the electronic equipment to a currently determined channel state for a specified working time length to obtain a currently received electromagnetic wave signal; judging whether the RSSI of the currently received electromagnetic wave signal meets a preset quality condition, if so, determining the channel state corresponding to the currently received electromagnetic wave signal as the channel state with the best communication quality; if not, returning to the execution step: and determining the current channel state to be switched to by a preset algorithm according to the analysis result of each electromagnetic wave signal in the historical data.
12. The electronic device of claim 11, wherein the antenna is specifically configured to:
determining a current channel state to be switched to according to a predetermined channel state sequence;
switching the antenna to the current determined channel state so that the antenna receives electromagnetic wave signals in the current channel state to be switched to;
and after the antenna works for a specified time length in the current determined channel state, returning to the execution step: and determining the channel state to be switched to at present according to the predetermined channel state sequence until the currently determined channel state is the last channel state.
13. The electronic device of claim 12, wherein the product of the specified duration and the number of channel states is less than the duration of a preamble sequence of one packet data.
14. The electronic device according to any of claims 11-13, wherein the wireless transceiver module is specifically configured to: respectively analyzing the electromagnetic wave signals received in each channel state to obtain the RSSI of the electromagnetic wave signals received in each channel state; and selecting the channel state of the electromagnetic wave signal with the maximum RSSI as the channel state with the best communication quality.
15. The electronic device according to any of claims 11-13, wherein the wireless transceiver module is specifically configured to: respectively analyzing the electromagnetic wave signals received in each channel state to obtain the signal intensity of the electromagnetic wave signals received in each channel state and the environment background noise of the whole machine; determining the electromagnetic wave signal with the minimum background noise of the whole machine environment in the electromagnetic wave signals with the signal intensity larger than the preset intensity threshold value to obtain a target electromagnetic wave signal; and taking the channel state corresponding to the target electromagnetic wave signal as the channel state with the best communication quality.
16. An antenna, comprising:
an antenna unit and a control circuit;
the antenna unit is used for transceiving electromagnetic wave signals in a specified channel state;
the control circuit is used for adjusting the channel state of the antenna unit so as to enable the antenna unit to work in a specified channel state;
the control circuit is further configured to send electromagnetic wave signals received in different channel states to the wireless transceiver module, so that the wireless transceiver module analyzes the received electromagnetic wave signals in each channel state, determines a channel state with the best communication quality, and returns a channel switching message including an identifier of the channel state with the best communication quality to the antenna;
the control circuit is further configured to adjust the antenna unit to a channel state with the best communication quality according to the channel switching message, so that the wireless transceiver module performs data transceiving through the antenna unit operating in the channel state with the best communication quality;
the control circuit is specifically configured to: and switching the channel state of the antenna unit to an appointed channel state according to the received working state switching signal, wherein the working state switching signal indicates that the antenna unit is switched to the appointed channel state, and the appointed channel state is the channel state to be switched to currently determined by a preset algorithm according to the analysis result of each electromagnetic wave signal in the historical data.
17. The antenna of claim 16, wherein the control circuit is specifically configured to:
determining a current channel state to be switched to according to a predetermined channel state sequence;
switching the antenna unit to a currently determined channel state so that the antenna unit receives electromagnetic wave signals in the channel state to be switched to currently;
and after the antenna unit works for a specified time length in the currently determined channel state, returning to the execution step: and determining the channel state to be switched to at present according to the predetermined channel state sequence until the currently determined channel state is the last channel state.
18. The antenna of claim 17 wherein the product of the specified duration and the number of channel states is less than the duration of a preamble sequence of a packet data.
19. A tuning device, comprising:
the wireless transceiver module interface, the antenna interface, the controller and the channel state circuit;
the antenna interface is used for being connected with an antenna;
the wireless transceiver module interface is used for being connected with the wireless transceiver module;
the controller is used for controlling the channel state circuit so as to enable the antenna to work in different channel states; sending the electromagnetic wave signals received by the antenna in different channel states to the wireless transceiver module so that the wireless transceiver module analyzes the electromagnetic wave signals received in each channel state to determine the channel state with the best communication quality; and sending a channel switching message including an identification of the channel state with the best communication quality to the antenna;
the controller is further configured to adjust the channel state circuit according to the channel switching message, so that the antenna operates in a channel state with the best communication quality, and the wireless transceiver module performs data transceiving through the antenna operating in the channel state with the best communication quality;
the controller is specifically configured to: and switching the channel state of the antenna to an appointed channel state according to the received working state switching signal, wherein the working state switching signal indicates that the antenna is switched to the appointed channel state, and the appointed channel state is the channel state to be switched to currently determined by a preset algorithm according to the analysis result of each electromagnetic wave signal in the historical data.
20. The tuning device of claim 19, wherein the controller is specifically configured to:
determining a current channel state to be switched to according to a predetermined channel state sequence;
adjusting the channel state circuit to enable the antenna to work in a currently determined channel state and receive electromagnetic wave signals in a channel state to be switched to currently;
and when the antenna works for a specified time length in the current determined channel state, returning to the execution step: and determining the current channel state to be switched to according to the predetermined channel state sequence until the current determined channel state is the last channel state.
21. The tuning device of claim 20, wherein the product of the specified duration and the number of channel states is less than the duration of a preamble sequence of one packet data.
CN202110872637.XA 2021-02-09 2021-07-30 Wireless communication method, electronic device, antenna and tuning device Active CN113595580B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2021101767190 2021-02-09
CN202110176719 2021-02-09

Publications (2)

Publication Number Publication Date
CN113595580A CN113595580A (en) 2021-11-02
CN113595580B true CN113595580B (en) 2023-02-07

Family

ID=78252822

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202110872637.XA Active CN113595580B (en) 2021-02-09 2021-07-30 Wireless communication method, electronic device, antenna and tuning device
CN202121765496.3U Active CN215601289U (en) 2021-02-09 2021-07-30 wireless communication equipment

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202121765496.3U Active CN215601289U (en) 2021-02-09 2021-07-30 wireless communication equipment

Country Status (1)

Country Link
CN (2) CN113595580B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115314065A (en) * 2022-07-11 2022-11-08 成都爱旗科技有限公司 Radio frequency module, onboard antenna switching method of radio frequency module and electronic equipment
CN115102638B (en) * 2022-07-20 2024-04-30 上海移远通信技术股份有限公司 Information acquisition method, device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1479540A (en) * 1997-09-10 2004-03-03 ���µ�����ҵ��ʽ���� Channel switching device and channel switching method
CN105247797A (en) * 2013-03-26 2016-01-13 宝马股份公司 Method and device for selecting transmission channels in network radio connection
EP3618302A1 (en) * 2018-09-03 2020-03-04 Beijing Xiaomi Mobile Software Co., Ltd. Wireless communication device and method for switching antenna
CN111372295A (en) * 2020-03-17 2020-07-03 重庆邮电大学 A cross-channel seamless handover method for mobile devices in industrial wireless networks
CN111386663A (en) * 2018-03-07 2020-07-07 索尼公司 Electronic device, method, and computer-readable storage medium for wireless communication

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6807405B1 (en) * 1999-04-28 2004-10-19 Isco International, Inc. Method and a device for maintaining the performance quality of a code-division multiple access system in the presence of narrow band interference
JP2005311536A (en) * 2004-04-19 2005-11-04 Toshiba Corp Wireless device
US8396431B2 (en) * 2005-02-17 2013-03-12 Kyocera Corporation Mobile station traffic state antenna tuning systems and methods
JP2007028511A (en) * 2005-07-21 2007-02-01 Sony Corp Wireless communication apparatus, wireless communication method, and program thereof
EP2207273B1 (en) * 2009-01-09 2016-01-06 AKG Acoustics GmbH Method and device for receiving digital audio data
US8761296B2 (en) * 2012-06-01 2014-06-24 Qualcomm Incorporated Method and apparatus for antenna tuning and transmit path selection
US9100100B2 (en) * 2013-12-31 2015-08-04 Futurewei Technologies, Inc. Wireless electronic device with switchable antenna system
WO2018053876A1 (en) * 2016-09-26 2018-03-29 深圳市大疆创新科技有限公司 Antenna selection method, apparatus and video glasses
CN108111233A (en) * 2016-11-24 2018-06-01 中兴通讯股份有限公司 A kind of method of mobile terminal and tuned antenna
CN107465428A (en) * 2017-08-30 2017-12-12 努比亚技术有限公司 Antenna handover trigger control method, communication terminal and computer-readable recording medium
CN108880649B (en) * 2018-07-06 2021-09-10 普联技术有限公司 Antenna configuration method, device, equipment and storage medium of terminal
KR102618559B1 (en) * 2018-11-27 2023-12-28 삼성전자주식회사 Method and device for measuring antenna reflection coefficient
CN110224719B (en) * 2019-06-25 2021-08-31 Oppo广东移动通信有限公司 Communication control method and related products

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1479540A (en) * 1997-09-10 2004-03-03 ���µ�����ҵ��ʽ���� Channel switching device and channel switching method
CN105247797A (en) * 2013-03-26 2016-01-13 宝马股份公司 Method and device for selecting transmission channels in network radio connection
CN111386663A (en) * 2018-03-07 2020-07-07 索尼公司 Electronic device, method, and computer-readable storage medium for wireless communication
EP3618302A1 (en) * 2018-09-03 2020-03-04 Beijing Xiaomi Mobile Software Co., Ltd. Wireless communication device and method for switching antenna
CN111372295A (en) * 2020-03-17 2020-07-03 重庆邮电大学 A cross-channel seamless handover method for mobile devices in industrial wireless networks

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《Wireless network channel quality estimation inside reactor building using RSSI measurement of wireless sensor network》;Soorena Merat.etc;《2009 Canadian Conference on Electrical and Computer Engineering》;20090306;全文 *

Also Published As

Publication number Publication date
CN215601289U (en) 2022-01-21
CN113595580A (en) 2021-11-02

Similar Documents

Publication Publication Date Title
CN108282166B (en) Antenna coexistence and mutual interference processing method, device, storage medium and electronic device
USRE47488E1 (en) Method, apparatus, and computer program product for wireless device discovery process
CN101873156B (en) Wireless communication apparatus, wireless communication method, and wireless communication system
US10104563B2 (en) Method for setting modes of data transmission, and base station device and terminal device using the same
CN104812014A (en) Automatic wireless network channel selection
JP2002290343A (en) Alarm device and alarm generating method used for it, and its program
CN110166151B (en) A data transmission method and related equipment
CN111010207B (en) Frequency hopping method and device based on quantitative correlation
CN115968578A (en) Method and apparatus for transmitting/receiving frame in communication system supporting multilink
CN108233956B (en) Antenna coexistence mutual interference processing method and device, storage medium and electronic equipment
CN113595580B (en) Wireless communication method, electronic device, antenna and tuning device
CN104883707B (en) A kind of test system and method for testing of wireless aps antijamming capability
EP4064760A1 (en) Device control method and apparatus, storage medium and electronic device
WO2023169264A1 (en) Ultra-wideband based information feedback method and device
CN116916366A (en) Ultra-bandwidth based sensing measurement result feedback method and device
US10432375B1 (en) Wireless communication system and method having automatic self-configuration mechanism
CN101414884B (en) Method for avoiding external equipment interference by wireless equipment in digital home
CN112290983A (en) Antenna selection method and device
CN109390660B (en) Multi-antenna electronic device development system for multi-path environment
EP4307774A1 (en) Power consumption control method, and wireless local area network communication apparatus
Kaushik et al. Cognitive relay: Detecting spectrum holes in a dynamic scenario
US12335991B2 (en) Method of selecting access point and related communication device
CN103907375A (en) Uplink detection-based processing method, network device and terminal
WO2011072437A1 (en) Use of low power radio to detect presence of access point
EP4275365B1 (en) Orchestrated radio frequency based sensing in multiple sensing areas

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant