WO2020118700A1 - Method for scanning channel, communication terminal, and storage medium - Google Patents

Method for scanning channel, communication terminal, and storage medium Download PDF

Info

Publication number
WO2020118700A1
WO2020118700A1 PCT/CN2018/121262 CN2018121262W WO2020118700A1 WO 2020118700 A1 WO2020118700 A1 WO 2020118700A1 CN 2018121262 W CN2018121262 W CN 2018121262W WO 2020118700 A1 WO2020118700 A1 WO 2020118700A1
Authority
WO
WIPO (PCT)
Prior art keywords
channel
scanning
target
target channel
channels
Prior art date
Application number
PCT/CN2018/121262
Other languages
French (fr)
Chinese (zh)
Inventor
梁朝忠
李亮华
Original Assignee
海能达通信股份有限公司
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 海能达通信股份有限公司 filed Critical 海能达通信股份有限公司
Priority to PCT/CN2018/121262 priority Critical patent/WO2020118700A1/en
Publication of WO2020118700A1 publication Critical patent/WO2020118700A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/14Relay systems
    • H04B7/15Active relay systems
    • H04B7/204Multiple access
    • H04B7/212Time-division multiple access [TDMA]

Definitions

  • the present application relates to the field of communications, and in particular, to a channel scanning method, a communication terminal, and a storage medium.
  • the device In the private network communication technology, the device needs to be able to identify the signals present in the current air interface within a certain frequency range, so as to identify valid signals, and then provide a basis for the development of other services.
  • the above process is defined as channel scanning.
  • channel scanning In the current TDMA system, since the hardware circuit needs to be turned on and off in each time slot, this will cause more time to be spent on controlling the hardware circuit to start and turn off, so that only one frequency point can be performed in each time slot Locking and data collection and analysis result in low utilization of time slots. Due to the low time slot utilization rate, it will cause the channel scanning to take too long when the number of channels to be scanned is large. Therefore, a method that can solve the above technical problems is needed.
  • the main technical problem solved by this application is how to improve the efficiency of channel scanning.
  • a technical solution adopted by the present application is to provide a channel scanning method, and the method includes:
  • the hardware circuit for channel scanning is controlled to start before scanning the initial target channel, and the hardware circuit is controlled to be closed after the scanning of the last target channel is completed.
  • a communication terminal including: a processor, a memory, a receiving circuit, and a voltage-controlled oscillator circuit;
  • the receiving circuit is connected to the voltage controlled oscillator circuit, and is used to receive the signal from the base station, preprocess the received signal and send it to the voltage controlled oscillator circuit;
  • the control end of the voltage-controlled oscillator circuit is connected to the processor, and is used to lock the channel of the frequency corresponding to the control instruction when receiving the control instruction of the processor;
  • the memory is used to store program data; the memory is used to store program data;
  • the processor is used to run the program data to perform the method as described above.
  • another technical solution adopted by the present application is to provide a storage medium storing program data, and the program data is executed to implement the method described above when the program data is executed.
  • the target channel defined by the channel description parameter is scanned in at least one time slot by acquiring the channel description parameter used to define the target channel to be scanned to obtain channel state information.
  • the hardware circuit for channel scanning is controlled to start only before the initial target channel is scanned, and the hardware for channel scanning is controlled after the last channel scan is completed The circuit is closed.
  • the hardware circuit for channel scanning is only turned on and off once, so as to reduce the startup and shutdown of the hardware circuit, thereby reducing the time slot occupation of the scanning process by startup and shutdown, and improving the efficiency of channel scanning.
  • FIG. 1 is a schematic flowchart of an embodiment of a channel scanning method according to this application.
  • FIG. 2 is a schematic flowchart of another embodiment of a channel scanning method according to this application.
  • FIG. 3 is a schematic flowchart of another embodiment of a channel scanning method according to this application.
  • FIG. 4 is a schematic structural diagram of an embodiment of a communication terminal of the present application.
  • FIG. 5 is a schematic structural diagram of an embodiment of a storage medium of the present application.
  • FIG. 1 is a schematic flowchart of an embodiment of a channel scanning method according to this application.
  • the method includes:
  • the channel description parameter is used to define the target channel to be scanned.
  • the channel description parameters include: information of the starting target channel, channel increment and total number of channels.
  • the start target channel is the first channel to be scanned, and the information of the start target channel includes at least: the frequency corresponding to the start channel.
  • the channel increment is the difference between the frequency of the two adjacent scanning channels.
  • the frequency of the latter channel is equal to the sum of the frequency of the previous channel and the increment of the channel. Set the channel increment to a relatively small value.
  • the total number of channels is the total number of channels that need to be scanned during the current scanning process. Together with the initial target channel and channel increment, the frequency range of the scanned channels is determined.
  • the channel description parameter acquisition method includes: set by user input.
  • the channel scanning parameters set by the user can be modified by the user according to the actual communication environment.
  • the range of user-modifiable channel parameters is set by the communication device at the factory.
  • the channel increment can also be preset in the factory, recommended by the communication terminal for the user, and determined by the user's choice.
  • S120 Scan the target channel defined by the channel description parameter in at least one time slot to obtain channel state information.
  • the channel state information includes: the strength of the channel signal.
  • the channel state information may further include: information data carried by it.
  • the hardware circuit for channel scanning is controlled to start before scanning the initial target channel, and the hardware circuit for channel scanning is controlled to be closed after the scanning of the last target channel is completed.
  • the hardware circuit used for channel scanning includes: a receiving circuit and a voltage-controlled oscillation circuit.
  • step S120 scanning the target channel defined by the channel description parameter in at least one time slot to obtain channel state information
  • the method further includes: sending a first start instruction to the receiving circuit to start the receiving circuit, And send a second start command to the voltage controlled oscillation circuit to start the voltage controlled oscillation circuit.
  • the first start instruction and the second start instruction are sent only once before the initial channel scan, which are used to start Receiving circuit and voltage control oscillation circuit. After the scan of the initial channel or the scan of the non-last channel is completed, the receiving circuit and the voltage-controlled oscillation circuit will not be closed.
  • a first shutdown command is sent to the receiving circuit to shut down the receiving circuit
  • a second closing command is sent to the voltage controlled oscillator circuit to shut down the voltage controlled oscillator circuit. Similar to starting the receiving circuit and the voltage-controlled oscillation circuit, in the technical solution provided by the present application, in the process of scanning the channel defined by the channel description parameter, the receiving circuit and the voltage-controlled oscillation circuit will be closed only once, specifically until The first close command and the second close command will be sent only after scanning all channels, which are used to close the receiving circuit and the voltage-controlled oscillation circuit, respectively.
  • the receiving circuit and the voltage-controlled oscillation circuit for channel scanning will be turned on only once before the starting target channel is scanned, and After scanning the initial target channel, the receiving circuit and the voltage-controlled oscillation circuit are not turned off. Only after the channel scanning of the total number of channels is completed, the hardware circuit for channel scanning is turned off. In this way, the time for turning on and off the hardware circuit can be reduced, the time for hardware scanning in the time slot for scanning can be reduced, and more time in the time slot can be used for scanning the channel defined by the channel description parameter, which greatly improves The scanning efficiency of the channel.
  • FIG. 2 is a schematic flowchart of another embodiment of a channel scanning method according to this application.
  • the target channel defined by the channel description parameter is scanned in the embodiment shown in FIG. 1 to obtain channel state information for further elaboration.
  • the steps include:
  • S221 The starting target channel is first used as the target channel.
  • the target channel defined in the target description parameter is used as the target channel, where the target channel refers to the channel to be scanned. Since the starting target channel is defined in the channel description parameter, after the start of the hardware circuit for channel scanning, the starting target channel will be used as the target channel first, which is also the first channel to be scanned. Understandably, when the user-defined channel description parameter does not define a starting target channel, the default starting channel is automatically selected based on the attributes of the communication frequency range corresponding to the communication device, and the defined starting channel is used as The target channel will not be detailed here.
  • S222 Obtain the frequency of the target channel, and configure a voltage-controlled oscillation circuit to lock the frequency of the target channel.
  • the frequency of the target channel needs to be further locked. Specifically, the frequency of the target channel is locked by the voltage-controlled oscillation circuit. Therefore, after acquiring the target channel frequency, a voltage-controlled oscillation circuit will be further configured to lock the target channel frequency.
  • the locking of the first target channel is only after acquiring the frequency corresponding to the starting target channel To configure the voltage-controlled oscillation circuit to lock the frequency corresponding to the initial target channel.
  • the process of determining the non-first target channel is as follows: add the last channel to be scanned and the channel increment defined in the channel description parameter to obtain the target channel that needs to be scanned currently.
  • the corresponding frequency can be obtained based on the determined target channel, and then the voltage-controlled oscillation circuit can be configured to output a voltage corresponding to the frequency to lock the frequency of the target channel.
  • frequency locking refers to making the voltage-controlled oscillation circuit output a voltage-controlled voltage so that the signal can oscillate steadily at a certain frequency.
  • S223 Scan the target channel to obtain the channel state information of the target channel.
  • the channel state information includes: the current signal strength of the channel. Therefore, when collecting data, the signal strength at the locked frequency will be obtained, and the obtained signal strength and channel information will be stored correspondingly.
  • the channel state information of the target channel After completing the scan of the target channel, that is, completing the data collection to obtain the channel state information of the target channel, the channel state information of the target channel will be further saved. Specifically, in the current embodiment, after the scanning of one channel is completed, the obtained channel state information will be temporarily stored until all the channel state information obtained is reported together after completing the scanning of all channels save.
  • FIG. 3 is a schematic flowchart of another channel scanning method according to this application in another embodiment.
  • the method includes:
  • Step S310 Acquire channel description parameters. Step S310 is the same as step S110 in FIG. 1 described above. For details, please refer to the explanation of step S110 above, and details are not repeated here.
  • the target channel includes a start target channel, and other target channels based on the start target channel and increasing in channel increments.
  • the number of other target channels is the value corresponding to the total number of channels in the channel description parameter minus one (the minus one represents the number of starting target channels).
  • step S320 all target channels corresponding to the channels defined in the channel description parameters are pre-determined, and the frequency corresponding to each target channel is calculated to be used as a basis for scanning the target channel. Calculate the frequency to configure the voltage-controlled oscillation circuit in sequence.
  • step S320 is a step that will be performed before scanning the initial target channel to obtain channel state information.
  • S330 Configure a voltage-controlled oscillation circuit to lock the frequency of a target channel.
  • the voltage-controlled oscillator circuit is configured in sequence according to the calculated frequency of each target channel to be scanned to lock the frequency of a target channel. After locking the frequency of a target channel, that is Step S340 is performed, that is, the target channel is scanned to obtain the channel state information of the target channel.
  • Step S340 Scan the target channel to obtain channel state information of the target channel.
  • Step S340 is the same as step S223 in the embodiment corresponding to FIG. 2 above.
  • step S223 please refer to the explanation of step S223 above, and will not be repeated here.
  • step S320 since the frequency of the target channel to be scanned is calculated and obtained in step S320, when performing channel scanning, it is only necessary to sequentially configure the voltage-controlled oscillation circuit from the frequency corresponding to the starting target channel. Then, after the frequency is locked, the channel is scanned to obtain the channel status information of the target channel, and then it is judged that the scan of all channels is not completed, and the voltage-controlled oscillation circuit is directly configured based on the calculated frequency of the next target channel to lock the frequency And then scan.
  • step S320 After the scanning of one channel is completed, it is only necessary to determine whether the scanning of all channels is completed according to the frequency of the target channel calculated in step S320. Configure the voltage-controlled oscillation circuit according to the calculated frequency of the next target channel, and then perform frequency locking and channel scanning.
  • the channel state information of all the target channels obtained by scanning is reported to the protocol stack for the preset service to call.
  • the channel state parameters obtained by the scan are temporarily stored, and all the channel scans are reported and saved together after completion.
  • the number of channels pre-scanned in each time slot may be preset. Taking the tetra system as an example, according to the agreement, the dwell time of each frequency point of the tetra system is 2ms, and the maximum time of the locked frequency is 1ms. Based on the scheme provided in this application, only the channel will be activated during the channel scanning process. The hardware circuit is scanned once, and the hardware circuit is only turned off once, so according to the calculation of tetra each time slot time is 14.167ms, each channel can be scanned 4 times, greatly improving the scanning efficiency of the channel. In the current embodiment, a time slot may be preset to perform channel scanning 4 times to improve channel scanning efficiency.
  • the remaining time of the time slot will be used to calibrate the information of the scanning channel in the current time slot, and/or Pre-calibrate the channel information to be scanned in the next time slot, where the information of the checked channel at least includes: the frequency corresponding to the scanned channel.
  • the receiving circuit and the voltage control oscillation circuit are not closed after scanning the initial target channel, the second channel, the third and the last are scanned Before a channel, there is no need to repeatedly control the switch of the receiving circuit and the voltage control oscillation circuit, so that the frequency corresponding to the next target channel of the voltage control oscillation circuit can be directly configured, and the frequency lock time can also be reduced.
  • the frequency difference between the second target channel and the first target channel is within 1Mhz, and the frequency time corresponding to locking the second target channel can be reduced to within 1ms.
  • the scanning time of one channel will be less than 3 ms, which greatly reduces the time to scan one channel and improves the scanning efficiency of a large number of channels.
  • the voltage-controlled oscillator circuit can be configured multiple times in one slot to scan multiple channels, so that when the number of channels to be scanned reaches tens or even hundreds Compared with the existing technology, this solution can save a lot of time, improve the user experience, and also improve the competitiveness of the product.
  • FIG. 4 is a schematic structural diagram of an embodiment of a communication terminal 400 according to the present application.
  • the communication terminal 400 includes a processor 401, a memory 402, a receiving circuit 403, and a voltage controlled oscillator circuit 404.
  • the receiving circuit 403 is connected to the voltage-controlled oscillator circuit 404 for receiving radio frequency signals.
  • the mixer (not shown) and the voltage controlled oscillator circuit 404 in the receiving circuit 403 also perform down conversion and sampling pre-processing on the received radio frequency signal, and send the processing result to the processor 401.
  • the control end of the voltage-controlled oscillator circuit 404 is connected to the processor 401, and is used to lock the frequency of the target channel corresponding to the control instruction when the control instruction of the processor 401 is received.
  • the voltage-controlled oscillator circuit 404 is connected to the mixing terminal of the receiving circuit 403.
  • the voltage-controlled oscillator circuit 404 is used to down-convert the signal received by the receiving circuit, and locks the frequency corresponding to the target channel in the received signal under the control of the processor 401.
  • the memory 402 is used to store program data, and the processor 401 is used to run the program data to perform the methods described in the embodiments corresponding to FIG. 1 to FIG. 3 above.
  • the present application also provides a storage medium 500.
  • the storage medium 500 stores program data 501 that implements the method of positioning signal processing as described above and the method described in each embodiment when the program data 501 is executed.
  • the storage medium 500 may be one of a memory, a personal computer, a server, a network device, or a U disk.

Abstract

Disclosed is a method for scanning a channel. The method comprises: obtaining a channel scanning parameter, wherein the channel scanning parameter is used for defining a target channel to be scanned; scanning the target channel defined by the channel scanning parameter in at least one time slot to obtain channel state information, wherein in the process for scanning the target channel, a hardware circuit for channel scanning is controlled to be started up before scanning an initial target channel, and the hardware circuit for the channel scanning is controlled to be closed down after the scanning of the last target channel is completed. According to the method, in the process for channel scanning, the hardware circuit for channel scanning is controlled to be started up and closed down only once, a large amount of time for starting up and closing down the hardware circuit is saved for scanning more channels, so that the efficiency for channel scanning is improved. The present application further provides a communication terminal and a storage medium.

Description

一种信道扫描的方法、通信终端及存储介质Channel scanning method, communication terminal and storage medium 技术领域Technical field
本申请涉及通信领域,特别是涉及一种信道扫描的方法、通信终端及存储介质。The present application relates to the field of communications, and in particular, to a channel scanning method, a communication terminal, and a storage medium.
背景技术Background technique
在专网通信技术中,需要设备能够在一定的频率范围内对当前空口存在的信号进行识别,以甄别出有效信号,进而为其他业务的展开提供依据,将上述过程定义为信道扫描。在当前TDMA系统中,由于在每个时隙均需要控制硬件电路开启和关闭,这样会造成占用较多的时间在控制硬件电路启动关闭上,从而使得每个时隙中只能进行一次频点锁定和数据采集分析,造成时隙的利用率较低。由于时隙利用率较低,就会造成在所需扫描的信道数量较多时,信道的扫描耗时就会过长。故需要一种可解决以上技术问题的方法。In the private network communication technology, the device needs to be able to identify the signals present in the current air interface within a certain frequency range, so as to identify valid signals, and then provide a basis for the development of other services. The above process is defined as channel scanning. In the current TDMA system, since the hardware circuit needs to be turned on and off in each time slot, this will cause more time to be spent on controlling the hardware circuit to start and turn off, so that only one frequency point can be performed in each time slot Locking and data collection and analysis result in low utilization of time slots. Due to the low time slot utilization rate, it will cause the channel scanning to take too long when the number of channels to be scanned is large. Therefore, a method that can solve the above technical problems is needed.
发明内容Summary of the invention
本申请主要解决的技术问题是如何提高信道扫描的效率。The main technical problem solved by this application is how to improve the efficiency of channel scanning.
为解决上述技术问题,本申请采用的一个技术方案是:提供一种信道扫描的方法,所述方法包括:To solve the above technical problems, a technical solution adopted by the present application is to provide a channel scanning method, and the method includes:
获取信道描述参数,其中,所述信道描述参数用于定义要扫描的目标信道;Acquiring a channel description parameter, where the channel description parameter is used to define a target channel to be scanned;
在至少一个时隙中对所述信道描述参数定义的目标信道进行扫描,以获取信道状态信息;Scan the target channel defined by the channel description parameter in at least one time slot to obtain channel state information;
其中,在对所述目标信道的扫描过程中,在对起始目标信道扫描前控制用于信道扫描的硬件电路启动,在完成对最后一个目标信道的扫描后控制所述硬件电路关闭。Wherein, during the scanning of the target channel, the hardware circuit for channel scanning is controlled to start before scanning the initial target channel, and the hardware circuit is controlled to be closed after the scanning of the last target channel is completed.
为解决上述技术问题,本申请采用的另一个技术方案是:提供一种通信终端,所述通信终端包括:处理器、存储器、接收电路和压控振荡器电路;In order to solve the above technical problems, another technical solution adopted by the present application is to provide a communication terminal including: a processor, a memory, a receiving circuit, and a voltage-controlled oscillator circuit;
其中,所述接收电路与所述压控振荡器电路连接,用于接收来自基站的信号,并对所接收到的信号进行预处理并发送至压控振荡器电路;Wherein, the receiving circuit is connected to the voltage controlled oscillator circuit, and is used to receive the signal from the base station, preprocess the received signal and send it to the voltage controlled oscillator circuit;
所述压控振荡器电路的控制端与所述处理器连接,用于在接收到处理器的控制指令时,锁定所述控制指令对应的频率的信道;The control end of the voltage-controlled oscillator circuit is connected to the processor, and is used to lock the channel of the frequency corresponding to the control instruction when receiving the control instruction of the processor;
所述存储器用于存储程序数据;所述存储器用于存储程序数据;The memory is used to store program data; the memory is used to store program data;
所述处理器用于在运行所述程序数据,以执行如上所述的方法。The processor is used to run the program data to perform the method as described above.
为解决上述技术问题,本申请采用的又一个技术方案是:提供一种存储介质,所述存储介质存储有程序数据,所述程序数据被运行时实现如上所述的方法。To solve the above technical problem, another technical solution adopted by the present application is to provide a storage medium storing program data, and the program data is executed to implement the method described above when the program data is executed.
以上方案,通过获取用于定义要扫描的目标信道的信道描述参数,在至少一个时隙中对信道描述参数定义的目标信道进行扫描,以获取信道状态信息。其中在对信道描述参数所定义的信道扫描的过程中,仅在对起始目标信道扫描前控制用于信道扫描的硬件电路启动,并在完成最后一个信道扫描后再控制用于信道扫描的硬件电路关闭,在此过程中仅开启和关闭用于信道扫描的硬件电路各一次,实现减少硬件电路的启动和关闭,进而减少启动和关闭对扫描过程的时隙占用,提高信道扫描的效率。In the above solution, the target channel defined by the channel description parameter is scanned in at least one time slot by acquiring the channel description parameter used to define the target channel to be scanned to obtain channel state information. In the process of channel scanning defined by the channel description parameters, the hardware circuit for channel scanning is controlled to start only before the initial target channel is scanned, and the hardware for channel scanning is controlled after the last channel scan is completed The circuit is closed. In this process, the hardware circuit for channel scanning is only turned on and off once, so as to reduce the startup and shutdown of the hardware circuit, thereby reducing the time slot occupation of the scanning process by startup and shutdown, and improving the efficiency of channel scanning.
附图说明BRIEF DESCRIPTION
图1是本申请一种信道扫描的方法一实施例的流程示意图;1 is a schematic flowchart of an embodiment of a channel scanning method according to this application;
图2是本申请一种信道扫描的方法另一实施例的流程示意图;2 is a schematic flowchart of another embodiment of a channel scanning method according to this application;
图3是本申请一种信道扫描的方法又一实施例的流程示意图;3 is a schematic flowchart of another embodiment of a channel scanning method according to this application;
图4是本申请一种通信终端一实施例的结构示意图;4 is a schematic structural diagram of an embodiment of a communication terminal of the present application;
图5是本申请一种存储介质一实施例结构示意图。5 is a schematic structural diagram of an embodiment of a storage medium of the present application.
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。可以理解的是,此处所描述的具体实施例仅用于解释本申请,而非对本申请的限定。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例, 都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the drawings in the embodiments of the present application. It can be understood that the specific embodiments described here are only used for explaining the present application, rather than limiting the present application. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative work fall within the protection scope of the present application.
本申请的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise specifically limited. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally also includes Other steps or units inherent to these processes, methods, products or equipment.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to "embodiments" means that specific features, structures, or characteristics described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art understand explicitly and implicitly that the embodiments described herein can be combined with other embodiments.
首先需要说明的是,在现有技术中对于信道扫描的流程如下:在每个接收时隙开始时或者是开始之前,首先需要开启并配置用于信道扫描的硬件电路,在时隙结束时,关闭用于信道扫描的硬件电路,这样就会占用较多时隙的时间用于开关相关的硬件电路,从而造成了信道扫描的效率较低。而本申请所提供的方案则是用于解决该技术问题,用于提高信道扫描的效率。The first thing to note is that the process of channel scanning in the prior art is as follows: At or before the start of each receive time slot, the hardware circuit for channel scanning needs to be turned on and configured. At the end of the time slot, Turn off the hardware circuit used for channel scanning, which will occupy more time slots for switching related hardware circuits, resulting in lower efficiency of channel scanning. The solution provided by this application is used to solve this technical problem and to improve the efficiency of channel scanning.
请参见图1,为本申请一种信道扫描的方法一实施例流程示意图。在当前实施例中,该方法包括:Please refer to FIG. 1, which is a schematic flowchart of an embodiment of a channel scanning method according to this application. In the current embodiment, the method includes:
S110:获取信道描述参数。S110: Acquire channel description parameters.
其中,信道描述参数用于定义要扫描的目标信道。在当前实施例中,信道描述参数包括:起始目标信道的信息、信道增量和信道总数。起始目标信道是所需扫描的第一个信道,起始目标信道的信息至少包括:起始信道对应的频率。信道增量为相邻的两个扫描信道之间的间隔频率差值,后一个信道频率等于前一个信道的频率与信道的增量之和,其中,为了信道扫描的覆盖性更准确,多会将信道增量设置为相对较小的值。信道总数即是当前扫描过程中所需扫描的信道总数,与起始目标信道、信道增量共同决定了所扫描信道的频率范围。Among them, the channel description parameter is used to define the target channel to be scanned. In the current embodiment, the channel description parameters include: information of the starting target channel, channel increment and total number of channels. The start target channel is the first channel to be scanned, and the information of the start target channel includes at least: the frequency corresponding to the start channel. The channel increment is the difference between the frequency of the two adjacent scanning channels. The frequency of the latter channel is equal to the sum of the frequency of the previous channel and the increment of the channel. Set the channel increment to a relatively small value. The total number of channels is the total number of channels that need to be scanned during the current scanning process. Together with the initial target channel and channel increment, the frequency range of the scanned channels is determined.
信道描述参数的获取方式包括:由用户输入设定的。用户所设定的信道扫描参数可由用户根据实际的通信环境进行修改。用户可修改的信道参数的范围是由通信设备在出厂时设定的。其中,为了更准确地扫描信道,信道增量也可以在出厂时预先设定,并由通信终端为用户推荐,并由用户选择确定。The channel description parameter acquisition method includes: set by user input. The channel scanning parameters set by the user can be modified by the user according to the actual communication environment. The range of user-modifiable channel parameters is set by the communication device at the factory. In order to scan the channel more accurately, the channel increment can also be preset in the factory, recommended by the communication terminal for the user, and determined by the user's choice.
S120:在至少一个时隙中对信道描述参数定义的目标信道进行扫描,以获取信道状态信息。S120: Scan the target channel defined by the channel description parameter in at least one time slot to obtain channel state information.
对信道描述参数定义的目标信道的扫描,即是对目标信道进行频率锁定、数据采集的过程。故期间需要对用于信道扫描的硬件电路控制,接收数据计算分析、软件流程控制、保存扫描结果等等,具体将在下文详述。在当前实施例中,信道状态信息包括:信道信号的强度。当然在其他实施例中信道状态信息还可以包括:其所承载的信息数据。Scanning the target channel defined by the channel description parameter is the process of frequency locking and data collection on the target channel. Therefore, it is necessary to control the hardware circuit used for channel scanning, receive data calculation and analysis, software flow control, save scanning results, etc., which will be described in detail below. In the current embodiment, the channel state information includes: the strength of the channel signal. Of course, in other embodiments, the channel state information may further include: information data carried by it.
其中,在对目标信道的扫描过程中,在对起始目标信道扫描前控制用于信道扫描的硬件电路启动,在完成对最后一个目标信道的扫描后控制用于信道扫描的硬件电路关闭。用于信道扫描的硬件电路包括:接收电路和压控振荡电路。Among them, during the scanning of the target channel, the hardware circuit for channel scanning is controlled to start before scanning the initial target channel, and the hardware circuit for channel scanning is controlled to be closed after the scanning of the last target channel is completed. The hardware circuit used for channel scanning includes: a receiving circuit and a voltage-controlled oscillation circuit.
在当前实施例中,在步骤S120:在至少一个时隙中对信道描述参数定义的目标信道进行扫描,以获取信道状态信息之前还包括:发送第一启动指令至接收电路,以启动接收电路,并发送第二启动指令至压控振荡电路,以启动压控振荡电路。且在本申请所提供的技术方案中,在对如信道总数的信道扫描的过程中,正常的流程中仅会在初始信道扫描前发送一次第一启动指令和第二启动指令,分别用于启动接收电路和压控振荡电路。在完成对初始信道的扫描后或者是非最后一个信道的扫描后并不会关闭接收电路和压控振荡电路。在完成对信道扫描参数定义的所有目标信道扫描完成之后,发送第一关闭指令至接收电路,以关闭接收电路,并发送第二关闭指令至压控振荡电路,以关闭压控振荡电路。与启动接收电路和压控振荡电路相同,本申请所提供的技术方案中,在对信道描述参数所定义的信道进行扫描的过程中,仅会关闭一次接收电路和压控振荡电路,具体是直至完成对所有信道扫描后才会发送第一关闭 指令和第二关闭指令,分别用于关闭接收电路和压控振荡电路。In the current embodiment, in step S120: scanning the target channel defined by the channel description parameter in at least one time slot to obtain channel state information, the method further includes: sending a first start instruction to the receiving circuit to start the receiving circuit, And send a second start command to the voltage controlled oscillation circuit to start the voltage controlled oscillation circuit. And in the technical solution provided by the present application, in the process of scanning the channel such as the total number of channels, in the normal process, the first start instruction and the second start instruction are sent only once before the initial channel scan, which are used to start Receiving circuit and voltage control oscillation circuit. After the scan of the initial channel or the scan of the non-last channel is completed, the receiving circuit and the voltage-controlled oscillation circuit will not be closed. After completing the scanning of all target channels defined by the channel scanning parameters, a first shutdown command is sent to the receiving circuit to shut down the receiving circuit, and a second closing command is sent to the voltage controlled oscillator circuit to shut down the voltage controlled oscillator circuit. Similar to starting the receiving circuit and the voltage-controlled oscillation circuit, in the technical solution provided by the present application, in the process of scanning the channel defined by the channel description parameter, the receiving circuit and the voltage-controlled oscillation circuit will be closed only once, specifically until The first close command and the second close command will be sent only after scanning all channels, which are used to close the receiving circuit and the voltage-controlled oscillation circuit, respectively.
图1所示实施例,通过在信道描述参数定义的目标信道进行扫描的过程中,仅会在扫描起始目标信道之前开启一次用于信道扫描的接收电路和压控振荡电路,且在完成对初目标信道的扫描之后并不会关闭接收电路和压控振荡电路,仅在完成信道总数的信道的扫描后,关闭用于信道扫描的硬件电路。这样可实现减少硬件电路开启和关闭的时间,减少用于扫描的时隙中用于硬件扫描的时间,把时隙中更多的时间用于对信道描述参数定义的信道的扫描上,大大提高了信道的扫描效率。In the embodiment shown in FIG. 1, by performing scanning on the target channel defined by the channel description parameter, the receiving circuit and the voltage-controlled oscillation circuit for channel scanning will be turned on only once before the starting target channel is scanned, and After scanning the initial target channel, the receiving circuit and the voltage-controlled oscillation circuit are not turned off. Only after the channel scanning of the total number of channels is completed, the hardware circuit for channel scanning is turned off. In this way, the time for turning on and off the hardware circuit can be reduced, the time for hardware scanning in the time slot for scanning can be reduced, and more time in the time slot can be used for scanning the channel defined by the channel description parameter, which greatly improves The scanning efficiency of the channel.
请参见图2,为本申请一种信道扫描的方法另一实施例的流程示意图。在当前实施例中,对图1所示实施例中的:对信道描述参数定义的目标信道进行扫描,以获取信道状态信息做进一步的阐述。在当前实施例中,所述步骤包括:Please refer to FIG. 2, which is a schematic flowchart of another embodiment of a channel scanning method according to this application. In the current embodiment, the target channel defined by the channel description parameter is scanned in the embodiment shown in FIG. 1 to obtain channel state information for further elaboration. In the current embodiment, the steps include:
S221:先以起始目标信道作为目标信道。S221: The starting target channel is first used as the target channel.
先以目标描述参数中定义的起始目标信道作为目标信道,其中,目标信道是指即将进行扫描的信道。由于信道描述参数中定义了起始目标信道,故在完成启动用于信道扫描的硬件电路后,会先以起始目标信道作为目标信道,也是第一个进行扫描的信道。可以理解的,当用户所定义的信道描述参数没有定义起始目标信道时,会基于通信设备所对应的通信频点范围的属性自动选择默认的起始信道,并将所定义的起始信道作为目标信道,具体在此不做详述。First, the target channel defined in the target description parameter is used as the target channel, where the target channel refers to the channel to be scanned. Since the starting target channel is defined in the channel description parameter, after the start of the hardware circuit for channel scanning, the starting target channel will be used as the target channel first, which is also the first channel to be scanned. Understandably, when the user-defined channel description parameter does not define a starting target channel, the default starting channel is automatically selected based on the attributes of the communication frequency range corresponding to the communication device, and the defined starting channel is used as The target channel will not be detailed here.
S222:获取目标信道的频率,并配置压控振荡电路以锁定目标信道的频率。S222: Obtain the frequency of the target channel, and configure a voltage-controlled oscillation circuit to lock the frequency of the target channel.
在确定目标信号后,需要进一步锁定目标信道的频率。具体的,锁定目标信道的频率是由压控振荡电路对目标信道的频率锁定。所以,在获取目标信道频率后,会进一步配置压控振荡电路以锁定目标信道频率。After the target signal is determined, the frequency of the target channel needs to be further locked. Specifically, the frequency of the target channel is locked by the voltage-controlled oscillation circuit. Therefore, after acquiring the target channel frequency, a voltage-controlled oscillation circuit will be further configured to lock the target channel frequency.
在当前实施例中,当是第一个目标信道进行扫描时,由于第一个目标信道是起始目标信道,故对于第一个目标信道的锁定是只需获取起始目标信道对应的频率后,配置压控振荡电路去锁定初目标信道对应的频 率即可。In the current embodiment, when the first target channel is scanned, since the first target channel is the starting target channel, the locking of the first target channel is only after acquiring the frequency corresponding to the starting target channel To configure the voltage-controlled oscillation circuit to lock the frequency corresponding to the initial target channel.
在完成对第一个信道扫描后,对后面信道的扫描的则需要先确定当前需要扫描的目标信道。对于非第一个目标信道的确定流程如下:将上一个完成扫描的信道加上信道描述参数中所定义的信道增量,即可得到当前需要扫描的目标信道。在确定所需扫描的目标信道之后,可以基于所确定的目标信道获取对应的频率,然后配置压控振荡电路输出对应该频率的电压以锁定目标信道的频率。其中,频率锁定是指使得压控振荡电路输出一压控电压,使得信号可稳定的振荡在某一频率。S223:扫描目标信道,获取目标信道的信道状态信息。After the first channel is scanned, the following channels need to be scanned to determine the target channel that needs to be scanned. The process of determining the non-first target channel is as follows: add the last channel to be scanned and the channel increment defined in the channel description parameter to obtain the target channel that needs to be scanned currently. After determining the target channel to be scanned, the corresponding frequency can be obtained based on the determined target channel, and then the voltage-controlled oscillation circuit can be configured to output a voltage corresponding to the frequency to lock the frequency of the target channel. Among them, frequency locking refers to making the voltage-controlled oscillation circuit output a voltage-controlled voltage so that the signal can oscillate steadily at a certain frequency. S223: Scan the target channel to obtain the channel state information of the target channel.
在配置压控振荡电路锁定目标信道的频率后,开始数据的采集,以获取目标信道的信道状态信息。如上所述,当前实施例中,信道状态信息包括:信道当前的信号强度。故在进行数据的采集时,会获取所锁定的频率下的信号强度,并会将所获取的信号强度与信道信息进行对应保存。After configuring the voltage-controlled oscillation circuit to lock the frequency of the target channel, start data collection to obtain the channel status information of the target channel. As described above, in the current embodiment, the channel state information includes: the current signal strength of the channel. Therefore, when collecting data, the signal strength at the locked frequency will be obtained, and the obtained signal strength and channel information will be stored correspondingly.
在完成对目标信道的扫描,即完成数据的采集获得目标信道的信道状态信息后,会进一步保存目标信道的信道状态信息。具体的,在当前实施例中,完成对一个信道的扫描后,会对所获取的信道状态信息进行暂存,直到完成对所有的信道扫描之后方会将所获得的所有信道的状态信息一起上报保存。After completing the scan of the target channel, that is, completing the data collection to obtain the channel state information of the target channel, the channel state information of the target channel will be further saved. Specifically, in the current embodiment, after the scanning of one channel is completed, the obtained channel state information will be temporarily stored until all the channel state information obtained is reported together after completing the scanning of all channels save.
S224:若判断当前已完成扫描的信道总数小于信道总数,则以当前目标信道与信道增量之和作为新的目标信道,并执行上述目标信道的频率锁定步骤和目标信道的扫描步骤,直至当前已完成扫描的信道总数不小于所述信道总数。S224: If it is judged that the total number of channels currently scanned is less than the total number of channels, the sum of the current target channel and the channel increment is used as the new target channel, and the frequency locking step of the target channel and the scanning step of the target channel are performed until the current The total number of channels that have completed scanning is not less than the total number of channels.
由于所需扫描的信道为多个,故在完成对一个信道的扫描之后,会判断当前已完成扫描的信道总数是否小于信道总数,用以判断是否完成对信道描述参数中所定义的信道全部完成了扫描。Since there are multiple channels to be scanned, after scanning one channel, it will be judged whether the total number of channels currently scanned is less than the total number of channels, used to judge whether all the channels defined in the channel description parameters are completed Scan.
若判断当前已完成扫描的信道总数小于信道总数,则即判断当前并没有完成对信道描述参数所定义的所有信道的扫描。则需要以当前目标信道与信道增量之和作为新的目标信道,然后对所确定的新目标信道进 行目标信道的频率锁定和目标信道的扫描。然后再次判断是否已完成对信道描述参数定义的信道的扫描,当完成对所有信道扫描之后会将所有信道扫描所得的信道状态信息一起上报保存以供处理器进行处理分析,若是没有完成对所有的信道的扫描,则会进一步循环:确定新的目标信道,锁定目标信道频率、扫描目标信道以及判断是否完成所有信道的扫描。If it is judged that the total number of channels currently scanned is less than the total number of channels, it is judged that the scanning of all channels defined by the channel description parameter is not currently completed. Then, the sum of the current target channel and the channel increment needs to be used as the new target channel, and then the determined new target channel is frequency locked and scanned for the target channel. Then it is judged again whether the scanning of the channels defined by the channel description parameters has been completed. After scanning all the channels, the channel status information obtained by scanning all the channels will be reported and saved together for processing and analysis by the processor. Channel scanning will further cycle: determine the new target channel, lock the target channel frequency, scan the target channel and determine whether to complete the scan of all channels.
请参见图3,为本申请一种信道扫描的方法在另一实施例中的流程示意图。在当前实施例中,所述方法包括:Please refer to FIG. 3, which is a schematic flowchart of another channel scanning method according to this application in another embodiment. In the current embodiment, the method includes:
S310:获取信道描述参数。步骤S310与上述图1中的步骤S110相同,具体请参见上文对于步骤S110的阐述,具体在此不再赘述。S310: Acquire channel description parameters. Step S310 is the same as step S110 in FIG. 1 described above. For details, please refer to the explanation of step S110 above, and details are not repeated here.
S320:根据起始目标信道的信息、信道增量、信道总数计算在至少一个目标信道的频率。其中,目标信道包括起始目标信道、基于起始目标信道并以信道增量递增的其他目标信道。其中,其他目标信道的数量为信道描述参数中信道总数减一所对应的数值(所减的一代表的是起始目标信道的数量)。S320: Calculate the frequency of at least one target channel according to the information of the initial target channel, the channel increment, and the total number of channels. Among them, the target channel includes a start target channel, and other target channels based on the start target channel and increasing in channel increments. Among them, the number of other target channels is the value corresponding to the total number of channels in the channel description parameter minus one (the minus one represents the number of starting target channels).
在图3所示实施例中,步骤S320中会预先确定信道描述参数中所定义的信道对应的所有目标信道,并计算求的各个目标信道对应的频率,以在对目标信道进行扫描时进行依据计算所得频率依次进行配置压控振荡电路。In the embodiment shown in FIG. 3, in step S320, all target channels corresponding to the channels defined in the channel description parameters are pre-determined, and the frequency corresponding to each target channel is calculated to be used as a basis for scanning the target channel. Calculate the frequency to configure the voltage-controlled oscillation circuit in sequence.
需要说明的是,在当前实施例中,步骤S320是在进行对起始目标信道扫描,以获取信道状态信息之前即会进行的步骤。It should be noted that, in the current embodiment, step S320 is a step that will be performed before scanning the initial target channel to obtain channel state information.
S330:配置压控振荡电路,以锁定一目标信道的频率。S330: Configure a voltage-controlled oscillation circuit to lock the frequency of a target channel.
自起始目标信道对应的频率起,依次依据计算所得的所需扫描的各个目标信道的频率进行配置压控振荡器电路,以锁定一目标信道的频率,在锁定一目标信道的频率后,即会进行步骤S340,即对目标信道进行扫描,以获取目标信道的信道状态信息。Starting from the frequency corresponding to the initial target channel, the voltage-controlled oscillator circuit is configured in sequence according to the calculated frequency of each target channel to be scanned to lock the frequency of a target channel. After locking the frequency of a target channel, that is Step S340 is performed, that is, the target channel is scanned to obtain the channel state information of the target channel.
S340:扫描目标信道,获取目标信道的信道状态信息。步骤S340与上文图2所对应实施例中的步骤S223相同,具体请参见上文对于步骤S223的阐述,在此不再重复。S340: Scan the target channel to obtain channel state information of the target channel. Step S340 is the same as step S223 in the embodiment corresponding to FIG. 2 above. For details, please refer to the explanation of step S223 above, and will not be repeated here.
在当前实施例中,由于所需扫描的目标信道的频率均在步骤S320中计算求得,故在进行信道扫描时,只需要自起始目标信道对应的频率起,依次配置压控振荡电路,然后在锁定频率后进行扫描信道,获取该目标信道的信道状态信息,然后判断没有完成对所有信道的扫描后,会直接基于计算所得下一个目标信道的频率进行配置压控振荡电路,以锁定频率,然后扫描。In the current embodiment, since the frequency of the target channel to be scanned is calculated and obtained in step S320, when performing channel scanning, it is only necessary to sequentially configure the voltage-controlled oscillation circuit from the frequency corresponding to the starting target channel. Then, after the frequency is locked, the channel is scanned to obtain the channel status information of the target channel, and then it is judged that the scan of all channels is not completed, and the voltage-controlled oscillation circuit is directly configured based on the calculated frequency of the next target channel to lock the frequency And then scan.
当然在其他实施例中,还可以是在完成对一信道的扫描后,只需要依据步骤S320中计算所得的目标信道的频率,判断是否完成对所有信道的扫描,判断没有完成时,则会直接依据计算所得下一个目标信道的频率配置压控振荡电路,然后进行频率锁定、进行信道扫描。Of course, in other embodiments, after the scanning of one channel is completed, it is only necessary to determine whether the scanning of all channels is completed according to the frequency of the target channel calculated in step S320. Configure the voltage-controlled oscillation circuit according to the calculated frequency of the next target channel, and then perform frequency locking and channel scanning.
在当前实施例中,当完成对一个信道的扫描后,即会判断是否完成对信道描述参数定义的所有信道的扫描,当判断没有完成时,则会重复上述步骤S330和S340,直至判断完成对于所有信道的扫描后方停止。进一步的,在当前实施例中,当判断计算所得的目标信道均已扫描完成,将扫描得到的所有目标信道的信道状态信息上报至协议栈,以供预设业务调用。在没有完成信道的扫描时,会将扫描所得的信道状态参数暂存,等待所有信道扫描完成后一起上报保存。In the current embodiment, after scanning one channel is completed, it will be judged whether the scanning of all channels defined by the channel description parameter is completed. When the judgment is not completed, the above steps S330 and S340 will be repeated until the judgment is completed. Scanning of all channels stops afterwards. Further, in the current embodiment, when it is judged that the calculated target channels have been scanned, the channel state information of all the target channels obtained by scanning is reported to the protocol stack for the preset service to call. When the channel scan is not completed, the channel state parameters obtained by the scan are temporarily stored, and all the channel scans are reported and saved together after completion.
在本申请所提供的技术方案中,相比于现有技术方案省去了大量的开启接收电路和压控振荡电路的时间,这样每个时隙内用于进行信道扫描的时间相对较多。故在本申请所提供的技术方案中,每个时隙内所扫描的目标信道数为多个。在每个时隙中,当完成对上一个目标信道的扫描后,只需要配置压控振荡电路下一个目标信道对应的频率,利用较短的时间即可实现锁定目标信道对应的频率,这样,即可实现在一个时隙内对多个信道的扫描。In the technical solution provided by the present application, compared with the prior art solution, a large amount of time for turning on the receiving circuit and the voltage-controlled oscillation circuit is saved, so that the time for channel scanning in each time slot is relatively large. Therefore, in the technical solution provided by the present application, there are multiple target channels scanned in each time slot. In each time slot, after the scan of the previous target channel is completed, only the frequency corresponding to the next target channel of the voltage-controlled oscillation circuit needs to be configured, and the frequency corresponding to the target channel can be locked in a short time, thus, That is, multiple channels can be scanned in one time slot.
在其他的实施例中,可预先设定每个时隙内预先扫描的信道数量。以tetra系统为例,根据协议要求tetra系统每个频率点停留的时间是2ms,锁定频率的时间最大值是1ms,基于本申请所提供的方案,在信道扫描的过程中仅会启动用于信道扫描的硬件电路一次,且只会关闭硬件电路一次,所以按照tetra每个时隙时间是14.167ms计算,每个时隙中可进 行4次信道扫描,极大地提高了信道的扫描效率。在当前实施例中,可以预先设定一个时隙进行4次信道扫描,提高信道的扫描效率。基于上述例子,tetra系统中进行4次信道扫描,那么对于一个时隙中剩余时间会用于校对当前时隙中所扫描的所扫描信道的信息,和/或下一时隙中所需扫描的信道信息。In other embodiments, the number of channels pre-scanned in each time slot may be preset. Taking the tetra system as an example, according to the agreement, the dwell time of each frequency point of the tetra system is 2ms, and the maximum time of the locked frequency is 1ms. Based on the scheme provided in this application, only the channel will be activated during the channel scanning process. The hardware circuit is scanned once, and the hardware circuit is only turned off once, so according to the calculation of tetra each time slot time is 14.167ms, each channel can be scanned 4 times, greatly improving the scanning efficiency of the channel. In the current embodiment, a time slot may be preset to perform channel scanning 4 times to improve channel scanning efficiency. Based on the above example, four channel scans are performed in the tetra system, then the remaining time in one time slot will be used to check the information of the scanned channel scanned in the current time slot, and/or the channel to be scanned in the next time slot information.
总结说,即当时隙内完成扫描预先设定的信道数量的目标信道所需时间小于时隙的时长时,则会利用时隙剩余的时间进行校对当前时隙内扫描信道的信息,和/或预先校对下一时隙中所需扫描的信道信息,其中所核对的信道的信息至少包括:所扫描的信道对应的频率。It is concluded that when the time required to complete the scanning of a predetermined number of channels in the time slot is less than the time length of the time slot, the remaining time of the time slot will be used to calibrate the information of the scanning channel in the current time slot, and/or Pre-calibrate the channel information to be scanned in the next time slot, where the information of the checked channel at least includes: the frequency corresponding to the scanned channel.
在本申请提供的技术方案中,在对目标信道扫描的过程中,由于在对起始目标信道扫描结束后并没有关闭接收电路和压控振荡电路,扫描第二个信道、第三个乃至最后一个信道之前的一个信道,均无需重复控制接收电路和压控振荡电路的开关,这样既可直接配置压控振荡电路下一个目标信道对应的频率,也可减少频率的锁定时间。如经测试所得:第二目标信道频率和第一个目标信道频率相差1Mhz以内,在锁定第二个目标信道对应的频率时间则可减少到1ms之内。即使保持数据采集时间与现有技术中的时间一致,一个信道的扫描时间也会小于3ms,极大减少扫描一个信道的时间,提高了大量信道的扫描效率。如上所述,当一个时隙的时间允许的情况下,可在一个时隙内多次配置压控振荡电路,以扫描多个信道,这样当所需扫描的信道的数量达到几十乃至上百时,相比现有技术,本方案可节省大量的时间,提高了用户的使用体验,还很好地提高产品的竞争力。In the technical solution provided by the present application, in the process of scanning the target channel, since the receiving circuit and the voltage control oscillation circuit are not closed after scanning the initial target channel, the second channel, the third and the last are scanned Before a channel, there is no need to repeatedly control the switch of the receiving circuit and the voltage control oscillation circuit, so that the frequency corresponding to the next target channel of the voltage control oscillation circuit can be directly configured, and the frequency lock time can also be reduced. As a result of the test: the frequency difference between the second target channel and the first target channel is within 1Mhz, and the frequency time corresponding to locking the second target channel can be reduced to within 1ms. Even if the data collection time is kept the same as the time in the prior art, the scanning time of one channel will be less than 3 ms, which greatly reduces the time to scan one channel and improves the scanning efficiency of a large number of channels. As mentioned above, when the time of one slot allows, the voltage-controlled oscillator circuit can be configured multiple times in one slot to scan multiple channels, so that when the number of channels to be scanned reaches tens or even hundreds Compared with the existing technology, this solution can save a lot of time, improve the user experience, and also improve the competitiveness of the product.
请参见图4,为本申请一种通信终端400一实施例的结构示意图。通信终端400包括:处理器401、存储器402、接收电路403和压控振荡器电路404。Please refer to FIG. 4, which is a schematic structural diagram of an embodiment of a communication terminal 400 according to the present application. The communication terminal 400 includes a processor 401, a memory 402, a receiving circuit 403, and a voltage controlled oscillator circuit 404.
其中,接收电路403与压控振荡器电路404连接,用于接收射频信号。接收电路403中的混频器(图未示)和压控振荡器电路404还会对所接收到的射频信号进行下变频和采样预处理,并将处理所得的结果发送至处理器401。Among them, the receiving circuit 403 is connected to the voltage-controlled oscillator circuit 404 for receiving radio frequency signals. The mixer (not shown) and the voltage controlled oscillator circuit 404 in the receiving circuit 403 also perform down conversion and sampling pre-processing on the received radio frequency signal, and send the processing result to the processor 401.
压控振荡器电路404的控制端与处理器401连接,用于在接收到处理器401的控制指令时,锁定控制指令对应的目标信道的频率。其中,压控振荡器电路404与接收电路403的混频端相连。压控振荡器电路404用于对接收电路所接收的信号进行下变频处理,并在处理器401的控制下在所接收到的信号中锁定目标信道对应的频率。The control end of the voltage-controlled oscillator circuit 404 is connected to the processor 401, and is used to lock the frequency of the target channel corresponding to the control instruction when the control instruction of the processor 401 is received. The voltage-controlled oscillator circuit 404 is connected to the mixing terminal of the receiving circuit 403. The voltage-controlled oscillator circuit 404 is used to down-convert the signal received by the receiving circuit, and locks the frequency corresponding to the target channel in the received signal under the control of the processor 401.
存储器402用于存储程序数据,处理器401用于运行程序数据,以执行如上图1至图3所对应的各个实施例所述的方法。The memory 402 is used to store program data, and the processor 401 is used to run the program data to perform the methods described in the embodiments corresponding to FIG. 1 to FIG. 3 above.
参见图5,本申请还提供一种存储介质500。该存储介质500存储有程序数据501,该程序数据501被执行时实现如上所述定位信号处理的方法及各个实施例中所描述的方法。具体的,上述存储介质500可以是存储器、个人计算机、服务器、网络设备,或者U盘等其中的一种。Referring to FIG. 5, the present application also provides a storage medium 500. The storage medium 500 stores program data 501 that implements the method of positioning signal processing as described above and the method described in each embodiment when the program data 501 is executed. Specifically, the storage medium 500 may be one of a memory, a personal computer, a server, a network device, or a U disk.
以上所述仅为本申请的实施方式,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above are only the embodiments of the present application, and therefore do not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made by the description and drawings of this application, or directly or indirectly used in other related technologies In the field, the same reason is included in the scope of patent protection of this application.

Claims (10)

  1. 一种信道扫描的方法,其特征在于,所述方法包括:A method of channel scanning, characterized in that the method includes:
    获取信道描述参数,其中,所述信道描述参数用于定义要扫描的目标信道;Acquiring a channel description parameter, where the channel description parameter is used to define a target channel to be scanned;
    在至少一个时隙中对所述信道描述参数定义的目标信道进行扫描,以获取信道状态信息;Scan the target channel defined by the channel description parameter in at least one time slot to obtain channel state information;
    其中,在对所述目标信道的扫描过程中,在对起始目标信道扫描前控制用于信道扫描的硬件电路启动,在完成对最后一个目标信道的扫描后控制所述用于信道扫描的硬件电路关闭。Wherein, during the scanning of the target channel, the hardware circuit for channel scanning is controlled to start before scanning the initial target channel, and the hardware for channel scanning is controlled after the scan of the last target channel is completed The circuit is closed.
  2. 根据权利要求1所述的信道扫描的方法,其特征在于,The method of channel scanning according to claim 1, wherein:
    所述用于信道扫描的硬件电路包括:接收电路和压控振荡电路;The hardware circuit for channel scanning includes: a receiving circuit and a voltage-controlled oscillation circuit;
    所述在至少一个时隙中对所述信道描述参数定义的目标信道进行扫描,以获取信道状态信息之前,包括:Before scanning the target channel defined by the channel description parameter in at least one time slot to obtain channel state information, it includes:
    发送第一启动指令至所述接收电路,以启动所述接收电路,并发送第二启动指令至所述压控振荡电路,以启动所述压控振荡电路;Sending a first start command to the receiving circuit to start the receiving circuit, and sending a second start command to the voltage controlled oscillator circuit to start the voltage controlled oscillator circuit;
    所述方法还包括:The method also includes:
    在对所述信道描述参数定义的所有目标信道扫描完成之后,发送第一关闭指令至所述接收电路,以关闭所述接收电路,并发送第二关闭指令至所述压控振荡电路,以关闭所述压控振荡电路。After the scan of all target channels defined by the channel description parameters is completed, send a first close command to the receiving circuit to close the receiving circuit, and send a second close command to the voltage-controlled oscillation circuit to close The voltage controlled oscillation circuit.
  3. 根据权利要求2所述的信道扫描的方法,其特征在于,所述信道描述参数包括:起始目标信道的信息、信道增量和信道总数。The method of channel scanning according to claim 2, wherein the channel description parameters include: information of the starting target channel, channel increment and total number of channels.
  4. 根据权利要求3所述的信道扫描的方法,其特征在于,所述对所述信道描述参数定义的目标信道进行扫描,以获取信道状态信息,包括:The method of channel scanning according to claim 3, wherein the scanning of the target channel defined by the channel description parameter to obtain channel state information includes:
    先以所述起始目标信道作为目标信道;First use the starting target channel as the target channel;
    获取目标信道的频率,并配置所述压控振荡电路以锁定所述目标信道的频率;Obtain the frequency of the target channel, and configure the voltage-controlled oscillation circuit to lock the frequency of the target channel;
    扫描所述目标信道,获取所述目标信道的信道状态信息;Scanning the target channel to obtain channel state information of the target channel;
    若判断当前已完成扫描的信道总数小于所述信道总数,则以当前目 标信道与所述信道增量之和作为新的目标信道,并执行上述目标信道的频率锁定步骤和目标信道的扫描步骤,直至当前已完成扫描的信道总数不小于所述信道总数。If it is determined that the total number of channels currently scanned is less than the total number of channels, the sum of the current target channel and the channel increment is used as the new target channel, and the frequency locking step of the target channel and the scanning step of the target channel are performed, The total number of channels that have been scanned until now is not less than the total number of channels.
  5. 根据权利要求3所述的信道扫描的方法,其特征在于,The method of channel scanning according to claim 3, wherein
    所述在至少一个时隙中对所述信道描述参数定义的目标信道进行扫描,以获取信道状态信息之前,包括:Before scanning the target channel defined by the channel description parameter in at least one time slot to obtain channel state information, it includes:
    根据所述起始目标信道的信息、信道增量、信道总数计算在至少一个目标信道的频率,其中,所述目标信道包括所述起始目标信道、基于所述起始目标信道并以所述信道增量递增的其他目标信道,其中,所述其他目标信道的数量是所述信道总数减一对应的数值;Calculate the frequency of at least one target channel according to the information of the starting target channel, channel increment, and the total number of channels, where the target channel includes the starting target channel, based on the starting target channel and using the Other target channels with increasing channel increments, wherein the number of the other target channels is a value corresponding to the total number of channels minus one;
    所述对所述信道描述参数定义的目标信道进行扫描,以获取信道状态信息包括:The scanning of the target channel defined by the channel description parameter to obtain channel state information includes:
    配置所述压控振荡电路,以锁定一所述目标信道的频率;Configuring the voltage-controlled oscillation circuit to lock a frequency of the target channel;
    扫描所述目标信道,获取所述目标信道的信道状态信息;Scanning the target channel to obtain channel state information of the target channel;
    重复上述步骤,直至所述计算得到的目标信道均已扫描完成。Repeat the above steps until all the calculated target channels have been scanned.
  6. 根据权利要求5所述的信道扫描的方法,其特征在于,所述方法还包括:The method of channel scanning according to claim 5, wherein the method further comprises:
    在对所有目标信道扫描完成之后,将扫描得到的所有目标信道的信道状态信息上报协议栈,以供预设业务进行调用。After scanning all the target channels, the channel state information of all the target channels obtained by scanning is reported to the protocol stack for the preset service to call.
  7. 根据权利要求1所述的信道扫描的方法,其特征在于,每个所述时隙内所扫描的目标信道数为多个。The method of channel scanning according to claim 1, wherein the number of target channels scanned in each time slot is multiple.
  8. 根据权利要求1所述的信道扫描的方法,其特征在于,每个所述时隙预先设定扫描的信道数量;The method of channel scanning according to claim 1, wherein the number of channels scanned is preset for each of the time slots;
    所述方法还包括:The method also includes:
    当所述时隙内完成扫描预先设定的信道数量的所述目标信道所需时间小于所述时隙的时长,则会利用所述时隙剩余的时间进行核对当前时隙内扫描信道的信息,和/或预先校对下一时隙中所需扫描的信道信息,其中所核对的信道的信息至少包括:所扫描的信道对应的频率。When the time required for the target channel to finish scanning the preset number of channels in the time slot is less than the time length of the time slot, the remaining time of the time slot will be used to check the information of the scanned channel in the current time slot , And/or pre-calibrate the channel information to be scanned in the next time slot, where the checked channel information at least includes: the frequency corresponding to the scanned channel.
  9. 一种通信终端,其特征在于,所述通信终端包括:处理器、存储 器、接收电路和压控振荡器电路;A communication terminal, characterized in that the communication terminal includes: a processor, a memory, a receiving circuit, and a voltage-controlled oscillator circuit;
    其中,所述接收电路与所述压控振荡器电路连接,用于接收来射频信号,并对所接收到的信号进行预处理并发送至压控振荡器电路;Wherein, the receiving circuit is connected to the voltage-controlled oscillator circuit, used to receive the incoming radio frequency signal, and pre-process the received signal and send it to the voltage-controlled oscillator circuit;
    所述压控振荡器电路的控制端与所述处理器连接,用于在接收到处理器的控制指令时,锁定所述控制指令对应的目标信道的频率;The control end of the voltage controlled oscillator circuit is connected to the processor, and is used to lock the frequency of the target channel corresponding to the control instruction when receiving the control instruction of the processor;
    所述存储器用于存储程序数据;The memory is used to store program data;
    所述处理器用于在运行所述程序数据,以执行如权利要求1~8任一项所述的方法。The processor is used for running the program data to execute the method according to any one of claims 1-8.
  10. 一种存储介质,其特征在于,所述存储介质存储有程序数据,所述程序数据被运行时实现如权利要求1~8任一项所述的方法。A storage medium, characterized in that the storage medium stores program data, and when the program data is executed, the method according to any one of claims 1 to 8 is implemented.
PCT/CN2018/121262 2018-12-14 2018-12-14 Method for scanning channel, communication terminal, and storage medium WO2020118700A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/121262 WO2020118700A1 (en) 2018-12-14 2018-12-14 Method for scanning channel, communication terminal, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/121262 WO2020118700A1 (en) 2018-12-14 2018-12-14 Method for scanning channel, communication terminal, and storage medium

Publications (1)

Publication Number Publication Date
WO2020118700A1 true WO2020118700A1 (en) 2020-06-18

Family

ID=71075291

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/121262 WO2020118700A1 (en) 2018-12-14 2018-12-14 Method for scanning channel, communication terminal, and storage medium

Country Status (1)

Country Link
WO (1) WO2020118700A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6807163B1 (en) * 1999-04-01 2004-10-19 Ericsson Inc. Adaptive rate channel scanning method for TDMA wireless communications
US20090170459A1 (en) * 2002-08-12 2009-07-02 Broadcom Corporation Power management of radio transceiver elements
CN101594502A (en) * 2008-05-30 2009-12-02 株式会社东芝 Broadcast channel checkout equipment, broadcast channel detection method and channel are selected equipment
US20100099397A1 (en) * 2008-10-17 2010-04-22 Motorola, Inc. Method and device for traversing a scan list in a communication system
CN107147457A (en) * 2017-07-17 2017-09-08 中磊电子(苏州)有限公司 A kind of channel scanning method, device and wireless device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6807163B1 (en) * 1999-04-01 2004-10-19 Ericsson Inc. Adaptive rate channel scanning method for TDMA wireless communications
US20090170459A1 (en) * 2002-08-12 2009-07-02 Broadcom Corporation Power management of radio transceiver elements
CN101594502A (en) * 2008-05-30 2009-12-02 株式会社东芝 Broadcast channel checkout equipment, broadcast channel detection method and channel are selected equipment
US20100099397A1 (en) * 2008-10-17 2010-04-22 Motorola, Inc. Method and device for traversing a scan list in a communication system
CN107147457A (en) * 2017-07-17 2017-09-08 中磊电子(苏州)有限公司 A kind of channel scanning method, device and wireless device

Similar Documents

Publication Publication Date Title
US8050241B2 (en) Determining identifiers for wireless networks
CN110300432A (en) A kind of pair of equipment carries out the method and distribution network systems of distribution
US10432476B2 (en) Method, apparatus, and system for joining node to network
CN111918256A (en) Intelligent device network distribution method and device based on Bluetooth and storage medium
CN113518018B (en) Router system stability test system and test method
CN110517676A (en) A kind of voice awakening method and terminal, server, storage medium
CN112351471A (en) Method for accessing device to gateway, gateway device and computer readable storage medium
CN105847048B (en) The configuration method and device of smart machine
CN111327375B (en) Channel scanning method, communication terminal and storage medium
CN110070652A (en) A kind of access control method, system, electronic equipment and storage medium
CN115422048A (en) Link stability testing method and device, computer equipment and storage medium
CN105282830A (en) Network access method and mobile terminal
WO2020118700A1 (en) Method for scanning channel, communication terminal, and storage medium
CN108391259B (en) Bluetooth rapid pairing method
CN113407469B (en) Parameter configuration method and device, storage medium and electronic device
CN109729346A (en) Remote debugging method, debugging terminal, television terminal and the system of TV
CN107888426A (en) A kind of configuration of network-termination device, device, batch processing equipment and storage medium
CN114158111B (en) Remote network management method, device and computer readable storage medium
CN112420019B (en) Equipment testing method and device
CN113824612A (en) Network equipment compatibility testing method, terminal equipment and storage medium
CN105323373A (en) Mobile terminal, and method and device for initializing subscriber identity module card of mobile terminal
CN110139296B (en) Terminal information acquisition method and device
US11349742B2 (en) Modem and communication method
CN110248374B (en) Clock synchronization test system, method, device and storage medium of base station
CN107635228B (en) Equipment networking method based on PMK

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18942944

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 25.10.2021.)

122 Ep: pct application non-entry in european phase

Ref document number: 18942944

Country of ref document: EP

Kind code of ref document: A1