Network access method, computer equipment and computer program product

By implementing the method of automatically detecting and binding terminal devices in the gateway device of the smart home system, the problem in the existing technology that terminal devices rely on manual operation to access the network is solved, and the connection efficiency and quality are improved.

CN119342554APending Publication Date: 2025-01-21SHENZHEN MAIHANDE IND
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411478223.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-21
Publication Date
2025-01-21

AI Technical Summary

Technical Problem

In existing smart home systems, the network access method of terminal devices and gateway devices relies on manual triggering of physical buttons, which makes it difficult to reasonably allocate gateway devices.

Method used

By periodically detecting the network search request of the terminal device in the gateway device, sending the binding request to the server, and accessing the corresponding terminal device based on the server's response, the terminal device is automatically connected to the high-quality gateway device.

Benefits of technology

It improves the connection efficiency and quality between terminal equipment and gateway equipment, reduces user operation steps and improves the automation level of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119342554A_ABST
    Figure CN119342554A_ABST
Patent Text Reader

Abstract

The invention is suitable for the technical field of communication connection, and particularly relates to a network access method, computer equipment and a computer program product, and the method comprises the steps: detecting a network searching request once at an interval of first preset time in a working state; after a network searching request broadcasted by the terminal equipment is detected, a binding request is sent to a server, and the binding request comprises the network searching request and first signal strength; after a binding response sent by the server based on the binding request is received, the corresponding terminal equipment is accessed according to the binding response, a network searching confirmation response is sent to the corresponding terminal equipment, and the binding response comprises the binding relation between the gateway equipment and the terminal equipment. In the method, a gateway device periodically detects a network searching request sent by a terminal device, sends a binding request including the network searching request and first signal strength to a server after detecting the network searching request, and accesses a corresponding terminal device after receiving a binding response sent by the server based on the binding request. And sending the network searching confirmation response to the terminal equipment, so that the terminal equipment is automatically accessed to the high-quality gateway equipment under the condition that the plurality of gateway equipment receives the network searching request of the terminal equipment, the connection efficiency is improved, and the connection quality is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of communication connection technology, and in particular, relates to a network access method, a computer device, and a computer program product. Background Art

[0002] With the rapid development and popularization of Internet of Things technology, smart home systems are usually composed of smart home gateways and various terminal devices, among which the smart gateway plays a vital role. When users use smart home devices, they first need to connect the terminal device to the smart gateway to realize the cloud upload of device data and enjoy intelligent services.

[0003] At present, the smart home system on the market includes more and more terminal devices and one or more gateway devices to meet the whole house smart home scenario. The existing way of connecting terminal devices to the gateway is still to manually trigger the physical button on the terminal device. This way of accessing the network is not only cumbersome to operate, but also difficult to reasonably allocate gateway devices.

[0004] Therefore, the present application provides a method for automatically connecting a terminal device to a high-quality gateway device. Summary of the invention

[0005] In view of this, an embodiment of the present application provides a network access method, a computer device and a computer program to automatically connect the terminal device to a high-quality gateway device when multiple gateway devices receive a network search request from a terminal device, thereby improving the efficiency of the connection and ensuring the quality of the connection.

[0006] A first aspect of an embodiment of the present application provides a network access method, which is applied to a gateway device, and the method includes:

[0007] When in working state, detecting a network search request once at a first preset time interval;

[0008] After detecting a network search request broadcast by a terminal device, sending a binding request to a server, the binding request including the network search request and a first signal strength, the network search request including a unique identifier of the terminal device;

[0009] After receiving the binding response sent by the server based on the binding request, the corresponding terminal device is accessed according to the binding response, and a network search confirmation response is sent to the corresponding terminal device, wherein the binding response includes a binding relationship between the gateway device and the terminal device.

[0010] In an implementation of the first aspect, the method further includes:

[0011] After accessing the terminal device, update the terminal device list;

[0012] The load level is updated according to the terminal device list.

[0013] A second aspect of an embodiment of the present application provides a network access method, which is applied to a terminal device, and the method includes:

[0014] In the case of being in an unbound state, broadcasting a network search request to n gateway devices once every second preset time, where n is a positive integer;

[0015] A network search confirmation response sent by a target gateway device is received, and a binding state is entered, wherein the target gateway device is a gateway device among the n gateway devices that meets a preset condition with the terminal device.

[0016] In an implementation of the second aspect, the method further includes:

[0017] If the signal quality of the bound gateway device is lower than the target signal quality or stops working, it enters the unbound state.

[0018] A third aspect of an embodiment of the present application provides a network access method, which is applied to a server, and the method includes:

[0019] Receiving a binding request sent by a gateway device, the binding request including a network search request and a first signal strength broadcast by the terminal device, the network search request including a unique identifier of the terminal device;

[0020] Obtain the load level of each gateway device;

[0021] In the case where the multiple binding requests include the same network search request, based on the first signal strength in each binding request in the multiple binding requests and the load level of the gateway device corresponding to each binding request, selecting a target gateway device for the terminal device corresponding to the network search request;

[0022] A binding response is sent to the target gateway device, wherein the binding response includes a binding relationship between the target gateway device and a terminal device corresponding to the network search request.

[0023] In an implementation of the third aspect, selecting a target gateway device for a terminal device corresponding to the network search request based on a first signal strength in each of the multiple binding requests and a load level of a gateway device corresponding to each binding request includes:

[0024] If the first signal strength in the binding request is greater than the preset signal strength, and the load level of the gateway device corresponding to the binding request is less than the preset load level, the gateway device corresponding to the binding request is set as the target gateway device of the terminal device corresponding to the network search request.

[0025] In an implementation manner of the third aspect, the network search request further includes a type identifier of a terminal device corresponding to the network search request;

[0026] The preset signal strength and the preset load level are set according to the type identifier of the terminal device corresponding to the network search request.

[0027] In an implementation manner of the third aspect, after sending the binding response to the target gateway device, the method further includes:

[0028] The load level of the target gateway device is updated.

[0029] A fourth aspect of an embodiment of the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein:

[0030] If the computer device is a gateway device, the processor implements the steps of the method described in the first aspect when executing the computer program;

[0031] If the computer device is a terminal device, the processor implements the steps of the method according to the second aspect when executing the computer program;

[0032] If the computer device is a server, the processor implements the steps of the method described in the third aspect when executing the computer program.

[0033] A fifth aspect of an embodiment of the present application provides a computer program product, characterized in that it includes a computer program, and when the computer program is run, the method described in any one of the first to third aspects is executed.

[0034] The beneficial effect of the first aspect of the embodiment of the present application is: the gateway device periodically detects the network search request sent by the terminal device, and after detecting the network search request, sends a binding request including the network search request and the first signal strength to the server, and after receiving the binding response sent by the server based on the binding request, accesses the corresponding terminal device and sends a network search confirmation response to the terminal device, so that when multiple gateway devices receive the network search request of the terminal device, the terminal device is automatically connected to a high-quality gateway device, thereby improving the efficiency of the connection and ensuring the quality of the connection.

[0035] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant descriptions in the first or second aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0037] Figure 1 This is a schematic diagram of the implementation process of the first network access method provided in the embodiment of the present application;

[0038] Figure 2 This is a schematic diagram of the implementation process of the second network access method provided in the embodiment of the present application;

[0039] Figure 3 This is a schematic diagram of the implementation process of the third network access method provided in the embodiment of the present application;

[0040] Figure 4 is an example diagram of a computer device provided in an embodiment of the present application;

[0041] Figure 5 It is a schematic diagram of a computer program product provided in an embodiment of the present application. DETAILED DESCRIPTION

[0042] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0043] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0044] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0045] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0046] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0047] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0048] The embodiment of the present application provides a network access method, which is applied to a gateway device and is used to automatically connect a terminal device to a high-quality gateway device. The method periodically detects a network search request sent by a terminal device, and after detecting the network search request, sends a binding request including a network search request and a first signal strength to a server. Only after receiving a binding response sent by the server based on the binding request, the corresponding terminal device is accessed, and a network search confirmation response is sent to the terminal device, so that when multiple gateway devices receive a network search request from a terminal device, the terminal device is automatically connected to a high-quality gateway device, thereby improving the efficiency of the connection and ensuring the quality of the connection.

[0049] The network access method provided in the embodiment of the present application can be applied to single-module gateway devices, such as Bluetooth mesh gateway, Zigbee gateway, Wi-Fi smart gateway; it can also be applied to multi-module gateway devices that simultaneously support multiple wireless communication technologies such as Bluetooth mesh, Wi-Fi and Zigbee. The embodiment of the present application does not impose any restrictions on the specific type of gateway device.

[0050] like Figure 1 As shown, an embodiment of the present application provides a network access method, which is applied to a gateway device, and the method includes:

[0051] Step S10: When in working state, detecting a network search request once at a first preset time interval.

[0052] In the application, the working state of the gateway device refers to the state of the gateway device after it is powered on; for a gateway device with network communication function, the working state refers to the state after it is powered on and connected to the network.

[0053] In the application, the working state requires that the load level of the gateway device is less than the corresponding maximum workload level.

[0054] In the application, in order to ensure that no matter when the terminal device broadcasts a network search request, it needs to access the gateway device, and the gateway device can detect the network search request broadcast by its terminal device as soon as possible, the first preset time interval between the gateway device detecting a network search request will be as small as possible, which can be selected according to different application scenarios. For example, in the smart home scenario, on the one hand, the terminal device has a more urgent need to access the network, and the terminal device is likely to be in a location covered by the signal of the gateway device, so the terminal device will broadcast the network search request at a higher frequency; on the other hand, new terminal devices are not often connected to the gateway device, so by setting the first preset time interval between each detection of the network search request by the gateway device to a larger time, such as 10 seconds, the network search request can be detected as soon as possible, and without affecting the user experience, the gateway device can be prevented from frequently and ineffectively detecting the broadcast status. In the industrial Internet of Things scenario or the commercial hotel scenario, new terminal devices often join the gateway device, and the performance of the gateway device is relatively strong, so the first preset time can be set to a smaller time, such as 200 milliseconds, so as to detect the network search request in time and perform subsequent network access steps to ensure user experience.

[0055] It is understandable that, by detecting a network access request once at a first preset time interval in a working state, it is possible to automatically trigger the terminal device to connect to a high-quality gateway device, thereby freeing the user.

[0056] Step S11, after detecting a network search request broadcast by a terminal device, sending a binding request to a server, the binding request includes the network search request and a first signal strength, and the network search request includes a unique identifier of the terminal device.

[0057] In the application, in order to ensure the utilization rate of each gateway device, each gateway device will strive to access the terminal device after detecting the network search request broadcast by the terminal device. Therefore, after receiving the network search request, it sends a binding request to the server, requesting the server to bind with the terminal device and access the terminal device. The binding request includes a network search request and a first signal strength. The network search request includes a unique identifier of the terminal device, which uniquely corresponds to the terminal device. Therefore, the network search request broadcast by the same terminal device is the same, and the network search requests broadcast by different terminal devices are different. The server can identify the binding requests sent by multiple gateway devices to bind to the same terminal device according to the network search request. The first signal strength refers to the strength of the signal connection between the terminal device and the gateway device, which can be the signal strength of the terminal device evaluated by the terminal device side, such as the received signal strength indication (RSSI), signal-to-noise ratio (SNR), or link quality indication (LQI) and other signal strength indicators; it can also be the signal strength of the gateway device evaluated by the terminal device side. In the application, the first signal strength can be configured with different signal strength indicators according to different scenarios.

[0058] Step S12, after receiving the binding response sent by the server based on the binding request, access the corresponding terminal device according to the binding response, and send a network search confirmation response to the corresponding terminal device, the binding response including the binding relationship between the gateway device and the terminal device.

[0059] In the application, if multiple gateway devices detect the network search message broadcast by the same terminal device, then the multiple gateway devices will send binding requests to the server, requesting to bind and access the terminal device. The server will bind a unique target gateway device for the terminal device based on the first signal strength and the load level of each gateway device, and send a binding response to the target gateway device. The target gateway device accesses the corresponding terminal device according to the binding relationship between the target gateway device and the terminal device in the binding response.

[0060] In one embodiment, the method further comprises:

[0061] After accessing the terminal device, update the terminal device list;

[0062] The load level is updated according to the terminal device list.

[0063] In the application, after accessing the terminal device, the gateway device adds the unique identifier of the terminal device to the terminal device list and marks it as online; then the load level is updated according to the terminal device list, and the load level is positively correlated with the number of terminal devices in the online state.

[0064] In the application, the gateway device can update the terminal device's online or offline status according to the heartbeat data. If the heartbeat data sent by the terminal device that has been connected to the network is received, the terminal device is marked as online according to the heartbeat data; if the heartbeat data sent by the terminal device that has been connected to the network is not received within the preset heartbeat time, the terminal device is marked as offline.

[0065] In the application, the load level of the gateway device can also be updated according to the occupation of communication resources by each terminal device in an online state, or the type identification of the terminal device can be received to determine the type of the terminal device, and then the occupation of communication resources by the terminal device is estimated, and then the load level is updated. It can be understood that when calculating the load level of the gateway device, the occupation of communication resources by different types of terminal devices is estimated to achieve a more accurate load level assessment, so as to more accurately bind a higher quality gateway device to the terminal device.

[0066] The embodiment of the present application also provides a network access method, which is applied to a terminal device and is used to automatically access a high-quality gateway device. The method broadcasts a network search request to n gateway devices once every second preset time when in a non-binding state, thereby accessing a target gateway device that meets the preset conditions among the n gateway devices, and then enters a binding state after receiving a network search confirmation response sent by the target gateway device, thereby automatically accessing a high-quality gateway device.

[0067] In the application, the terminal device can be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA) and other mobile devices, or it can be a smart playback device, a television, a smart refrigerator, a smart lighting device, a smart switch, a home monitoring and other smart home devices. The method provided in the embodiment of the present application does not impose any restrictions on the type of terminal device.

[0068] like Figure 2 As shown, an embodiment of the present application provides a network access method, which is applied to a terminal device, and the method includes:

[0069] Step S20: in the unbound state, broadcast a network search request to n gateway devices once every second preset time, where n is a positive integer.

[0070] In the application, the unbound state means that the terminal device is not connected to the gateway device, for example, the terminal device is powered on for the first time or the gateway device connected to the terminal device is offline or faulty. After powering on or after losing connection with the gateway device, the terminal device can broadcast a network search request to n gateway devices every second preset time interval to request access to the gateway device.

[0071] In the application, the network search request includes a unique identifier of the terminal device, which is used to uniquely correspond to the terminal device, so that the corresponding terminal device can be uniquely determined according to the network search request.

[0072] In the application, there may be one or more gateway devices. The second preset time may be a shorter time, such as 1 second, to achieve faster access to the gateway device; the second preset time may also be dynamically changed. After the first broadcast of the network search request, if no network search confirmation response is received for a long time, the second preset time is gradually extended.

[0073] Step S21, receiving a network search confirmation response sent by a target gateway device and entering a binding state, wherein the target gateway device is a gateway device among the n gateway devices that meets a preset condition with the terminal device.

[0074] In the application, after receiving the network search request, the gateway device will send a binding request to the server. The binding request includes the network search request and the first signal strength. The first signal strength refers to the signal strength between the gateway device and the terminal device. The server will automatically add the terminal device to the high-quality gateway device based on the signal strength in the binding request and the load level of the gateway device. After adding the terminal device, the gateway device will send a network search confirmation response to the terminal device. The terminal device can determine that it has joined the gateway device based on the network search confirmation response, and then enter the binding state and stop sending network search requests.

[0075] In one embodiment, the method further comprises:

[0076] Step S22: If the signal quality of the bound gateway device is less than the target signal quality or stops working, it enters the unbound state.

[0077] In applications, signal quality includes signal strength, network status, communication rate, etc. In applications, some terminal devices have higher requirements for communication, so they need higher signal strength. Therefore, when the signal quality of the bound gateway device is lower than the target signal quality, such as when the network delay is high and the network rate is slow, there is a need to access a higher quality gateway. By entering the unbound state, the network search request is automatically sent to complete the switching of the gateway device. For example, in a hotel scenario, when the quality of the gateway connected to the smart door lock in the room deteriorates or fails, the door lock will automatically switch to a gateway with better quality to ensure the timeliness and availability of the door lock.

[0078] The embodiment of the present application provides a network access method, which is applied to a server device and is used to automatically connect a terminal device to a high-quality gateway device. The method receives a binding request sent by a gateway device and obtains the load level of each gateway device. Based on the first signal strength in each binding request and the load level of the gateway device corresponding to each binding request, the method selects a target gateway device for each terminal device corresponding to the network search request, and sends a binding response to the target gateway device, thereby automatically connecting the terminal device to a high-quality gateway device, improving the connection efficiency and ensuring the connection quality.

[0079] like Figure 3 As shown, an embodiment of the present application provides a network access method, which is applied to a server, and the method includes:

[0080] Step S30: receiving a binding request sent by a gateway device, wherein the binding request includes a network search request broadcast by the terminal device and a first signal strength, and the network search request includes a unique identifier of the terminal device.

[0081] Step S31, obtaining the load level of each gateway device.

[0082] In the application, since each gateway device accesses the terminal device through the server, the server can evaluate the load of the gateway device according to the number of terminal devices accessed by the gateway device each time.

[0083] In the application, the load degree of the gateway device can also estimate the occupancy of the communication resources by the terminal device according to the type identification of the terminal device connected to it, and evaluate the load degree of the gateway device based on the estimated occupancy. It can be understood that the load degree of the gateway device can be more accurately evaluated by combining the number of terminal devices connected to the gateway device and the estimated occupancy of the communication resources based on the type identification of the terminal device.

[0084] In the application, the load level of the gateway device can also be obtained in real time.

[0085] Step S32, when multiple binding requests include the same network search request, based on the first signal strength in each binding request in the multiple binding requests and the load level of the gateway device corresponding to each binding request, select a target gateway device for the terminal device corresponding to the network search request.

[0086] In the application, if multiple gateway devices detect the network search message broadcast by the same terminal device, then multiple gateway devices will send binding requests to the server, requesting to bind and access the terminal device. The server will combine the first signal strength and the load level of each gateway device to bind the terminal device to the target gateway device with the highest overall quality.

[0087] Step S33: Send a binding response to the target gateway device, wherein the binding response includes a binding relationship between the target gateway device and the terminal device corresponding to the network search request.

[0088] In the application, the target gateway device accesses the corresponding terminal device according to the binding relationship between the target gateway device and the terminal device in the binding response.

[0089] It can be understood that the method provided by the embodiment of the present application can achieve load balancing of various gateway devices.

[0090] In one embodiment, selecting a target gateway device for the terminal device corresponding to the network search request based on the first signal strength in each binding request in the multiple binding requests and the load level of the gateway device corresponding to each binding request includes:

[0091] If the first signal strength in the binding request is greater than the preset signal strength, and the load level of the gateway device corresponding to the binding request is less than the preset load level, the gateway device corresponding to the binding request is set as the target gateway device of the terminal device corresponding to the network search request.

[0092] In applications, the preset signal strength can be determined according to the type of terminal device, and different terminal devices have different requirements for signal strength; the preset load level can be determined according to the type of terminal device, and different terminal devices have different requirements for bandwidth, delay, etc.

[0093] In the application, one or more gateway devices can be first selected based on the first signal strength and the preset signal strength in each binding request, and then the target gateway device can be selected based on the load level and the preset load level of each gateway device. For example, the gateway devices with the first signal strength in the top 30% are selected first, and then the gateway device with the smallest load level among the 30% of gateway devices is selected. It can be understood that the above method can bind the gateway device with the highest comprehensive quality to the terminal device.

[0094] In one embodiment, the network search request further includes a type identifier of a terminal device corresponding to the network search request;

[0095] The preset signal strength and the preset load level are set according to the type identifier of the terminal device corresponding to the network search request.

[0096] In the application, the communication quality requirements of the terminal device, such as bandwidth, delay, etc., can be queried according to the type identifier, and then the preset signal strength and preset load level can be set.

[0097] In one embodiment, after sending the binding response to the target gateway device, the method further includes:

[0098] The load level of the target gateway device is updated.

[0099] In the application, each time a terminal device is connected, the load level of the gateway device will change. Therefore, the load level needs to be updated in time to provide accurate data support for the subsequent server to bind the terminal device to the gateway device. Specifically, the load level can be updated according to the number of terminal devices connected to the gateway device, or according to the type of the newly connected terminal device, its occupancy of the communication resources of the gateway device can be estimated, and then the load level can be updated according to the estimated occupancy.

[0100] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0101] Figure 4 This is a schematic diagram of the structure of a computer device provided in one embodiment of the present application. Figure 4 As shown, the computer device 4 of this embodiment includes: at least one processor 40 ( Figure 4 Only one is shown in the figure) a processor, a memory 41, and a computer program 42 stored in the memory 41 and executable on the at least one processor 40, and when the processor 40 executes the computer program 42, the steps in any of the above-mentioned network access method embodiments are implemented.

[0102] The computer device may include, but is not limited to, a processor 40 and a memory 41. Those skilled in the art will appreciate that Figure 4 It is only an example of the computer device 4 and does not constitute a limitation on the computer device 4. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, etc.

[0103] The processor 40 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0104] In some embodiments, the memory 41 may be an internal storage unit of the computer device 4, such as a hard disk or memory of the computer device 4. In other embodiments, the memory 41 may also be an external storage device of the computer device 4, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the computer device 4. Further, the memory 41 may also include both an internal storage unit and an external storage device of the computer device 4. The memory 41 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program, etc. The memory 41 may also be used to temporarily store data that has been output or is to be output.

[0105] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0106] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0107] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0108] like Figure 5 As shown, an embodiment of the present application provides a computer program product 5, which includes a computer program 51. When the computer program is run on a computer device, the mobile terminal can implement the steps in the above-mentioned method embodiments when executing the computer program.

[0109] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the device / terminal device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0110] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0111] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0112] In the embodiments provided in the present application, it should be understood that the disclosed computer devices and methods can be implemented in other ways. For example, the computer device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0113] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0114] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A network access method, applied to a gateway device, characterized in that: The method comprises: When in working state, detecting a network search request once at a first preset time interval; After detecting a network search request broadcast by a terminal device, sending a binding request to a server, the binding request including the network search request and a first signal strength, the network search request including a unique identifier of the terminal device; After receiving the binding response sent by the server based on the binding request, the corresponding terminal device is accessed according to the binding response, and a network search confirmation response is sent to the corresponding terminal device, wherein the binding response includes the binding relationship between the gateway device and the terminal device.

2. The network access method according to claim 1, characterized in that: The method further comprises: After accessing the terminal device, update the terminal device list; The load level is updated according to the terminal device list.

3. A network access method, applied to a terminal device, characterized in that: The method comprises: In the case of being in an unbound state, broadcasting a network search request to n gateway devices once every second preset time, where n is a positive integer; A network search confirmation response sent by a target gateway device is received, and a binding state is entered, wherein the target gateway device is a gateway device among the n gateway devices that meets a preset condition with the terminal device.

4. The network access method according to claim 3, characterized in that: The method further comprises: If the signal quality of the bound gateway device is lower than the target signal quality or stops working, it enters the unbound state.

5. A network access method, applied to a server, characterized in that: The method comprises: Receiving a binding request sent by a gateway device, the binding request including a network search request and a first signal strength broadcast by the terminal device, the network search request including a unique identifier of the terminal device; Obtain the load level of each gateway device; In the case where the multiple binding requests include the same network search request, based on the first signal strength in each binding request in the multiple binding requests and the load level of the gateway device corresponding to each binding request, selecting a target gateway device for the terminal device corresponding to the network search request; A binding response is sent to the target gateway device, wherein the binding response includes a binding relationship between the target gateway device and a terminal device corresponding to the network search request.

6. The network access method according to claim 5, characterized in that: The selecting a target gateway device for the terminal device corresponding to the network search request based on the first signal strength in each binding request in the multiple binding requests and the load level of the gateway device corresponding to each binding request includes: If the first signal strength in the binding request is greater than the preset signal strength, and the load level of the gateway device corresponding to the binding request is less than the preset load level, the gateway device corresponding to the binding request is set as the target gateway device of the terminal device corresponding to the network search request.

7. The network access method according to claim 6, characterized in that: The network search request also includes a type identifier of a terminal device corresponding to the network search request; The preset signal strength and the preset load level are set according to the type identifier of the terminal device corresponding to the network search request.

8. The network access method according to any one of claims 5 to 7, characterized in that: After sending the binding response to the target gateway device, the method further includes: The load level of the target gateway device is updated.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: If the computer device is a gateway device, the processor implements the steps of the method according to claim 1 or 2 when executing the computer program; If the computer device is a terminal device, the processor implements the steps of the method according to claim 3 or 4 when executing the computer program; If the computer device is a server, the processor implements the steps of the method according to any one of claims 5 to 8 when executing the computer program.

10. A computer program product, characterized in that The invention comprises a computer program which, when executed, causes the method according to any one of claims 1 to 8 to be performed.