Network distribution method and device, router and storage medium
By using a router in monitoring mode to verify and connect IoT devices, the cumbersome network configuration problem of devices from multiple manufacturers is solved, a unified network configuration solution is achieved, and the operation process is simplified.
Patent Information
- Application Number
- CN202211486935.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-24
- Publication Date
- 2026-02-13
- Estimated Expiration
- 2042-11-24
AI Technical Summary
Configuring Wi-Fi networks for IoT devices requires operating multiple apps from different manufacturers, making the process cumbersome and inconvenient.
By acquiring broadcast messages from devices to be configured on the network in listening mode through the router, verifying their supported protocol formats, establishing communication connections using hotspot information, and sending routing information after verifying the device identifier to enable the device to connect to the router, a unified client is used to perform network configuration operations for devices from multiple vendors.
It enables unified network configuration operations for equipment from different manufacturers, simplifying the process and improving the convenience and efficiency of operation.
Smart Images

Figure CN115865972B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present application relate to the field of Internet of Things, and in particular to a network configuration method and device, a router and a storage medium. BACKGROUND
[0002] The rapid development of the Internet of Things makes many traditional devices mostly need to integrate Wi-Fi modules, and basically forms the standard configuration of the Internet of Things. However, this also brings certain operation complexity to the application of the Internet of Things, and users need to configure Wi-Fi networks for Internet of Things devices in actual running environments.
[0003] In the related art, the protocols used by manufacturers of various devices are different, so each device is configured with its own exclusive APP for control, and the APPs between different manufacturers cannot effectively interact.
[0004] However, in the process of simultaneously configuring networks for multiple devices of different manufacturers, it is necessary to operate multiple APPs, which is cumbersome. SUMMARY
[0005] In view of this, to solve the technical problem of the cumbersome process of simultaneously configuring networks for multiple devices of different manufacturers, embodiments of the present application provide a network configuration method and device, a router and a storage medium.
[0006] In a first aspect, embodiments of the present application provide a network configuration method, comprising:
[0007] When the router is in a first mode, obtaining a broadcast message sent by a device to be configured;
[0008] When it is determined that the broadcast message conforms to a preset format, receiving hotspot information sent by the device to be configured;
[0009] Using the hotspot information to establish a communication connection with the device to be configured, and verifying the device identifier of the device to be configured;
[0010] When the device to be configured passes the verification, sending routing information of the router to the device to be configured, so that the device to be configured connects to the router according to the routing information.
[0011] In one possible implementation, after the routing information of the router is sent to the device to be configured, the method further comprises:
[0012] Controlling the router to switch from the first mode to a second mode;
[0013] The first mode is a listening mode, and the second mode is a wireless access point mode.
[0014] In a possible implementation, the determining that the broadcast message conforms to the preset format comprises:
[0015] scanning the received broadcast message;
[0016] when the target identifier is carried in the scanned broadcast message, determining that the broadcast message conforms to the preset format.
[0017] In a possible implementation, the establishing of the communication connection between the hotspot information and the device to be configured comprises:
[0018] when the device to be configured is in the second mode, connecting the router to the device to be configured according to the first name and the first password in the hotspot information.
[0019] In a possible implementation, the verifying of the device identifier of the device to be configured comprises:
[0020] sending an identifier acquisition request to the device to be configured, so that the device to be configured returns a device identifier corresponding to the identifier acquisition request, the device identifier comprising a DAC certificate and / or a PAI certificate of the device to be configured;
[0021] sending the DAC certificate and / or the PAI certificate to a server, so that the server verifies the DAC certificate and / or the PAI certificate and returns a verification result of the device to be configured.
[0022] In a possible implementation, the connecting of the device to be configured to the router according to the routing information comprises:
[0023] controlling the device to be configured to switch from the second mode to a third mode;
[0024] when the device to be configured is in the third mode, connecting to the router according to a second name and a second password in the routing information.
[0025] In a possible implementation, the method further comprises:
[0026] when the device to be configured is connected to the router, sending device information of the device to be configured to a server, so that the server updates the device information to a client.
[0027] In a second aspect, an embodiment of the present application provides a configuration device, comprising:
[0028] an acquisition module, configured to acquire a broadcast message sent by a device to be configured when a router is in a first mode;
[0029] The receiving module is configured to receive the hotspot information sent by the device to be configured in the network when it is determined that the broadcast message conforms to the preset format.
[0030] The verifying module is configured to establish a communication connection with the device to be configured in the network by using the hotspot information, and verify the device identifier of the device to be configured in the network.
[0031] The sending module is configured to send the routing information of the router to the device to be configured in the network when the device to be configured in the network passes the verification, so that the device to be configured in the network connects to the router according to the routing information.
[0032] In a third aspect, an embodiment of the present application provides a router, comprising a processor and a memory, wherein the processor is configured to execute a configuration network program stored in the memory, so as to implement the configuration network method in any of the first aspect.
[0033] In a fourth aspect, an embodiment of the present application provides a storage medium, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the configuration network method in any of the first aspect.
[0034] The configuration network scheme provided by the embodiment of the present application comprises the following steps: obtaining a broadcast message sent by a device to be configured in the network when a router is in a first mode; receiving hotspot information sent by the device to be configured in the network when it is determined that the broadcast message conforms to a preset format; establishing a communication connection with the device to be configured in the network by using the hotspot information, and verifying a device identifier of the device to be configured in the network; and sending routing information of the router to the device to be configured in the network when the device to be configured in the network passes the verification, so that the device to be configured in the network connects to the router according to the routing information. The same protocol format data is used by the router and the device to be configured in the network, and one client is used to verify the device to be configured in the network, so that the devices of different types or the same type from different manufacturers can be configured in the network, and the process is simple and convenient to operate. BRIEF DESCRIPTION OF DRAWINGS
[0035] Figure 1 An application scenario diagram of the configuration network method provided by the embodiment of the present application is shown in the figure.
[0036] Figure 2 A flowchart of the configuration network method provided by the embodiment of the present application is shown in the figure.
[0037] Figure 3 A flowchart of another configuration network method provided by the embodiment of the present application is shown in the figure.
[0038] Figure 4 A structure diagram of a configuration network device provided by the embodiment of the present application is shown in the figure.
[0039] Figure 5 A structural schematic diagram of a router provided for an embodiment of the present application. DETAILED DESCRIPTION
[0040] In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are some but not all of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative work fall within the protection scope of the present application.
[0041] In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are some but not all of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative work fall within the protection scope of the present application.
[0042] Figure 1 An application scenario diagram of a network configuration method provided for an embodiment of the present application, as shown in Figure 1 As described above, specifically including:
[0043] A router, a server, a client and a device to be configured in a network;
[0044] The device to be configured in a network can include different types of devices of different manufacturers or the same type of devices, but the device to be configured in a network uses protocol data in a preset format for communication, so as to realize configuration in a network of different types of devices of different manufacturers or the same type of devices through one client. The protocol can include but is not limited to a Matter protocol, that is, the router, the server, the client and the device to be configured in a network all support the Matter protocol.
[0045] Further, the router has a listening mode in addition to a conventional wireless access point (AP) mode, and the listening mode is used to identify the device to be configured in a network supporting the Matter protocol. In addition, the router can be connected to the device to be configured in a network as a STA station in the listening mode.
[0046] The device to be configured in a network sends a network configuration request to the router in the form of a broadcast message. When the router identifies that the device to be configured in a network supports the Matter protocol, the device to be configured in a network is determined as the device to be configured in a network for performing a network configuration operation, and hotspot information of the device to be configured in a network is obtained from the device to be configured in a network. Then, the router is connected to the device to be configured in a network according to the hotspot information. After the device to be configured in a network is verified, the routing information of the router is sent to the device to be configured in a network. Then, the device to be configured in a network can be connected to the router according to the routing information, so as to realize the network configuration operation of the device to be configured in a network.
[0047] Figure 2A flowchart of a network configuration method provided by an embodiment of the present application is shown in FIG. 1, and the method specifically includes the following steps. Figure 2
[0048] S21, obtaining a broadcast message sent by a device to be configured in a network when the router is in a first mode.
[0049] The network configuration method provided by the embodiment of the present application is applied to different types or same types of devices of different manufacturers supporting a preset protocol format, the router has a first mode and a second mode, the first mode is a listening mode, and is used to identify the device to be configured in the network which has the same protocol as the router; and the second mode is an AP mode, and is used to provide a wireless access point for the device to be configured in the network.
[0050] Further, when the router is in the first mode (the selection or switching of the mode of the router can be controlled by a client, or a mode switching button provided on the router is triggered), the router listens to the device to be configured in the network which sends the broadcast message (the device to be configured in the network sends the broadcast message to the outside in the form of broadcast when it needs to be configured in the network).
[0051] S22, receiving hotspot information sent by the device to be configured in the network when it is determined that the broadcast message conforms to a preset format.
[0052] In the embodiment, after the router obtains the broadcast message, the router identifies the broadcast message, judges whether the broadcast message conforms to the preset format, that is, judges whether the protocol format of the broadcast message is the same as the protocol format of the router, when it is determined that the broadcast message conforms to the preset format, it is further determined that the device to be configured in the network which sends the broadcast message and the router both support the same protocol format, the router returns a hotspot information request message to the device to be configured in the network, and the router receives the hotspot information returned by the device to be configured in the network in response to the hotspot information request message.
[0053] The hotspot information can be understood as information used to establish a connection with the router when the device to be configured in the network is in the AP mode.
[0054] S23, establishing a communication connection with the device to be configured in the network by using the hotspot information, and verifying a device identifier of the device to be configured in the network.
[0055] In the embodiment, after the router obtains the hotspot information, the router connects to the device to be configured in the network according to the hotspot information, and verifies a device identifier of the device to be configured in the network to verify the authenticity of the device to be configured in the network.
[0056] Further, the specific verification process can be: sending the device identifier to a server, verifying the device identifier by the server, and returning a verification result to the router.
[0057] S24, when the to-be-network-configured device passes the verification, sending the router information of the router to the to-be-network-configured device, so that the to-be-network-configured device connects to the router according to the router information.
[0058] In the embodiment, when the router passes the verification of the to-be-network-configured device, the router sends its own router information to the to-be-network-configured device, at this time, the router switches the first mode to the second mode, that is, the router switches to the AP mode, and the to-be-network-configured device can connect to the router according to the router information, thereby realizing the network configuration operation of the to-be-network-configured device.
[0059] The network configuration method provided by the embodiment of the application comprises the following steps: when the router is in the first mode, acquiring a broadcast message sent by a to-be-network-configured device; when it is determined that the broadcast message conforms to a preset format, receiving hotspot information sent by the to-be-network-configured device; establishing a communication connection with the to-be-network-configured device by using the hotspot information, verifying the device identifier of the to-be-network-configured device; and when the to-be-network-configured device passes the verification, sending the router information of the router to the to-be-network-configured device, so that the to-be-network-configured device connects to the router according to the router information. By setting the same protocol format data used by the router and the to-be-network-configured device, and by using a client to verify the to-be-network-configured device, different types or the same types of devices of different manufacturers can be configured in a network, and the process is simple and convenient to operate.
[0060] Figure 3 Another network configuration method provided by the embodiment of the application is shown in a flowchart as shown in Figure 3 The method specifically comprises the following steps:
[0061] S31, when the router is in the first mode, acquiring a broadcast message sent by a to-be-network-configured device.
[0062] In the embodiment of the application, the router is controlled by a client, which can be an APP installed on a terminal device, and the client and the router support the same protocol format data, which can be a Matter protocol.
[0063] Further, the client is provided with information of a plurality of manufacturers, and each manufacturer produces a device corresponding to the same device identifier, for example, a device produced by an A manufacturer is provided with an identifier A, and a device produced by a B manufacturer is provided with an identifier B, which can be a device attestation certificate (DAC) and a product attestation intermediate (PAI). By selecting the information of the manufacturer, the device information of the to-be-network-configured device can be determined, thereby facilitating the verification of the to-be-network-configured device.
[0064] After the information of the manufacturer of the device selected by the client is obtained, the mode of the router is set to a first mode, which is a listening mode, in which the router acquires a broadcast message sent by the device to be commissioned.
[0065] In this embodiment, the broadcast message sent by the device to be commissioned can represent a protocol format supported by the device to be commissioned, for example, a preset identifier is inserted in a reserved field of the broadcast message to represent that the device to be commissioned sending the broadcast message supports the preset protocol format, and the identifier can be an agreed string.
[0066] S32, scanning the received broadcast message.
[0067] S33, determining that the broadcast message conforms to the preset format when the target identifier is carried in the scanned broadcast message.
[0068] In this embodiment, the router scans the received broadcast message, and analyzes the reserved field of the broadcast message to determine whether the broadcast message carries the target identifier, and when it is determined that the broadcast message carries the target identifier, it is determined that the broadcast message conforms to the preset format, that is, it is determined that the device to be commissioned and the router support the same protocol format data.
[0069] S34, receiving hotspot information sent by the device to be commissioned.
[0070] In this embodiment, after the router determines that the broadcast message sent by the device to be commissioned conforms to the preset format, the router sends a hotspot information request message to the device to be commissioned to make the device to be commissioned return hotspot information of the device to be commissioned to the router, and control the device to be commissioned to switch to a second mode, that is, an AP mode.
[0071] S35, when the device to be commissioned is in the second mode, controlling the router to connect to the device to be commissioned according to the first name and the first password in the hotspot information.
[0072] In this embodiment, after the router obtains the hotspot information of the device to be commissioned, the router connects to the device to be commissioned according to the first name and the second password in the hotspot information, that is, a communication connection is established between the two, and at this time, the router is equivalent to a STA station.
[0073] S36, sending an identifier acquisition request to the device to be commissioned to make the device to be commissioned return a device identifier corresponding to the identifier acquisition request, the device identifier including a DAC certificate and / or a PAI certificate of the device to be commissioned.
[0074] S37, send the DAC certificate and / or the PAI certificate to a server, so that the server verifies the DAC certificate and / or the PAI certificate, and returns a verification result of the device to be commissioned.
[0075] In the embodiment, after the router and the device to be commissioned establish a communication connection, the router performs a step of verifying the device to be commissioned, the router sends an identifier acquisition request to the device to be commissioned, and the device to be commissioned returns a device identifier to the router, the device identifier comprising a DAC certificate and / or a PAI certificate of the device to be commissioned.
[0076] Further, all Matter devices are assigned a unique device authentication certificate DAC when leaving the factory, and by tracing the certificate chain of the device DAC certificate, it can be known whether the Matter device is indeed from the manufacturer on the device packaging, and the counterfeit goods can be quickly identified, the issuer of the device DAC certificate is a product authentication intermediate certificate PAI, which is usually held by the device manufacturer, and the DAC and PAI certificates are burned into the device during the production process and permanently stored.
[0077] Therefore, in the embodiment of the application, at least one of the DAC certificate and the PAI certificate of the device to be commissioned can be verified, that is, the authenticity of the device to be commissioned can be verified.
[0078] The router sends the DAC certificate and / or the PAI certificate to the server, the server verifies the DAC certificate and / or the PAI certificate sent to the server, and when the verification is passed, it is determined that the device to be commissioned is a real and valid device to be commissioned (the subsequent commissioning step can be performed); when the verification is not passed, it is determined that the device to be commissioned is a counterfeit device (the subsequent commissioning step is limited).
[0079] S38, when the device to be commissioned is verified, send the routing information of the router to the device to be commissioned.
[0080] S39, control the router to switch from the first mode to the second mode.
[0081] In the embodiment, when the device to be commissioned is verified, the router sends its routing information to the device to be commissioned, the routing information comprising a second name (router ID) and a second password (router password), and controls the router to perform mode switching, that is, the first mode of the router is switched to the second mode, wherein the first mode is a listening mode, and the second mode is a wireless access point AP mode.
[0082] S40, control the device to be commissioned to switch from the second mode to the third mode.
[0083] S41, connecting to the router according to the second name and the second password in the routing information when the device to be configured is in the third mode.
[0084] In the embodiment, the device to be configured switches the second mode to the third mode after receiving the routing information of the router, where the second mode is a wireless access point (AP) mode, and the third mode is a configuration mode.
[0085] Further, the device to be configured connects to the router according to the second name and the second password in the router.
[0086] S42, sending device information of the device to be configured to a server when the device to be configured is connected to the router, so that the server updates the device information to a client.
[0087] In the embodiment, the router sends device information (an ID of the device, a type of the device, etc.) of the device to be configured to the server when determining that the device to be configured is connected to the router, so that the server updates the device information to the client, and the binding between the device to be configured and the client is completed, and the whole configuration process is completed.
[0088] The configuration method provided by the embodiment of the application comprises the following steps: acquiring a broadcast message sent by a device to be configured when a router is in a first mode; receiving hotspot information sent by the device to be configured when it is determined that the broadcast message conforms to a preset format; establishing a communication connection between the router and the device to be configured by using the hotspot information; verifying a device identifier of the device to be configured; and sending routing information of the router to the device to be configured when the device to be configured passes the verification, so that the device to be configured is connected to the router according to the routing information. The same protocol format data is used by the router and the device to be configured, and a client is used to verify the device to be configured, so that the configuration operation can be performed on different types or the same type of devices of different manufacturers, and the process is simple and convenient to operate.
[0089] Figure 4 A structural schematic diagram of a configuration device provided by the embodiment of the application is shown in FIG. 1. Figure 4 The structure specifically comprises the following components:
[0090] The acquisition module 41 is configured to acquire a broadcast message sent by a device to be configured when a router is in a first mode.
[0091] The receiving module 42 is configured to receive hotspot information sent by the device to be configured when it is determined that the broadcast message conforms to a preset format.
[0092] The verification module 43 is configured to establish a communication connection with the device to be configured by using the hotspot information, and verify the device identifier of the device to be configured.
[0093] The sending module 44 is configured to send the router information of the router to the device to be configured when the device to be configured passes the verification, so that the device to be configured connects to the router according to the router information.
[0094] In one possible implementation, the apparatus further includes:
[0095] The control module 45 is configured to control the router to switch from the first mode to the second mode.
[0096] The first mode is a listening mode, and the second mode is a wireless access point mode.
[0097] In one possible implementation, the apparatus further includes a determination module 46 configured to scan the received broadcast message, and determine that the broadcast message conforms to the preset format when the target identifier is carried in the broadcast message.
[0098] In one possible implementation, the apparatus further includes an establishment module 47 configured to control the router to connect to the device to be configured according to the first name and the first password in the hotspot information when the device to be configured is in the second mode.
[0099] In one possible implementation, the apparatus further includes a verification module 48 configured to send an identifier acquisition request to the device to be configured, so that the device to be configured returns a device identifier corresponding to the identifier acquisition request, the device identifier including a DAC certificate and / or a PAI certificate of the device to be configured; and send the DAC certificate and / or the PAI certificate to a server, so that the server verifies the DAC certificate and / or the PAI certificate, and returns a verification result of the device to be configured.
[0100] In one possible implementation, the sending module 44 is further configured to control the device to be configured to switch from the second mode to a third mode, and connect to the router according to a second name and a second password in the router information when the device to be configured is in the third mode.
[0101] In one possible implementation, the sending module 44 is further configured to send device information of the device to be configured to a server when the device to be configured is connected to the router, so that the server updates the device information to a client.
[0102] The network configuration apparatus provided in the embodiment can be, for example, Figure 4The network device shown in the embodiment can perform the network configuration method as shown in the embodiment Figures 2-3 The network configuration method shown in the embodiment can perform all steps in the embodiment, and further realize Figures 2-3 The technical effects of the network configuration method shown in the embodiment, please refer to the embodiment Figures 2-3 The related description is not repeated here for brevity.
[0103] Figure 5 A structural schematic diagram of a router provided by the embodiment of the present application is shown in the embodiment, Figure 5 The router 500 shown in the embodiment includes at least one processor 501, a memory 502, at least one network interface 504 and other user interfaces 503. The various components in the router 500 are coupled together through a bus system 505. It can be understood that the bus system 505 is used to realize the connection communication between the components. The bus system 505 includes not only a data bus, but also a power supply bus, a control bus and a state signal bus. However, for the purpose of clear illustration, all kinds of buses are marked as the bus system 505 in the embodiment. Figure 5
[0104] The user interface 503 can include a display, a keyboard or a clicking device (for example, a mouse, a trackball, a touchpad or a touch screen, etc.).
[0105] It is to be appreciated that the memory 502 in the embodiments of the present application can be a volatile memory or a nonvolatile memory, or can include both volatile and nonvolatile memory. Among them, the nonvolatile memory can be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable Programmable ROM (EPROM), an Electrically EPROM (EEPROM), or a flash memory. The volatile memory can be a Random Access Memory (RAM) used as an external cache. By way of example, and not limitation, many forms of RAM are available, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous Dynamic RAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The memory 502 described herein is intended to include, without being limited to, these and any other suitable types of memory.
[0106] In some embodiments, the memory 502 stores the following elements, executable units or data structures, or a subset of them, or an extended set of them: an operating system 5021 and an application program 5022.
[0107] Among them, the operating system 5021 contains various system programs, such as framework layer, core library layer, driver layer, etc., for implementing various basic services and processing hardware-based tasks. The application program 5022 contains various application programs, such as Media Player, Browser, etc., for implementing various application services. The program for implementing the method embodiments of the present application can be contained in the application program 5022.
[0108] In the embodiments of the present application, by calling the programs or instructions stored in the memory 502, specifically, the programs or instructions stored in the application program 5022, the processor 501 is used to execute the method steps provided by each method embodiment, for example, including:
[0109] The broadcast message sent by the device to be configured is acquired when the router is in the first mode; the hotspot information sent by the device to be configured is received when it is determined that the broadcast message conforms to a preset format; a communication connection is established with the device to be configured by using the hotspot information, and the device identifier of the device to be configured is verified; when the device to be configured passes the verification, the router information of the router is sent to the device to be configured, so that the device to be configured is connected to the router according to the router information.
[0110] In one possible implementation, the router is controlled to switch from the first mode to a second mode.
[0111] The first mode is a listening mode, and the second mode is a wireless access point mode.
[0112] In one possible implementation, the received broadcast message is scanned; when the target identifier is carried in the broadcast message, it is determined that the broadcast message conforms to a preset format.
[0113] In one possible implementation, when the device to be configured is in the second mode, the router is connected to the device to be configured according to the first name and the first password in the hotspot information.
[0114] In one possible implementation, an identifier acquisition request is sent to the device to be configured, so that the device to be configured returns the device identifier corresponding to the identifier acquisition request, and the device identifier includes a DAC certificate and / or a PAI certificate of the device to be configured; the DAC certificate and / or the PAI certificate are sent to a server, so that the server verifies the DAC certificate and / or the PAI certificate, and returns a verification result of the device to be configured.
[0115] In one possible implementation, the device to be configured is controlled to switch from the second mode to a third mode; when the device to be configured is in the third mode, the router is connected according to a second name and a second password in the router information.
[0116] In one possible implementation, when the device to be configured is connected to the router, the device information of the device to be configured is sent to a server, so that the server updates the device information to a client.
[0117] The method disclosed by the embodiments of the present application can be applied to the processor 501 or implemented by the processor 501. The processor 501 can be an integrated circuit chip having a signal processing capability. In the implementation process, the steps of the method can be completed by the integrated logic electric circuit in the hardware of the processor 501 or the instruction in the form of software. The processor 501 described above can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component. The disclosed methods, steps and logic block diagrams in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in combination with the embodiments of the present application can be directly embodied as a hardware code processor for execution, or a combination of hardware and software units in the code processor for execution. The software unit can be located in a random access memory, a flash memory, a read only memory, a programmable read only memory or an electrically erasable programmable memory, a register or other mature storage medium in the art. The storage medium is located in the storage 502, and the processor 501 reads the information in the storage 502 and combines the hardware to complete the steps of the above method.
[0118] It can be understood that the embodiments described herein can be realized by hardware, software, firmware, middleware, microcode or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units for executing the functions described in the present application or a combination thereof.
[0119] For software implementation, the technology described herein can be implemented by units performing the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.
[0120] The router provided by the embodiments can be, for example Figure 5The router shown in the method can perform the following operations Figures 2-3 All steps of the network configuration method shown in the method are implemented Figures 2-3 The technical effects of the network configuration method shown in the method, please refer to Figures 2-3 The related description is not repeated here for brevity.
[0121] The embodiment of the application also provides a storage medium (computer readable storage medium). The storage medium stores one or more programs. The storage medium can include a volatile memory such as a random access memory, and the memory can also include a non-volatile memory such as a read-only memory, a flash memory, a hard disk, or a solid state disk. The memory can also include a combination of the above types of memories.
[0122] When the one or more programs in the storage medium are executed by one or more processors, the network configuration method executed at the network configuration device side described above is implemented.
[0123] The processor is configured to execute the network configuration program stored in the memory to implement the following steps of the network configuration method executed at the network configuration device side:
[0124] When the router is in the first mode, the broadcast message sent by the device to be configured is acquired; when it is determined that the broadcast message conforms to the preset format, the hotspot information sent by the device to be configured is received; the communication connection between the device to be configured and the router is established by using the hotspot information, and the device identifier of the device to be configured is verified; when the device to be configured passes the verification, the router information of the router is sent to the device to be configured, so that the device to be configured is connected to the router according to the router information.
[0125] In one possible implementation, the router is controlled to switch from the first mode to the second mode.
[0126] The first mode is a listening mode, and the second mode is a wireless access point mode.
[0127] In one possible implementation, the received broadcast message is scanned; when the target identifier is carried in the broadcast message obtained by scanning, it is determined that the broadcast message conforms to the preset format.
[0128] In one possible implementation, when the device to be configured is in the second mode, the router is connected to the device to be configured according to the first name and the first password in the hotspot information.
[0129] In a possible implementation, an identity obtaining request is sent to the device to be commissioned, so that the device to be commissioned returns a device identity corresponding to the identity obtaining request, the device identity comprising a DAC certificate and / or a PAI certificate of the device to be commissioned; the DAC certificate and / or the PAI certificate are sent to a server, so that the server verifies the DAC certificate and / or the PAI certificate and returns a verification result of the device to be commissioned.
[0130] In a possible implementation, the device to be commissioned is controlled to switch from the second mode to a third mode; when the device to be commissioned is in the third mode, the device to be commissioned is connected to the router according to a second name and a second password in the routing information.
[0131] In a possible implementation, when the device to be commissioned is connected to the router, device information of the device to be commissioned is sent to a server, so that the server updates the device information to a client.
[0132] Those skilled in the art should further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of both. In order to clearly illustrate the interchangeability of hardware and software, each unit and step of the examples has been described in general terms in the above description. Whether the functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0133] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented by hardware, software modules executed by a processor, or a combination of both. The software modules can be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0134] The above detailed description of the specific implementation further explains the purpose, technical solutions, and beneficial effects of the present application. It should be understood that the above description is only a specific implementation of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
Claims
1. A power distribution network method, characterized in that, After selecting the device manufacturer information through the client, the router's mode is set to the first mode, including: When the router is in the first mode, it acquires broadcast messages sent by the devices to be configured on the network. These devices include different types of devices from different manufacturers or devices of the same type. When it is determined that the broadcast message conforms to a preset format, the hotspot information sent by the device to be configured is received, including: the router returning a hotspot information request message to the device to be configured, and receiving the hotspot information returned by the device to be configured in response to the hotspot information request message; Specifically, if the protocol format of the broadcast message is the same as that of the router, it is determined that the broadcast message conforms to the preset format; Establishing a communication connection with the device to be configured using the hotspot information and verifying the device identifier of the device to be configured includes: sending an identifier acquisition request to the device to be configured, so that the device to be configured returns the device identifier corresponding to the identifier acquisition request, wherein the device identifier includes the DAC certificate and / or PAI certificate of the device to be configured; sending the DAC certificate and / or the PAI certificate to the server, so that the server verifies the DAC certificate and / or the PAI certificate and returns the verification result of the device to be configured; When the device to be configured on the network passes the verification, the routing information of the router is sent to the device to be configured on the network, so that the device to be configured on the network can connect to the router according to the routing information.
2. The method according to claim 1, characterized in that, After sending the routing information of the router to the device to be configured on the network, the method further includes: Control the router to switch from the first mode to the second mode; The first mode is the monitoring mode, and the second mode is the wireless access point (AP) mode.
3. The method according to claim 1, characterized in that, The step of determining that the broadcast message conforms to a preset format includes: Scan the received broadcast messages; When the broadcast message is found to contain a target identifier during scanning, it is determined that the broadcast message conforms to a preset format.
4. The method according to claim 1, characterized in that, The step of establishing a communication connection with the device to be configured using the hotspot information includes: When the device to be configured is in the second mode, the router is controlled to connect to the device to be configured based on the first name and first password in the hotspot information.
5. The method according to claim 2, characterized in that, The device to be configured on the network connects to the router according to the routing information, including: Control the device to be distributed to switch from the second mode to the third mode; When the device to be configured is in the third mode, it connects to the router according to the second name and second password in the routing information.
6. The method according to any one of claims 1-5, characterized in that, The method further includes: When the device to be configured on the network is connected to the router, the device information of the device to be configured on the network is sent to the server so that the server updates the device information to the client.
7. A power distribution network device, characterized in that, After selecting the device manufacturer information through the client, the router's mode is set to the first mode, including: The acquisition module is used to acquire broadcast messages sent by devices to be configured on the network when the router is in the first mode. These devices include different types of devices from different manufacturers or devices of the same type. The receiving module is used to receive hotspot information sent by the device to be configured when it is determined that the broadcast message conforms to a preset format, including: the router returning a hotspot information request message to the device to be configured, and receiving the hotspot information returned by the device to be configured in response to the hotspot information request message; Specifically, if the protocol format of the broadcast message is the same as that of the router, it is determined that the broadcast message conforms to the preset format; The verification module is used to establish a communication connection with the device to be configured on the network using the hotspot information, and to verify the device identifier of the device to be configured on the network. This includes: sending an identifier acquisition request to the device to be configured on the network, so that the device to be configured on the network returns the device identifier corresponding to the identifier acquisition request, wherein the device identifier includes the DAC certificate and / or PAI certificate of the device to be configured on the network; sending the DAC certificate and / or the PAI certificate to the server, so that the server verifies the DAC certificate and / or the PAI certificate, and returns the verification result of the device to be configured on the network. The sending module is used to send the routing information of the router to the device to be configured when the device to be configured passes the authentication, so that the device to be configured can connect to the router according to the routing information.
8. A router, characterized in that, include: A processor and a memory, the processor being configured to execute a network distribution program stored in the memory to implement the network distribution method according to any one of claims 1 to 6.
9. A storage medium, characterized in that, The storage medium stores one or more programs, which can be executed by one or more processors to implement the distribution network method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Wireless network distribution method, wireless router and wireless network distribution system
CN110784908A
Equipment configuration method and device, storage medium and electronic device
CN111132119A