CN116981018A - Method for automatically connecting intelligent equipment with router - Google Patents
Method for automatically connecting intelligent equipment with router Download PDFInfo
- Publication number
- CN116981018A CN116981018A CN202311236760.8A CN202311236760A CN116981018A CN 116981018 A CN116981018 A CN 116981018A CN 202311236760 A CN202311236760 A CN 202311236760A CN 116981018 A CN116981018 A CN 116981018A
- Authority
- CN
- China
- Prior art keywords
- connection
- information
- router
- priority
- value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 52
- 230000005540 biological transmission Effects 0.000 claims description 19
- 238000004590 computer program Methods 0.000 claims description 19
- 238000004364 calculation method Methods 0.000 claims description 7
- 238000010586 diagram Methods 0.000 description 12
- 230000006870 function Effects 0.000 description 4
- 238000010411 cooking Methods 0.000 description 2
- 238000004146 energy storage Methods 0.000 description 2
- 238000000605 extraction Methods 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000009977 dual effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/08—Access restriction or access information delivery, e.g. discovery data delivery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
- H04L67/61—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources taking into account QoS or priority requirements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/06—Authentication
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The application relates to the technical field of wireless interconnection, and particularly discloses a method for automatically connecting intelligent equipment with a router. According to the application, the priority parameters of the intelligent devices are classified to obtain a plurality of classification layers, so that the intelligent devices can be classified into a plurality of classification layers, and then the classification processing is carried out according to the channels corresponding to the plurality of classification layers, so as to obtain a classification ranking table, wherein the added value corresponding to different classification layers is different, and then the priority connection point value corresponding to each time period is obtained according to the classification ranking table, so that the intelligent devices with high point values are preferentially connected with the router, and further, the situation that the unimportant intelligent devices occupy the connection channels of the router can be avoided, therefore, the intelligent devices are only required to be connected with and disconnected from the router according to the priority of the corresponding time period of each intelligent device, and the intelligent devices with a plurality of increases are not required to be connected through increasing the router.
Description
Technical Field
The application relates to the technical field of wireless interconnection, in particular to a method for automatically connecting intelligent equipment with a router.
Background
With the high-speed development of the internet of things technology, more and more intelligent devices are applied to common families, and routers in the common families can only be connected with about 10 intelligent devices, and multiple intelligent devices are needed to be connected, so that the cost of the internet of things device is greatly increased due to the fact that the routers are required to be added or the router devices at high levels are replaced, meanwhile, the problem that the routers are required to be added along with the increase of the intelligent devices is solved, and the problem that the number of channels is increased due to the fact that the router devices are increased is solved by the aid of the method for automatically connecting the intelligent devices with the routers.
Disclosure of Invention
The application aims to provide a method for automatically connecting intelligent equipment with a router, which comprises the following steps:
acquiring the number of connection channels of a router;
acquiring priority parameters of the weight level of the intelligent equipment, wherein the priority parameters comprise signal strength information, specific time authentication information and common connection information;
classifying the number of the connection channels according to the priority parameters to obtain a plurality of classification layers;
sorting channels corresponding to the plurality of hierarchical layers to obtain a hierarchical sorting table;
acquiring a priority connection score value corresponding to each time period according to the hierarchical ordering table;
judging whether the priority connection score value meets a score value corresponding to a preset period or not:
if yes, automatically connecting the router with the intelligent equipment priority open channel corresponding to the priority connection score value;
and if not, queuing the intelligent equipment to be connected according to the hierarchical ordering table and automatically connecting the intelligent equipment with the router.
Preferably, the step of obtaining the priority parameter of the weight level of the intelligent device includes:
acquiring the connection times of the intelligent equipment and a router;
judging whether the number of times of connection between the intelligent device and the router meets preset times or not:
if yes, defining the information of the connection between the intelligent equipment and the router as first waiting connection information;
judging whether the connection time of the intelligent equipment corresponding to the first pending connection information meets preset time or not:
if so, defining the first to-be-determined connection information corresponding to the meeting preset time as common connection information;
if the connection information does not meet the preset connection information, the first connection information to be determined corresponding to the preset time is defined as the connection information to be used.
Preferably, the step of obtaining the priority parameter of the weight level of the intelligent device further includes:
acquiring time information of connection between the intelligent equipment and a router;
determining a adding mode according to the time information, wherein the adding mode is divided into a fixed point moment adding mode and a non-fixed point moment subtracting mode:
when the connection time of the intelligent equipment and the router is in a fixed point moment adding mode, adding the intelligent equipment corresponding to the common connection information to obtain a common information adding value, and defining time information corresponding to the common information adding value as specific time authentication information;
and when the connection time of the intelligent equipment and the router is in the non-fixed point moment subtracting mode, subtracting the intelligent equipment corresponding to the common connection information to obtain a common information subtracting value.
Preferably, the step of obtaining the priority parameter of the weight level of the intelligent device further includes:
acquiring signal quality information when the intelligent equipment is connected with a router, and extracting information from the signal quality information to obtain a signal quality value;
acquiring transmission distance information when the intelligent equipment is connected with a router, and extracting information of the transmission distance information to obtain a transmission distance value;
calculating a signal strength value according to the signal quality value and the transmission distance value, wherein a calculation formula is as follows: a=e×d×h, where a is a signal strength value, E is a signal quality value, D is a transmission distance value, and h is an information attenuation coefficient;
defining the information corresponding to the signal intensity value as signal intensity information;
establishing an information strength grade table when the intelligent device router is connected according to the signal strength information;
judging whether the corresponding intelligent equipment in the specific time authentication information has weak signals according to the information strength level table:
if so, a separate channel needs to be established for the intelligent device with weak signals corresponding to the specific time authentication information to be connected with a router.
Preferably, the step of classifying the number of connection channels according to the priority parameter includes:
weighting value adding is carried out on the intelligent equipment corresponding to the common connection information according to the common connection information to obtain an adding connection value, the intelligent equipment corresponding to the adding connection value is divided into priority channels according to the adding connection value, and the priority channels are defined as first priority score layers;
and subtracting the weight value of the intelligent equipment corresponding to the connection-free information according to the connection-free information to obtain a connection-free value, dividing the intelligent equipment corresponding to the connection-free value into secondary priority channels, and defining the secondary priority channels as second priority score layers.
Preferably, the step of obtaining the priority connection score corresponding to each time period according to the hierarchical ordering table includes:
acquiring a first scoring value of the intelligent device corresponding to the first priority score layer;
acquiring a second scoring value of the intelligent equipment corresponding to the first priority scoring layer in a corresponding period;
acquiring a third scoring value of the intelligent device corresponding to the hierarchical ordering table;
calculating according to the first score value, the second score value and the third score value to obtain a priority connection score value corresponding to each time period; wherein, the calculation formula is: k=z+x+b, where K is a priority connection score value, Z is a first score value, X is a second score value, and B is a third score value.
The application also provides a method and a device for automatically connecting the intelligent equipment with the router, wherein the method and the device comprise the following steps:
the first acquisition module is used for acquiring the number of the connecting channels of the router;
the second acquisition module is used for acquiring priority parameters of the weight level of the intelligent equipment, wherein the priority parameters comprise signal strength information, specific time authentication information and common connection information;
the grading module is used for grading the number of the connecting channels according to the priority parameters to obtain a plurality of grading layers;
the sorting module is used for sorting the channels corresponding to the plurality of hierarchical layers to obtain a hierarchical sorting table;
a third obtaining module, configured to obtain a priority connection score value corresponding to each time period according to the hierarchical ordering table;
the judging module is used for judging whether the priority connection score value meets the score value corresponding to the preset time period or not:
if yes, automatically connecting the router with the intelligent equipment priority open channel corresponding to the priority connection score value;
and if not, queuing the intelligent equipment to be connected according to the hierarchical ordering table and automatically connecting the intelligent equipment with the router.
Preferably, the first acquisition module includes:
the acquisition unit is used for acquiring the connection times of the intelligent equipment and the router;
the first judging unit is used for judging whether the number of times that the intelligent device is connected with the router meets the preset number of times:
if yes, defining the information of the connection between the intelligent equipment and the router as first waiting connection information;
the second judging unit is used for judging whether the connection time of the intelligent device corresponding to the first to-be-determined connection information meets the preset time or not:
if so, defining the first to-be-determined connection information corresponding to the meeting preset time as common connection information;
if the connection information does not meet the preset connection information, the first connection information to be determined corresponding to the preset time is defined as the connection information to be used.
The application also provides a computer device comprising a memory storing a computer program and a processor implementing the steps of the above method when executing the computer program.
The application also provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the above method.
The beneficial effects of the application are as follows: according to the application, the priority parameters of the intelligent devices are classified to obtain a plurality of classification layers, so that the intelligent devices can be classified into a plurality of classification layers, the classification is carried out on the channels corresponding to the classification layers to obtain a classification ranking table, wherein the score values corresponding to different classification layers are different, and then the priority connection score value corresponding to each time period is obtained according to the classification ranking table, so that the intelligent devices with high score values are preferentially connected with the router, and the situation that the unimportant intelligent devices occupy the connection channels of the router can be avoided, therefore, the intelligent devices are only required to be connected with and disconnected from the router according to the priority of the corresponding time period of each intelligent device, and the intelligent devices with a plurality of increases are not required to be connected by increasing the router.
Drawings
Fig. 1 is a flowchart of a method according to an embodiment of the present application.
Fig. 2 is a flowchart of a method according to an embodiment of the application after step S102.
Fig. 3 is a flowchart illustrating a method according to an embodiment of the application after step S102.
Fig. 4 is a flowchart illustrating a method according to an embodiment of the application after step S102.
Fig. 5 is a flowchart of the method according to an embodiment of the application after step S103.
Fig. 6 is a flowchart of a method according to an embodiment of the application after step S105.
FIG. 7 is a schematic diagram of a modeling apparatus according to an embodiment of the application.
Fig. 8 is a schematic diagram of a first acquisition module in a connection device according to an embodiment of the application.
Fig. 9 is a schematic diagram illustrating an internal structure of a computer device according to an embodiment of the application.
The achievement of the objects, functional features and advantages of the present application will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The router in the ordinary family can only be connected with about 10 intelligent devices, and needs to be connected with the intelligent devices in a plurality of ways, so that the cost of the internet of things device is greatly increased due to the need of adding the router or replacing the router at a high level, meanwhile, the problem of adding the router along with the increase of the intelligent devices can also occur, and further, the problem of increasing the number of channels by adding the router is solved by providing an automatic connection method of the intelligent devices and the router.
The embodiment of the application provides a method for automatically connecting intelligent equipment with a router. FIG. 1 is a flow chart of a method according to an embodiment of the application. As shown in fig. 1, the connection method includes:
s101, obtaining the number of connection channels of a router;
s102, acquiring priority parameters of the weight level of the intelligent equipment, wherein the priority parameters comprise signal strength information, specific time authentication information and common connection information;
s103, grading the number of the connection channels according to the priority parameters to obtain a plurality of grading layers;
s104, sorting channels corresponding to the plurality of hierarchical layers to obtain a hierarchical sorting table;
s105, acquiring a priority connection score value corresponding to each time period according to the hierarchical ordering table;
s106, judging whether the priority connection score value meets a score value corresponding to a preset period:
if yes, automatically connecting the router with the intelligent equipment priority open channel corresponding to the priority connection score value;
and if not, queuing the intelligent equipment to be connected according to the hierarchical ordering table and automatically connecting the intelligent equipment with the router.
In the technical solution of the foregoing embodiment, when an intelligent device is required to be connected with a router, the number of connection channels is classified according to a priority parameter of the intelligent device to obtain a plurality of classification layers, so that the intelligent device can be classified into a plurality of classification channels, and a classification ranking table is obtained by ranking channels corresponding to the plurality of classification layers, wherein the score values corresponding to different classification layers are different, and then the priority connection score value corresponding to each time period is obtained according to the classification ranking table, so that the intelligent device with a high score value is preferentially connected with the router, and further, the connection channel of the router is prevented from being occupied by an unimportant intelligent device, therefore, the connection and disconnection of the intelligent device are only required to be performed according to the priority of each time period corresponding to the intelligent device, and thus, the increased intelligent device is not required to be connected through increasing the router, for example, if the intelligent electric cooker is in a preset cooking time, the priority connection score value is increased, and otherwise, the intelligent electric cooker is not in a preset cooking time.
In one embodiment, fig. 2 is a flowchart of a method according to an embodiment of the present application after step S102. Referring to fig. 2, after step S102, it includes:
s107, acquiring the connection times of the intelligent equipment and the router;
s108, judging whether the number of times of connection between the intelligent device and the router meets the preset number of times;
if yes, defining the information of the connection between the intelligent equipment and the router as first waiting connection information;
s109, judging whether the connection time of the intelligent device corresponding to the first to-be-determined connection information meets preset time or not:
if so, defining the first to-be-determined connection information corresponding to the meeting preset time as common connection information;
if the connection information does not meet the preset connection information, the first connection information to be determined corresponding to the preset time is defined as the connection information to be used.
In the technical solution of the foregoing embodiment, when the common connection information needs to be acquired, the number of times that the intelligent device is connected to the router is first acquired, then it is determined whether the number of times that the intelligent device is connected to the router meets the preset number of times, if yes, the information that the intelligent device is connected to the router is defined as first waiting connection information, then it is determined whether the connection time of the intelligent device corresponding to the first waiting connection information meets the preset time, if yes, the first waiting connection information corresponding to the preset time is defined as the common connection information, and if not, the first waiting connection information corresponding to the unsatisfied preset time is defined as no connection information, so it can be determined whether the intelligent device is the common connection device through the number of times that the intelligent device is connected to the router and the connection time, and further it can be avoided that the common device always occupies a channel to be connected to the router.
In one embodiment, fig. 3 is a flowchart illustrating a method according to an embodiment of the application after step S102. As shown in fig. 3, the step S102 further includes:
s1010, acquiring time information of connection between the intelligent equipment and a router;
s1011, determining a adding mode according to the time information, wherein the adding mode is divided into a fixed point moment adding mode and a non-fixed point moment subtracting mode;
s1012, when the connection time of the intelligent equipment and the router is in a fixed point moment adding mode, adding points to the intelligent equipment corresponding to the common connection information to obtain common information adding values, and defining time information corresponding to the common information adding values as specific time authentication information;
s1013, when the connection time of the intelligent device and the router is in a non-fixed point moment subtracting mode, subtracting the intelligent device corresponding to the common connection information to obtain a common information subtracting value.
In the technical scheme of the embodiment, when the specific time authentication information is required to be acquired, the time information of connection between the intelligent device and the router is acquired in advance, then the working attribute of the intelligent device and the time corresponding to the time information are subjected to adding and assigning, and then the adding and assigning mode is determined according to the time information, wherein the adding and assigning mode is divided into a fixed point time adding and assigning mode and a non-fixed point time subtracting and assigning mode, when the time of connection between the intelligent device and the router is in the fixed point time adding and assigning mode, the intelligent device corresponding to the common connection information is added and assigned to obtain the common information adding and assigning value, and the time information corresponding to the common information adding and assigning value is defined as the specific time authentication information, when the time of connection between the intelligent device and the router is in the non-fixed point time subtracting and assigning mode, the intelligent device corresponding to the common connection information is subtracted and assigned to obtain the common information subtracting and assigned value, and therefore the order and priority of connection between the intelligent device and the router can be rapidly divided, and the connection between the intelligent device and the router is not occupied when the router is not in the important time.
In one embodiment, fig. 4 is a flowchart illustrating a method according to an embodiment of the application after step S102. As shown in fig. 4, the step S102 further includes:
s1014, acquiring signal quality information when the intelligent device is connected with a router, and extracting the signal quality information to obtain a signal quality value;
s1015, acquiring transmission distance information when the intelligent equipment is connected with a router, and extracting information of the transmission distance information to obtain a transmission distance value;
s1016, calculating a signal strength value according to the signal quality value and the transmission distance value, wherein a calculation formula is as follows: a=e×d×h (1)
In the formula (1), A is a signal intensity value, E is a signal quality value, D is a transmission distance value, and h is an information attenuation coefficient;
s1017, defining the information corresponding to the signal intensity value as signal intensity information;
s1018, establishing an information strength grade table when the intelligent device router is connected according to the signal strength information;
s1019, judging whether the corresponding intelligent device in the specific time authentication information has weak signals according to the information strength level table:
if so, a separate channel needs to be established for the intelligent device with weak signals corresponding to the specific time authentication information to be connected with a router.
In the technical solution of the foregoing embodiment, when signal strength information is needed, signal quality information when the intelligent device is connected to the router is first obtained, and information extraction is performed on the signal quality information to obtain a signal quality value, then transmission distance information when the intelligent device is connected to the router is obtained, and information extraction is performed on the transmission distance information to obtain a transmission distance value, so that a signal strength value is obtained by calculation according to a product of the signal quality value, the transmission distance value and an information attenuation coefficient, then an information strength level table when the intelligent device router is connected is established according to the signal strength information, then whether the intelligent device corresponding to the specific time authentication information has signal weakness is judged according to the information strength level table, and if so, a separate channel needs to be established for the intelligent device corresponding to the specific time authentication information to be connected to the router, so that the intelligent device in the specific time authentication information cannot be connected due to the signal weakness can be avoided.
In one embodiment, fig. 5 is a flowchart of a method according to an embodiment of the present application after step S103. Referring to fig. 5, after step S103, it includes:
s1031, weighting value adding is carried out on the intelligent equipment corresponding to the common connection information according to the common connection information to obtain an adding connection value, the intelligent equipment corresponding to the adding connection value is divided into priority channels according to the adding connection value, and the priority channels are defined as first priority score layers;
s1032, subtracting the weight value of the intelligent device corresponding to the connection-free information to obtain a subtracted connection value, dividing the intelligent device corresponding to the subtracted connection value into secondary priority channels, and defining the secondary priority channels as second priority score layers.
According to the technical scheme of the embodiment, the weight value of the intelligent equipment corresponding to the common connection information is added according to the common connection information to obtain an added connection value, the intelligent equipment corresponding to the added connection value is divided into priority channels according to the added connection value, the priority channels are defined as first priority score layers, the weight value of the intelligent equipment corresponding to the unused connection information is subtracted according to the unused connection information to obtain a subtracted connection value, the intelligent equipment corresponding to the subtracted connection value is divided into secondary priority channels, the secondary priority channels are defined as second priority score layers, and therefore the connection score values of the intelligent equipment in the first priority score layers are larger than the connection score values of the intelligent equipment in the second priority score layers, the connected router can be assigned with a value for sorting, and the connected intelligent equipment can be rapidly sorted through the subdivision mode, so that a table can be obtained.
In one embodiment, fig. 6 is a flowchart of a method according to an embodiment of the present application after step S105. Referring to fig. 6, after step S105, it includes:
s1051, obtaining a first score value of the intelligent device corresponding to the first priority score layer;
s1052, obtaining a second score value of the intelligent device corresponding to the first priority score layer in a corresponding period;
s1053, obtaining a third scoring value of the intelligent device corresponding to the hierarchical ordering table;
s1054, calculating to obtain a priority connection score value corresponding to each time period according to the first score value, the second score value and the third score value; wherein, the calculation formula is: k=z+x+b (2)
In the formula (2), k is a priority connection score value, z is a first score value, x is a second score value, and b is a third score value.
In the technical solution of the foregoing embodiment, when the priority connection score value is obtained, a first score value of the intelligent device corresponding to the first priority score layer is obtained first, then a second score value of the intelligent device corresponding to the first priority score layer in a corresponding period is obtained, then a third score value of the intelligent device corresponding to the hierarchical ranking table is obtained, a sum obtained by adding the first score value, the second score value and the third score value is a priority connection score, and further, the priority connection score is used for judging which intelligent device is preferentially connected with the router, so that the non-important intelligent device can be prevented from occupying a connection channel of the router, and therefore, connection and disconnection of the non-important intelligent device with the router only need to be performed according to the priority of each intelligent device corresponding period, and thus, the increased intelligent device does not need to be connected by increasing the router.
The embodiment of the application also provides a method and a device for automatically connecting the intelligent equipment with the router, and fig. 7 is a schematic diagram of a modeling device according to an embodiment of the application. Referring to fig. 7, the modeling apparatus includes:
a first obtaining module 201, configured to obtain the number of connection channels of the router;
a second obtaining module 202, configured to obtain a priority parameter of the weight level of the intelligent device, where the priority parameter includes signal strength information, specific time authentication information, and common connection information;
the grading module 203 is configured to grade the number of connection channels according to the priority parameter, so as to obtain a plurality of grading layers;
the sorting module 204 is configured to sort channels corresponding to the multiple hierarchical layers to obtain a hierarchical sorting table;
a third obtaining module 205, configured to obtain a priority connection score value corresponding to each time period according to the hierarchical ordering table;
a determining module 206, configured to determine whether the priority connection score value meets a score value corresponding to a preset period:
if yes, automatically connecting the router with the intelligent equipment priority open channel corresponding to the priority connection score value;
and if not, queuing the intelligent equipment to be connected according to the hierarchical ordering table and automatically connecting the intelligent equipment with the router.
In one embodiment, fig. 8 is a schematic diagram of a first acquisition module in a connection device according to an embodiment of the application. Referring to fig. 8, the first acquisition module includes:
an acquiring unit 2011, configured to acquire the number of times that the intelligent device is connected to the router;
a first judging unit 2012, configured to judge whether the number of times that the intelligent device is connected to the router meets a preset number of times:
if yes, defining the information of the connection between the intelligent equipment and the router as first waiting connection information;
a second determining unit 2013, configured to determine whether the connection time of the intelligent device corresponding to the first pending connection information meets a preset time:
if so, defining the first to-be-determined connection information corresponding to the meeting preset time as common connection information;
if the connection information does not meet the preset connection information, the first connection information to be determined corresponding to the preset time is defined as the connection information to be used.
An embodiment of the present application provides a computer device, and fig. 9 is a schematic diagram of an internal structure of the computer device according to an embodiment of the present application. Referring to fig. 9, the computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the computer is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing all data required by the process of the automatic output power adjustment method of the energy storage inverter. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a method for automatically adjusting the output power of an energy storage inverter.
It will be appreciated by those skilled in the art that the architecture shown in fig. 9 is merely a block diagram of a portion of the architecture in connection with the present inventive arrangements and is not intended to limit the computer devices to which the present inventive arrangements are applicable.
An embodiment of the present application also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method for automatically connecting any of the above-described smart devices to a router,
those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium provided by the present application and used in embodiments may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual speed data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, apparatus, article or method that comprises the element.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the scope of the application, and all equivalent structures or equivalent processes using the descriptions and drawings of the present application or directly or indirectly applied to other related technical fields are included in the scope of the application.
It will be evident to those skilled in the art that the application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential characteristics thereof. The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.
For convenience of description, the above devices are described as being functionally divided into various units, respectively. Of course, the functionality of each of the units may be implemented in one or more of software and/or hardware when implementing the application, as will be appreciated by those skilled in the art(s) embodiments of the application may be provided as a method, system or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flowchart and/or block of the flowchart illustrations and/or block diagrams, and combinations of flowcharts and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Claims (10)
1. The method for automatically connecting the intelligent device with the router is characterized by comprising the following steps:
acquiring the number of connection channels of a router;
acquiring priority parameters of the weight level of the intelligent equipment, wherein the priority parameters comprise signal strength information, specific time authentication information and common connection information;
classifying the number of the connection channels according to the priority parameters to obtain a plurality of classification layers;
sorting channels corresponding to the plurality of hierarchical layers to obtain a hierarchical sorting table;
acquiring a priority connection score value corresponding to each time period according to the hierarchical ordering table;
judging whether the priority connection score value meets a score value corresponding to a preset period or not:
if yes, automatically connecting the router with the intelligent equipment priority open channel corresponding to the priority connection score value;
and if not, queuing the intelligent equipment to be connected according to the hierarchical ordering table and automatically connecting the intelligent equipment with the router.
2. The method for automatically connecting a smart device to a router according to claim 1, wherein the step of obtaining a priority parameter of a weight level of the smart device comprises:
acquiring the connection times of the intelligent equipment and a router;
judging whether the number of times of connection between the intelligent device and the router meets preset times or not:
if yes, defining the information of the connection between the intelligent equipment and the router as first waiting connection information;
judging whether the connection time of the intelligent equipment corresponding to the first pending connection information meets preset time or not:
if so, defining the first to-be-determined connection information corresponding to the meeting preset time as common connection information;
if the connection information does not meet the preset connection information, the first connection information to be determined corresponding to the preset time is defined as the connection information to be used.
3. The method for automatically connecting a smart device to a router according to claim 1, wherein the step of obtaining a priority parameter of a weight level of the smart device further comprises:
acquiring time information of connection between the intelligent equipment and a router;
determining a adding mode according to the time information, wherein the adding mode is divided into a fixed point moment adding mode and a non-fixed point moment subtracting mode:
when the connection time of the intelligent equipment and the router is in a fixed point moment adding mode, adding the intelligent equipment corresponding to the common connection information to obtain a common information adding value, and defining time information corresponding to the common information adding value as specific time authentication information;
and when the connection time of the intelligent equipment and the router is in the non-fixed point moment subtracting mode, subtracting the intelligent equipment corresponding to the common connection information to obtain a common information subtracting value.
4. The method for automatically connecting a smart device to a router according to claim 1, wherein the step of obtaining a priority parameter of a weight level of the smart device further comprises:
acquiring signal quality information when the intelligent equipment is connected with a router, and extracting information from the signal quality information to obtain a signal quality value;
acquiring transmission distance information when the intelligent equipment is connected with a router, and extracting information of the transmission distance information to obtain a transmission distance value;
calculating a signal strength value according to the signal quality value and the transmission distance value, wherein a calculation formula is as follows:
A=E*D*h
wherein A is a signal intensity value, E is a signal quality value, D is a transmission distance value, and h is an information attenuation coefficient;
defining the information corresponding to the signal intensity value as signal intensity information;
establishing an information strength grade table when the intelligent device router is connected according to the signal strength information;
judging whether the corresponding intelligent equipment in the specific time authentication information has weak signals according to the information strength level table:
if so, a separate channel needs to be established for the intelligent device with weak signals corresponding to the specific time authentication information to be connected with a router.
5. The method for automatically connecting a smart device to a router according to claim 1, wherein the step of classifying the number of connection channels according to the priority parameter comprises:
weighting value adding is carried out on the intelligent equipment corresponding to the common connection information according to the common connection information to obtain an adding connection value, the intelligent equipment corresponding to the adding connection value is divided into priority channels according to the adding connection value, and the priority channels are defined as first priority score layers;
and subtracting the weight value of the intelligent equipment corresponding to the connection-free information according to the connection-free information to obtain a connection-free value, dividing the intelligent equipment corresponding to the connection-free value into secondary priority channels, and defining the secondary priority channels as second priority score layers.
6. The method for automatically connecting an intelligent device to a router according to claim 1, wherein the step of obtaining a priority connection score corresponding to each time period according to the hierarchical ranking table comprises:
acquiring a first scoring value of the intelligent device corresponding to the first priority score layer;
acquiring a second scoring value of the intelligent equipment corresponding to the first priority scoring layer in a corresponding period;
acquiring a third scoring value of the intelligent device corresponding to the hierarchical ordering table;
calculating according to the first score value, the second score value and the third score value to obtain a priority connection score value corresponding to each time period; wherein, the calculation formula is:
K=Z+X+B
where k is a priority connection score, z is a first score, x is a second score, and b is a third score.
7. The method and the device for automatically connecting the intelligent equipment with the router are characterized by comprising the following steps:
the first acquisition module is used for acquiring the number of the connecting channels of the router;
the second acquisition module is used for acquiring priority parameters of the weight level of the intelligent equipment, wherein the priority parameters comprise signal strength information, specific time authentication information and common connection information;
the grading module is used for grading the number of the connecting channels according to the priority parameters to obtain a plurality of grading layers;
the sorting module is used for sorting the channels corresponding to the plurality of hierarchical layers to obtain a hierarchical sorting table;
a third obtaining module, configured to obtain a priority connection score value corresponding to each time period according to the hierarchical ordering table;
the judging module is used for judging whether the priority connection score value meets the score value corresponding to the preset time period or not:
if yes, automatically connecting the router with the intelligent equipment priority open channel corresponding to the priority connection score value;
and if not, queuing the intelligent equipment to be connected according to the hierarchical ordering table and automatically connecting the intelligent equipment with the router.
8. The method and apparatus for automatically connecting a smart device to a router according to claim 7, wherein the first obtaining module includes:
the acquisition unit is used for acquiring the connection times of the intelligent equipment and the router;
the first judging unit is used for judging whether the number of times that the intelligent device is connected with the router meets the preset number of times:
if yes, defining the information of the connection between the intelligent equipment and the router as first waiting connection information;
the second judging unit is used for judging whether the connection time of the intelligent device corresponding to the first to-be-determined connection information meets the preset time or not:
if so, defining the first to-be-determined connection information corresponding to the meeting preset time as common connection information;
if the connection information does not meet the preset connection information, the first connection information to be determined corresponding to the preset time is defined as the connection information to be used.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311236760.8A CN116981018B (en) | 2023-09-25 | 2023-09-25 | Method for automatically connecting intelligent equipment with router |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311236760.8A CN116981018B (en) | 2023-09-25 | 2023-09-25 | Method for automatically connecting intelligent equipment with router |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116981018A true CN116981018A (en) | 2023-10-31 |
CN116981018B CN116981018B (en) | 2024-02-13 |
Family
ID=88477093
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311236760.8A Active CN116981018B (en) | 2023-09-25 | 2023-09-25 | Method for automatically connecting intelligent equipment with router |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116981018B (en) |
Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH1141291A (en) * | 1997-07-18 | 1999-02-12 | Nec Eng Ltd | Logical channel management control system |
US20070121636A1 (en) * | 2005-11-11 | 2007-05-31 | Sumsung Electronics Co., Ltd. | Apparatus and method for downlink packet scheduling in base station of a portable internet system |
CN102781115A (en) * | 2012-08-03 | 2012-11-14 | 西安电子科技大学 | Automatic channel selection method based on channel order in dense wireless fidelity (WiFi) |
CN104170336A (en) * | 2012-03-01 | 2014-11-26 | 华为技术有限公司 | System and methods for differentiated association service provisioning in wifi networks |
CN104796965A (en) * | 2015-03-19 | 2015-07-22 | 四川长虹电器股份有限公司 | Method for controlling AP connection priority under WiFi environment |
CN107211400A (en) * | 2015-09-25 | 2017-09-26 | 华为技术有限公司 | network access control method, access point and access controller |
CN109640373A (en) * | 2019-01-17 | 2019-04-16 | 珠海格力电器股份有限公司 | Networking method and device applied to Internet of things and storage medium |
CN111262783A (en) * | 2020-01-14 | 2020-06-09 | 深圳前海微众银行股份有限公司 | Dynamic routing method and device |
CN111628943A (en) * | 2020-05-08 | 2020-09-04 | 江苏星月测绘科技股份有限公司 | Intelligent Internet of things method based on communication and perception technology |
CN112600897A (en) * | 2020-12-07 | 2021-04-02 | 广州技象科技有限公司 | Multi-user access control method and device for intelligent equipment |
CN112910748A (en) * | 2021-01-14 | 2021-06-04 | 珠海格力电器股份有限公司 | Network distribution method, device, computer equipment and storage medium |
WO2021147355A1 (en) * | 2020-01-20 | 2021-07-29 | 华为技术有限公司 | Channel assignment method, controller, and access point |
CN114642073A (en) * | 2019-11-11 | 2022-06-17 | 高通股份有限公司 | Priority access in Wireless Local Area Networks (WLANs) |
WO2022135089A1 (en) * | 2020-12-25 | 2022-06-30 | 微网优联科技(成都)有限公司 | Wifi channel allocation method and device |
CN115866560A (en) * | 2022-11-25 | 2023-03-28 | 惠州市德赛西威汽车电子股份有限公司 | Wireless backhaul method, wireless backhaul device, vehicle, and storage medium |
-
2023
- 2023-09-25 CN CN202311236760.8A patent/CN116981018B/en active Active
Patent Citations (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH1141291A (en) * | 1997-07-18 | 1999-02-12 | Nec Eng Ltd | Logical channel management control system |
US20070121636A1 (en) * | 2005-11-11 | 2007-05-31 | Sumsung Electronics Co., Ltd. | Apparatus and method for downlink packet scheduling in base station of a portable internet system |
CN104170336A (en) * | 2012-03-01 | 2014-11-26 | 华为技术有限公司 | System and methods for differentiated association service provisioning in wifi networks |
CN102781115A (en) * | 2012-08-03 | 2012-11-14 | 西安电子科技大学 | Automatic channel selection method based on channel order in dense wireless fidelity (WiFi) |
CN104796965A (en) * | 2015-03-19 | 2015-07-22 | 四川长虹电器股份有限公司 | Method for controlling AP connection priority under WiFi environment |
CN107211400A (en) * | 2015-09-25 | 2017-09-26 | 华为技术有限公司 | network access control method, access point and access controller |
CN109640373A (en) * | 2019-01-17 | 2019-04-16 | 珠海格力电器股份有限公司 | Networking method and device applied to Internet of things and storage medium |
CN114642073A (en) * | 2019-11-11 | 2022-06-17 | 高通股份有限公司 | Priority access in Wireless Local Area Networks (WLANs) |
CN111262783A (en) * | 2020-01-14 | 2020-06-09 | 深圳前海微众银行股份有限公司 | Dynamic routing method and device |
WO2021147355A1 (en) * | 2020-01-20 | 2021-07-29 | 华为技术有限公司 | Channel assignment method, controller, and access point |
CN111628943A (en) * | 2020-05-08 | 2020-09-04 | 江苏星月测绘科技股份有限公司 | Intelligent Internet of things method based on communication and perception technology |
CN112600897A (en) * | 2020-12-07 | 2021-04-02 | 广州技象科技有限公司 | Multi-user access control method and device for intelligent equipment |
WO2022135089A1 (en) * | 2020-12-25 | 2022-06-30 | 微网优联科技(成都)有限公司 | Wifi channel allocation method and device |
CN112910748A (en) * | 2021-01-14 | 2021-06-04 | 珠海格力电器股份有限公司 | Network distribution method, device, computer equipment and storage medium |
WO2022151768A1 (en) * | 2021-01-14 | 2022-07-21 | 珠海格力电器股份有限公司 | Network configuration method and apparatus, computer device, and storage medium |
CN115866560A (en) * | 2022-11-25 | 2023-03-28 | 惠州市德赛西威汽车电子股份有限公司 | Wireless backhaul method, wireless backhaul device, vehicle, and storage medium |
Non-Patent Citations (1)
Title |
---|
周晓波;卢汉成;李津生;洪佩琳;: "一种基于浮动优先级的IEEE 802.11e MAC层机制", 小型微型计算机系统, no. 01 * |
Also Published As
Publication number | Publication date |
---|---|
CN116981018B (en) | 2024-02-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7370309B2 (en) | Method and computer program for detailed routing of an integrated circuit design with multiple routing rules and net constraints | |
CN106815263B (en) | The searching method and device of legal provision | |
CN104408159B (en) | A kind of data correlation, loading, querying method and device | |
CN113687250A (en) | Battery cell capacity prediction method and device, electronic equipment and medium | |
CN106022631B (en) | Index weight analysis method | |
CN110287104A (en) | Method for generating test case, device, terminal and computer readable storage medium | |
CN118036349B (en) | Stamping process design method and device, electronic equipment and storage medium | |
CN108536846A (en) | Air control engine variable library rule adaptation method, device, equipment and storage medium | |
CN110690701A (en) | Analysis method for influence factors of abnormal line loss | |
CN108664471A (en) | Text region error correction method, device, equipment and computer readable storage medium | |
CN107818376A (en) | Customer loss Forecasting Methodology and device | |
CN110162379A (en) | Virtual machine migration method, device and computer equipment | |
CN105278966B (en) | The design and method of testing of satellite carried Guidance & Navigation software based on failure mode analysis (FMA) | |
CN114168318A (en) | Training method of storage release model, storage release method and equipment | |
CN116981018B (en) | Method for automatically connecting intelligent equipment with router | |
CN105373659A (en) | High-speed train design index generation method and device | |
CN116993396B (en) | Risk early warning method based on vehicle user tag and computer equipment | |
CN111026851B (en) | Model prediction capability optimization method, device, equipment and readable storage medium | |
US20160012179A1 (en) | Method for managing data relative to motor vehicles with a view to the subsequent graphic generation of electrical diagrams of electrical systems | |
CN108595340A (en) | A kind of automatic generation method of automobile active safety system test scene | |
CN102508720B (en) | Method for improving efficiency of preprocessing module and efficiency of post-processing module and system | |
CN110069455A (en) | A kind of file mergences method and device | |
KR100849690B1 (en) | search system of information using formula for International Patent Classification and method for the same | |
CN112749754B (en) | Method and device for early warning of abnormal calculation of gear withdrawal time | |
CN111626373B (en) | Multi-scale widening residual error network, small target recognition and detection network and optimization method thereof |
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 |