CN114585048B - Control method, device, equipment and medium for multi-equipment time-sharing connection to WiFi - Google Patents

Control method, device, equipment and medium for multi-equipment time-sharing connection to WiFi Download PDF

Info

Publication number
CN114585048B
CN114585048B CN202210239144.7A CN202210239144A CN114585048B CN 114585048 B CN114585048 B CN 114585048B CN 202210239144 A CN202210239144 A CN 202210239144A CN 114585048 B CN114585048 B CN 114585048B
Authority
CN
China
Prior art keywords
value
mac address
time
preset time
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210239144.7A
Other languages
Chinese (zh)
Other versions
CN114585048A (en
Inventor
黄健
阚连君
赖顺德
董聪敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Krell Precision Technology Yangzhou Co ltd
Original Assignee
Krell Precision Technology Yangzhou Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Krell Precision Technology Yangzhou Co ltd filed Critical Krell Precision Technology Yangzhou Co ltd
Priority to CN202210239144.7A priority Critical patent/CN114585048B/en
Publication of CN114585048A publication Critical patent/CN114585048A/en
Application granted granted Critical
Publication of CN114585048B publication Critical patent/CN114585048B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/02Access restriction performed under specific conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The application belongs to the technical field of storage wireless communication, and provides a control method, a device, equipment and a medium for multi-equipment time-sharing connection to WiFi. The control method of the application comprises the following steps: acquiring the MAC address of the WiFi access equipment; converting the MAC address of the equipment into a numerical form to generate an MAC address numerical value; dividing the MAC address value by a preset time divisor to obtain a target remainder value; acquiring actual access time associated with the equipment according to the target remainder value, and controlling the equipment to access WiFi at the actual access time; the actual access time is determined based on the target remainder value and the preset access time. According to the application, based on the unique MAC address associated with the equipment, the equipment is connected in a time-sharing manner by controlling the equipment, the number of WiFi equipment connected with the router in the same time is reduced under the condition that the wireless communication quality is not affected, the risks of connection failure and communication failure caused by too many WiFi equipment connected with the router in the same time are avoided, and the quality of wireless connection and communication is improved.

Description

Control method, device, equipment and medium for multi-equipment time-sharing connection to WiFi
Technical Field
The application relates to the technical field of storage wireless communication, in particular to a control method, a device, equipment and a medium for multi-equipment time-sharing connection to WiFi.
Background
In the prior art, in the practical use process, the number of devices connected with the router is limited by an upper limit, and in theory, 255 WiFi devices can be simultaneously connected at most in the same time, but in the practical use process, 10-16 WiFi devices which can be simultaneously connected with the router are generally used, because the bandwidth is limited.
If the home router is required to be capable of connecting a plurality of WiFi devices as much as possible, the existing solution is generally to increase the bandwidth, purchase a dual-frequency multi-antenna wireless router or purchase an enterprise level router. However, this increases the input cost. There is an urgent need for a method to reduce the number of WiFi devices connected to a router in the same time without affecting the quality of wireless communication.
Disclosure of Invention
Aiming at the defects in the prior art, the application provides a control method, a device, equipment and a medium for connecting multiple equipment in a time-sharing way to WiFi, so as to solve the problem that partial equipment is lost due to excessive quantity of the existing equipment connected to the WiFi at the same time.
In a first aspect, the present application provides a method for controlling multi-device time-sharing connection to WiFi, including:
acquiring the MAC address of the WiFi access equipment;
converting the MAC address of the equipment into a digital form to generate an MAC address value;
dividing the MAC address value by a preset time divisor to obtain a target remainder value;
acquiring actual access time associated with the equipment according to the target remainder value, and controlling the equipment to access WiFi at the actual access time; the actual access time is determined based on the target remainder value and a preset access time.
According to the technical scheme, the control method for the WiFi connected by multiple devices in a time-sharing way is based on the unique MAC address associated with the devices, and the number of the WiFi devices connected with the router in the time is reduced under the condition that the wireless communication quality is not affected by controlling the device connected by the time-sharing way. Therefore, the equipment can be connected with the router, the risks of connection failure and communication failure caused by too many WiFi equipment connected with the router in the same time end are avoided, and the quality of wireless connection and communication is improved.
Optionally, the converting the MAC address of the WiFi access device into a digital form, generating a MAC address value includes:
acquiring the MAC address of the equipment;
generating a hexadecimal address value based on the MAC address;
and converting the hexadecimal address value into a decimal address value, and outputting the decimal address value, namely the MAC address value.
Optionally, the dividing the decimal address value by a preset time divisor to obtain a target remainder value includes:
dividing the MAC address value by a preset time divisor to obtain an initial remainder value;
when the initial residual value is smaller than or equal to a preset intermediate value, the initial residual value is the target residual value;
and when the initial residual value is larger than a preset intermediate value, acquiring the target residual value based on the initial residual value and the preset time divisor.
Optionally, when the initial remainder value is greater than a preset intermediate value,wherein H is the MAC address value, M is the preset time divisor, a is the target remainder value, S is the preset intermediate value, and e is the initial remainder value.
Optionally, the preset time divisor is determined according to the system of the MAC address value, a preset time interval of device time-sharing access to WiFi, and a preset time difference of device time-sharing access to WiFi, and the method for determining the preset time divisor includes:
determining a preset time divisor M based on the preset time interval and the preset time difference, wherein
And converting the preset time divisor into a binary value corresponding to the MAC address value, and outputting the preset time divisor.
Optionally, the actual access time is a sum of the preset access time and the target remainder value.
In a second aspect, the present application provides a control apparatus for multi-device time-sharing connection to WiFi, including:
the acquisition module is used for acquiring the MAC address of the WiFi access equipment;
the address processing module is used for converting the MAC address of the equipment into a digital form and generating an MAC address value;
the calculation module is used for dividing the MAC address value by a preset time divisor to obtain a target remainder value;
the control module is used for acquiring the actual access time associated with the equipment according to the target remainder value and controlling the equipment to access WiFi at the actual access time; the actual access time is determined based on the target remainder value and a preset access time.
Optionally, the address processing module is specifically further configured to:
acquiring the MAC address of the equipment;
generating a hexadecimal address value based on the MAC address;
and converting the hexadecimal address value into a decimal address value, and outputting the decimal address value, namely the MAC address value.
Optionally, the computing module is specifically further configured to:
dividing the MAC address value by a preset time divisor to obtain an initial remainder value;
when the initial residual value is smaller than or equal to a preset intermediate value, the initial residual value is the target residual value;
and when the initial residual value is larger than a preset intermediate value, acquiring the target residual value based on the initial residual value and the preset time divisor.
Optionally, the computing module is specifically further configured to: when the initial remainder value is greater than a preset intermediate value,wherein H is the MAC address value, M is the preset time divisor, a is the target remainder value, S is the preset intermediate value, and e is the initial remainder value.
Optionally, the preset time divisor is determined according to the system of the MAC address value, a preset time interval of device time-sharing access to WiFi, and a preset time difference of device time-sharing access to WiFi, and the computing module is specifically further configured to:
determining a preset time divisor M based on the preset time interval and the preset time difference, wherein
And converting the preset time divisor into a binary value corresponding to the MAC address value, and outputting the preset time divisor.
Optionally, in the control module, the actual access time is a sum of the preset access time and the target remainder value.
In a third aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of any of the methods described above when the processor executes the computer program.
In a fourth aspect, an embodiment of the application provides a computer readable storage medium having stored thereon computer program instructions which when executed by a processor perform the steps of any of the methods described above.
By adopting the technical scheme, the application has the following beneficial effects:
the application reduces the number of WiFi devices connected with the router in the same time under the condition of not affecting the wireless communication quality by controlling the time-sharing connection of the devices based on the unique MAC addresses associated with the devices. Therefore, the equipment can be connected with the router, the risks of connection failure and communication failure caused by too many WiFi equipment connected with the router in the same time end are avoided, and the quality of wireless connection and communication is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below. Like elements or portions are generally identified by like reference numerals throughout the several figures. In the drawings, elements or portions thereof are not necessarily drawn to scale.
Fig. 1 shows a flowchart of a control method for multi-device time-sharing connection to WiFi according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a 48-bit wide MAC address provided by an embodiment of the application;
fig. 3 shows a flowchart of a control method for multi-device time-sharing connection to WiFi according to an embodiment of the present application;
fig. 4 is a block diagram of a control device for multi-device time-sharing connection to WiFi according to an embodiment of the present application;
fig. 5 shows a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Embodiments of the technical scheme of the present application will be described in detail below with reference to the accompanying drawings. The following examples are only for more clearly illustrating the technical aspects of the present application, and thus are merely examples, which should not be construed as limiting the scope of the present application.
It is noted that unless otherwise indicated, technical or scientific terms used herein should be given the ordinary meaning as understood by one of ordinary skill in the art to which this application belongs.
In the prior art, in the practical use process, the number of devices connected with the router is limited by an upper limit, and in theory, 255 WiFi devices can be simultaneously connected at most in the same time, but in the practical use process, 10-16 WiFi devices which can be simultaneously connected with the router are generally used, because the device is limited by bandwidth.
If the home router is required to be capable of connecting a plurality of WiFi devices as much as possible, the existing solution is generally to increase the bandwidth, purchase a dual-frequency multi-antenna wireless router or purchase an enterprise level router. However, this increases the input cost. In order to solve the above problems, the present application provides a control method for multi-device time sharing connection to WiFi.
Fig. 1 shows a flowchart of a control method for multi-device time-sharing connection to WiFi according to an embodiment of the present application. As shown in fig. 1, the method for controlling multi-device time-sharing connection to WiFi according to an embodiment of the present application includes:
s101, acquiring the MAC address of the WiFi access equipment.
S102, converting the MAC address of the WiFi access equipment into a digital form, and generating an MAC address value.
The MAC Address (Media Access Control Address), which is interpreted as a medium access control Address, is also called a local area network Address (LAN Address), MAC Address, ethernet Address (Ethernet Address) or Physical Address (Physical Address), which is an Address for confirming the location of the network device. In the OSI model, the third layer network layer is responsible for IP addresses, and the second layer data link layer is responsible for MAC addresses. The MAC address is used to uniquely identify a network card in the network, and if one or more network cards exist in a device, each network card needs and has a unique MAC address.
The protocols define two bit wide MAC addresses, 48bit and 64bit, called EUI-48 and EUI-64, respectively, where EUI is an abbreviation for extended unique identifier. Taking the current mainstream application of the 48-bit wide MAC address as an example, referring to fig. 2, which includes 6 bytes of Octet0-Octet5, because of the uniqueness of the MAC addresses of the devices connected to WiFi, based on this, the MAC address can be used as a unique identifier associated with the WiFi connected device, for example, the obtained MAC address is 74-E5-F9-AE-A2-F4, and total 6 bytes of 12 hexadecimal numbers, then the processing required in step S102 is to convert the obtained MAC address into a pure digital format, and firstly, delete "-" between the bytes, so that the obtained MAC address is converted into a pure digital format of hexadecimal system, so as to facilitate the subsequent operation.
It should be noted that, the representation manner of the MAC address may be 74:e5:f9:ae:a2:f4 or 74E5:f9ae:a2f4, and the obtained MAC address specifically performed in step S102 still needs to be deleted, which represents the MAC address as a pure digital type 74E5F9AEA2F4.
S103, dividing the MAC address value by a preset time divisor to obtain a target remainder value.
In order to realize time sharing processing of a plurality of WiFi access devices, time determination is carried out based on the MAC address, so that the plurality of devices which are ready to be connected to WiFi can be carried out time sharing connection processing based on the MAC address of the device, thereby avoiding the problems that the plurality of devices are ready to be connected to WiFi and partial devices are failed to be connected due to system updating carried out at preset fixed time, and realizing time-staggered processing of the plurality of devices which are ready to be connected to WiFi under the bandwidth limitation of a home level router based on the problems of the connection failure of the plurality of devices which are ready to be connected to WiFi, avoiding the connection loss of partial devices caused by the bandwidth limitation, improving the reliability of WiFi connection and avoiding the device updating caused by the connection loss.
S104, acquiring WiFi preset access time associated with the WiFi access equipment according to the target remainder value, and controlling the WiFi access equipment to access WiFi at the WiFi access time; the WiFi access time is determined by the target remainder value and the preset access time.
When the equipment needs to be updated, the equipment is updated at a time point selected manually or at a time point when one electric equipment is in a standby state, and when the electric equipment is in the standby state, wiFi is not connected, and for updating purposes, wiFi is connected at a time point for downloading data required by updating. When a single router covers multiple devices that need to be updated, then multiple devices may be connected to WiFi simultaneously, limited by the bandwidth limitations of the single router, and may cause loss of some devices. The actual WiFi access time mentioned in this step is the expected access time of a plurality of devices, which may be a preset time point set manually or may be determined by the device system, but for an enterprise, a plurality of devices in a machine room may access WiFi at the same time point, which may cause access loss.
The target residual value is obtained according to the MAC address in step S103, the time of accessing the equipment to the WiFi is determined based on the target residual value, each equipment has a unique MAC address, the time-staggered processing can be carried out on a plurality of equipment based on the MAC address, the simultaneous access of the plurality of equipment is avoided, and the reliability of network connection is improved.
Optionally, converting the MAC address of the WiFi access device from hexadecimal to decimal, outputting consecutive decimal address values, including:
acquiring the MAC address of the WiFi access equipment;
generating hexadecimal address values based on the MAC addresses;
and converting the hexadecimal address value into a decimal address value, and outputting the decimal address value.
Taking the specific MAC address 74-E5-F9-AE-A2-F4 as an example, when the MAC address is obtained, a hexadecimal number in the form of a pure value is first generated based on the MAC address, XX-XX is generated to generate xxxxxxxxxx, then 74-E5-F9-AE-A2-F4 corresponds to generate 74E5F9AEA2F4, then the hexadecimal number is converted into a decimal number, and the hexadecimal number 74E5F9AEA2F4 corresponds to generate a decimal address value 128531085304564.
In this step, the hexadecimal value of the obtained MAC address is converted into a decimal value, so that subsequent calculation processing is conveniently performed on the value generated based on the MAC address, and the target remainder value is obtained for determining WiFi.
Optionally, referring to fig. 3, step S103 specifically includes:
dividing the MAC address value by a preset time divisor to obtain an initial remainder value;
when the initial residual value is smaller than or equal to a preset intermediate value, the initial residual value is the target residual value;
and when the initial residual value is larger than the preset intermediate value, acquiring a target residual value based on the initial residual value and the preset time divisor.
Specifically, based on dividing the decimal address value by the preset time divisor, the preset time divisor is a preset value, and is used for dividing the decimal address value, for example, setting the preset time divisor as M, dividing the decimal address value by M, then manually dividing the decimal address values associated with the plurality of WiFi access devices into M files, because the preset time divisor is taken as the divisor, regardless of the specific numerical value of the divisor, the remainder value is necessarily smaller than M, and the specific initial remainder value e is an integer value of 0-e-M-1.
Based on this, the preset intermediate value is a reference time point for dividing a plurality of initial remainder values based on a preset access time, for example, the preset access time is a time for the device to access WIFI, which is set by people, and is generally set to be at night in order to reduce the influence of daytime on network resources of other devices. If the error time processing of the WiFi connection device is not performed, all the devices to be connected with the WiFi can be connected with the WiFi at the same time at the preset access time, and partial loss occurs at the moment. The access time is divided through the preset intermediate value, the initial remainder value is associated with the MAC address corresponding to the WiFi access equipment, the setting is carried out according to the preset intermediate value on the basis of the initial remainder value, the purpose of time-staggered is achieved, and the reliability of the equipment accessing WiFi is improved.
Optionally, when the initial remainder value is greater than a preset intermediate value,wherein H is the MAC address value, M is the preset time divisor, A is the target remainder value, S is the preset intermediate value, and e is the initial remainder value.
Specifically, when the initial remainder value is less than or equal to the preset intermediate value, the target remainder value is directly determined as the initial remainder value. When the initial remainder value M is greater than the preset intermediate value, the target remainder value is determined based on the preset intermediate value and the initial remainder value. In order to make the target initial value accord with the preset access time, when the waiting time of the access time of the part of equipment is too long, the time of the part of equipment can be adjusted to be between the preset access times to perform WiFi connection, so that the problem of too long waiting time is avoided.
In a specific example, for example, the preset access time is 00:00 at night, the access time of the WiFi access device to be associated with the initial remainder value can be determined through the initial remainder value e, but if the access time is determined through adding the acquired initial remainder value on the basis of 00:00, the associated device waits for too long under the condition that the initial remainder value is larger, so that the access efficiency is affected. Therefore, the application connects the part of the initial remainder value control which is larger than the preset intermediate value before the preset access time, reduces the waiting time of equipment access, and can improve the task processing efficiency after the subsequent equipment access.
Optionally, the preset time divisor is determined according to a system of the MAC address value, a preset time interval of the device time-sharing access to WiFi, and a preset time difference of the device time-sharing access to WiFi, and the determining method of the preset time divisor includes:
determining a preset time divisor M based on the preset time interval and the preset time difference, wherein
And converting the preset time divisor into a binary value corresponding to the MAC address value, and outputting the preset time divisor.
The preset time interval is an interval between connection times determined manually, or taking the preset access time 00:00 as an example, when the preset time interval is 1min, the device may be accessed in the time of 00:00, 00:01, 23:59 and the like, each access time interval is 1min, and meanwhile, based on a preset time difference, the preset time difference is set to be used for controlling the time difference between the access time of the earliest access device and the access time of the latest access device, so as to ensure that the device completes access within the preset time difference. When determined based on the preset time interval and the preset time difference, a desired preset time divisor may be determined,
based on this, the initial remainder value must be less than or equal toThe adjustment of the initial remainder value, i.e. the adjustment of the preset time difference and/or the preset time interval, affects the number of access devices between each access point in time. Thus, when a large number of devices are accessed, the time difference is preset toAnd the adjustment of the preset time interval needs to be determined based on the attribute of the WiFi router.
It should be noted that, in this embodiment, the preset time divisor needs to be adjusted to a decimal value corresponding to the MAC address value, if the MAC address value is decimal, the preset time divisor also needs to be decimal, and if the MAC address value is hexadecimal, the preset time divisor also needs to be adjusted to a hexadecimal value accordingly.
Optionally, the actual access time is a sum of the preset access time and the target remainder value.
In the above steps, a correlation step concerning determination of a target remainder value is described, the target remainder value being correlated with a preset time divisor, and the preset time divisor being determined based on a preset time difference and a preset time interval. After the target remainder value is determined, the control device may determine the actual access time based on the preset access time and the target remainder value, where the range of the target remainder value a in this embodiment should be S-e max A is not less than A and not more than S, and the initial remainder e is an integer in the range of not less than 0 and not more than M-1, the range of the target remainder A is not less than S-M+1 and not more than A and not more than S. The preset intermediate value S is in [0, M-1 ]]In the whole range, if S-M+1 is less than or equal to 0,S-M+1 and less than 0, in the embodiment, the device access is performed in advance of the time of M-S-1 on the basis of 00:00, the problem of long device waiting time caused by the device access after the device access is 00:00 is avoided, and the access efficiency is improved.
In one embodiment, referring to fig. 4, there is provided a control apparatus 20 for multi-device time sharing connection to WiFi, comprising:
an acquiring module 201, configured to acquire a MAC address of a WiFi access device;
an address processing module 202, configured to convert the MAC address of the device into a value form, and generate a MAC address value;
a calculation module 203, configured to divide the MAC address value by a preset time divisor to obtain a target remainder value;
the control module 204 is configured to obtain an actual access time associated with the device according to the target remainder value, and control the device to access WiFi at the actual access time; the actual access time is determined based on the target remainder value and a preset access time.
Optionally, the address processing module is specifically further configured to:
acquiring the MAC address of the equipment;
generating a hexadecimal address value based on the MAC address;
and converting the hexadecimal address value into a decimal address value, and outputting the decimal address value, namely the MAC address value.
Optionally, the computing module is specifically further configured to:
dividing the MAC address value by a preset time divisor to obtain an initial remainder value;
when the initial residual value is smaller than or equal to a preset intermediate value, the initial residual value is the target residual value;
and when the initial residual value is larger than a preset intermediate value, acquiring the target residual value based on the initial residual value and the preset time divisor.
Optionally, the computing module is specifically further configured to: when the initial remainder value is greater than a preset intermediate value,wherein H is the MAC address value, M is the preset time divisor, a is the target remainder value, S is the preset intermediate value, and e is the initial remainder value.
Optionally, the preset time divisor is determined according to the system of the MAC address value, a preset time interval of device time-sharing access to WiFi, and a preset time difference of device time-sharing access to WiFi, and the computing module is specifically further configured to:
determining a preset time divisor M based on the preset time interval and the preset time difference, wherein
And converting the preset time divisor into a binary value corresponding to the MAC address value, and outputting the preset time divisor.
Optionally, in the control module, the actual access time is a sum of the preset access time and the target remainder value.
The control device 20 for multi-device time-sharing WiFi and the method for multi-device time-sharing WiFi provided in the embodiments of the present application adopt the same inventive concept, and can achieve the same beneficial effects, which are not described herein.
Based on the same inventive concept as the method for controlling the multi-device time-sharing connection to the WiFi, the embodiment of the present application further provides an electronic device 30, as shown in fig. 5, where the electronic device 30 may include a processor 301 and a memory 302.
The processor 301 may be a general purpose processor such as a Central Processing Unit (CPU), digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, and may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the application. The general purpose processor may be a microprocessor or any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present application may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in the processor for execution.
The memory 302 serves as a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The Memory may include at least one type of storage medium, which may include, for example, flash Memory, hard disk, multimedia card, card Memory, random access Memory (Random Access Memory, RAM), static random access Memory (Static Random Access Memory, SRAM), programmable Read-Only Memory (Programmable Read Only Memory, PROM), read-Only Memory (ROM), charged erasable programmable Read-Only Memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), magnetic Memory, magnetic disk, optical disk, and the like. The memory is any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to such. The memory 302 in embodiments of the present application may also be circuitry or any other device capable of performing memory functions for storing program instructions and/or data.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above method embodiments may be implemented by hardware associated with program instructions, where the foregoing program may be stored in a computer readable storage medium, and when executed, the program performs steps including the above method embodiments; such computer storage media can be any available media or data storage device that can be accessed by a computer including, but not limited to: various media that can store program code, such as a mobile storage device, a random access memory (RAM, random Access Memory), a magnetic memory (e.g., a floppy disk, a hard disk, a magnetic tape, a magneto-optical disk (MO), etc.), an optical memory (e.g., CD, DVD, BD, HVD, etc.), and a semiconductor memory (e.g., ROM, EPROM, EEPROM, a nonvolatile memory (NAND FLASH), a Solid State Disk (SSD)), etc.
Alternatively, the above-described integrated units of the present application may be stored in a computer-readable storage medium if implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, the technical solutions of the embodiments of the present application may be embodied in essence or a part contributing to the prior art in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media that can store program code, such as a mobile storage device, a random access memory (RAM, random Access Memory), a magnetic memory (e.g., a floppy disk, a hard disk, a magnetic tape, a magneto-optical disk (MO), etc.), an optical memory (e.g., CD, DVD, BD, HVD, etc.), and a semiconductor memory (e.g., ROM, EPROM, EEPROM, a nonvolatile memory (NAND FLASH), a Solid State Disk (SSD)), etc.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the application, and are intended to be included within the scope of the appended claims and description.

Claims (6)

1. The control method for the multi-device time-sharing connection to the WiFi is characterized by comprising the following steps of:
acquiring the MAC address of the WiFi access equipment;
converting the MAC address of the equipment into a digital form to generate an MAC address value;
dividing the MAC address value by a preset time divisor to obtain a target remainder value; specifically, dividing the decimal address value by a preset time divisor to obtain a target remainder value, including:
dividing the MAC address value by a preset time divisor to obtain an initial remainder value;
when the initial residual value is smaller than or equal to a preset intermediate value, the initial residual value is the target residual value;
when the initial residual value is larger than a preset intermediate value, acquiring the target residual value based on the initial residual value and the preset time divisor; when the initial remainder value is greater than a preset intermediate value,the method comprises the steps of carrying out a first treatment on the surface of the Wherein H is the MAC address value, M is the preset time divisor, A is the target remainder value, S is the preset intermediateA value e is the initial remainder value;
the preset time divisor is determined according to the system of the MAC address value, the preset time interval of the device time-sharing access to the WiFi and the preset time difference of the device time-sharing access to the WiFi, and the method for determining the preset time divisor comprises the following steps:
determining a preset time divisor M based on the preset time interval and the preset time difference, wherein the preset time divisor M
Converting the preset time divisor into a binary value corresponding to the MAC address value, and outputting the preset time divisor;
acquiring actual access time associated with the equipment according to the target remainder value, and controlling the equipment to access WiFi at the actual access time; the actual access time is determined based on the target remainder value and a preset access time.
2. The method of claim 1, wherein converting the MAC address of the WiFi access device to a digital form, generating a MAC address value, comprises:
acquiring the MAC address of the equipment;
generating a hexadecimal address value based on the MAC address;
and converting the hexadecimal address value into a decimal address value, and outputting the decimal address value, namely the MAC address value.
3. The method of claim 1, wherein the actual access time is a sum of the preset access time and the target remainder value.
4. A control device for multi-device time sharing connection to WiFi, comprising:
the acquisition module is used for acquiring the MAC address of the WiFi access equipment;
the address processing module is used for converting the MAC address of the equipment into a digital form and generating an MAC address value;
the calculation module is used for dividing the MAC address value by a preset time divisor to obtain a target remainder value; the method is particularly used for:
dividing the decimal address value by a preset time divisor to obtain a target remainder value, including:
dividing the MAC address value by a preset time divisor to obtain an initial remainder value;
when the initial residual value is smaller than or equal to a preset intermediate value, the initial residual value is the target residual value;
when the initial residual value is larger than a preset intermediate value, acquiring the target residual value based on the initial residual value and the preset time divisor; when the initial remainder value is greater than a preset intermediate value,the method comprises the steps of carrying out a first treatment on the surface of the Wherein H is the MAC address value, M is the preset time divisor, a is the target remainder value, S is the preset intermediate value, and e is the initial remainder value;
the preset time divisor is determined according to the system of the MAC address value, the preset time interval of the device time-sharing access to the WiFi and the preset time difference of the device time-sharing access to the WiFi, and the method for determining the preset time divisor comprises the following steps:
determining a preset time divisor M based on the preset time interval and the preset time difference, wherein the preset time divisor M
Converting the preset time divisor into a binary value corresponding to the MAC address value, and outputting the preset time divisor;
the control module is used for acquiring the actual access time associated with the equipment according to the target remainder value and controlling the equipment to access WiFi at the actual access time; the actual access time is determined based on the target remainder value and a preset access time.
5. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method of any one of claims 1 to 3 when the computer program is executed by the processor.
6. A computer readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the steps of the method of any of claims 1 to 3.
CN202210239144.7A 2022-03-11 2022-03-11 Control method, device, equipment and medium for multi-equipment time-sharing connection to WiFi Active CN114585048B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210239144.7A CN114585048B (en) 2022-03-11 2022-03-11 Control method, device, equipment and medium for multi-equipment time-sharing connection to WiFi

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210239144.7A CN114585048B (en) 2022-03-11 2022-03-11 Control method, device, equipment and medium for multi-equipment time-sharing connection to WiFi

Publications (2)

Publication Number Publication Date
CN114585048A CN114585048A (en) 2022-06-03
CN114585048B true CN114585048B (en) 2023-12-08

Family

ID=81775241

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210239144.7A Active CN114585048B (en) 2022-03-11 2022-03-11 Control method, device, equipment and medium for multi-equipment time-sharing connection to WiFi

Country Status (1)

Country Link
CN (1) CN114585048B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017185740A1 (en) * 2016-04-28 2017-11-02 深圳市中兴微电子技术有限公司 Method and device for access control
CN107483203A (en) * 2017-07-13 2017-12-15 深圳市盛路物联通讯技术有限公司 Internet of Things access point receives the encryption method at times and device of data
WO2018219125A1 (en) * 2017-05-27 2018-12-06 华为技术有限公司 Wifi network access method, apparatus and system
CN110187171A (en) * 2019-06-25 2019-08-30 武汉阿迪克电子股份有限公司 A kind of the LoRaWAN electric energy meter and method of network entry of quick networking mechanism
CN111327391A (en) * 2018-12-17 2020-06-23 深圳市中兴微电子技术有限公司 Time division multiplexing method, device, system and storage medium
CN112532700A (en) * 2020-11-17 2021-03-19 华帝股份有限公司 Data transmission method and related equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017185740A1 (en) * 2016-04-28 2017-11-02 深圳市中兴微电子技术有限公司 Method and device for access control
WO2018219125A1 (en) * 2017-05-27 2018-12-06 华为技术有限公司 Wifi network access method, apparatus and system
CN107483203A (en) * 2017-07-13 2017-12-15 深圳市盛路物联通讯技术有限公司 Internet of Things access point receives the encryption method at times and device of data
CN111327391A (en) * 2018-12-17 2020-06-23 深圳市中兴微电子技术有限公司 Time division multiplexing method, device, system and storage medium
CN110187171A (en) * 2019-06-25 2019-08-30 武汉阿迪克电子股份有限公司 A kind of the LoRaWAN electric energy meter and method of network entry of quick networking mechanism
CN112532700A (en) * 2020-11-17 2021-03-19 华帝股份有限公司 Data transmission method and related equipment

Also Published As

Publication number Publication date
CN114585048A (en) 2022-06-03

Similar Documents

Publication Publication Date Title
US11275530B2 (en) Method, system, and related device for NAS data access
US7616635B2 (en) Address mapping for data packet routing
EP3664372A1 (en) Network management method and related device
WO2020140634A1 (en) Storage space optimization method and device, computer apparatus, and storage medium
EP2169918A2 (en) Network device with proxy address resolution protocol
US20220182323A1 (en) Method for forwarding packet in sr network, device, and system
US9197598B2 (en) MAC address distribution
CN111273924B (en) Software updating method and device
EP3128716A1 (en) Data processing method and apparatus
WO2021088629A1 (en) Detnet data packet processing method and apparatus
CN114710467B (en) IP address storage method and device and hardware gateway
CN112152940A (en) Message processing method, device and system
CN113794764A (en) Request processing method and medium for server cluster and electronic device
CN113037681B (en) ACL rule management method, ACL rule management device, computer equipment and computer readable medium
CN114585048B (en) Control method, device, equipment and medium for multi-equipment time-sharing connection to WiFi
CN111064786A (en) Account identifier management method and device
EP3964996A1 (en) Database access method and device
CN112804276B (en) Virtual broadband remote access server, control method thereof and communication system
CN111511041B (en) Remote connection method and device
CN113328948B (en) Resource management method, device, network equipment and computer readable storage medium
CN111654398B (en) Configuration updating method and device, computer equipment and readable storage medium
CN112395256B (en) Data reading method, electronic equipment and computer storage medium
CN108667951B (en) Virtual MAC address mapping method and device, storage medium and relay equipment
CN112286966A (en) Data stream processing method, data stream recovery method, data stream processing device, data stream recovery device and storage medium
CN108718285B (en) Flow control method and device of cloud computing cluster and server

Legal Events

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