CN114585031A - Frequency point switching method and system, storage medium and electronic device - Google Patents

Frequency point switching method and system, storage medium and electronic device Download PDF

Info

Publication number
CN114585031A
CN114585031A CN202210270028.1A CN202210270028A CN114585031A CN 114585031 A CN114585031 A CN 114585031A CN 202210270028 A CN202210270028 A CN 202210270028A CN 114585031 A CN114585031 A CN 114585031A
Authority
CN
China
Prior art keywords
frequency point
value
frequency points
frequency
switching device
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.)
Granted
Application number
CN202210270028.1A
Other languages
Chinese (zh)
Other versions
CN114585031B (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.)
Zhuhai Unitech Power Technology Co Ltd
Original Assignee
Zhuhai Unitech Power 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 Zhuhai Unitech Power Technology Co Ltd filed Critical Zhuhai Unitech Power Technology Co Ltd
Priority to CN202210270028.1A priority Critical patent/CN114585031B/en
Publication of CN114585031A publication Critical patent/CN114585031A/en
Application granted granted Critical
Publication of CN114585031B publication Critical patent/CN114585031B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • H04W36/0085Hand-off measurements
    • H04W36/0088Scheduling hand-off measurements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/06Reselecting a communication resource in the serving access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • 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)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a frequency point switching method and system, a storage medium and an electronic device, wherein the method comprises the following steps: determining a plurality of frequency points corresponding to a plurality of channels, wherein the plurality of channels are channels respectively established by a switching device and a plurality of sink nodes, and the switching device is positioned in the coverage range of the plurality of sink nodes; and sending the multiple frequency points to the mobile equipment so as to indicate the mobile equipment to switch the mobile equipment to other frequency points except the first frequency point for communication under the condition that the communication quality of the mobile equipment and the first aggregation node is lower than a preset threshold value, wherein the multiple aggregation nodes are in one-to-one correspondence with the multiple frequency points, and the first aggregation node corresponds to the first frequency point.

Description

Frequency point switching method and system, storage medium and electronic device
Technical Field
The present invention relates to the field of communications, and in particular, to a method and a system for switching frequency points, a storage medium, and an electronic device.
Background
At present, the use of the power transmission and transformation equipment internet of things system based on pilot frequency networking is more and more extensive, as shown in fig. 1, fig. 1 is a schematic diagram of a pilot frequency networking network structure according to an embodiment of the present invention, wherein an access node is a communication access device in a sensing layer of the power transmission and transformation equipment internet of things, and is mainly responsible for managing a network and processing part of service data; the sink nodes are communication relay equipment in a sensing layer of the power transmission and transformation equipment Internet of things and are mainly responsible for forwarding service data, and different frequency points are used among different sink nodes; the mobile equipment is mobile terminal equipment in a sensing layer of the power transmission and transformation equipment internet of things and is mainly responsible for generating service data.
In the prior art, when the mobile device cannot communicate with the current network node, the channel scanning function needs to be turned on again, and network nodes on each channel are scanned in sequence, generally, 80 channels are scanned, and the scanning time of each channel is 1 s. That is to say, the time delay of switching network nodes by using the mobile device in the existing scheme can reach tens of seconds, which seriously affects the service application, for example, in the service scene of a computer key, a worker carries the computer key to move and operate in the areas covered by different network nodes, and the computer key can be smoothly switched among the nodes.
Aiming at the problem that in the prior art, when equipment moves between areas covered by different sink nodes, the frequency points of the different sink nodes cannot be determined quickly, and further the network switching delay of the equipment is too long, an effective solution is not provided.
Disclosure of Invention
The embodiment of the invention provides a frequency point switching method and system, a storage medium and an electronic device, which are used for at least solving the problem that in the prior art, when equipment moves among areas covered by different sink nodes, the frequency points of the different sink nodes cannot be quickly determined, and further the network switching delay of the equipment is too long.
According to an embodiment of the present invention, a method for switching frequency points is provided, including: determining a plurality of frequency points corresponding to a plurality of channels, wherein the plurality of channels are channels respectively established by a switching device and a plurality of sink nodes, and the switching device is positioned in the coverage range of the plurality of sink nodes; and sending the frequency points to a mobile device to indicate that the mobile device switches the mobile device to other frequency points except for a first frequency point for communication under the condition that the communication quality between the mobile device and the first aggregation node is lower than a preset threshold value, wherein the aggregation nodes correspond to the frequency points one by one, and the first aggregation node corresponds to the first frequency point. In an exemplary embodiment, determining a plurality of frequency points corresponding to a plurality of channels includes: acquiring all frequency points scanned by the switching device in the coverage range; and for each frequency point in all the frequency points, monitoring identification information of a main device corresponding to each frequency point, wherein the main device at least comprises one of the following devices: the plurality of sink nodes, access nodes; under the condition that the identification information of the main equipment corresponding to each frequency point is intercepted, acquiring the signal intensity of the main equipment corresponding to each frequency point so as to acquire all the intensities corresponding to all the frequency points; and determining a plurality of frequency points corresponding to the plurality of channels according to all the intensities.
In an exemplary embodiment, determining a plurality of frequency points corresponding to the plurality of channels according to the all intensities includes: determining a plurality of signal strengths with strongest signal strengths from all the strengths; and taking the frequency points corresponding to the signal intensities as the frequency points.
In one exemplary embodiment, the transmitting the plurality of frequency points to the mobile device includes: determining whether a value of a counter provided in the switching device is greater than 0; when the value of the counter is larger than 0, controlling the switching device to send a second frequency point of the frequency points to the mobile equipment, and reducing the value of the counter to a first value; and under the condition that the value of the counter is less than or equal to 0, controlling the switching device to send a first frequency point in the plurality of frequency points to the mobile equipment, and reducing the value of the counter to a second value.
In an exemplary embodiment, after decreasing the value of the counter to the second value, the method further comprises: determining whether the second value is a first preset value; and initializing the value of the counter to a second preset value under the condition that the second numerical value is a first preset value, wherein the first preset value is the minimum value of the counter, and the second preset value is the initial value of the counter.
In an exemplary embodiment, in a case that the value of the counter is greater than 0, controlling the switching device to transmit a second frequency point of the plurality of frequency points to the mobile device and reduce the value of the counter to a first value includes: controlling the switching device to monitor identification information of a main device corresponding to a first frequency point in the plurality of frequency points, wherein a modulation frequency point of the switching device is the first frequency point in the plurality of frequency points; and under the condition of monitoring the identification information of the main equipment corresponding to the first frequency point, controlling the switching device to send a second frequency point in the plurality of frequency points to the mobile equipment, and reducing the value of the counter to a first value.
In an exemplary embodiment, after controlling the switching device to transmit the second frequency point of the plurality of frequency points to the mobile device and decrease the value of the counter to the first value, the method further includes: judging whether the first numerical value is 0 or not; and when the first numerical value is 0, taking a second frequency point in the plurality of frequency points as a modulation frequency point of the switching device.
In an exemplary embodiment, in a case that the value of the counter is less than or equal to 0, controlling the switching device to transmit a first frequency point of the plurality of frequency points to the mobile device and decrease the value of the counter to a second value includes: controlling the switching device to monitor identification information of a main device corresponding to a second frequency point in the plurality of frequency points, wherein a modulation frequency point of the switching device is a first frequency point in the plurality of frequency points; and under the condition that the identification information of the main equipment corresponding to the second frequency point is intercepted, controlling the switching device to send the second frequency point in the frequency points to the mobile equipment, and reducing the value of the counter to a second value.
In an exemplary embodiment, after controlling the switching device to transmit a first frequency point of the plurality of frequency points to the mobile device and decrease the value of the counter to a second value, the method further includes: judging whether the second numerical value is a first preset value or not, wherein the first preset value is the minimum value of the counter; and when the second value is a first preset value, taking a first frequency point in the plurality of frequency points as a modulation frequency point of the switching device.
According to another embodiment of the present invention, there is provided a frequency point switching method, including: receiving a plurality of frequency points sent by a switching device, wherein the frequency points are frequency points corresponding to a plurality of channels respectively, the channels are channels established by the switching device with a plurality of sink nodes respectively, and the switching device is positioned in the coverage range of the sink nodes; under the condition that the communication quality between the mobile equipment and a first aggregation node is lower than a preset threshold value, the mobile equipment is switched to other frequency points except for the first frequency point for communication, wherein the aggregation nodes correspond to the frequency points one to one, and the first aggregation node corresponds to the first frequency point. In an exemplary embodiment, in the process of switching the mobile device to other frequency points for communication besides the first frequency point, the method further includes: receiving the multiple frequency points and the identification information of the master device corresponding to the multiple frequency points, which are sent by the switching device, wherein the master device includes at least one of the following: the plurality of aggregation nodes and the access nodes corresponding to the plurality of aggregation nodes.
In an exemplary embodiment, after receiving the multiple frequency points and the identification information of the master devices corresponding to the multiple frequency points sent by the switching apparatus, the method further includes: and under the condition that the communication quality between the mobile equipment and the first aggregation node is lower than a preset threshold value, switching the frequency point of the mobile equipment to other frequency points except the first frequency point, determining the main equipment corresponding to the other frequency points according to the received identification information of the main equipment corresponding to the multiple frequency points, and communicating with the main equipment corresponding to the other frequency points.
According to another embodiment of the present invention, there is provided a frequency point switching system, including: the mobile terminal comprises a plurality of aggregation nodes, a switching device and mobile equipment, wherein the switching device is positioned in the coverage range of the aggregation nodes, the switching device is used for determining a plurality of frequency points corresponding to a plurality of channels and sending the frequency points to the mobile equipment, the channels are channels respectively established by the switching device and the aggregation nodes, and the switching device is positioned in the coverage range of the aggregation nodes; the mobile device is connected with a first aggregation node in the aggregation nodes and used for switching the mobile device to other frequency points except for the first frequency point for communication under the condition that the communication quality between the mobile device and the first aggregation node is lower than a preset threshold value, wherein the frequency points are in one-to-one correspondence with the frequency points, and the first aggregation node corresponds to the first frequency point.
According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, in which a computer program is stored, where the computer program is configured to execute the above frequency point switching method when running.
According to another aspect of the embodiments of the present invention, there is also provided an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the frequency point switching method through the computer program.
In the embodiment of the application, a plurality of frequency points corresponding to a plurality of aggregation nodes are determined through a switching device arranged in the coverage area of the plurality of aggregation nodes, and the plurality of frequency points are sent to the mobile equipment, so that the mobile equipment is switched to other frequency points except the first frequency point for communication under the condition that the communication quality between the mobile equipment and the first aggregation node is lower than a preset threshold value. By adopting the technical scheme, the problem that in the prior art, when the equipment moves between areas covered by different sink nodes, the frequency points of the different sink nodes cannot be quickly determined, so that the network switching time delay of the equipment is too long is solved, and the network switching speed of the equipment is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a schematic diagram of an inter-frequency networking network according to an embodiment of the present invention;
fig. 2 is a block diagram of a hardware structure of a switching device of an alternative frequency point switching method according to an embodiment of the present invention;
fig. 3 is a flowchart of an alternative frequency point switching method according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a first method for transmitting multiple frequency points by an alternative switching apparatus according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a second method for transmitting multiple frequency points by an alternative switching apparatus according to an embodiment of the present invention;
fig. 6 is a flowchart of an alternative frequency point switching method applied to a mobile device according to an embodiment of the present invention;
fig. 7 is a schematic diagram of an alternative frequency point switching system according to an embodiment of the present invention;
fig. 8 is a schematic diagram of an alternative frequency point switching method according to an embodiment of the present invention;
fig. 9 is a block diagram of a selectable frequency point switching device in an embodiment of the present invention;
FIG. 10 is a functional block diagram of an alternative switching device according to an embodiment of the present invention;
fig. 11 is a schematic diagram of an alternative method for determining multiple frequency points in multiple channels by a switching device according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The method embodiments provided by the embodiments of the present application may be executed in a switching device or a similar computing device. Taking the operation on the switching device as an example, fig. 2 is a block diagram of a hardware structure of the switching device of an optional frequency point switching method according to an embodiment of the present invention. As shown in fig. 2, the switching apparatus may include one or more processors 202 (only one is shown in fig. 2) (the processor 202 may include, but is not limited to, a processing apparatus such as a microprocessor MCU or a programmable logic device FPGA) and a memory 204 for storing data, and in an exemplary embodiment, may further include a transmission device 206 for communication functions and an input-output device 208. It will be understood by those skilled in the art that the structure shown in fig. 2 is only an illustration and is not intended to limit the structure of the switching device. For example, the switching device may also include more or fewer components than shown in FIG. 2, or have a different configuration with equivalent functionality to that shown in FIG. 2 or with more functionality than that shown in FIG. 2.
The memory 204 may be used to store a computer program, for example, a software program and a module of an application software, such as a computer program corresponding to the switching of the device frequency point in the embodiment of the present invention, and the processor 202 executes various functional applications and data processing by running the computer program stored in the memory 204, so as to implement the method described above. Memory 204 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 204 may further include memory remotely located from the processor 202, which may be connected to the switching device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 206 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the switching device. In one example, the transmission device 206 includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device 206 can be a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
In this embodiment, a frequency point switching method is provided, which is applied to the above-mentioned switching device, and fig. 3 is a flowchart of an optional frequency point switching method according to an embodiment of the present invention, where the flowchart includes the following steps:
step S302, determining a plurality of frequency points corresponding to a plurality of channels, wherein the plurality of channels are channels respectively established by a switching device and a plurality of sink nodes, and the switching device is located in the coverage range of the plurality of sink nodes;
it should be noted that the multiple frequency points may be understood as: determining the frequency point of each channel in all the frequency points of each channel, wherein the frequency points are multiple due to the fact that the channels exist; for example, assuming that the channel a has 80 frequency points, one frequency point is determined from the 80 frequency points as the frequency point of the channel a.
To help understand the present solution, a feature of a pilot frequency networking network structure is introduced, as shown in fig. 1, fig. 1 is a schematic diagram of a pilot frequency networking network structure according to an embodiment of the present invention, in a communication network, there is one and only one access node, and all data need to be summarized to the access node; each communication sub-network is provided with one and only one master device node which is responsible for controlling a communication structure in the communication sub-network; other device nodes within the communication sub-network are referred to as slave device nodes; the master node can be an access node or a sink node; when the master node is a sink node, the sink node must also be a slave to another communication sub-network.
It should be noted that the switching device is located in the coverage area of the plurality of aggregation nodes, and it is understood that the switching device is located in the network coverage area of the plurality of aggregation nodes, and in this area, the switching device can communicate with each aggregation node in the plurality of aggregation nodes.
Step S304, the plurality of frequency points are sent to a mobile device to indicate that the mobile device switches the mobile device to other frequency points except a first frequency point for communication under the condition that the communication quality between the mobile device and the first aggregation node is lower than a preset threshold value, wherein the plurality of aggregation nodes correspond to the plurality of frequency points one by one, and the first aggregation node corresponds to the first frequency point.
It should be noted that the preset threshold is a threshold of the communication quality between the mobile device and the first aggregation node, and if the communication quality between the mobile device and the first aggregation node is lower than the preset threshold, the frequency point is switched, and if the communication quality is greater than the preset threshold, the frequency point is not switched.
It should be noted that the "first" in the above-mentioned "first aggregation node" does not mean that the first aggregation node is the first aggregation node in the above-mentioned plurality of aggregation nodes, but is used for distinguishing the first aggregation node from other aggregation nodes.
It should be noted that, the first frequency point and the first aggregation node may be understood as follows: and under the condition that the frequency point of the switching device is set as the first frequency point, the switching device can communicate with the first sink node.
Determining a plurality of frequency points corresponding to a plurality of channels through the steps, wherein the plurality of channels are channels respectively established by a switching device and a plurality of sink nodes, and the switching device is positioned in the coverage range of the plurality of sink nodes; and sending the frequency points to a mobile device to indicate that the mobile device switches the mobile device to other frequency points except for a first frequency point for communication under the condition that the communication quality between the mobile device and the first aggregation node is lower than a preset threshold value, wherein the aggregation nodes correspond to the frequency points one by one, and the first aggregation node corresponds to the first frequency point. By adopting the technical scheme, the problem that in the prior art, when the equipment moves between areas covered by different sink nodes, the frequency points of the different sink nodes cannot be quickly determined, and further the network switching time delay of the equipment is too long is solved.
In an exemplary embodiment, all frequency points scanned by the switching device in the coverage area are obtained; and for each frequency point in all the frequency points, monitoring identification information of a main device corresponding to each frequency point, wherein the main device at least comprises one of the following devices: the plurality of sink nodes, access nodes; under the condition that the identification information of the main equipment corresponding to each frequency point is monitored, acquiring the signal intensity of the main equipment corresponding to each frequency point so as to acquire all intensities corresponding to all frequency points; and determining a plurality of frequency points corresponding to the plurality of channels according to all the intensities.
In the embodiment of the present invention, the switching device may scan all frequency points within the coverage area through manual setting or searching, and listen to all the frequency points in a serial or parallel manner, so that for each frequency point in all the frequency points, identification information of a master device corresponding to each frequency point is required (specifically, the identification information may include a device ID of the master device, a network address of a communication sub-network controlled by the master device, a scheduling condition of the network, and the like). It should be noted that the master device may be any aggregation node in the structural schematic diagram shown in fig. 1, or an access node, and the signal strength of all frequency points is obtained by obtaining the signal strength of the master device corresponding to each frequency point. Further, determining a plurality of signal strengths with the strongest signal strength from all the strengths; and taking the frequency points corresponding to the signal intensities as the frequency points.
Optionally, in this embodiment, the frequency point corresponding to each intensity and the channel corresponding to the frequency point are determined according to the correspondence between the master device and the frequency point for all intensities, so as to obtain the correspondence between the signal intensity, the frequency point, and the channel; classifying all the intensities according to the difference of the corresponding channels, determining the strongest signal intensity corresponding to each channel according to the classification result, and determining the frequency point corresponding to the signal intensity. For example, the frequency point a is the frequency point of the first channel, the modulation frequency point of the switching device is set to the frequency point a, and the signal sent by the master device is received, so that the intensity of the master device signal received by the frequency point a corresponding to the frequency point a is determined, and by analogy, the intensity of the master device signal received by the frequency point B of the first channel, the frequency point C of the second channel, and the intensity of the master device signal received by the frequency point D of the second channel are determined. And classifying the frequency points according to different channels, namely that the first channel corresponds to: frequency point a and frequency point B, the second channel corresponds to: and determining the frequency points with stronger received signal strength in the frequency point A and the frequency point B by the frequency point C and the frequency point D, and determining the frequency point A as the frequency point of the first channel if the frequency point A is assumed.
The above embodiments illustrate how the switching device determines the multiple frequency points of the multiple channels, and next, how the switching device transmits the multiple frequency points of the multiple channels through the built-in counter will be explained through the following embodiments.
In one exemplary embodiment, it is determined whether a value of a counter provided in the switching device is greater than 0; controlling the switching device to send a second frequency point of the plurality of frequency points to the mobile equipment and reduce the value of the counter to a first value when the value of the counter is greater than 0; and under the condition that the value of the counter is less than or equal to 0, controlling the switching device to send a first frequency point in the plurality of frequency points to the mobile equipment, and reducing the value of the counter to a second value.
It should be noted that, in the foregoing description scheme of the embodiment of the present invention, only the first frequency point and the second frequency point are defined, and the scheme of the embodiment of the present invention may include multiple frequency points, which is only to give an example of taking only two frequency points, namely the first frequency point and the second frequency point, for convenience of understanding.
In one exemplary embodiment, after reducing the value of the counter to a second value, determining whether the second value is a first preset value; and initializing the value of the counter to a second preset value under the condition that the second numerical value is a first preset value, wherein the first preset value is the minimum value of the counter, and the second preset value is the initial value of the counter.
It should be noted that, both the above two embodiments only introduce a flow, and in the actual working process, the flow needs to be continuously cycled, that is, all steps from "determining whether the value of the counter is greater than 0" to "initializing the value of the counter to the second preset value when the second value is the first preset value" are continuously cycled, that is, after the value of the counter is initialized to the second preset value, the flow is cycled again, that is, whether the value of the counter is greater than 0 is then determined, and the technical purpose of periodically and alternately sending the first frequency point and the second frequency point is achieved through the above two embodiments.
It should be noted that, in the two embodiments, the first value, the second value, the first preset value, and the second preset value may be set, as shown in fig. 4, fig. 4 is a schematic diagram of a first method for sending multiple frequency points by an optional switching device according to an embodiment of the present invention, and the specific steps include:
step S402, judging whether Cnt >0 is true, if yes, executing step S404, otherwise, executing step S408;
step S404: cnt-1;
step S406: sending a second frequency point;
step S408: cnt-1;
step S410: sending a first frequency point;
step S412: judging whether Cnt is true or not, if yes, executing step S414, otherwise, ending the process;
step S414: cnt ═ T.
In FIG. 4, the first value is Cnt-1, the second value is Cnt-1, the first predetermined value is-T, and the second predetermined value is T. As shown in fig. 4, when the value of the counter set in the switching device is determined to be 0, if the value is greater than 0, the value of the counter is decreased by 1, and a bin B (corresponding to a second bin) is transmitted; when the value of the counter is less than or equal to 0, the value of the counter is also decreased by 1, and a frequency point A (equivalent to a first frequency point) is sent, when the counter is less than 0 and the value of the counter decreased by 1 is equal to-T, namely the minimum value of the counter is reached, the value of the counter is set to a maximum value T, whether the value of the counter is-T or not is judged, and when the value of the counter is-T, the value of the counter is set to T.
To help understand how the process in fig. 4 works, for example, let T be 2 and Cnt be 0, start the process, because Cnt is 0, Cnt is 0-1, send frequency point B, Cnt is not equal to-2, so the first process ends and the first process sends frequency point B; then, the above-mentioned flow in fig. 4 is cycled, where Cnt is-1 and is not greater than 0, Cnt is-1-2, and B is sent, because Cnt is-T, Cnt is assigned to 2, the second flow is ended, and the second flow sends a primary frequency point B; then, the process in fig. 4 is repeated, where Cnt is equal to 2 and is greater than 0, Cnt is equal to 2-1 and is equal to 1, and a is sent, and the process is ended for the third time, where a is sent once in the third process; the flow in fig. 4 is then repeated, where Cnt is equal to 1 and is greater than 0, and Cnt is equal to 1-1 and is equal to 0, and a is transmitted, so the fourth flow is ended, and the first frequency point a is transmitted in the fourth flow; at this time, the value of Cnt returns to 0 again, which indicates that a cycle period is ended, and the sequence of the frequency points sent in this period is: BBAA, and so on, when T is 3, BBBAAA is obtained.
In an exemplary embodiment, the switching device is controlled to listen to identification information of a master device corresponding to a first frequency point in the plurality of frequency points, wherein a modulation frequency point of the switching device is the first frequency point in the plurality of frequency points; and under the condition that the identification information of the main equipment corresponding to the first frequency point is intercepted, controlling the switching device to send a second frequency point in the frequency points to the mobile equipment, and reducing the value of the counter to a first value.
Optionally, in this embodiment, the method for controlling the switching device to send the second frequency point of the multiple frequency points to the mobile device includes: and controlling the switching device to send the second frequency point and the identification information of the main equipment corresponding to the second frequency point to the mobile equipment. For example, if the second frequency point is a frequency point of an a channel, and the a channel is an a sink node and a switching device, and the main device corresponding to the a channel is the a sink node, the second frequency point and the identification information of the a sink node are sent.
Optionally, in this embodiment, the method for controlling the switching device to listen to the identification information of the master device corresponding to the second frequency point in the multiple frequency points includes: and the control switching device monitors the identification information of the main equipment corresponding to the second frequency point according to the time sequence provided by the communication protocol.
In an exemplary embodiment, the switching device is controlled to send a second frequency point of the plurality of frequency points to the mobile device, and after the value of the counter is reduced to a first value, whether the first value is 0 is determined; and when the first numerical value is 0, taking a second frequency point in the plurality of frequency points as a modulation frequency point of the switching device. Controlling the switching device to monitor identification information of the main equipment corresponding to a second frequency point in the plurality of frequency points, wherein a modulation frequency point of the switching device is the second frequency point in the plurality of frequency points; under the condition that identification information of the main equipment corresponding to the second frequency point is monitored, controlling the switching device to send a first frequency point of the multiple frequency points to the mobile equipment, reducing the value of the counter to a second value, and judging whether the second value is a first preset value or not, wherein the first preset value is the minimum value of the counter; and when the second value is a first preset value, taking a first frequency point in the plurality of frequency points as a modulation frequency point of the switching device.
It should be noted that, in order to help understanding the foregoing embodiments, reference is made to fig. 5, and as shown in fig. 5, fig. 5 is a schematic diagram of a second method for an optional handover device to transmit multiple frequency points according to an embodiment of the present invention, and the specific steps include:
s501: judging whether Cnt >0 is true, if yes, executing step S502, otherwise, executing step S508;
s502: monitoring identification information of main equipment corresponding to the frequency point A;
s503: judging whether the identification information of the main equipment corresponding to the A is sensed or not, if so, executing the step S504, otherwise, ending the process;
S504:Cnt=Cnt-1;
s505: sending the frequency point B and the identification information of the main equipment corresponding to the frequency point B;
s506: judging whether Cnt >0 is true, if yes, executing step S507, otherwise, ending the process;
s507: the modulation frequency is frequency point B;
s508: selecting frequency point information (frequency point A and frequency point B) from the stored results;
s509: judging whether the identification information of the main equipment corresponding to the A is sensed or not, if so, executing the step S510, otherwise, ending the process;
S510:Cnt=Cnt-1;
s511: sending the frequency point A and the identification information of the main equipment corresponding to the frequency point A;
s512: judging whether Cnt is true or not, if yes, executing step S513, otherwise, ending the process;
S513:Cnt=T
s514: the modulation frequency is frequency point a.
In FIG. 5, the first value is Cnt-1, the second value is Cnt-1, the first predetermined value is-T, and the second predetermined value is T. As shown in fig. 5, when determining whether the value of the counter set by the switching device is 0, if the value is greater than 0, the identification information of the master device corresponding to the frequency point B (equivalent to the second frequency point) is monitored, and if the identification information of the master device corresponding to the frequency point B is monitored, the value of the counter of the switching device is decreased by 1, and the frequency point a (equivalent to the first frequency point) and the identification information of the master device corresponding to the frequency point a are transmitted to the mobile device; judging whether the value of the counter minus 1 is 0 or not, and if so, setting the modulation frequency point of the switching device as a frequency point A; if the value of the counter is less than or equal to 0, monitoring the identification information of the main equipment corresponding to the frequency point A, if the identification information of the main equipment corresponding to the frequency point A is monitored, subtracting 1 from the value of the counter of the switching device, and sending the frequency point B and the identification information of the main equipment corresponding to the frequency point B to the mobile device; if the value of the counter is larger than 0, the value of the interception frequency point B counter is also reduced by 1, a frequency point A (equivalent to a second frequency point) is sent, whether the value of the counter is-T or not is judged, and under the condition that the value of the counter is-T, the value of the counter is set to be T, and the modulation frequency point of the switching device is set to be frequency point B.
It should be noted that, compared to fig. 4, which emphasizes how the switching device sends multiple frequency points, fig. 5 emphasizes that the switching device sends frequency points and simultaneously listens to master device information corresponding to the frequency points, and the present application does not limit whether the switching device needs to listen to the master device information when sending multiple frequency points to the mobile device. The switching device can obtain the status and various information of the communication sub-network in which the switching device is located through the master device information, but can achieve the technical purpose of transmitting a plurality of frequency points to the mobile device even if the switching device is not listened to.
In this embodiment, a frequency point switching method is provided, which is applied to a mobile device, and fig. 6 is a flowchart of an optional frequency point switching method applied to a mobile device according to an embodiment of the present invention, where the flowchart includes the following steps:
step S602, receiving a plurality of frequency points sent by a switching device, wherein the frequency points are frequency points corresponding to a plurality of channels respectively, the channels are channels established by the switching device with a plurality of sink nodes respectively, and the switching device is located in the coverage area of the sink nodes;
it should be noted that the multiple frequency points may be understood as: determining the frequency point of each channel in all the frequency points of each channel, wherein the frequency points are multiple due to the fact that the channels exist; for example, assuming that the channel a has 80 frequency points, one frequency point is determined from the 80 frequency points as the frequency point of the channel a.
It should be noted that the switching device is located in the coverage area of the plurality of aggregation nodes, and it is understood that the switching device is located in the network coverage area of the plurality of aggregation nodes, and in this area, the switching device can communicate with each aggregation node in the plurality of aggregation nodes.
Step S604, when the communication quality between the mobile device and a first aggregation node is lower than a preset threshold, switching the mobile device to other frequency points except for a first frequency point for communication, where the aggregation nodes are in one-to-one correspondence with the frequency points, and the first aggregation node corresponds to the first frequency point.
It should be noted that the preset threshold is a threshold of the communication quality between the mobile device and the first aggregation node, and if the communication quality between the mobile device and the first aggregation node is lower than the preset threshold, the frequency point is switched, and if the communication quality is greater than the preset threshold, the frequency point is not switched.
It should be noted that the "first" in the above-mentioned "first aggregation node" does not mean that the first aggregation node is the first aggregation node in the above-mentioned plurality of aggregation nodes, but is used for distinguishing the first aggregation node from other aggregation nodes.
It should be noted that, the first frequency point and the first aggregation node may be understood as follows: and under the condition that the frequency point of the switching device is set to be the first frequency point, the switching device can communicate with the first aggregation node.
Through the steps, a plurality of frequency points sent by a switching device are received, wherein the frequency points are frequency points corresponding to a plurality of channels respectively, the channels are channels established by the switching device with a plurality of sink nodes respectively, and the switching device is positioned in the coverage range of the sink nodes; and under the condition that the communication quality between the mobile equipment and a first aggregation node is lower than a preset threshold value, switching the mobile equipment to other frequency points except for the first frequency point for communication, wherein the aggregation nodes correspond to the frequency points one by one, and the first aggregation node corresponds to the first frequency point. By adopting the technical scheme, the problem that in the prior art, when the equipment moves between areas covered by different sink nodes, the frequency points of the different sink nodes cannot be quickly determined, and further the network switching time delay of the equipment is too long is solved.
In an exemplary embodiment, the identification information of the multiple frequency points and the master devices corresponding to the multiple frequency points, which is sent by the switching apparatus, is received, where the master devices include at least one of the following: the plurality of aggregation nodes and the access nodes corresponding to the plurality of aggregation nodes.
It should be noted that the master device identification information may include: the device ID of the master device, the network address of the communication sub-network controlled by the master device, the scheduling of the network, and the like
In an exemplary embodiment, after receiving the multiple frequency points and the identification information of the master devices corresponding to the multiple frequency points sent by the switching device, under the condition that the communication quality between the mobile device and the first aggregation node is lower than a preset threshold, the frequency points of the mobile device are switched to other frequency points except the first frequency point, and the master devices corresponding to the other frequency points are determined according to the received identification information of the master devices corresponding to the multiple frequency points, so as to communicate with the master devices corresponding to the other frequency points.
It should be noted that, the determining of the master devices corresponding to the other frequency points according to the received identification information of the master devices corresponding to the multiple frequency points may be understood that the master device information may include an ID of the master device, the mobile device may determine the master devices corresponding to the other frequency points through the ID of the master device, and the frequency point of the mobile device is the other frequency point, so that the mobile device may communicate with the master devices corresponding to the other frequency points, thereby achieving a technical purpose that the mobile device performs network switching quickly.
In this embodiment, a frequency point switching system is provided, which is applied to a mobile device, and fig. 7 is a schematic diagram of an optional frequency point switching system according to an embodiment of the present invention, as shown in fig. 7, including: the mobile terminal comprises a plurality of aggregation nodes, a switching device and mobile equipment, wherein the switching device is positioned in the coverage range of the aggregation nodes, the switching device is used for determining a plurality of frequency points corresponding to a plurality of channels and sending the frequency points to the mobile equipment, the channels are channels respectively established by the switching device and the aggregation nodes, and the switching device is positioned in the coverage range of the aggregation nodes; the mobile device is connected with a first aggregation node in the aggregation nodes, and is configured to switch the mobile device to other frequency points except the first frequency point for communication when the communication quality between the mobile device and the first aggregation node is lower than a preset threshold, where the frequency points include: and the first aggregation nodes correspond to the first frequency points one by one.
In order to better understand the above frequency point switching process, the following describes the above frequency point switching process with reference to an optional embodiment, but the technical solution of the embodiment of the present invention is not limited thereto.
In this embodiment, a frequency point switching method is provided, and fig. 8 is a schematic diagram of an optional frequency point switching method according to an embodiment of the present invention, and as shown in fig. 8, the specific steps are as follows:
step S802: judging whether the mobile equipment receives the multiple frequency points sent by the switching device, if not, entering step S812 without switching the frequency points, and if so, continuing to execute step S804;
step S804: storing a plurality of frequency points at a mobile device;
step S806: judging whether the communication quality between the mobile equipment and the first aggregation node is lower than a preset threshold, if not, entering a step S812 without switching frequency points, and if so, executing a step S808;
step S808: switching the mobile equipment into a frequency point except for the first frequency point in a plurality of frequency points;
step S810: the mobile equipment communicates with the sink node corresponding to the switched frequency point;
step S812: the frequency points are not switched.
Through the steps, the problem that in the prior art, when the equipment moves between areas covered by different sink nodes, the frequency points of the different sink nodes cannot be determined quickly, and further the network switching time delay of the equipment is too long is solved. In the power transmission and transformation equipment Internet of things system based on pilot frequency networking, when mobile equipment moves among areas covered by different sink nodes, the technical scheme provided by the invention can improve the fluency and the real-time property of the mobile equipment for switching network nodes (the switching process can be ensured to be completed within 5 s).
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a frequency point switching device is further provided, and the frequency point switching device is used to implement the foregoing embodiments and preferred embodiments, which have already been described and are not described again. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware or a combination of software and hardware is also possible and contemplated.
Fig. 9 is a block diagram of a selectable frequency point switching device in an embodiment of the present invention; as shown in fig. 9, includes:
a determining module 92, configured to determine multiple frequency points corresponding to multiple channels, where the multiple channels are channels respectively established by a switching device with multiple aggregation nodes, and the switching device is located in coverage areas of the multiple aggregation nodes;
it should be noted that the multiple frequency points may be understood as: determining the frequency point of each channel in all the frequency points of each channel, wherein the frequency points are multiple due to the fact that the channels exist; for example, assuming that the channel a has 80 frequency points, one frequency point is determined from the 80 frequency points as the frequency point of the channel a.
It should be noted that the switching device is located in the coverage area of the plurality of aggregation nodes, and it is understood that the switching device is located in the network coverage area of the plurality of aggregation nodes, and in this area, the switching device can communicate with each aggregation node in the plurality of aggregation nodes.
The control module 94 is configured to send the multiple frequency points to a mobile device, so as to instruct the mobile device to switch the mobile device to other frequency points except a first frequency point for communication when the communication quality between the mobile device and the first aggregation node is lower than a preset threshold, where the multiple aggregation nodes are in one-to-one correspondence with the multiple frequency points, and the first aggregation node corresponds to the first frequency point.
It should be noted that the preset threshold is a threshold of the communication quality between the mobile device and the first aggregation node, and if the communication quality between the mobile device and the first aggregation node is lower than the preset threshold, the frequency point is switched, and if the communication quality is greater than the preset threshold, the frequency point is not switched.
It should be noted that the "first" in the above-mentioned "first aggregation node" does not mean that the first aggregation node is the first aggregation node in the above-mentioned plurality of aggregation nodes, but is used for distinguishing the first aggregation node from other aggregation nodes.
It should be noted that, the first frequency point and the first aggregation node may be understood as follows: and under the condition that the frequency point of the switching device is set to be the first frequency point, the switching device can communicate with the first aggregation node.
Determining a plurality of frequency points corresponding to a plurality of channels through the device, wherein the plurality of channels are channels respectively established by a switching device and a plurality of sink nodes, and the switching device is positioned in the coverage range of the plurality of sink nodes; and sending the frequency points to a mobile device to indicate that the mobile device switches the mobile device to other frequency points except for a first frequency point for communication under the condition that the communication quality between the mobile device and the first aggregation node is lower than a preset threshold value, wherein the aggregation nodes correspond to the frequency points one by one, and the first aggregation node corresponds to the first frequency point. By adopting the device, the problem that in the prior art, when the equipment moves between areas covered by different sink nodes, the frequency points of the different sink nodes cannot be quickly determined, and further the network switching time delay of the equipment is too long is solved.
In one exemplary embodiment, the switching device includes: the device comprises a device control unit, a communication protocol unit, a data transmission unit and a parameter storage unit, wherein the device control unit is used for controlling the switching device to send a plurality of frequency points of a plurality of channels, the communication protocol unit is used for completing the packaging and analysis of data according to a communication protocol, and the data comprises: the data transmission unit is used for connecting the switching device with an antenna to complete the receiving and sending of the data; the parameter storage unit is used for storing communication parameters, and the communication parameters comprise: the plurality of frequency points.
To help understanding the above embodiments, the explanation is made with reference to fig. 10, fig. 10 is a schematic diagram of an optional functional module of a switching device according to an embodiment of the present invention, and as shown in fig. 10, the switching device includes 4 units, which are respectively: a device control unit 1002, a communication protocol unit 1004, a data transmission unit 1006, which connects the switching device to the antenna, and a parameter storage unit 1008.
In an exemplary embodiment, the determining module 92 is further configured to acquire all frequency points scanned by the switching device in the coverage area; and for each frequency point in all the frequency points, monitoring identification information of a main device corresponding to each frequency point, wherein the main device at least comprises one of the following devices: the plurality of sink nodes, access nodes; under the condition that the identification information of the main equipment corresponding to each frequency point is intercepted, acquiring the signal intensity of the main equipment corresponding to each frequency point so as to acquire all the intensities corresponding to all the frequency points; and determining a plurality of frequency points corresponding to the plurality of channels according to all the intensities.
In the embodiment of the present invention, the switching device may scan all frequency points within a coverage area of the switching device through manual setting or a search mode, and listen to all the frequency points in a serial or parallel mode, so that for each frequency point in all the frequency points, identification information of a master device corresponding to each frequency point is required (specifically, the identification information may include a device ID of the master device, a network address of a communication sub-network controlled by the master device, a scheduling condition of a network, and the like). It should be noted that the master device may be any aggregation node in the structural schematic diagram shown in fig. 1, or an access node, and the signal strength of all frequency points is obtained by obtaining the signal strength of the master device corresponding to each frequency point. Further, determining a plurality of signal strengths with the strongest signal strength from all the strengths; and taking the frequency points corresponding to the signal intensities as the frequency points.
In an exemplary embodiment, as shown in fig. 11, fig. 11 is a schematic diagram of a method for determining multiple frequency points in multiple channels by an optional switching device in the embodiment of the present invention, where the method includes the following implementation steps:
s1101: the device control unit sets the modulation frequency point of the switching device as a frequency point k;
s1102: judging whether all frequency points are scanned, if so, executing a step S1103, otherwise, executing a step S1107;
s1103: switching to the frequency point K +1, and controlling the switching device to monitor the identification information of the main equipment corresponding to the frequency point K +1 according to the time sequence provided by the communication protocol unit
S1104: judging whether the identification information of the master equipment is sensed or not, if so, executing a step S1105, otherwise, executing a step S1101;
s1105: keeping monitoring, and recording the intensity of the signal of the main equipment received by the switching device at the frequency point K;
s1106: storing a frequency point K +1, a time sequence, the received signal intensity of the main equipment and the identification information of the corresponding main equipment;
s1107: determining a plurality of frequency points of a plurality of channels according to the stored strength of the signals of the main equipment received by the switching device;
s1108: and periodically transmitting a plurality of frequency points.
Specifically, the device control unit sets the modulation frequency point of the switching device as a frequency point K, the device control unit controls the data transmission unit to monitor information of the main device corresponding to the frequency point K according to a time sequence provided by the communication protocol unit, keeps monitoring the information of the main device under the condition that the information of the main device is monitored, records the intensity of a signal of the main device received by the switching device at the frequency point K, correspondingly stores the frequency point K, the time sequence provided by the communication protocol unit, the intensity of the signal of the main device received by the switching device at the frequency point K and the information of the main device at the frequency point K, and directly stores the frequency point K and the time sequence provided by the communication protocol unit if the information of the main device is not monitored; after the storage is finished, the modulation frequency point of the switching device is the frequency point K +1 by the device control unit, the following operation is consistent with the operation when the frequency point is K, and the frequency points K +2 and K +3 … are scanned in sequence according to the step until all the frequency points are scanned. And determining a plurality of frequency points of a plurality of channels according to the strength of the signals of the main equipment received by the stored switching device at the frequency point K.
Optionally, in this embodiment, the determining module 92 is further configured to determine, according to the correspondence between the master device and the frequency points, the frequency point corresponding to each intensity and the channel corresponding to the frequency point, so as to obtain the correspondence between the signal intensity, the frequency point, and the channel; classifying all the intensities according to the difference of the corresponding channels, determining the strongest signal intensity corresponding to each channel according to the classification result, and determining the frequency point corresponding to the signal intensity. For example, the frequency point a is the frequency point of the first channel, the modulation frequency point of the switching device is set to the frequency point a, and the signal sent by the master device is received, so that the intensity of the master device signal received by the frequency point a corresponding to the frequency point a is determined, and by analogy, the intensity of the master device signal received by the frequency point B of the first channel, the frequency point C of the second channel, and the intensity of the master device signal received by the frequency point D of the second channel are determined. And classifying the frequency points according to different channels, namely that the first channel corresponds to: frequency point a and frequency point B, the second channel corresponds to: and determining the frequency points with stronger received signal strength in the frequency point A and the frequency point B by the frequency point C and the frequency point D, and determining the frequency point A as the frequency point of the first channel if the frequency point A is assumed.
The above embodiments illustrate how the switching device determines multiple frequency points of multiple channels, and next, how the switching device transmits multiple frequency points of multiple channels through a built-in counter will be explained through the following embodiments.
In an exemplary embodiment, the determining module 92 is further configured to determine whether a value of a counter set in the switching device is greater than 0; controlling the switching device to send a second frequency point of the plurality of frequency points to the mobile equipment and reduce the value of the counter to a first value when the value of the counter is greater than 0; and under the condition that the value of the counter is less than or equal to 0, controlling the switching device to send a first frequency point in the plurality of frequency points to the mobile equipment, and reducing the value of the counter to a second value.
It should be noted that, in the foregoing description scheme of the embodiment of the present invention, only the first frequency point and the second frequency point are defined, and the scheme of the embodiment of the present invention may include multiple frequency points, which is only to give an example of taking only two frequency points, namely the first frequency point and the second frequency point, for convenience of understanding.
In an exemplary embodiment, the determining module 92 is further configured to determine whether the second value is the first preset value after reducing the value of the counter to the second value; and initializing the value of the counter to a second preset value under the condition that the second numerical value is a first preset value, wherein the first preset value is the minimum value of the counter, and the second preset value is the initial value of the counter.
It should be noted that, both the above two embodiments only introduce a flow, and in the actual working process, the flow needs to be continuously cycled, that is, all steps from "determining whether the value of the counter is greater than 0" to "initializing the value of the counter to the second preset value when the second value is the first preset value" are continuously cycled, that is, after the value of the counter is initialized to the second preset value, the flow is cycled again, that is, whether the value of the counter is greater than 0 is then determined, and the technical purpose of periodically and alternately sending the first frequency point and the second frequency point is achieved through the above two embodiments.
It should be noted that, in the two embodiments, the first value, the second value, the first preset value, and the second preset value may be set, as shown in fig. 4, fig. 4 is a schematic diagram of a first method for sending multiple frequency points by an optional switching device according to an embodiment of the present invention, where the first value in fig. 4 is Cnt-1, the second value is also Cnt-1, the first preset value is-T, and the second preset value is T. As shown in fig. 4, when the value of the counter set in the switching device is determined to be 0, if the value is greater than 0, the value of the counter is decreased by 1, and a bin B (corresponding to a second bin) is transmitted; when the value of the counter is less than or equal to 0, the value of the counter is also decreased by 1, and a frequency point A (equivalent to a first frequency point) is sent, when the counter is less than 0 and the value of the counter decreased by 1 is equal to-T, namely the minimum value of the counter is reached, the value of the counter is set to a maximum value T, whether the value of the counter is-T or not is judged, and when the value of the counter is-T, the value of the counter is set to T.
To help understand how the process in fig. 4 works, for example, let T be 2 and Cnt be 0, start the process, because Cnt is 0, Cnt is 0-1, send frequency point B, Cnt is not equal to-2, so the first process ends and the first process sends frequency point B; then, the above-mentioned flow in fig. 4 is cycled, where Cnt is-1 and is not greater than 0, Cnt is-1-2, and B is sent, because Cnt is-T, Cnt is assigned to 2, the second flow is ended, and the second flow sends a primary frequency point B; then, the process in fig. 4 is cycled, where Cnt is 2 and is greater than 0, Cnt is 2-1 and is 1, a is sent, the process is ended for the third time, and a frequency point a is sent in the third process; the flow in fig. 4 is then repeated, where Cnt is equal to 1 and is greater than 0, and Cnt is equal to 1-1 and is equal to 0, and a is transmitted, so the fourth flow is ended, and the first frequency point a is transmitted in the fourth flow; at this time, the value of Cnt returns to 0 again, which indicates that a cycle period is ended, and the sequence of the frequency points sent in this period is: BBAA, and so on, when T is 3, BBBAAA is obtained.
In an exemplary embodiment, the determining module 92 is further configured to control the switching apparatus to listen to identification information of a master device corresponding to a first frequency point of the multiple frequency points, where a modulation frequency point of the switching apparatus is the first frequency point of the multiple frequency points; and under the condition of monitoring the identification information of the main equipment corresponding to the first frequency point, controlling the switching device to send a second frequency point in the plurality of frequency points to the mobile equipment, and reducing the value of the counter to a first value.
Optionally, in this embodiment, the control module 94 is further configured to control the switching apparatus to send the second frequency point of the multiple frequency points to the mobile device by: and controlling the switching device to send the second frequency point and the identification information of the main equipment corresponding to the second frequency point. For example, the second frequency point is a frequency point of an a channel, the a channel is an a sink node and a switching device, and if the main device corresponding to the a channel is the a sink node, the second frequency point and the identification information of the a sink node are sent.
Optionally, in this embodiment, the control module 94 is further configured to control the switching apparatus to listen to the identification information of the master device corresponding to the second frequency point in the multiple frequency points by: and the control switching device monitors the identification information of the main equipment corresponding to the second frequency point according to the time sequence provided by the communication protocol.
In an exemplary embodiment, the control module 94 is further configured to control the switching device to send a second frequency point of the multiple frequency points to the mobile device, and after the value of the counter is decreased to a first value, determine whether the first value is 0; and when the first numerical value is 0, taking a second frequency point in the plurality of frequency points as a modulation frequency point of the switching device. Controlling the switching device to monitor identification information of a main device corresponding to a second frequency point in the plurality of frequency points, wherein a modulation frequency point of the switching device is the second frequency point in the plurality of frequency points; under the condition that identification information of the main equipment corresponding to the second frequency point is monitored, controlling the switching device to send a first frequency point of the multiple frequency points to the mobile equipment, reducing the value of the counter to a second value, and judging whether the second value is a first preset value or not, wherein the first preset value is the minimum value of the counter; and when the second value is a first preset value, taking a first frequency point in the plurality of frequency points as a modulation frequency point of the switching device.
It should be noted that, in order to help understanding the above embodiments, reference is made to fig. 5, and as shown in fig. 5, fig. 5 is a schematic diagram of a second method for sending multiple frequency points by an optional switching device according to an embodiment of the present invention, where a first value in fig. 5 is Cnt-1, a second value is also Cnt-1, a first preset value is-T, and a second preset value is T. As shown in fig. 5, when it is determined whether the value of the counter set in the switching device is 0, if the value is greater than 0, the identification information of the master corresponding to frequency point B (corresponding to the second frequency point) is monitored, and if the identification information of the master corresponding to frequency point B is monitored, the value of the counter of the switching device is decremented by 1, and frequency point a (corresponding to the first frequency point) and the identification information of the master corresponding to frequency point a are transmitted to the mobile device; judging whether the value of the counter minus 1 is 0 or not, and if so, setting the modulation frequency point of the switching device as a frequency point A; if the value of the counter is less than or equal to 0, monitoring the identification information of the main equipment corresponding to the frequency point A, if the identification information of the main equipment corresponding to the frequency point A is monitored, subtracting 1 from the value of the counter of the switching device, and sending the frequency point B and the identification information of the main equipment corresponding to the frequency point B to the mobile device; if the value of the counter is larger than 0, the value of the interception frequency point B counter is also reduced by 1, a frequency point A (equivalent to a second frequency point) is sent, whether the value of the counter is-T or not is judged, and under the condition that the value of the counter is-T, the value of the counter is set to be T, and the modulation frequency point of the switching device is set to be frequency point B.
It should be noted that fig. 4 emphasizes how the switching device sends multiple frequency points, while fig. 5 emphasizes that the switching device sends frequency points and simultaneously listens to master device information corresponding to the frequency points, and the present application does not limit whether the switching device needs to listen to the master device information when sending multiple frequency points to the mobile device. The switching device can obtain the status and various information of the communication sub-network in which the switching device is located through the master device information, but can achieve the technical purpose of transmitting a plurality of frequency points to the mobile device even if the switching device is not listened to.
An embodiment of the present invention further provides a storage medium including a stored program, wherein the program executes any one of the methods described above.
Alternatively, in the present embodiment, the storage medium may be configured to store program codes for performing the following steps:
s1, determining a plurality of frequency points corresponding to a plurality of channels, wherein the plurality of channels are channels respectively established by a switching device and a plurality of sink nodes, and the switching device is located in the coverage range of the plurality of sink nodes;
and S2, sending the multiple frequency points to a mobile device to indicate that the mobile device switches the mobile device to other frequency points except a first frequency point for communication under the condition that the communication quality between the mobile device and the first aggregation node is lower than a preset threshold value, wherein the multiple aggregation nodes are in one-to-one correspondence with the multiple frequency points, and the first aggregation node corresponds to the first frequency point.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, determining a plurality of frequency points corresponding to a plurality of channels, wherein the plurality of channels are channels respectively established by a switching device and a plurality of sink nodes, and the switching device is located in the coverage range of the plurality of sink nodes;
and S2, sending the multiple frequency points to a mobile device to indicate the mobile device to switch the mobile device to other frequency points except for a first frequency point for communication under the condition that the communication quality between the mobile device and the first aggregation node is lower than a preset threshold value, wherein the multiple aggregation nodes are in one-to-one correspondence with the multiple frequency points, and the first aggregation node corresponds to the first frequency point. Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing program codes, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized in a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a memory device and executed by a computing device, and in some cases, the steps shown or described may be executed out of order, or separately as individual integrated circuit modules, or multiple modules or steps thereof may be implemented as a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (15)

1. A frequency point switching method is characterized by comprising the following steps:
determining a plurality of frequency points corresponding to a plurality of channels, wherein the plurality of channels are channels respectively established by a switching device and a plurality of sink nodes, and the switching device is positioned in the coverage range of the plurality of sink nodes;
and sending the frequency points to a mobile device to indicate that the mobile device switches the mobile device to other frequency points except for a first frequency point for communication under the condition that the communication quality between the mobile device and the first aggregation node is lower than a preset threshold value, wherein the aggregation nodes correspond to the frequency points one by one, and the first aggregation node corresponds to the first frequency point.
2. The method of claim 1, wherein determining the plurality of frequency points corresponding to the plurality of channels comprises:
acquiring all frequency points scanned by the switching device in the coverage range;
and for each frequency point in all the frequency points, monitoring identification information of a main device corresponding to each frequency point, wherein the main device at least comprises one of the following devices: the plurality of sink nodes, access nodes;
under the condition that the identification information of the main equipment corresponding to each frequency point is intercepted, acquiring the signal intensity of the main equipment corresponding to each frequency point so as to acquire all the intensities corresponding to all the frequency points;
and determining a plurality of frequency points corresponding to the plurality of channels according to all the intensities.
3. The method according to claim 2, wherein determining the plurality of frequency points corresponding to the plurality of channels according to the all intensities comprises:
determining a plurality of signal strengths with the strongest signal strength from all the strengths;
and taking the frequency points corresponding to the signal intensities as the frequency points.
4. The method for switching frequency points according to claim 1, wherein the sending the plurality of frequency points to a mobile device comprises:
determining whether a value of a counter provided in the switching device is greater than 0;
controlling the switching device to send a second frequency point of the plurality of frequency points to the mobile equipment and reduce the value of the counter to a first value when the value of the counter is greater than 0;
and under the condition that the value of the counter is less than or equal to 0, controlling the switching device to send a first frequency point in the frequency points to the mobile equipment, and reducing the value of the counter to a second value.
5. The method for switching frequency bins according to claim 4, wherein after decreasing the value of the counter to a second value, the method further comprises:
determining whether the second value is a first preset value;
and initializing the value of the counter to a second preset value under the condition that the second numerical value is a first preset value, wherein the first preset value is the minimum value of the counter, and the second preset value is the initial value of the counter.
6. The method according to claim 4, wherein controlling the switching device to transmit a second frequency point of the plurality of frequency points to the mobile device and decrease the value of the counter to a first value when the value of the counter is greater than 0 comprises:
controlling the switching device to monitor identification information of a main device corresponding to a first frequency point in the plurality of frequency points, wherein a modulation frequency point of the switching device is the first frequency point in the plurality of frequency points;
and under the condition of monitoring the identification information of the main equipment corresponding to the first frequency point, controlling the switching device to send a second frequency point in the plurality of frequency points to the mobile equipment, and reducing the value of the counter to a first value.
7. The method for switching frequency points according to claim 6, wherein after controlling the switching device to transmit a second frequency point of the plurality of frequency points to the mobile device and reducing the value of the counter to a first value, the method further comprises:
judging whether the first numerical value is 0 or not;
and when the first numerical value is 0, taking a second frequency point in the plurality of frequency points as a modulation frequency point of the switching device.
8. The method according to claim 4, wherein controlling the switching device to transmit a first frequency point of the plurality of frequency points to the mobile device and decrease the value of the counter to a second value when the value of the counter is less than or equal to 0 comprises:
controlling the switching device to monitor identification information of a main device corresponding to a second frequency point in the plurality of frequency points, wherein a modulation frequency point of the switching device is the second frequency point in the plurality of frequency points;
and under the condition of monitoring the identification information of the main equipment corresponding to the second frequency point, controlling the switching device to send a first frequency point in the plurality of frequency points to the mobile equipment, and reducing the value of the counter to a second value.
9. The method for switching frequency points according to claim 8, wherein after controlling the switching device to transmit a first frequency point of the plurality of frequency points to the mobile device and reducing the value of the counter to a second value, the method further comprises:
judging whether the second numerical value is a first preset value or not, wherein the first preset value is the minimum value of the counter;
and when the second value is a first preset value, taking a first frequency point in the plurality of frequency points as a modulation frequency point of the switching device.
10. A frequency point switching method is characterized by comprising the following steps:
receiving a plurality of frequency points sent by a switching device, wherein the frequency points are frequency points corresponding to a plurality of channels respectively, the channels are channels established by the switching device with a plurality of sink nodes respectively, and the switching device is positioned in the coverage range of the sink nodes;
under the condition that the communication quality between the mobile equipment and a first aggregation node is lower than a preset threshold value, the mobile equipment is switched to other frequency points except for the first frequency point for communication, wherein the aggregation nodes comprise: the plurality of frequency points correspond to the plurality of frequency points one to one, and the first aggregation node corresponds to the first frequency point.
11. The method according to claim 10, wherein in the process of switching the mobile device to another frequency point except the first frequency point for communication, the method further comprises:
receiving the multiple frequency points and the identification information of the master device corresponding to the multiple frequency points, which are sent by the switching device, wherein the master device includes at least one of the following: the plurality of aggregation nodes and the access nodes corresponding to the plurality of aggregation nodes.
12. The method for switching frequency points according to claim 10, wherein after receiving the identification information of the plurality of frequency points and the master devices corresponding to the plurality of frequency points sent by the switching device, the method further comprises:
and under the condition that the communication quality between the mobile equipment and the first aggregation node is lower than a preset threshold value, switching the frequency point of the mobile equipment to other frequency points except the first frequency point, determining the main equipment corresponding to the other frequency points according to the received identification information of the main equipment corresponding to the multiple frequency points, and communicating with the main equipment corresponding to the other frequency points.
13. A frequency point switching system, comprising:
a plurality of aggregation nodes, a switching apparatus located within a coverage area of the plurality of aggregation nodes, a mobile device, wherein,
the switching device is used for determining a plurality of frequency points corresponding to a plurality of channels and sending the frequency points to the mobile equipment, wherein the channels are respectively established by the switching device and a plurality of sink nodes, and the switching device is positioned in the coverage range of the sink nodes;
the mobile device is connected with a first aggregation node in the aggregation nodes and used for switching the mobile device to other frequency points except for the first frequency point for communication under the condition that the communication quality between the mobile device and the first aggregation node is lower than a preset threshold value, wherein the frequency points correspond to the frequency points one by one, and the first aggregation node corresponds to the first frequency point.
14. A computer-readable storage medium, comprising a stored program, wherein the program is operable to perform the method of any of claims 1 to 9, or the method of any of claims 10 to 12.
15. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the method of any of claims 1 to 9, or the method of any of claims 10 to 12, by means of the computer program.
CN202210270028.1A 2022-03-18 2022-03-18 Frequency point switching method and device, storage medium and electronic device Active CN114585031B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210270028.1A CN114585031B (en) 2022-03-18 2022-03-18 Frequency point switching method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210270028.1A CN114585031B (en) 2022-03-18 2022-03-18 Frequency point switching method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN114585031A true CN114585031A (en) 2022-06-03
CN114585031B CN114585031B (en) 2024-03-15

Family

ID=81777018

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210270028.1A Active CN114585031B (en) 2022-03-18 2022-03-18 Frequency point switching method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN114585031B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115348672A (en) * 2022-10-20 2022-11-15 中国人民解放军国防科技大学 Communication method, communication device, electronic equipment and storage medium
CN116347629A (en) * 2023-05-30 2023-06-27 珠海优特电力科技股份有限公司 Method and device for controlling switching of equipment in Internet of things and Internet of things system

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120272276A1 (en) * 2011-04-19 2012-10-25 Ouellet-Belanger Alex System and method for providing video on demand over a quadrature amplitude modulation network
US20160007247A1 (en) * 2013-03-10 2016-01-07 Lg Electronics Inc. Method for performing channel switch in network converging plurality of communication systems and apparatus for same
CN105960015A (en) * 2016-06-16 2016-09-21 南京航空航天大学 Passive location method based on multi-channel energy measurement of wireless sensor network
US20170006623A1 (en) * 2014-01-21 2017-01-05 Telefonaktiebolaget Lm Ericsson (Publ) Scheduling for heterogeneous networks
US20190327778A1 (en) * 2018-04-19 2019-10-24 Qualcomm Incorporated Reliable wireless communication with a source using relayed communication
CN110392437A (en) * 2019-07-29 2019-10-29 上海载德信息科技有限公司 A kind of switching method, device, terminal and the storage medium of terminal works frequency point
CN111095972A (en) * 2017-09-15 2020-05-01 诺基亚通信公司 Global optimization procedure for link association
CN112087784A (en) * 2019-06-13 2020-12-15 中国移动通信集团浙江有限公司 Pilot frequency switching method and device based on uplink coverage
WO2021217393A1 (en) * 2020-04-28 2021-11-04 深圳市大疆创新科技有限公司 Channel frequency point processing method and apparatus
CN113938937A (en) * 2021-09-22 2022-01-14 交控科技股份有限公司 Method, device and storage medium for configuring different-frequency measurement frequency points
CN114006665A (en) * 2021-11-01 2022-02-01 杭州联芯通半导体有限公司 Detection method of idle channel, electronic device and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120272276A1 (en) * 2011-04-19 2012-10-25 Ouellet-Belanger Alex System and method for providing video on demand over a quadrature amplitude modulation network
US20160007247A1 (en) * 2013-03-10 2016-01-07 Lg Electronics Inc. Method for performing channel switch in network converging plurality of communication systems and apparatus for same
US20170006623A1 (en) * 2014-01-21 2017-01-05 Telefonaktiebolaget Lm Ericsson (Publ) Scheduling for heterogeneous networks
CN105960015A (en) * 2016-06-16 2016-09-21 南京航空航天大学 Passive location method based on multi-channel energy measurement of wireless sensor network
CN111095972A (en) * 2017-09-15 2020-05-01 诺基亚通信公司 Global optimization procedure for link association
US20190327778A1 (en) * 2018-04-19 2019-10-24 Qualcomm Incorporated Reliable wireless communication with a source using relayed communication
CN112087784A (en) * 2019-06-13 2020-12-15 中国移动通信集团浙江有限公司 Pilot frequency switching method and device based on uplink coverage
CN110392437A (en) * 2019-07-29 2019-10-29 上海载德信息科技有限公司 A kind of switching method, device, terminal and the storage medium of terminal works frequency point
WO2021217393A1 (en) * 2020-04-28 2021-11-04 深圳市大疆创新科技有限公司 Channel frequency point processing method and apparatus
CN113938937A (en) * 2021-09-22 2022-01-14 交控科技股份有限公司 Method, device and storage medium for configuring different-frequency measurement frequency points
CN114006665A (en) * 2021-11-01 2022-02-01 杭州联芯通半导体有限公司 Detection method of idle channel, electronic device and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李胜;施伟斌;: "汇聚树协议的多信道通信算法研究", 数据通信, no. 06 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115348672A (en) * 2022-10-20 2022-11-15 中国人民解放军国防科技大学 Communication method, communication device, electronic equipment and storage medium
US11910440B1 (en) 2022-10-20 2024-02-20 National University Of Defense Technology Method and apparatus for communication, electronic device, and storage medium
CN116347629A (en) * 2023-05-30 2023-06-27 珠海优特电力科技股份有限公司 Method and device for controlling switching of equipment in Internet of things and Internet of things system
CN116347629B (en) * 2023-05-30 2023-08-25 珠海优特电力科技股份有限公司 Method and device for controlling switching of equipment in Internet of things and Internet of things system

Also Published As

Publication number Publication date
CN114585031B (en) 2024-03-15

Similar Documents

Publication Publication Date Title
CN114585031B (en) Frequency point switching method and device, storage medium and electronic device
KR100735903B1 (en) Radio-network control apparatus and radio-network control method
CN106465202B (en) Method for controlling handover in mobile communication network and apparatus and system for implementing the same
CN109088781B (en) Configuration method and device of wireless radio frequency parameters and intelligent household appliance
RU2582056C2 (en) Method of determining operational channel in communication network, energy-restricted device and proxy device
CN109600809B (en) Channel switching method, device and equipment
CN106297228B (en) The control method and control system of ZigBee-network
CN104581812A (en) WLAN measuring method, LTE base station, terminal and WLAN base station
CN112671904B (en) Method and device for transmitting equipment state information, storage medium and electronic device
EP3193534A1 (en) Mobile terminal controlling method and mobile terminal
CN109462425A (en) A kind of beam scanning indicating means and its device
EP3267714A1 (en) Method and system for selecting a communication interface
CN111669832A (en) Automatic channel selection method and device for wireless ad hoc network
CN104684013B (en) The anti-interference method and device of wireless telecommunications
CN113518125A (en) Offline data uploading method and system, storage medium and electronic device
JP2003289309A (en) Radio communication terminal
CN104869644A (en) Data transmission method and devices
CN107454676B (en) Robot communication and control method and device
CN104380243A (en) System and method for network discovery
CN112422674A (en) Equipment networking method and device
CN114945202B (en) Channel switching method and device for low-voltage area micropower wireless communication network
CN107071856A (en) A kind of node cut-in method of channel wireless radio multi Mesh network
CN111757275B (en) Device connection method and device, storage medium and electronic device
CA3165334A1 (en) Techniques for multi-data rate communications
JP2003229892A (en) Network communication system and its method

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