Channel selection method, LPWAN gateway and wireless communication system

By using a frequency hopping sequence selection method based on network identifier in the LPWAN gateway, selecting the target subchannel from multiple subchannels, the problem of the LPWAN gateway in subchannel selection is solved, the system's anti-interference ability and terminal node reception efficiency are improved, and frequency conflicts are reduced.

CN119789220APending Publication Date: 2025-04-08CHINA GRIDCOM +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411761450.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-29
Publication Date
2025-04-08

AI Technical Summary

Technical Problem

The LPWAN gateway lacks an effective method when selecting subchannels, resulting in complex detection of terminal nodes on multiple subchannels, increasing the probability of missing broadcast beacon frames, and may trigger frequency conflicts between adjacent gateways.

Method used

The frequency hopping sequence is obtained by a network identifier based on the LPWAN gateway, and the target subchannel is selected from the multiple subchannels according to the beacon period count value of the broadcast beacon frame. This method determines the sequence number of the target subchannel by the index value of the frequency hopping sequence, ensuring that broadcast beacon frames are sent on the target subchannel.

Benefits of technology

The anti-interference characteristics of the LPWAN gateway wireless communication system are improved, the reception complexity of the terminal nodes and the probability of missing broadcast beacon frames is reduced, and the frequency conflict between adjacent gateways is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119789220A_ABST
    Figure CN119789220A_ABST
Patent Text Reader

Abstract

The invention discloses a channel selection method, an LPWAN gateway and a wireless communication system, and relates to the technical field of communication. In one embodiment, an LPWAN gateway can obtain a frequency hopping sequence and a count value for counting a beacon period of a broadcast beacon frame, and then select a target sub-channel from a plurality of sub-channels based on a target element indexed as the count value in the frequency hopping sequence. Because the target sub-channel can be selected from the plurality of sub-channels based on the frequency hopping sequence, on one hand, the anti-interference characteristic of the wireless communication system where the LPWAN gateway is located can be improved; and on the other hand, the terminal can be prevented from detecting on a plurality of sub-channels, so that the receiving complexity of the terminal and the probability of missing broadcast beacon frames are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a channel selection method, a LPWAN gateway, and a wireless communication system. Background Art

[0002] In a low-power wide-area network (LPWAN), a service gateway usually configures multiple sub-channels to transmit data with terminal nodes. To transmit data through multiple sub-channels, it is necessary to ensure that the time of the terminal node and the service gateway is synchronized to a certain extent.

[0003] At present, due to cost and power consumption considerations, terminal nodes in LPWAN usually do not have external time synchronization modules, such as global positioning system (GPS) clocks. Therefore, terminal nodes need to obtain the network time of the service gateway and use the network time as the local reference time.

[0004] Currently, the service gateway can send a broadcast beacon frame, which includes the network time of the gateway. The terminal node can periodically open a receiving window to receive the broadcast beacon frame and calibrate its own time based on the network time in the broadcast beacon frame. However, before sending the broadcast beacon frame, the service gateway needs to select a subchannel from multiple subchannels and send the broadcast beacon frame on the subchannel. Summary of the invention

[0005] The present application provides a channel selection method, a LPWAN gateway, and a wireless communication system, and the technical solution is as follows:

[0006] On the one hand, a channel selection method is provided, which is applied to a LPWAN gateway; the method comprises:

[0007] Based on the network identifier of the LPWAN gateway, obtaining a frequency hopping sequence;

[0008] Obtaining a count value obtained by counting the beacon period of the broadcast beacon frame;

[0009] Based on a target element in the frequency hopping sequence whose index is the count value, a target subchannel is selected from a plurality of subchannels of the LPWAN gateway, wherein a sequence number of the target subchannel is determined based on the target element.

[0010] Optionally, obtaining a frequency hopping sequence based on a network identifier of the LPWAN gateway includes:

[0011] Based on the network identifier of the LPWAN gateway, obtaining a pseudo-random bit sequence;

[0012] Based on the pseudo-random bit sequence, a frequency hopping sequence is acquired.

[0013] Optionally, any element x[n] in the pseudo-random bit sequence X satisfies:

[0014]

[0015] r is the number of bytes occupied by the network identifier, r is an integer greater than or equal to 1, and MSB (·) means that NetID is written to x[0,1,2,…,(8 r -1)], NetID refers to the network identifier, n is a natural number greater than or equal to 0, and ⊕ represents an exclusive-OR operation.

[0016] Optionally, the mth element s[m] in the frequency hopping sequence S satisfies:

[0017]

[0018] Wherein, m is an integer greater than or equal to 0, i is an integer greater than or equal to 0 and less than or equal to (p-1), C is 24, and p is the maximum bit width of the frequency hopping sequence.

[0019] Optionally, selecting a target subchannel from a plurality of subchannels of the LPWAN gateway based on a target element whose index is the count value in the frequency hopping sequence includes:

[0020] From the frequency hopping sequence, obtaining a target element whose index is the count value;

[0021] The remainder obtained by dividing the target element by the total number of the plurality of sub-channels is determined as a target sequence number;

[0022] A subchannel with a sequence number equal to the target sequence number among the multiple subchannels is determined as a target subchannel.

[0023] Optionally, after selecting a target subchannel from a plurality of subchannels of the LPWAN gateway based on a target element indexed as the count value in the frequency hopping sequence, the method further includes:

[0024] The broadcast beacon frame is sent on the target subchannel, wherein the broadcast beacon frame includes the network time of the LPWAN gateway, and the network time is used by a terminal to calibrate the time of the terminal.

[0025] In another aspect, a LPWAN gateway is provided, the LPWAN gateway comprising a processor; the processor is configured to:

[0026] Based on the network identifier of the LPWAN gateway, obtaining a frequency hopping sequence;

[0027] Obtaining a count value obtained by counting the beacon period of the broadcast beacon frame;

[0028] Based on a target element in the frequency hopping sequence whose index is the count value, a target subchannel is selected from a plurality of subchannels of the LPWAN gateway, wherein a sequence number of the target subchannel is determined based on the target element.

[0029] Optionally, the processor is used to:

[0030] Based on the network identifier of the LPWAN gateway, obtaining a pseudo-random bit sequence;

[0031] Based on the pseudo-random bit sequence, a frequency hopping sequence is acquired.

[0032] On the other hand, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the channel selection method as described in the above aspects is implemented.

[0033] On the other hand, a wireless communication system is provided, the system comprising: a terminal, and the LPWAN gateway as described in the above aspects.

[0034] The beneficial effects brought about by the technical solution provided by this application include at least:

[0035] The present application provides a channel selection method, an LPWAN gateway, and a wireless communication system, wherein the LPWAN gateway can obtain a frequency hopping sequence and a count value for counting the beacon period of a broadcast beacon frame, and then select a target subchannel from multiple subchannels based on a target element indexed by the count value in the frequency hopping sequence. Since the target subchannel can be selected from multiple subchannels based on the frequency hopping sequence, on the one hand, the anti-interference characteristics of the wireless communication system where the LPWAN gateway is located can be improved; on the other hand, the terminal can be prevented from performing detection on multiple subchannels, thereby reducing the terminal's reception complexity and the probability of missing a broadcast beacon frame. Furthermore, since the frequency hopping sequence is obtained based on the network identifier of the LPWAN gateway, and the network identifiers of any two LPWAN gateways are usually different, it can be ensured that the frequency hopping sequences used by different LPWAN gateways are different, thereby reducing frequency conflicts between adjacent LPWAN gateways and reducing interference.

[0036] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 is a structural diagram of a wireless communication system provided in an embodiment of the present application;

[0038] Figure 2 is a flow chart of a channel selection method provided by an embodiment of the present application;

[0039] Figure 3 is a flow chart of another channel selection method provided by an embodiment of the present application;

[0040] Figure 4 It is a structural diagram of a LPWAN gateway provided in an embodiment of the present application. DETAILED DESCRIPTION

[0041] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

[0042] Figure 1 is a schematic diagram of the structure of a wireless communication system provided in an embodiment of the present application. Figure 1 The system includes: an LPWAN gateway 100 and a terminal 200. A wireless communication connection is established between the LPWAN gateway 100 and the terminal 200. The wireless communication connection may be a communication connection established based on the LoRaWAN technology.

[0043] Optionally, the terminal 200 may be a smart sensor, a water meter, a gas meter, a tracking and positioning device (such as a pet tracker), a smoke alarm, a security camera or a smart street lamp, etc. Among them, the smart sensor can be used to monitor various environmental parameters, such as temperature, humidity, pressure, light, etc.

[0044] The present application embodiment provides a channel selection method, which is applied to a LPWAN gateway. Figure 2 , the method comprising:

[0045] Step 101: Acquire a frequency hopping sequence based on a network identifier of a LPWAN gateway.

[0046] In the embodiment of the present application, the LPWAN gateway may first obtain a pseudo-random bit sequence based on a network identifier (NetID) of the LPWAN, and then obtain a frequency hopping sequence based on the pseudo-random bit sequence.

[0047] Each LPWAN gateway has a NetID, and the NetID of each LPWAN gateway is used to uniquely identify the LPWAN gateway among multiple LPWAN gateways.

[0048] Step 102: Obtain a count value obtained by counting the beacon period of the broadcast beacon frame.

[0049] When the LPWAN gateway sends a broadcast beacon frame, it can count the beacon period of the broadcast beacon frame, thereby obtaining a count value t obtained by counting the beacon period. beacon The count value t beacon The value range can be [0, 2 b -1].

[0050] Step 103: Based on a target element in the frequency hopping sequence whose index is a count value of a beacon period, a target subchannel is selected from a plurality of subchannels of the LPWAN gateway.

[0051] In an embodiment of the present application, the LPWAN gateway may first obtain a target element whose index is a count value of a beacon period from a frequency hopping sequence. Then, the LPWAN gateway may determine the remainder obtained by dividing the target element by the total number of multiple sub-channels as the target sequence number. Afterwards, the LPWAN gateway may determine the sub-channel with the target sequence number among the multiple sub-channels as the target sub-channel. That is, the sequence number of the target sub-channel is determined based on the target element.

[0052] In summary, an embodiment of the present application provides a channel selection method, in which the LPWAN gateway can obtain a frequency hopping sequence and a count value for counting the beacon period of a broadcast beacon frame, and then select a target subchannel from multiple subchannels based on a target element indexed by the count value in the frequency hopping sequence. Since the target subchannel can be selected from multiple subchannels based on the frequency hopping sequence, on the one hand, the anti-interference characteristics of the wireless communication system where the LPWAN gateway is located can be improved; on the other hand, the terminal can be prevented from performing detection on multiple subchannels, thereby reducing the terminal's reception complexity and the probability of missing broadcast beacon frames. In addition, since the frequency hopping sequence is obtained based on the network identifier of the LPWAN gateway, and the network identifiers of any two LPWAN gateways are usually different, it can be ensured that the frequency hopping sequences used by different LPWAN gateways are different, thereby reducing frequency conflicts between adjacent LPWAN gateways and reducing interference.

[0053] Figure 3 is a flow chart of another channel selection method provided by an embodiment of the present application, which can be applied to a LPWAN gateway in a wireless communication system. Figure 3 , the method may include:

[0054] Step 201: Acquire a frequency hopping sequence based on a network identifier of a LPWAN gateway.

[0055] In the embodiment of the present application, the process of the LPWAN gateway acquiring the frequency hopping sequence based on the NetID of the LPWAN gateway may include:

[0056] Step S1: Based on the NetID of the LPWAN gateway, a pseudo-random bit sequence is obtained.

[0057] In an embodiment of the present application, the LPWAN gateway may write the NetID of the LPWAN gateway into an array of a target length in order from high to low, to obtain a first subsequence of a pseudo-random bit sequence. Then, the LPWAN gateway may obtain a pseudo-random sequence based on the first subsequence. Specifically, the LPWAN gateway may obtain the pseudo-random sequence in a recursive manner based on the first subsequence. That is, the LPWAN gateway may obtain a second subsequence based on the first subsequence, and then obtain a third subsequence based on the second subsequence. And so on, to obtain the Qth subsequence, thereby obtaining a pseudo-random sequence. The pseudo-random sequence includes: a first subsequence to a Qth subsequence. Q is an integer greater than 1.

[0058] The NetID of each LPWAN gateway is used to uniquely identify the LPWAN gateway among multiple LPWAN gateways. The NetID can be used for a terminal that needs to be connected to the LPWAN gateway to accurately connect to the LPWAN gateway, and then correctly transmit data with the LPWAN network. The target length can be equal to the length of the NetID.

[0059] For example, any element x[n] in the pseudo-random sequence X may satisfy:

[0060]

[0061] In formula (1), r is the number of bytes occupied by NetID, 8 r The number of bits occupied by the NetID, n is a natural number greater than or equal to 0. MSB(·) means that the NetID is written to x[0,1,2,…,(8 r -1)]. ⊕ represents the exclusive OR operation.

[0062] From formula (1), we can see that the first element x[0] of the pseudo-random sequence is the highest bit of NetID, the second element x[1] is the second highest bit of NetID, and so on. r -2] is the second lowest bit of NetID, x[8 r -1] is the lowest bit of NetID. x[8 r ] can be obtained based on x[0], x[1], x[2] and x[3].

[0063] Optionally, the length of the NetID may be 3 bytes, that is, r is 3.

[0064] For example, assume that the length of NetID is 3Byte, that is, 8 r is 24 bits (bit), and the target length is also 24. Then the pseudo-random sequence can satisfy:

[0065]

[0066] Step S2: Acquire a frequency hopping sequence based on the pseudo-random bit sequence.

[0067] After the LPWAN gateway obtains the pseudo-random sequence, it can obtain the frequency hopping sequence based on the pseudo-random sequence.

[0068] Among them, any element s[m] in the frequency hopping sequence S can satisfy:

[0069]

[0070] In formula (3), m is an integer greater than or equal to 0. i is an integer greater than or equal to 0 and less than or equal to (p-1). C is a constant and is 24. p is the maximum bit width of the frequency hopping sequence, and p depends on the total number of multiple valid sub-channels configured by the LPWAN gateway. C ] can be calculated using the above formula (1).

[0071] In the embodiment of the present application, the LPWAN gateway can configure the transmission period of the broadcast beacon frame and the sub-channel sequence [Ch0, Ch1, ..., Ch k , ..., Ch n-1 ] The sub-channel sequence includes a plurality of sub-channels Ch k The multiple sub-channels can be arranged in order of frequency from small to large.

[0072] Where k is the sequence number of the subchannel. And k is greater than or equal to 0 and less than or equal to (K-1). K is the total number of multiple subchannels, that is, the maximum bit width p of the frequency hopping sequence mentioned above is determined by K, and K≤2 p , that is, p ≥ log2 K The multiple sub-channels are activated sub-channels currently configured by the LPWAN, that is, valid sub-channels.

[0073] Since the total number K of multiple sub-channels determines the size of p, the change in the size of p is accompanied by the automatic change of all parameters without the need to reconfigure these parameters through air interface signaling and interaction. Therefore, the method provided in the embodiment of the present application supports automatic adaptation and generation of frequency hopping sequences under different available channel configurations without the need to reconfigure parameters, thereby reducing a large amount of signaling interaction and air interface signaling overhead, thereby reducing the power consumption of the terminal and extending the standby time.

[0074] Step 202: Obtain a count value obtained by counting the beacon period of the broadcast beacon frame.

[0075] When the LPWAN gateway sends a broadcast beacon frame, it can count the beacon period of the broadcast beacon frame, thereby obtaining a count value t obtained by counting the beacon period. beacon .

[0076] The beacon period is the time interval for the LPWAN gateway to send broadcast beacon frames. The beacon period can be configured by the LPWAN gateway. The count value can be an integer greater than or equal to 0, and the count value t beacon The value range of can be determined by the bit length occupied by the count value. For example, the count value t beacon The value range can be [0, 2 b -1], that is, t beacon Can be greater than or equal to 0, and less than or equal to (2 b -1). That is, if the count value of a beacon cycle reaches (2 b -1), the count value of the next beacon period will be reset to 0.

[0077] For example, assuming b is 4, then the count value t beacon The value range of can be [0, 15]. That is, the count value of the first beacon cycle is 0, the count value of the second beacon cycle is 1, and so on, the count value of the fifteenth beacon cycle is 14, the count value of the sixteenth beacon cycle is 15, the count value of the seventeenth beacon cycle is 0, and the count value of the eighteenth beacon cycle is 1. This cycle is repeated to obtain the count value of each beacon cycle.

[0078] It is understandable that even if the broadcast beacon frame fails to be sent this time, if the subchannel used to send the broadcast beacon frame is occupied, the count value of the beacon period of the broadcast beacon frame will still increase when it is sent next time.

[0079] Step 203: Based on a target element in the frequency hopping sequence whose index is a count value of a beacon period, a target subchannel is selected from a plurality of subchannels of the LPWAN gateway.

[0080] The sequence number of the target subchannel is determined based on the target element.

[0081] In the embodiment of the present application, the LPWAN gateway may first obtain the target element whose index is the count value of the beacon period from the frequency hopping sequence, that is, s[t beacon Then, the LPWAN gateway can convert the target element s[t beacon ] divided by the total number of sub-channels N Ch The remainder obtained is determined as the target sequence number. That is, the target sequence number l can satisfy: l = (s[t Beacon ])modN Ch Afterwards, the LPWAN gateway may determine the sub-channel having the target sequence number among the multiple sub-channels as the target sub-channel.

[0082] That is, the target subchannel is the subchannel sequence [Ch0, Ch1, ..., Ch k , ..., Ch n-1 ], the subchannel Ch with sequence number l l .

[0083] Step 204: Send a broadcast beacon frame on the target subchannel.

[0084] After the LPWAN gateway determines the target subchannel from multiple subchannels, it can send a broadcast beacon frame on the target subchannel. The broadcast beacon frame may include the network time of the LPWAN gateway. The network time is used for the terminal to calibrate the time of the terminal so that the corrected time of the terminal is synchronized with the time of the LPWAN gateway.

[0085] In an embodiment of the present application, the broadcast beacon frame may further include: a count value of the beacon period of the broadcast beacon frame. In this way, a terminal newly connected to the LPWAN gateway can determine the current frequency hopping sequence state based on the count value and quickly adjust its own frequency hopping sequence, thereby synchronizing the frequency hopping sequence with other devices in the network.

[0086] It can be understood that, in addition to enabling a terminal newly accessing the LPWAN to quickly synchronize the frequency hopping sequence by including the count value in the broadcast beacon frame, the terminal can also query the LPWAN gateway for the count value through other signaling messages.

[0087] In addition, the terminal can also query the LPWAN gateway through the other signaling message about the duration from the current time to the next beacon window.

[0088] It is understandable that the sequence of the steps of the channel selection method provided in the embodiment of the present application can be appropriately adjusted, and the steps can also be increased or decreased accordingly according to the situation. For example, step 204 can be deleted according to the situation. Any technician familiar with the technical field can easily think of a method of variation within the technical scope disclosed in this application, which should be included in the protection scope of this application, so it will not be repeated.

[0089] In summary, an embodiment of the present application provides a channel selection method, in which the LPWAN gateway can obtain a frequency hopping sequence and a count value for counting the beacon period of a broadcast beacon frame, and then select a target subchannel from multiple subchannels based on a target element indexed by the count value in the frequency hopping sequence. Since the target subchannel can be selected from multiple subchannels based on the frequency hopping sequence, on the one hand, the anti-interference characteristics of the wireless communication system where the LPWAN gateway is located can be improved; on the other hand, the terminal can be prevented from performing detection on multiple subchannels, thereby reducing the terminal's reception complexity and the probability of missing broadcast beacon frames. In addition, since the frequency hopping sequence is obtained based on the network identifier of the LPWAN gateway, and the network identifiers of any two LPWAN gateways are usually different, it can be ensured that the frequency hopping sequences used by different LPWAN gateways are different, thereby reducing frequency conflicts between adjacent LPWAN gateways and effectively reducing interference.

[0090] The present application embodiment provides a LPWAN gateway, see Figure 4 The LPWAN gateway 100 includes a processor 110. The processor 110 is used for:

[0091] Obtain a frequency hopping sequence based on a network identifier of the LPWAN gateway;

[0092] Obtaining a count value obtained by counting the beacon period of the broadcast beacon frame;

[0093] Based on a target element whose index is a count value in the frequency hopping sequence, a target subchannel is selected from multiple subchannels of the LPWAN gateway, and a sequence number of the target subchannel is determined based on the target element.

[0094] Optionally, the processor 110 may be configured to:

[0095] Obtain a pseudo-random bit sequence based on a network identifier of the LPWAN gateway;

[0096] Based on the pseudo-random bit sequence, a frequency hopping sequence is obtained.

[0097] Optionally, any element x[n] in the pseudo-random bit sequence X satisfies:

[0098]

[0099] r is the number of bytes occupied by the network identifier, r is an integer greater than or equal to 1, and MSB (·) means that the NetID is written to x[0,1,2,…,(8 r -1)], NetID refers to the network identifier, n is a natural number greater than or equal to 0, and ⊕ represents the exclusive OR operation.

[0100] Optionally, the mth element s[m] in the frequency hopping sequence S satisfies:

[0101]

[0102] Wherein, m is an integer greater than or equal to 0, i is an integer greater than or equal to 0 and less than or equal to (p-1), C is 24, and p is the maximum bit width of the frequency hopping sequence.

[0103] Optionally, the processor 110 may be configured to:

[0104] From the frequency hopping sequence, obtain the target element whose index is the count value;

[0105] The remainder obtained by dividing the target element by the total number of the plurality of sub-channels is determined as the target sequence number;

[0106] A subchannel with a sequence number equal to the target sequence number among the multiple subchannels is determined as the target subchannel.

[0107] Optionally, the processor 110 may also be configured to:

[0108] A broadcast beacon frame is sent on the target subchannel. The broadcast beacon frame includes the network time of the LPWAN gateway. The network time is used for the terminal to calibrate the terminal time.

[0109] In summary, an embodiment of the present application provides a LPWAN gateway, which can obtain a frequency hopping sequence and a count value for counting the beacon period of a broadcast beacon frame, and then select a target subchannel from multiple subchannels based on a target element indexed by the count value in the frequency hopping sequence. Since the target subchannel can be selected from multiple subchannels based on the frequency hopping sequence, on the one hand, the anti-interference characteristics of the wireless communication system where the LPWAN gateway is located can be improved; on the other hand, the terminal can be prevented from performing detection on multiple subchannels, thereby reducing the terminal's reception complexity and the probability of missing broadcast beacon frames. In addition, since the frequency hopping sequence is obtained based on the network identifier of the LPWAN gateway, and the network identifiers of any two LPWAN gateways are usually different, it can be ensured that the frequency hopping sequences used by different LPWAN gateways are different, thereby reducing frequency conflicts between adjacent LPWAN gateways and reducing interference.

[0110] like Figure 4As shown, the LPWAN gateway 100 includes: a memory 130. The processor 110 and the memory 130 are connected, such as through a bus 120. Optionally, the LPWAN gateway 100 may also include a transceiver 140. It should be noted that in actual applications, the transceiver 140 is not limited to one, and the structure of the LPWAN gateway 100 does not constitute a limitation on the embodiments of the present application.

[0111] The processor 110 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. The processor 110 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0112] The bus 120 may include a path to transmit information between the above components. The bus 120 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 120 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0113] The memory 130 is used to store a computer program corresponding to the channel selection method of the above embodiment of the present application, and the computer program is controlled and executed by the processor 110. The processor 110 is used to execute the computer program stored in the memory 130 to implement the contents shown in the above method embodiment.

[0114] The present application embodiment provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the channel selection method provided in the above method embodiment is implemented. For example, Figure 2 or Figure 3 The method shown.

[0115] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection portion with one or more wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0116] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0117] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0118] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0119] In this application, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0120] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A channel selection method, characterized in that: Applied to LPWAN gateway; the method comprises: Based on the network identifier of the LPWAN gateway, obtaining a frequency hopping sequence; Obtaining a count value obtained by counting the beacon period of the broadcast beacon frame; Based on a target element in the frequency hopping sequence whose index is the count value, a target subchannel is selected from a plurality of subchannels of the LPWAN gateway, wherein a sequence number of the target subchannel is determined based on the target element.

2. The method according to claim 1, characterized in that: Based on the network identifier of the LPWAN gateway, obtaining a frequency hopping sequence includes: Based on the network identifier of the LPWAN gateway, obtaining a pseudo-random bit sequence; Based on the pseudo-random bit sequence, a frequency hopping sequence is acquired.

3. The method according to claim 2, characterized in that Any element x[n] in the pseudo-random bit sequence X satisfies: r is the number of bytes occupied by the network identifier, r is an integer greater than or equal to 1, and MSB (·) means that NetID is written to x[0,1,2,…,(8 r -1)], NetID refers to the network identifier, n is a natural number greater than or equal to 0, Represents the exclusive-or operation.

4. The method according to claim 3, characterized in that: The mth element s[m] in the frequency hopping sequence S satisfies: Wherein, m is an integer greater than or equal to 0, i is an integer greater than or equal to 0 and less than or equal to (p-1), C is 24, and p is the maximum bit width of the frequency hopping sequence.

5. The method according to any one of claims 1 to 4, characterized in that: Selecting a target subchannel from a plurality of subchannels of the LPWAN gateway based on a target element indexed by the count value in the frequency hopping sequence includes: From the frequency hopping sequence, obtaining a target element whose index is the count value; The remainder obtained by dividing the target element by the total number of the plurality of sub-channels is determined as a target sequence number; A subchannel with a sequence number equal to the target sequence number among the multiple subchannels is determined as a target subchannel.

6. The method according to any one of claims 1 to 4, characterized in that: After selecting a target subchannel from a plurality of subchannels of the LPWAN gateway based on a target element indexed by the count value in the frequency hopping sequence, the method further includes: The broadcast beacon frame is sent on the target subchannel, wherein the broadcast beacon frame includes the network time of the LPWAN gateway, and the network time is used by a terminal to calibrate the time of the terminal.

7. A LPWAN gateway, characterized in that: The LPWAN gateway includes a processor; the processor is used to: Based on the network identifier of the LPWAN gateway, obtaining a frequency hopping sequence; Obtaining a count value obtained by counting the beacon period of the broadcast beacon frame; Based on a target element in the frequency hopping sequence whose index is the count value, a target subchannel is selected from a plurality of subchannels of the LPWAN gateway, wherein a sequence number of the target subchannel is determined based on the target element.

8. The LPWAN gateway according to claim 7, characterized in that: The processor is used to: Based on the network identifier of the LPWAN gateway, obtaining a pseudo-random bit sequence; Based on the pseudo-random bit sequence, a frequency hopping sequence is acquired.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

10. A wireless communication system, characterized in that: The system comprises: a terminal, and the LPWAN gateway as claimed in claim 8.