Network connection method, management system, server, and storage medium
By working together with the first and second servers, the robot's wireless communication function is activated and a wireless communication network is established, solving the problem of unsupervised robot access to the network and enabling effective management and service of the robot.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-07
- Publication Date
- 2026-03-31
AI Technical Summary
In the current technology, robot manufacturers lack standardized management of after-sales service, resulting in ineffective supervision of robot network access and the inability to achieve effective management and service.
The first server sends a network connection request to the second server, receives the key, and activates the wireless communication function of the electronic device based on the pre-connected communication network to establish a second communication network and realize information transmission.
This strengthens the supervision of electronic devices accessing the network, ensuring that only legitimate devices can connect to the network, thereby achieving effective management and service.
Smart Images

Figure CN116471708B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of electronic device control technology, and in particular to a network connection method, management system, electronic device, and computer-readable storage medium. Background Technology
[0002] Electronic devices, such as robots, can be applied in hotels and karaoke rooms. With the rapid development of artificial intelligence technology, the robotics industry has grown rapidly in recent years, finding wide application in various fields and permeating all aspects of social life. As the number of robots increases, how to effectively manage a large number of robots has become an important research direction. Robots need to be connected to the network to effectively provide various robot services to users or to be effectively managed by users.
[0003] Currently, robot manufacturers do not have standardized management of after-sales service for robots sold or leased, resulting in robots being unregulated or not effectively managed by robot manufacturers when they are put into service. Summary of the Invention
[0004] This invention provides a network connection method, management system, server, and storage medium to address the technical problem of existing electronic equipment manufacturers lacking network access supervision for their electronic equipment.
[0005] In a first aspect, the present invention proposes a network connection method applied to a first server, the method comprising:
[0006] The electronic device sends a network connection request to the second server based on its identification information. Upon receiving the network connection request, the second server sends a key for activating the electronic device to the first server.
[0007] The device receives a key sent by the second server and sends the key to the electronic device based on the pre-connected first communication network, so as to enable the electronic device to enable wireless communication function.
[0008] A second communication network is established between the electronic device and the electronic device based on the wireless communication function, and information is transmitted between the electronic device and the second communication network.
[0009] In other embodiments, the identification information of the electronic device includes a device number used to uniquely identify the electronic device;
[0010] The steps of sending a network connection request to a second server based on the identification information of the electronic device include:
[0011] Obtain the device ID of the electronic device and generate a network connection request based on the device ID;
[0012] Establish a communication connection with the second server and send a network connection request to the second server.
[0013] In other embodiments, the step of receiving a key sent by the second server and sending the key to an electronic device based on a pre-connected first communication network to enable the electronic device's wireless communication function includes:
[0014] Receive the key sent by the second server;
[0015] A key is sent to an electronic device based on a pre-connected first communication network. When the electronic device receives the key, it parses the key to obtain the device number carried by the key. If the device number carried by the key matches the device number of the electronic device itself, the key is determined to be valid, and the wireless communication function of the electronic device is enabled.
[0016] In other embodiments, the first communication network is a wired communication network;
[0017] The steps of receiving a key sent by the second server and sending the key to an electronic device based on a pre-connected first communication network to enable the electronic device's wireless communication function include:
[0018] Establish a wired communication network with electronic devices in advance;
[0019] The device receives a key sent by the second server and sends the key to the electronic device based on a pre-connected wired communication network. When the electronic device receives the key, it verifies the validity of the key. If the key is valid, the device enables its wireless communication function.
[0020] In other embodiments, the second communication network is a wireless communication network;
[0021] The steps for establishing a second communication network with an electronic device based on its wireless communication function include:
[0022] Establish a communication connection with a WIFI device;
[0023] When the electronic device enables wireless communication, the WIFI device establishes a wireless communication connection with the electronic device, so that the first server and the electronic device can establish a wireless communication connection through the WIFI device.
[0024] In other embodiments, the step of transmitting information based on the second communication network and electronic device includes:
[0025] Establish a communication connection with the message server, wherein the electronic device establishes a communication connection with the message server based on the second communication network, so that the electronic device establishes a communication connection with the first server based on the message server;
[0026] The message server sends a status request instruction to the electronic device, wherein the status request instruction is used to instruct the electronic device to send an online status to the first server, and the online status includes the real-time location information of the electronic device.
[0027] Secondly, embodiments of the present invention provide a network connection device applied to a first server, the device comprising:
[0028] The request module is used to send a network connection request to the second server based on the identification information of the electronic device. When the second server receives the network connection request, it sends a key for activating the electronic device to the first server based on the network connection request.
[0029] The receiving module is used to receive the key sent by the second server and send the key to the electronic device based on the pre-connected first communication network so that the electronic device can enable the wireless communication function.
[0030] The networking module is used to establish a second communication network with the electronic device based on the wireless communication function of the electronic device, and to realize information transmission with the electronic device based on the second communication network.
[0031] Thirdly, embodiments of the present invention provide a management system, comprising:
[0032] A first server is configured to execute the network connection method described in the first aspect above;
[0033] The second server is used to send a key for activating the electronic device to the first server when a network connection request is received.
[0034] An electronic device for transmitting information with the first server via the second communication network.
[0035] Fourthly, embodiments of the present invention provide a server, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the network connection method as described in the first aspect above.
[0036] Fifthly, embodiments of the present invention provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the network connection method described in the first aspect above.
[0037] In a sixth aspect, embodiments of the present invention provide a computer program product that, when run on an electronic device, causes the electronic device to perform the steps of the network connection method described in the first aspect.
[0038] Unlike related technologies, this embodiment of the invention sends a network connection request to a second server based on the identification information of the electronic device. Upon receiving the network connection request, the second server sends a key to the first server to activate the electronic device. The first server receives the key from the second server and sends it to the electronic device via a pre-connected first communication network to enable the electronic device's wireless communication function. A second communication network is then established between the first server and the electronic device based on the electronic device's wireless communication function, and information is transmitted between them via this second communication network. Thus, before the first server can establish a second communication network with the electronic device, it needs to obtain authorization from the second server; otherwise, the first server cannot establish a connection with the electronic device via the second communication network, thereby enhancing the second server's oversight of the electronic device's network access. Attached Figure Description
[0039] One or more embodiments are illustrated by way of example based on the corresponding drawings. These illustrative descriptions do not constitute a limitation on the embodiments. Elements having the same reference numerals in the drawings are represented as similar elements. Unless otherwise stated, the figures in the drawings do not constitute a limitation on scale.
[0040] Figure 1 This is a schematic diagram illustrating an application scenario of a network connection method provided in an embodiment of the present invention;
[0041] Figure 2 This is a schematic flowchart of a network connection method provided in an embodiment of the present invention;
[0042] Figure 3 This is a functional block diagram of a network connection device provided in an embodiment of the present invention;
[0043] Figure 4 This is a schematic diagram of the hardware structure of a server provided in an embodiment of the present invention. Detailed Implementation
[0044] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.
[0045] It should be noted that, unless otherwise specified, the various features in the embodiments of the present invention can be combined with each other, and all are within the protection scope of the present invention. Furthermore, although functional modules are divided in the device schematic diagram and a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different module division or in a different order than that shown in the device schematic diagram or the flowchart.
[0046] Unless otherwise defined, all technical and scientific terms used in this specification have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention. The term "and / or" as used in this specification includes any and all combinations of one or more of the associated listed items.
[0047] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0048] Please see Figure 1 , Figure 1 This is a schematic diagram illustrating an application scenario of a network connection method provided in an embodiment of the present invention. The network connection method of the present invention is applied to a first server, and is used to establish a wireless communication connection between an electronic device and the first server. The electronic device includes, but is not limited to, a mobile service robot, which has autonomous positioning and navigation capabilities. The mobile service robot can provide delivery services or welcoming services in application scenarios such as hotels and KTVs. Figure 1 As shown, the first server and the second server communicate with each other to transmit information. For example, the first server and the second server are connected via an Ethernet network. The first server can be pre-connected to an electronic device (i.e., a robot). Optionally, the first server establishes a first communication network with the electronic device via a wired connection. For example, the wired connection method includes, but is not limited to, wired connection methods such as USB, serial port, and Ethernet.
[0049] In this embodiment of the invention, the first server can establish a second communication network with the electronic device and realize information transmission based on the second communication network.
[0050] In this embodiment of the invention, the second server is a platform for unified management of all electronic devices (robots) manufactured by the electronic device (e.g., robots) manufacturer. It can also be referred to as a company-level back-end management system, which uniformly manages various types of electronic devices (robots) produced by the electronic device (robot) manufacturer. The first server is a platform for managing electronic devices (robots), which can also be referred to as a back-end management system for electronic devices (robots). The electronic device (robot) manufacturer can develop corresponding software programs for customers to use, so that customers can manage or use electronic devices (robots) through the first server.
[0051] Please see Figure 2 , Figure 2 This is a flowchart illustrating a network connection method according to an embodiment of the present invention. In a first aspect, this embodiment of the present invention proposes a network connection method, wherein the executing entity of the network connection method is a first server, for example, such as... Figure 1 The network connection method for the first server shown includes the following steps S21-S23:
[0052] Step S21: Send a network connection request to the second server based on the identification information of the electronic device.
[0053] The first server sends a network connection request to the second server based on the identification information of the electronic device. The first server and the second server are two different servers; "first" and "second" are used to distinguish and describe the two servers. The electronic device can be a mobile service robot, including but not limited to: hotel robots, delivery robots, cleaning robots, pet robots, handling robots, care robots, remote monitoring robots, and sweeping robots. The identification information of the electronic device is information used to uniquely identify the electronic device, including but not limited to the device serial number, software address, and physical address.
[0054] In this embodiment, the first server obtains the identification information of the electronic device. For example, the first server scans a QR code, barcode, or device number on the electronic device using a scanning device, such as a QR code scanner or camera, to obtain the identification information. In other embodiments, the first server is equipped with an input device, including but not limited to a keyboard or touchscreen, and obtains the identification information of the electronic device input by the user based on the input device. After obtaining the identification information of the electronic device, the first server sends a network connection request to the second server, wherein the network connection request carries the identification information of the electronic device.
[0055] For example, the identification information of the electronic device includes a device number used to uniquely identify the electronic device. Step S21, the step of sending a network connection request to the second server based on the identification information of the electronic device, includes: obtaining the device number of the electronic device and generating a network connection request based on the device number of the electronic device; establishing a communication connection with the second server and sending the network connection request to the second server. After the first server obtains the identification information of the electronic device, it generates a network connection request based on the identification information of the electronic device (i.e., the device number), wherein the network connection request is a signal carrying the identification information of the electronic device. Further, the network connection request also carries a request item, which is used to instruct the electronic device to connect to the network. In this invention, when the second server receives the network connection request, it sends a key for activating the electronic device to the first server based on the network connection request. That is, after the first server and the second server establish a communication connection, the first server sends the network connection request to the second server, the second server parses the network connection request to obtain the identification information of the electronic device, and the second server determines whether to send back the key for activating the electronic device to the first server based on the identification information of the electronic device. In this embodiment, the key can be a signal, a password, or a code. The second server generates a corresponding key based on the identification information of the electronic device. The key can carry the identification information of the electronic device. By inputting the key into the electronic device, the electronic device can enable the corresponding functional service based on the key, such as enabling the wireless communication function of the electronic device.
[0056] The second server determines whether to send a key to the first server to activate the electronic device based on the device's identification information. For example, before leaving the factory, all electronic devices are registered in the second server's database. That is, the device's identification information, configuration information, maintenance information, and data generated during the production process are all stored in the second server's database through registration. If the electronic device's identification information matches the information recorded in the second server's database, meaning the electronic device has been registered with the second server, it is considered a legitimate device. The second server can then authorize the first server to send a key associated with the electronic device, allowing the first server to connect the device to the network and use or manage it. Conversely, if the electronic device's identification information does not match the information recorded in the second server's database, meaning the electronic device has not been registered with the second server, it is considered an illegitimate device. In this case, the second server can send a message to the first server indicating that "this electronic device is not registered and cannot be used," or alternatively, the second server may not respond to the network connection request, meaning it does not send a key to the first server.
[0057] Understandably, before an electronic device leaves the factory or is used by a user, it may be registered on a second server so that the database of the second server stores the electronic device's profile information. The profile information includes, but is not limited to, the electronic device's identification information (e.g., device number), hardware information, software version information, manufacturing date, maintenance records, functional parameters, etc.
[0058] Step S22: Receive the key sent by the second server, and send the key to the electronic device based on the pre-connected first communication network to enable the electronic device to enable wireless communication function.
[0059] The first server receives a key from the second server and sends the key to an electronic device via a pre-connected first communication network, thereby enabling the electronic device to activate its wireless communication function. The first communication network is used for brief communication between the first server and the electronic device. The key is a signal, password, or code used to enable the electronic device's own wireless communication function.
[0060] In this embodiment, the first server establishes a first communication network with the electronic device in advance via a wired connection. When the first server receives the key sent by the second server, it indicates that the electronic device is a registered device. Subsequently, the first server sends the key to the electronic device through the first communication network. After obtaining the key, the electronic device activates its wireless communication function based on the key.
[0061] For example, the first communication network is a wired communication network. Step S22, receiving the key sent by the second server and sending the key to the electronic device based on the pre-connected first communication network to enable the wireless communication function of the electronic device, includes: pre-establishing a wired communication network with the electronic device; receiving the key sent by the second server and sending the key to the electronic device based on the pre-connected wired communication network. The first server and the electronic device pre-establish a wired communication network, for example, the first server establishes a wired communication network with the electronic device through serial port hardware. After receiving the key sent by the second server, the first server sends the key to the electronic device based on the pre-connected wired communication network. Optionally, when the electronic device receives the key, it verifies the validity of the key. If the key is valid, that is, the key is associated with the electronic device, the wireless communication function of the electronic device is enabled; if the key is invalid, that is, the key is not associated with the electronic device, the wireless communication function of the electronic device is not enabled.
[0062] In other embodiments, the step of receiving a key sent by the second server and sending the key to the electronic device via a pre-connected first communication network to enable the electronic device's wireless communication function includes: receiving the key sent by the second server; and sending the key to the electronic device via the pre-connected first communication network. After receiving the key sent by the second server, the first server sends the key to the electronic device via the pre-connected first communication network. In this embodiment, when the electronic device receives the key, it parses the key to obtain the information carried by the key, for example, parses the key to obtain the electronic device's identification information (i.e., device number). For example, parsing the key to obtain the electronic device's device number; if the device number carried by the key matches the electronic device's own device number, the key is determined to be valid, and the electronic device's wireless communication function is enabled; if the device number carried by the key does not match the electronic device's own device number, the key is determined to be invalid, and the electronic device does not enable the corresponding wireless communication function. Optionally, parsing the key also obtains a driver program for driving the electronic device to perform the corresponding function, such as enabling the wireless communication function.
[0063] Of course, in other embodiments, the methods for verifying the validity of the key to trigger the electronic device to enable its wireless communication function are diverse and not limited to the methods provided above. For example, the key can be parsed to obtain the hardware information of the electronic device. If the hardware information carried by the key matches the hardware information of the electronic device itself, the key is determined to be valid, and the wireless communication function of the electronic device is enabled. If the hardware information carried by the key does not match the hardware information of the electronic device itself, the key is determined to be invalid, and the electronic device does not enable the corresponding wireless communication function.
[0064] In other embodiments, when an electronic device has registered with the second server, the second server's database records the electronic device's identification information, configuration information, maintenance information, data generated during the production process, and the key associated with the electronic device. When connecting the electronic device to the second communication network, it needs to request permission from the second server and obtain the key associated with the electronic device from the second server, thereby enhancing the second server's supervision of the electronic device's network access.
[0065] Step S23: Establish a second communication network with the electronic device based on the wireless communication function of the electronic device, and realize information transmission with the electronic device based on the second communication network.
[0066] The first server establishes a second communication network with the electronic device based on the electronic device's wireless communication function, and the first server transmits information to the electronic device based on the second communication network.
[0067] After the wireless communication function of the electronic device is enabled, the electronic device is connected to a wireless communication network, thereby establishing a second communication network between the first server and the electronic device. This second communication network is a wireless communication network. In this way, information can be transmitted between the first server and the electronic device based on the wireless communication network.
[0068] In this invention, before the first server establishes a second communication network with the electronic device, it needs to obtain authorization from the second server; otherwise, the first server cannot establish a connection with the electronic device to the second communication network, thereby enhancing the second server's supervision of the electronic device's network access.
[0069] For example, the second communication network is a wireless communication network. The steps of establishing a second communication network with the electronic device based on its wireless communication function include: establishing a communication connection with a Wi-Fi device; when the electronic device enables its wireless communication function, the Wi-Fi device establishes a wireless communication connection with the electronic device, so that the first server and the electronic device can establish a wireless communication connection through the Wi-Fi device. When the wireless communication device is a Wi-Fi device, the first server establishes a communication connection with the Wi-Fi device. After the electronic device enables its wireless communication function, that is, after the electronic device drives its Wi-Fi module to enable the Wi-Fi wireless communication function, the electronic device can actively search for the Wi-Fi device's wireless network name (or the Wi-Fi network's SSID) and establish a wireless communication connection with the Wi-Fi device based on the wireless network name. The Wi-Fi password for the electronic device to connect to the Wi-Fi device can be sent by the first server to the electronic device based on the first communication network, so that the electronic device can connect to the Wi-Fi device based on the Wi-Fi password. In other embodiments, the electronic device stores a preset password for wireless connection; after the electronic device enables its Wi-Fi wireless communication function, the wireless connection password of the electronic device's Wi-Fi module is set to the preset password. The first server can modify the network configuration of the Wi-Fi device so that the Wi-Fi password connecting to the Wi-Fi device matches the wireless connection password of the electronic device's Wi-Fi module, thereby enabling the electronic device to actively establish a Wi-Fi wireless communication connection with the Wi-Fi device. For example, when the first server receives a key sent by the second server, it parses the key to obtain the wireless connection password of the electronic device's Wi-Fi module. After the electronic device enables its Wi-Fi wireless communication function, the first server configures the Wi-Fi password connecting to the Wi-Fi device to match the wireless connection password of the electronic device's Wi-Fi module.
[0070] Electronic devices, such as robots, need to be connected to a network to effectively provide various robot services to users or to be effectively managed by users. Generally, when electronic devices are connected to a first communication network, their range of motion is limited due to the wiring harness, preventing them from fully utilizing their functions. Therefore, electronic devices often connect to a first server via a second communication network, such as establishing a wireless communication network based on Wi-Fi devices. In this way, the electronic devices can move freely and be controlled and managed by the first server.
[0071] In this embodiment, after the first server and the electronic device establish a second communication network, information transmission can be achieved based on the second communication network. The steps for the first server and the electronic device to achieve information transmission include: establishing a communication connection with a message server, wherein the electronic device establishes a communication connection with the message server based on the second communication network, so that the electronic device establishes a communication connection with the first server based on the message server; and sending a status request instruction to the electronic device based on the message server, wherein the status request instruction is used to instruct the electronic device to send an online status to the first server, and the online status includes the real-time location information of the electronic device.
[0072] The first server can send control commands to the electronic device via the second communication network to use or manage the electronic device. Alternatively, the electronic device can send feedback information to the first server via the second communication network.
[0073] For example, the first server establishes a communication connection with a message server, which may be an MQTT (Message Queuing Telemetry Transport) message server. After the electronic device establishes a second communication network with the Wi-Fi device, the electronic device receives the address of the message server sent by the first server based on the second communication network and establishes a communication connection with the message server, enabling the electronic device to establish a communication connection with the first server based on the message server. Thus, the first server and the electronic device can interact with each other based on the message server. For example, the first server sends a status request instruction to the electronic device based on the message server, wherein the status request instruction instructs the electronic device to send an online status to the first server, and the online status includes the real-time location information of the electronic device. When the electronic device goes online, it obtains its own real-time location information and feeds it back to the first server through the message server.
[0074] In other embodiments, the electronic device may respond to and provide corresponding information based on other instructions sent by the first server. For example, when the first server sends a health diagnosis instruction to the electronic device via a message server, the electronic device responds to the health diagnosis instruction, executes a self-diagnosis procedure, and provides feedback on the health status of various components of the electronic device, its operating log, or health assessment results to the first server. As another example, when the first server sends a delivery instruction to the electronic device via a message server, the electronic device responds to the delivery instruction and performs actions corresponding to the delivery instruction.
[0075] Understandably, the type and content of the instructions sent by the first server to the electronic device are not limited, and the electronic device can perform the corresponding actions according to the instructions.
[0076] Please see Figure 3 Secondly, embodiments of the present invention provide a network connection device 30, applied to a first server, the device 30 comprising:
[0077] The request module 31 is used to send a network connection request to the second server based on the identification information of the electronic device. When the second server receives the network connection request, it sends a key for activating the electronic device to the first server based on the network connection request.
[0078] The receiving module 32 is used to receive the key sent by the second server and send the key to the electronic device based on the pre-connected first communication network so that the electronic device can enable the wireless communication function.
[0079] The networking module 33 is used to establish a second communication network with the electronic device based on the wireless communication function of the electronic device, and to realize information transmission with the electronic device based on the second communication network.
[0080] In other embodiments, the identification information of the electronic device includes a device number used to uniquely identify the electronic device;
[0081] The request module 31 is also used to obtain the device number of the electronic device and generate a network connection request based on the device number of the electronic device; establish a communication connection with the second server and send the network connection request to the second server.
[0082] In other embodiments, the receiving module 32 is further configured to receive a key sent by the second server; and send the key to the electronic device based on the pre-connected first communication network. When the electronic device receives the key, it parses the key to obtain the device number carried by the key. If the device number carried by the key matches the device number of the electronic device itself, the key is determined to be valid, and the wireless communication function of the electronic device is enabled.
[0083] In other embodiments, the first communication network is a wired communication network; the receiving module 32 is further configured to pre-establish a wired communication network with the electronic device; receive the key sent by the second server, and send the key to the electronic device based on the pre-connected wired communication network, wherein when the electronic device receives the key, it verifies the validity of the key, and if the key is valid, it enables the wireless communication function of the electronic device.
[0084] In other embodiments, the second communication network is a wireless communication network; the networking module 33 is also used to establish a communication connection with a WIFI device; when the electronic device enables the wireless communication function, the WIFI device establishes a wireless communication connection with the electronic device, so that the first server and the electronic device can establish a wireless communication connection through the WIFI device.
[0085] In other embodiments, the networking module 33 is also used to establish a communication connection with a message server, wherein the electronic device establishes a communication connection with the message server based on the second communication network, so that the electronic device establishes a communication connection with the first server based on the message server; and sends a status request instruction to the electronic device based on the message server, wherein the status request instruction is used to instruct the electronic device to send an online status to the first server, and the online status includes the real-time location information of the electronic device.
[0086] It is understood that the implementation principle and technical effects of the network connection device 30 proposed in the second aspect of the present invention can be found in the implementation principle and technical effects of the network connection method proposed in the first aspect, and will not be repeated here.
[0087] Thirdly, this invention proposes a management system including a first server, a second server, and an electronic device. The first server is used to execute the network connection method proposed in the first aspect of this invention. The second server, upon receiving a network connection request, sends a key for activating the electronic device to the first server according to the network connection request. The electronic device is used to transmit information with the first server based on a second communication network. The connection relationship and technical effects between the first server, the second server, and the electronic device can be found in the implementation principle and technical effects of the network connection method proposed in the first aspect, and will not be repeated here.
[0088] Fourthly, the present invention provides a server comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the network connection method proposed in the first aspect of the present invention.
[0089] Please see Figure 4 , Figure 4This is a schematic diagram of the hardware structure of a server 400 according to an embodiment of the present invention. The server 400 includes: at least one processor 401, and a memory 402 communicatively connected to the at least one processor 401. Figure 4 Taking a processor 401 as an example, the memory 402 stores instructions (or programs) executable by at least one processor 401. These instructions, when executed by at least one processor 401, enable the at least one processor 401 to perform the steps of the network connection method of the first aspect of the present invention. The processor 401 and the memory 402 can be connected via a bus or other means. Figure 4 Taking bus-based connections as an example.
[0090] The memory 402, as a readable storage medium, can be used to store software programs, executable programs, and modules, such as the program instructions / modules corresponding to the network connection method that the server needs to execute in this embodiment of the invention. The processor 401 executes various functional applications and data processing based on the software programs, instructions, and modules stored in the memory 402, thereby implementing the steps of the network connection method proposed in the first aspect of this embodiment of the invention.
[0091] Memory 402 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created by executing network connection methods, etc. Memory 402 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some embodiments, memory 402 may optionally include memory remotely located relative to processor 401, and these remote memories may be connected to a server via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0092] One or more modules are stored in memory 402. When executed by one or more processors 401, they implement the steps of the network connection method proposed in the first aspect of the present invention. For example, memory 402 stores the request module 31, the receiving module 32 and the networking module 33 in the network connection device 30 proposed in the second aspect of the present invention.
[0093] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; under the concept of the present invention, the technical features of the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other variations of different aspects of the present invention as described above, which are not provided in detail for the sake of brevity; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A network connection method applied to a first server, characterized in that, The method comprises: sending a network connection request to a second server according to identification information of the electronic device, wherein the identification information of the electronic device comprises a device number for uniquely identifying the electronic device, and the network connection request carries the identification information of the electronic device; the second server matches the identification information of the electronic device with identification information recorded in a database of the second server upon receiving the network connection request, and sends a secret key for activating the electronic device to the first server if the identification information of the electronic device matches the identification information recorded in the database of the second server, the second server being a platform for uniformly managing all electronic devices manufactured by an electronic device manufacturer, and the database of the second server pre-storing the identification information of the electronic device; receiving the secret key sent by the second server and sending the secret key to the electronic device based on a pre-connected first communication network, so as to enable the electronic device to start a wireless communication function, the first communication network being a wired communication network, and the secret key carrying the device number of the electronic device; establishing a second communication network based on the wireless communication function of the electronic device and the electronic device, and realizing information transmission between the electronic device and the first server based on the second communication network; wherein the step of sending a network connection request to a second server according to identification information of the electronic device comprises: obtaining the device number of the electronic device and generating a network connection request according to the device number of the electronic device; establishing a communication connection with the second server and sending a network connection request to the second server; the step of receiving the secret key sent by the second server and sending the secret key to the electronic device based on a pre-connected first communication network, so as to enable the electronic device to start a wireless communication function, comprises: pre-establishing a wired communication network with the electronic device; receiving the secret key sent by the second server and sending the secret key to the electronic device based on a pre-connected wired communication network, wherein the electronic device verifies the legality of the secret key upon receiving the secret key, parses the secret key to obtain the device number of the electronic device, determines that the secret key is legal if the device number carried by the secret key is consistent with the device number of the electronic device itself, determines that the secret key is illegal if the device number carried by the secret key is inconsistent with the device number of the electronic device itself, and starts the wireless communication function of the electronic device if the secret key is legal.
2. The network connection method according to claim 1, wherein, The second communication network is a wireless communication network; the step of establishing a second communication network based on the wireless communication function of the electronic device and the electronic device comprises: establishing a communication connection with a WIFI device; when the electronic device starts the wireless communication function, the WIFI device establishes a wireless communication connection with the electronic device, so that the first server establishes a wireless communication connection with the electronic device through the WIFI device.
3. The network connection method according to claim 1, wherein, the step of realizing information transmission between the electronic device and the first server based on the second communication network comprises: establishing a communication connection with a message server, wherein the electronic device establishes a communication connection with the message server based on the second communication network, so that the electronic device establishes a communication connection with the first server based on the message server; The message server sends a state request instruction to the electronic device, wherein the state request instruction is used to instruct the electronic device to send an online state to the first server, and the online state comprises real-time location information of the electronic device.
4. A management system characterized by comprising: The network connection method comprises: The first server is configured to perform the network connection method according to any one of claims 1-3. The electronic device is configured to implement information transmission with the first server based on the second communication network.
5. The management system according to claim 4, characterized by Further comprising: The second server is configured to send a secret key for activating the electronic device to the first server according to the network connection request when receiving the network connection request.
6. A server comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, The processor implements the network connection method according to any one of claims 1-3 when executing the computer program.
7. A computer-readable storage medium storing a computer program, wherein the computer program comprises the following steps of: receiving a request for a resource from a client; determining whether the client is authorized to access the resource; and if the client is authorized to access the resource, providing the resource to the client. The computer program implements the network connection method according to any one of claims 1-3 when executed by the processor.
Citation Information
Patent Citations
Configuration method and device of Internet of Things equipment, storage medium and electronic equipment
CN114584460A