A multi-device access method, system, device and medium
By calculating the access factor, selecting appropriate wireless devices and channels for intelligent IoT devices to enter the network, solving the problems of frequency band matching errors and unreasonable channel allocation, and improving the network access speed and efficiency.
Patent Information
- Application Number
- CN202310467161.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-27
- Publication Date
- 2025-01-07
- Estimated Expiration
- 2043-04-27
AI Technical Summary
When smart IoT devices enter the network, due to frequency band matching errors and unreasonable channel allocation, the network access speed is slow, and multiple devices seize the same channel, resulting in channel waste and extended network access time.
By obtaining the access frequency band supported by the target access device and the number of idle channels of the wireless device, calculating the access factor, selecting the most suitable wireless device and channel for access, avoiding the devices in the same frequency band occupying the idle channel, and optimizing the access sequence to improve the Network access efficiency.
The network access speed of smart devices is improved, and the idle channels are fully utilized to ensure that devices that are more eager to access the network are accessed first, which improves the overall network access efficiency.
Smart Images

Figure CN116684943B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intelligent Internet of Things, and in particular to a multi-device access method, system, device and medium. Background Art
[0002] With the development of smart technology, more and more smart devices have appeared in households. However, due to the large number of smart access devices that want to access the network, the network speed of the smart Internet of Things connection system cannot keep up or the frequency band matching fails, resulting in slow access to the network for smart access devices.
[0003] Since most households use smart wireless routers, the smart IoT link system is equivalent to the control and command center of a computer, i.e., the cloud. Smart access devices receive and send data through the channels of smart wireless routers. Different smart access devices have different frequency bands. Once the number of smart access devices increases, the smart IoT link system may allocate the idle channels of the smart router to smart access devices that do not belong to this frequency band, which will cause the device to be unable to access and waste the use of the channel. There may even be a situation where several smart access devices occupy the same channel to access the network, resulting in unreasonable use of channels and prolonged access time for smart access devices. Summary of the invention
[0004] The present invention provides a multi-device access method, system, device and medium to solve the problem of slow network access of existing intelligent access devices.
[0005] A multi-device access method, system, device and medium of the present invention adopts the following technical solutions:
[0006] Specifically, the present invention discloses a multi-device access method, the method comprising:
[0007] Obtain the access frequency band supported by the target access device;
[0008] According to the number of target access devices corresponding to each access frequency band applying for access and the number of idle channels of the wireless devices corresponding to the access frequency band, an access factor of the wireless devices corresponding to the access frequency band for the target access device to access is obtained;
[0009] Selecting a target wireless device for a target access device from all wireless devices according to the access factor, the wireless device being a first wireless device providing a first access frequency band, a second wireless device providing a second access frequency band, and a third wireless device providing both the first access frequency band and the second access frequency band;
[0010] A target idle channel is selected from the target wireless device for the target access device, so that the target access device can access the network through the target idle channel.
[0011] Preferably, the process of obtaining the access factor of the wireless device for the target access device to access the corresponding access frequency band is:
[0012] The ratio of the number of idle channels of the first wireless device corresponding to the first access frequency band to the number of target access devices applying for access in the access frequency band is used as a first access factor to support the target access devices in the first access frequency band to access the first wireless device;
[0013] The ratio of the number of idle channels of the second wireless device corresponding to the second access frequency band to the number of target access devices applying for access in the access frequency band is used as a second access factor for supporting the target access devices in the second access frequency band to access the second wireless device;
[0014] The ratio of half of the number of idle channels of the third wireless device corresponding to the first access frequency band and the second access frequency band to the number of access devices supporting the first access frequency band and the second access frequency band applying for access is used as the third access factor corresponding to the target access device supporting the first access frequency band and the second access frequency band accessing the third wireless device.
[0015] Preferably, when the access frequency band applied for access is the first access frequency band, when the first access factor is greater than or equal to the preset access factor threshold, the first wireless device is determined as the target wireless device; when the first access factor is less than the preset access factor threshold, the third wireless device is determined as the target wireless device.
[0016] Preferably, when the access frequency band applied for access is the second access frequency band, when the second access factor is greater than or equal to the preset access factor threshold, the second wireless device is determined as the target wireless device; when the second access factor is less than the preset access factor threshold, the third wireless device is determined as the target wireless device.
[0017] Preferably, when the access frequency band applied for access is the first access frequency band or the second access frequency band, when the third access factor is greater than the preset access factor threshold, the third wireless device is determined as the target wireless device; when the third access factor is less than or equal to the preset access factor threshold, the target wireless device is determined from the first wireless device and the second wireless device based on the first access factor and the second access factor.
[0018] Preferably, the process of determining the target wireless device from the first wireless device and the second wireless device is:
[0019] When the first access factor is greater than the second access factor, determining the first wireless device as a target wireless device;
[0020] When the first access factor is less than the second access factor, the second wireless device is determined as the target wireless device.
[0021] Preferably, when the target wireless device is a third wireless device, the process of selecting a target idle channel for the target access device from the target wireless device is:
[0022] Obtaining a first absolute value of a difference between the number of target access devices supporting the first access frequency band applying for access and the number of idle channels of the first wireless device;
[0023] and a second absolute value of a difference between the number of target access devices supporting the second access frequency band applying for access and the number of idle channels of the second wireless devices;
[0024] When the absolute value of the first quantity difference is greater than the absolute value of the second quantity difference, selecting an idle channel corresponding to the first access frequency band from the third wireless device to obtain a target idle channel;
[0025] When the absolute value of the first quantity difference is smaller than the absolute value of the second quantity difference, an idle channel corresponding to the second access frequency band is selected from the third wireless device to obtain a target idle channel.
[0026] The present invention discloses a multi-device access system, which comprises:
[0027] An information collection module is used to obtain the access frequency band supported by the target access device;
[0028] A wireless device selection module is used to obtain an access factor for a target access device to access a wireless device of a corresponding access frequency band according to the number of target access devices corresponding to each access frequency band applying for access and the number of idle channels of the wireless devices corresponding to the access frequency band; select a target wireless device for the target access device from all wireless devices according to the access factor, wherein the wireless device is a second wireless device providing a second access frequency band, a second wireless device providing a second access frequency band, and a third wireless device providing both a second access frequency band and a second access frequency band;
[0029] The channel selection and access module is used to select a target idle channel for a target access device from a target wireless device, so as to access the target access device to the network through the target idle channel.
[0030] The present invention discloses a multi-device access device, comprising: a memory, a processor, and a multi-device access program stored in the memory and running on the processor. When the multi-device access program is executed by the processor, steps of a multi-device access method are implemented.
[0031] The present invention discloses a storage medium on which a multi-device access program is stored. When the multi-device access program is executed by a processor, steps of a multi-device access method are implemented.
[0032] The beneficial effects of a multi-device access method, system, device and medium of the present invention are:
[0033] 1. Determine whether the access device can access the wireless device of the corresponding access frequency band through the access factor when the access device applies for access to the corresponding wireless device. When the idle channels of the wireless devices supporting the access frequency band are not enough for the access device to access, select the wireless device that can access the access device to access, so as to avoid several access devices of the same access frequency band occupying the same idle channel, thereby improving the access speed of the access device.
[0034] 2. According to the number of access devices that cannot access different access frequency bands, the larger the number of access devices that cannot access, the more urgent it is to join the network. Therefore, this is used to determine the order in which access devices of different access frequency bands access the idle channels of wireless devices that support two access frequency bands at the same time, so that the access devices with the earlier access order can access first, which not only realizes the full utilization of the idle channels of idle wireless devices, but also improves the efficiency of access to the network for access devices that are more urgent to join the network. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0036] Figure 1 This is a flow chart of Embodiment 1 of a multi-device access method of the present invention;
[0037] Figure 2 This is a flow chart of Embodiment 2 of a multi-device access method of the present invention;
[0038] Figure 3 is a flowchart of Embodiment 3 of a multi-device access method of the present invention;
[0039] Figure 4 It is a structural schematic diagram of a multi-device access device of the present invention. DETAILED DESCRIPTION
[0040] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0041] An embodiment of the present invention provides an embodiment of a multi-device access method. It should be noted that although a logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in an order different from that shown here. The multi-device access method is applied to the field of wireless communication technology, and specifically can be applied to signal access between wireless devices.
[0042] like Figure 1 As shown, in Embodiment 1 of the present invention, the steps of the multi-device access method of this embodiment include:
[0043] S1. Obtain the access frequency band supported by the target access device.
[0044] Among them, the application scenarios of the present invention are mainly household smart devices. For example, the target access device can be a smart sweeping robot, a smart air purifier, a smart phone, a smart PAD, and a smart Bluetooth headset. Among them, the access frequency band supported by the smart sweeping robot and the smart air purifier is 2.4GHZ; the access frequency band supported by the smart phone and the smart PAD is 5GHZ; the access frequency band supported by the smart Bluetooth headset is 2.4GHZ or 5GHZ.
[0045] When the application scenario of the present invention is a shopping mall, the supported access frequency band is obtained according to the signal strength of the target access device, that is, the strength of the signal strength can be used to determine whether the target access device is close to or far away from the target access device. After the distance between the two is determined, the access frequency band is recommended to the target access device according to the distance. Since the frequency of the 2.4GHZ frequency band is low, the bandwidth that can be transmitted is not high, but the wavelength is long and the penetration is strong; while the frequency of the 5GHZ frequency band is high, the bandwidth that can be transmitted is high, but the wavelength is short and the penetration is weak. Among them, the recommended access frequency band is the 2.4GHZ frequency band, which means that the farther the distance between the target access device and the wireless device is, the weaker the signal strength is. When the distance between the target access device and the wireless device is close, the signal strength of the target access device is stronger. The target access device can be connected to the 2.4GHZ frequency band or the 5GHZ frequency band. When the access device is closest to the wireless device and there is no wall or shelter between the access device and the wireless device, when the recommended access frequency band is the 5GHZ frequency band, the frequency of the 5G frequency band is higher, the bandwidth that can be transmitted is higher, and the transmission is faster.
[0046] It should be noted that the wireless device in this embodiment is a wireless router.
[0047] S2, selecting a target wireless device as a target access device from all wireless devices;
[0048] An access factor for a target access device to access a wireless device in a corresponding access frequency band is obtained based on the number of target access devices corresponding to each access frequency band applying for access and the number of idle channels of the wireless device corresponding to the access frequency band; a target wireless device is selected from all wireless devices for the target access device based on the access factor, wherein the wireless device is a first wireless device that provides a first access frequency band, a second wireless device that provides a second access frequency band, and a third wireless device that provides both the first access frequency band and the second access frequency band.
[0049] Since the traditional wireless router has 13 channels for data transmission, the number of target access devices when applying for access determines whether to select the target wireless device. For the number of idle channels of wireless devices, this embodiment uses the sum of the number of idle channels of all wireless devices corresponding to each access frequency band as the number of idle channels of wireless devices corresponding to the access frequency band; wherein, in this embodiment, when the number of intelligent access devices is greater than or equal to 5, the access factor of the wireless device corresponding to the access frequency band of the target access device is obtained. Specifically, the step of obtaining the access factor of the wireless device corresponding to the access frequency band of the target access device is: the target number of each access frequency band is set to The ratio of the number of access devices applying for access and the number of idle channels of wireless devices corresponding to the access frequency band is used as the access factor corresponding to the access frequency band; wherein the wireless device is a first wireless device that provides a first access frequency band, a second wireless device that provides a second access frequency band, and a third wireless device that provides both the first access frequency band and the second access frequency band. In this embodiment, the first wireless device is a first router that provides a first access frequency band of 2.4 GHZ, the second wireless device is a second router that provides a second access frequency band of 5 GHZ, and the third wireless device is a third router that provides both a first access frequency band of 2.4 GHZ and a second access frequency band of 5 GHZ respectively.
[0050] S3. Select a target idle channel for the target access device from the target wireless device, and connect the target access device to the network.
[0051] After the target wireless device is determined in step S2, a target idle channel is selected for the target access device on the corresponding target wireless device to enable the target access device to access the network.
[0052] Specifically, in this embodiment 1, when the target wireless device is the first wireless device (first router) of the 2.4 GHZ frequency band (first access frequency band), for example, after obtaining the first wireless device, first obtain the time sequence of the access devices supporting the 2.4 GHZ frequency band when applying for access, sort all access devices supporting the 2.4 GHZ frequency band, and access the first access device in the time sequence to the first idle channel in the numbering order of the idle channels of the first wireless device in time sequence. For example, the idle channels of the first wireless device are numbered 2, 4, 6, and 8, then the first access device applying for access will access the idle channel numbered 2 of the idle channels of the first wireless device, and so on. The access devices are connected to the network according to the numbering order of the idle channels and the time sequence of the access devices applying for access. It should be noted that when the first first After the idle channels of the wireless device (first router) are allocated, another first wireless device (first router) in the 2.4G frequency band is randomly searched for to allocate idle channels. The method of allocating idle channels is the same as that of the first first wireless device (first router); for example, the time information of the smart sweeping robot obtained takes precedence over the time information of the smart air purifier, and the idle channels of the first router in the 2.4GHZ frequency band are numbered N1...N5, then the idle channel N1 is allocated to the smart sweeping robot for network access, and the idle channel N2 is allocated to the smart air purifier for network access. When the idle channels of the first first router are allocated, the second first router is randomly searched, and the second first router allocates idle channels in the same way as the first first router.
[0053] Similarly, when the target wireless device is the second wireless device (second router) of the 5GHZ frequency band (second access frequency band), for example, after obtaining the second wireless device, first obtain the time sequence of the access devices supporting the 5GHZ frequency band when applying for access, sort all access devices supporting the 5GHZ frequency band, and connect the first access device in the time sequence to the first idle channel in the numbering sequence of the idle channels of the second wireless device in time sequence. For example, the idle channels of the second wireless device are numbered 2, 4, 6, and 8, then the second access device applying for access will access the idle channel numbered 2 of the idle channels of the second wireless device, and so on. The access devices are connected to the network according to the numbering sequence of the idle channels and the time sequence of the access devices applying for access. It should be noted that when the first second wireless device After the idle channels of (the second router) are allocated, another second wireless device (the second router) in the 5G frequency band is randomly searched for to allocate idle channels. The method of allocating idle channels is the same as that of the first second wireless device (the second router). For example, the time information of the smartphone is obtained before the time information of the smart PAD. The idle channels of the first second router in the 5G frequency band are numbered M3...M5, then the idle channel N3 is allocated to the smartphone for network access, and at the same time, the idle channel M4 is allocated to the smart PAD for network access. When the idle channels of the first second router are allocated, the smart Internet of Things link system randomly searches for the second second router, and the second second router allocates idle channels in the same way as the first second router.
[0054] When the target wireless device is a third wireless device (third router) in the frequency bands of 2.4GHZ and 5GHZ, for example, the access device that can access the network in both the 2.4GHZ and 5GHZ frequency bands can access the network through an idle channel of the first wireless device (first router) in the 2.4GHZ frequency band, or through an idle channel of the second wireless device (second router) in the 5GHZ frequency band, or through an idle channel of the third wireless device (third router) that supports both the 2.4GHZ frequency band and the 5GHZ frequency band. However, only an idle channel of one frequency band can be selected for access to the network. Therefore, first obtain 1 / 2 of the total idle channels that can access the network in both the 2.4GHZ frequency band and the 5GHZ frequency band, that is, 1 / 2 of the number of all idle channels of all third routers. Similarly, all access devices that can access the network in both the 2.4GHZ band and the 5GHZ band are sorted according to the time sequence when the access devices that can access the network in both the 2.4GHZ band and the 5GHZ band apply for access, and the first access device in the time sequence is connected to the first idle channel in the numbering sequence of the idle channels of the third wireless device (third router) in time sequence. When the idle channels of the first third wireless device (third router) are allocated, another third wireless device (third router) in the 2.4GHZ band and the 5GHZ band is randomly searched for to allocate idle channels. The method of allocating idle channels is the same as the method of allocating idle channels of the first third wireless device (third router), thereby finally achieving network access for the target access device.
[0055] It should be noted that after the idle channels of all wireless devices in the access frequency band have been called to enable all access devices to access the network, there are still access devices that have not accessed the network. In this case, the work of these devices that have already accessed the network will be waited for, and then the next reallocation will be waited for. The next reallocation will also be carried out in the time sequence when the access application was made, and the step of selecting the target idle channel for the target access device to access the network is the same as step S3.
[0056] like Figure 2 As shown, in Embodiment 2 of the present invention, Embodiment 2 of the present invention is based on Embodiment 1. Specifically, in step S2, selecting a target wireless device as a target access device from all wireless devices according to the access factor includes:
[0057] Step S21, when the access frequency band is the first access frequency band, the target wireless device selected as the target access device is obtained:
[0058] When the access frequency band applied for access is the first access frequency band, the total number of idle channels of the first wireless device (first router) corresponding to the 2.4 GHZ frequency band is obtained, and the total number of idle channels is equal to the total number of idle channels of all first routers in the 2.4 GGHZ frequency band, and the number of access devices supporting the 2.4 GHZ frequency band (first access frequency band) is obtained, and the ratio of the total number of idle channels to the number of devices is used as the access factor of the 2.4 GHZ frequency band (first access frequency band). When the access factor corresponding to the first wireless device corresponding to the first access frequency band is greater than or equal to the preset access factor threshold, it means that there are more idle channels than the current required The number of access devices accessed, that is, the first router of the 2.4GHZ frequency band can meet the access of the access devices supporting the 2.4GHZ frequency band, so the first wireless device is determined as the target wireless device; when the access factor corresponding to the first wireless device corresponding to the first access frequency band is less than the preset access factor threshold, it means that the first router of the 2.4GHZ frequency band cannot meet the access of the access devices supporting the 2.4GHZ frequency band, and therefore, it is necessary to access on the third router corresponding to the frequency band supporting 2.4GHZ and 5GHZ, so the third wireless device is determined as the target wireless device to meet the access of the access devices and improve the access rate.
[0059] Since the access factor is the ratio of the number of target access devices applying for access in each access frequency band to the number of idle channels of wireless devices corresponding to the access frequency band, the judgment of whether the access of the device can be counted is based on the size of the two numbers. Therefore, the access factor threshold is set to 1, that is, when the access factor corresponding to the first access frequency band 2.4Ghz is greater than or equal to 1, the idle channel of the first router in the 2.4GHZ frequency band satisfies the access of access devices supporting the 2.4GHZ frequency band, and when the access factor corresponding to the first access frequency band 2.4Ghz is less than 1, the idle channel of the first router in the 2.4GHZ frequency band does not satisfy the access of access devices supporting the 2.4GHZ frequency band.
[0060] Step S22, obtaining a target wireless device selected as the target access device when the access frequency band is the second access frequency band;
[0061] When the access frequency band applied for access is the second access frequency band, the total number of idle channels of the second wireless device (second router) corresponding to the 5GHZ frequency band is obtained, and the total number of idle channels is equal to the total number of idle channels of all second routers in the 2.4GGHZ frequency band, and the number of access devices supporting the 5GHZ frequency band (second access frequency band) is obtained, and the ratio of the total number of idle channels to the number of devices is used as the access factor of the 5GHZ frequency band (second access frequency band). When the access factor corresponding to the second wireless device corresponding to the second access frequency band is greater than or equal to the preset access factor threshold, it means that there are more idle channels than the current required The number of access devices accessed, that is, the second router of the 5GHZ frequency band can meet the access of the access devices supporting the 2.4GHZ frequency band, so the second wireless device is determined as the target wireless device; when the access factor corresponding to the second wireless device corresponding to the second access frequency band is less than the preset access factor threshold, it means that the second router of the 5GHZ frequency band cannot meet the access of the access devices supporting the 5GHZ frequency band, and therefore, it is necessary to access on the third router corresponding to the frequency band supporting 2.4GHZ and 5GHZ, so the third wireless device is determined as the target wireless device to meet the access of the access devices and improve the access rate.
[0062] Since the access factor is the ratio of the number of target access devices applying for access in each access frequency band and the number of idle channels of wireless devices corresponding to the access frequency band, the judgment whether the access of the device can be counted is based on the size of the two numbers. Therefore, the access factor threshold is set to 1, that is, when the access factor corresponding to the second access frequency band 5Ghz is greater than or equal to 1, the idle channel of the second router in the 5GHZ frequency band satisfies the access of access devices supporting the 5GHZ frequency band, and when the access factor corresponding to the second access frequency band 5Ghz is less than 1, the idle channel of the second router in the 5GHZ frequency band does not satisfy the access of access devices supporting the 5GHZ frequency band.
[0063] Step S23, obtaining a target wireless device selected as the target access device when the access frequency band is the first access frequency band or the second access frequency band;
[0064] When the access frequency band applied for access is the first access frequency band or the second access frequency band, when the access factors of the first access frequency band and the second access frequency band are greater than the preset access factor threshold, the third wireless device is determined as the target wireless device; when the access factors corresponding to the wireless devices corresponding to the first access frequency band and the second access frequency band are both less than or equal to the preset access factor threshold, the target wireless device is determined from the first wireless device and the second wireless device according to the access factor corresponding to the first wireless device corresponding to the first access frequency band and the access factor corresponding to the second wireless device corresponding to the second access frequency band;
[0065] It should be noted that the access factor of the first access frequency band and the second access frequency band refers to the access factor that supports the first access frequency band and the second access frequency band at the same time. The access factor corresponding to the third wireless device corresponding to the first access frequency band and the second access frequency band is: the ratio of half of the number of idle channels of the third wireless device corresponding to the first access frequency band and the second access frequency band to the number of access devices supporting the first access frequency band and the second access frequency band applying for access is used as the access factor corresponding to the third wireless device. Specifically, in step S23, when the access factor corresponding to the third wireless device is greater than the preset access factor threshold, it means that at this time the first access frequency band and the second access frequency band are connected. The idle channels in the corresponding third wireless devices all meet the network access work of the access device applying for access, that is, in order to improve the access rate and to prevent the idle channels of the wireless devices corresponding to 2.4GHZ or 5GHZ from being occupied, so that only the access devices of 2.4GHZ or 5GHZ can be accessed in the future, the third wireless device is determined as the target wireless device. When the access factor corresponding to the third wireless device is less than or equal to the preset access factor threshold, it means that the idle channels in the third wireless device corresponding to the first access frequency band and the second access frequency band do not meet the network access work of the access device applying for access, that is, at this time, the access factor corresponding to the first wireless device corresponding to the first access frequency band needs to be allocated according to the access factor corresponding to the first wireless device. The target wireless device is determined from the second wireless device and the second wireless device according to the access factor and the access factor corresponding to the second wireless device corresponding to the second access frequency band; wherein the step of determining the target wireless device from the second wireless device and the second wireless device is: when the access factor corresponding to the first wireless device corresponding to the first access frequency band is greater than the access factor corresponding to the second access frequency band, it means that the number of idle channels of the first wireless device corresponding to the first access frequency band is greater than the number of idle channels of the second wireless device corresponding to the second access frequency band, that is, the access device corresponding to the larger access factor is more eager to apply for network access, therefore, when the first wireless device is used as the target wireless device, the access factor that can be connected to the first wireless device is greater than the access factor that can be connected to the second wireless device. There are many access devices entering. Since the number of channels of each wireless device is fixed, when the same number of access devices access, the second wireless device is affected by the diversion of the occupied channel. If the access device is connected to the second wireless device, its rate during use is also affected. Therefore, when the access factor corresponding to the first wireless device corresponding to the first access frequency band is greater than the access factor corresponding to the second access frequency band, the first wireless device is used as the target wireless device. Similarly, when the access factor corresponding to the first wireless device corresponding to the first access frequency band is less than the access factor corresponding to the second wireless device corresponding to the second access frequency band, the second wireless device is determined as the target wireless device.
[0066] like Figure 3As shown, in embodiment 3 of the present invention, embodiment 3 of the present invention is based on embodiment 1. Specifically, in step S3, selecting a target wireless device for a target access device from all wireless devices according to the access factor, selecting a target idle channel for the target access device from the target wireless device, so as to access the target access device to the network through the target idle channel includes:
[0067] Specifically, in order to improve the utilization of idle channels in this embodiment 3, when the target wireless device is a third wireless device, the process of selecting a target idle channel for the target access device from the target wireless device is as follows:
[0068] Step S31, obtaining the absolute value of the first quantity difference and the absolute value of the second quantity difference;
[0069] Specifically, obtain the first absolute value of the difference between the number of target access devices supporting the first access frequency band that apply for access and the number of idle channels of the first wireless device, as well as the second absolute value of the difference between the number of target access devices supporting the second access frequency band that apply for access and the number of idle channels of the second wireless device.
[0070] Step S32, obtaining a target idle channel when the absolute value of the first quantity difference is greater than the absolute value of the second quantity difference;
[0071] Specifically, when the absolute value of the first quantity difference is greater than the absolute value of the second quantity difference, an idle channel corresponding to the first access frequency band is selected from the third wireless device to obtain a target idle channel.
[0072] Step S33, obtaining a target idle channel when the absolute value of the first quantity difference is less than the absolute value of the second quantity difference;
[0073] Specifically, when the absolute value of the first number difference is less than the absolute value of the second number difference, an idle channel corresponding to the second access frequency band is selected from the third wireless device to obtain the target idle channel, wherein, when the absolute value of the first number difference is equal to the absolute value of the second number difference, access is given to the idle channel of the access frequency band corresponding to the access frequency band of the access device in the third wireless device in the time order when applying for access.
[0074] It should be noted that the absolute value of the first quantity difference is the number of target access devices that are not accessible when applying for access to the first wireless device. The larger the number of target access devices that cannot be accessed, the more urgent the target access devices of the first frequency band are to access the network. Similarly, the absolute value of the second quantity difference is the number of target access devices that are not accessible when applying for access to the second wireless device. The larger the number of target access devices that cannot be accessed, the more urgent the target access devices of the second frequency band are to access the network. Therefore, the network access order of the target access devices that cannot be accessed is judged based on the size of the absolute value of the first quantity difference and the absolute value of the second quantity difference, thereby fully utilizing the idle channels of the third wireless device and, at the same time, improving the network access efficiency of the access devices that are more urgent to access the network.
[0075] For example, when the absolute value of the first quantity difference corresponding to the 2.4GHZ frequency band is greater than the absolute value of the first quantity difference corresponding to the 5GHZ frequency band, it means that the number of idle channels on the first router corresponding to the 2.4GHZ frequency band is smaller. At this time, in order to improve the rationality of channel allocation, the access device supporting the 2.4GHZ frequency band will be preferentially accessed to the idle channel of the third router to meet the rational utilization of the idle channels.
[0076] The present invention provides a multi-device access system, which includes: an information collection module, a wireless device selection module, and a channel selection and access module. Specifically, the information collection module is used to obtain the access frequency band supported by the target access device; the wireless device selection module is used to obtain the access factor of the wireless device corresponding to the access frequency band for the target access device to access the corresponding access frequency band according to the number of target access devices corresponding to each access frequency band when applying for access and the number of idle channels of the wireless device corresponding to the access frequency band; a target wireless device is selected from all wireless devices for the target access device according to the access factor, and the wireless device is a second wireless device providing a second access frequency band, a second wireless device providing a second access frequency band, and a third wireless device providing both the second access frequency band and the second access frequency band; the channel selection and access module is used to select a target idle channel for the target access device from the target wireless device, so as to access the target access device to the network through the target idle channel.
[0077] The present invention also discloses a multi-device access device, such as Figure 4 As shown, it includes: a memory 5, a processor 1, and a multi-device access program stored in the memory 5 and running on the processor 1. When the multi-device access program is executed by the processor, the steps of the multi-device access method of embodiment 1 of the specification are implemented.
[0078] Specifically, when the processor 1 calls the image compression program stored in the memory 5, the following operations are performed:
[0079] The ratio of the number of idle channels of the first wireless device corresponding to the first access frequency band to the number of target access devices applying for access in the access frequency band is used as the first access factor to support the target access devices of the first access frequency band to access the first wireless device; the ratio of the number of idle channels of the second wireless device corresponding to the second access frequency band to the number of target access devices applying for access in the access frequency band is used as the second access factor to support the target access devices of the second access frequency band to access the second wireless device; the ratio of half of the number of idle channels of the third wireless devices corresponding to the first access frequency band and the second access frequency band to the number of access devices supporting the first access frequency band and the second access frequency band is used as the third access factor to support the target access devices of the first access frequency band and the second access frequency band to access the third wireless device.
[0080] Specifically, when the processor 1 calls the image compression program stored in the memory 5, the following operations are performed:
[0081] When the access frequency band applied for access is the first access frequency band, when the first access factor is greater than or equal to the preset access factor threshold, the first wireless device is determined as the target wireless device; when the first access factor is less than the preset access factor threshold, the third wireless device is determined as the target wireless device.
[0082] When the processor 1 calls the multi-device access program stored in the memory 5, it also performs the following operations:
[0083] When the access frequency band applied for access is the second access frequency band, when the second access factor is greater than or equal to the preset access factor threshold, the second wireless device is determined as the target wireless device; when the second access factor is less than the preset access factor threshold, the third wireless device is determined as the target wireless device.
[0084] When the processor 1 calls the image compression program stored in the memory 5, it also performs the following operations:
[0085] When the access frequency band applied for access is the first access frequency band or the second access frequency band, when the third access factor is greater than the preset access factor threshold, the third wireless device is determined as the target wireless device; when the third access factor is less than or equal to the preset access factor threshold, the target wireless device is determined from the first wireless device and the second wireless device based on the first access factor and the second access factor.
[0086] Among them, the process of determining the target wireless device from the first wireless device and the second wireless device is: when the access factor corresponding to the first wireless device is greater than the access factor corresponding to the second wireless device, the first wireless device is determined as the target wireless device; when the access factor corresponding to the first wireless device is less than the access factor corresponding to the second wireless device, the second wireless device is determined as the target wireless device.
[0087] When the processor 1 calls the image compression program stored in the memory 5, it also performs the following operations:
[0088] Obtain a first absolute value of the difference between the number of target access devices supporting the first access frequency band that apply for access and the number of idle channels of the first wireless device; and a second absolute value of the difference between the number of target access devices supporting the second access frequency band that apply for access and the number of idle channels of the second wireless device; when the absolute value of the first difference is greater than the absolute value of the second difference, select an idle channel corresponding to the first access frequency band from a third wireless device to obtain a target idle channel; when the absolute value of the second difference is less than the absolute value of the second difference, select an idle channel corresponding to the second access frequency band from the third wireless device to obtain a target idle channel.
[0089] The present invention also discloses a storage medium, including: a memory 5, on which a multi-device access program is stored, and when the multi-device access program is executed by a processor, the steps of the multi-device access method of embodiment 1 of the specification are implemented.
[0090] Specifically, Figure 4 As shown, the memory 5 as a storage medium may include an operating system, a network communication module, a user interface module and a computer program, and the computer program includes the device access program in the present invention, wherein the operating system is a program for managing and controlling the hardware and software resources of the computer device, the operation of the computer program and other software or programs.
[0091] Among them, Figure 4 As shown, the memory 5 is connected to the processor 1, the user interface 3, and the network interface 4 through the wire 2, wherein the user interface 3 is mainly used to connect the terminal to the terminal for data communication; the network interface 4 is mainly used for the background server to communicate data with the background server; the processor 1 is used to call the device access program stored in the memory 5.
[0092] The present invention discloses a multi-device access method, system, device and medium. The access factor when the access device applies for access to the corresponding wireless device determines whether the access device can access the wireless device of the corresponding access frequency band. When the idle channels of the wireless devices supporting the access frequency band are insufficient for the access device to access, the wireless device that can access the access device is selected for access, so as to avoid several access devices of the same access frequency band from occupying the same idle channel, thereby improving the network access speed of the access device. The order of access devices of different access frequency bands to the idle channels of wireless devices supporting two access frequency bands is determined according to the number of access devices that cannot access the access frequency bands, so that the access device with the earlier access order can access first, which not only realizes the full utilization of the idle channels of the idle wireless devices, but also improves the network access efficiency of the access devices that are more eager to access the network.
[0093] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A multi-device access method, characterized in that: The method includes: Obtain the access frequency band supported by the target access device; According to the number of target access devices corresponding to each access frequency band applying for access and the number of idle channels of the wireless devices corresponding to the access frequency band, an access factor of the wireless device for the target access device to access the corresponding access frequency band is obtained; according to the access factor, a target wireless device is selected from all wireless devices for the target access device, wherein the wireless device is a first wireless device that provides a first access frequency band, a second wireless device that provides a second access frequency band, and a third wireless device that provides both the first access frequency band and the second access frequency band; Selecting a target idle channel for a target access device from a target wireless device, so as to access the target access device to a network through the target idle channel; The process of obtaining the access factor of the wireless device for the target access device to access the corresponding access frequency band is as follows: The ratio of the number of idle channels of the first wireless device corresponding to the first access frequency band to the number of target access devices applying for access in the access frequency band is used as a first access factor to support the target access devices in the first access frequency band to access the first wireless device; The ratio of the number of idle channels of the second wireless device corresponding to the second access frequency band to the number of target access devices applying for access in the access frequency band is used as a second access factor for supporting the target access devices in the second access frequency band to access the second wireless device; The ratio of half of the number of idle channels of the third wireless device corresponding to the first access frequency band and the second access frequency band to the number of access devices supporting the first access frequency band and the second access frequency band applying for access is used as the third access factor corresponding to the target access device supporting the first access frequency band and the second access frequency band accessing the third wireless device.
2. A multi-device access method according to claim 1, characterized in that: When the access frequency band applied for access is the first access frequency band, when the first access factor is greater than or equal to the preset access factor threshold, the first wireless device is determined as the target wireless device; when the first access factor is less than the preset access factor threshold, the third wireless device is determined as the target wireless device.
3. A multi-device access method according to claim 1, characterized in that: When the access frequency band applied for access is the second access frequency band, when the second access factor is greater than or equal to the preset access factor threshold, the second wireless device is determined as the target wireless device; when the second access factor is less than the preset access factor threshold, the third wireless device is determined as the target wireless device.
4. A multi-device access method according to claim 1, characterized in that: When the access frequency band applied for access is the first access frequency band or the second access frequency band, when the third access factor is greater than the preset access factor threshold, the third wireless device is determined as the target wireless device; when the third access factor is less than or equal to the preset access factor threshold, the target wireless device is determined from the first wireless device and the second wireless device based on the first access factor and the second access factor.
5. A multi-device access method according to claim 4, characterized in that: The process of determining the target wireless device from the first wireless device and the second wireless device is as follows: When the first access factor is greater than the second access factor, determining the first wireless device as a target wireless device; When the first access factor is smaller than the second access factor, the second wireless device is determined as the target wireless device.
6. A multi-device access method according to claim 1, characterized in that: When the target wireless device is a third wireless device, the process of selecting a target idle channel for the target access device from the target wireless device is as follows: Obtaining a first absolute value of a difference between the number of target access devices supporting the first access frequency band applying for access and the number of idle channels of the first wireless device; and a second absolute value of a difference between the number of target access devices supporting the second access frequency band applying for access and the number of idle channels of the second wireless devices; When the absolute value of the first quantity difference is greater than the absolute value of the second quantity difference, selecting an idle channel corresponding to the first access frequency band from the third wireless device to obtain a target idle channel; When the absolute value of the first quantity difference is smaller than the absolute value of the second quantity difference, an idle channel corresponding to the second access frequency band is selected from the third wireless device to obtain a target idle channel.
7. A multi-device access system, characterized in that: The system includes: An information collection module is used to obtain the access frequency band supported by the target access device; A wireless device selection module is used to obtain an access factor for a target access device to access a wireless device of a corresponding access frequency band according to the number of target access devices corresponding to each access frequency band applying for access and the number of idle channels of the wireless devices corresponding to the access frequency band; select a target wireless device for the target access device from all wireless devices according to the access factor, wherein the wireless device is a second wireless device providing a second access frequency band, a second wireless device providing a second access frequency band, and a third wireless device providing both a second access frequency band and a second access frequency band; A channel selection and access module, used to select a target idle channel for a target access device from a target wireless device, so as to access the target access device to the network through the target idle channel; The process of obtaining the access factor of the wireless device for the target access device to access the corresponding access frequency band is as follows: The ratio of the number of idle channels of the first wireless device corresponding to the first access frequency band to the number of target access devices applying for access in the access frequency band is used as a first access factor to support the target access devices in the first access frequency band to access the first wireless device; The ratio of the number of idle channels of the second wireless device corresponding to the second access frequency band to the number of target access devices applying for access in the access frequency band is used as a second access factor for supporting the target access devices in the second access frequency band to access the second wireless device; The ratio of half of the number of idle channels of the third wireless device corresponding to the first access frequency band and the second access frequency band to the number of access devices supporting the first access frequency band and the second access frequency band applying for access is used as the third access factor corresponding to the target access device supporting the first access frequency band and the second access frequency band accessing the third wireless device.
8. A multi-device access device, characterized in that: include: A memory, a processor, and a multi-device access program stored in the memory and running on the processor, wherein when the multi-device access program is executed by the processor, the steps of the multi-device access method according to any one of claims 1 to 6 are implemented.
9. A storage medium, characterized in that: A multi-device access program is stored thereon, and when the multi-device access program is executed by a processor, the steps of the multi-device access method described in any one of claims 1-6 are implemented.
Citation Information
Patent Citations
Method for configuring IP cameras to have access to wireless router
CN104301884A
Control method and device for accessing multi-band channels
CN107949030A