Distribution network method, device, terminal and storage medium

By searching for identification information in the wireless signal, and obtaining the device information and sending it to the server to complete the distribution network, the problem that the terminal does not have an NFC chip cannot quickly distribute the network, and a cost-saving rapid distribution network is achieved.

CN115426639BActive Publication Date: 2025-07-11GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211003735.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-19
Publication Date
2025-07-11
Estimated Expiration
2042-08-19

AI Technical Summary

Technical Problem

If the terminal does not have an NFC chip, it is impossible to achieve rapid network distribution.

Method used

The target device is determined by searching for identification information in the wireless signal, and obtaining the device information, sending it to the server to complete the distribution network operation, and using the terminal's Bluetooth module to realize the distribution network.

Benefits of technology

When the terminal does not configure NFC chips, rapid network distribution is achieved, saving terminal costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115426639B_ABST
    Figure CN115426639B_ABST
Patent Text Reader

Abstract

Embodiments of the present invention relate to a power distribution network method, device, terminal and storage medium, including: determining a target device by searching for identification information in a wireless signal; when determining that the target device is a device to be networked, obtaining device information of the target device; sending the device information to a server so that the server uses the device information to complete the network configuration operation of the target device, and uses the Bluetooth module of the terminal to complete the network configuration operation of the device. Without configuring an NFC chip on the terminal, fast network configuration can be achieved, saving the cost of the terminal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to smart home, and in particular to a network configuration method, device, terminal and storage medium. Background Art

[0002] At present, smart home has gradually entered the family life of the public. Users can control smart devices at will through a terminal, which brings great convenience to users' lives. Users use a terminal with an NFC chip, bring the terminal close to the smart device, then receive the signal sent by the smart device through the terminal, and then send the authentication information to the smart device to enable the smart device to connect to the network.

[0003] However, in related technologies, not all terminals are equipped with NFC chips. Therefore, in the case where the terminal does not have an NFC chip, it is impossible to achieve fast network configuration similar to NFC. Summary of the Invention

[0004] In view of this, to solve the above technical problem that fast network configuration similar to NFC cannot be achieved when the terminal does not have an NFC chip, embodiments of the present invention provide a network configuration method, device, terminal and storage medium.

[0005] In a first aspect, an embodiment of the present invention provides a network configuration method, including:

[0006] Determine a target device by searching for identification information in wireless signals;

[0007] When it is determined that the target device is a device to be network-configured, obtain device information of the target device;

[0008] Send the device information to a server so that the server uses the device information to complete the network configuration operation of the target device.

[0009] In a possible implementation manner, determining that the target device is a device to be network-configured includes:

[0010] Obtain characteristic information corresponding to communication data of the target device, where the communication data carries the identification information;

[0011] Verify the characteristic information;

[0012] When the characteristic information passes the verification, determine that the target device is a device to be network-configured.

[0013] In a possible implementation manner, the characteristic information is determined by the following method:

[0014] Split the communication data according to a preset rule to obtain a plurality of sub-data;

[0015] For each of the sub - data, perform a modulo operation on the sub - data according to the firmware random number to obtain the eigenvalue corresponding to the sub - data;

[0016] Determine the characteristic information corresponding to the communication data according to the multiple eigenvalues corresponding to the multiple sub - data.

[0017] In a possible implementation, the method further includes:

[0018] Send the characteristic information and the account information to the server for verification;

[0019] When the characteristic information and the account information pass the verification, execute the step of "the server uses the device information to complete the network configuration operation of the target device".

[0020] In a possible implementation, the communication data includes: an identification field and a data field;

[0021] Wherein, the identification field includes part or all of the hardware address of the target device.

[0022] In a possible implementation, the obtaining the device information of the target device includes:

[0023] Send a network configuration request to the target device;

[0024] Receive the device information returned by the target device in response to the network configuration request.

[0025] In a possible implementation, the method further includes:

[0026] After the network configuration of the target device is completed, receive the network configuration success message sent by the server.

[0027] In a possible implementation, the determining the target device by searching for identification information in the wireless signal includes:

[0028] Determine the identification information according to the type of the device to be network - configured;

[0029] Determine the target device from the searched Bluetooth signals according to the identification information.

[0030] In a possible implementation, the method further includes: when a preset operation is detected, trigger a network configuration event.

[0031] In a second aspect, an embodiment of the present invention provides a network configuration device, including:

[0032] A determination module, configured to determine a target device by searching for identification information in the wireless signal;

[0033] An acquisition module, configured to acquire device information of the target device when it is determined that the target device is a device to be networked;

[0034] A sending module, configured to send the device information to a server, so that the server uses the device information to complete the networking operation of the target device.

[0035] In a third aspect, an embodiment of the present invention provides a terminal, including: a processor and a memory, where the processor is configured to execute a networking program stored in the memory to implement the networking method according to any one of the first aspects.

[0036] In a fourth aspect, an embodiment of the present invention provides a storage medium, where 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 networking method according to any one of the first aspects.

[0037] The networking solution provided by the embodiment of the present invention determines a target device by searching for identification information in a wireless signal; when it is determined that the target device is a device to be networked, acquires device information of the target device; sends the device information to a server, so that the server uses the device information to complete the networking operation of the target device, and uses the Bluetooth module of the terminal to complete the networking operation of the device. Without configuring an NFC chip in the terminal, fast networking can be achieved, saving the cost of the terminal. Description of the Drawings

[0038] Figure 1 It is an application scenario diagram of a networking method provided by an embodiment of the present invention;

[0039] Figure 2 It is a flowchart of a networking method provided by an embodiment of the present invention;

[0040] Figure 3 It is a flowchart of another networking method provided by an embodiment of the present invention;

[0041] Figure 4 It is a structural diagram of a networking device provided by an embodiment of the present invention;

[0042] Figure 5 It is a structural diagram of a terminal provided by an embodiment of the present invention. Detailed Embodiments

[0043] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0044] For the convenience of understanding the embodiments of the present invention, the following will further explain and illustrate with specific embodiments in conjunction with the accompanying drawings. The embodiments do not constitute a limitation to the embodiments of the present invention.

[0045] Figure 1 The following is an application scenario diagram of a power distribution method provided by an embodiment of the present invention. As Figure 1 shown, it specifically includes:

[0046] Terminal 11, device 12, server 13;

[0047] In this embodiment, the terminal 11 and the device 12 are equipped with Bluetooth modules, and the Bluetooth communication between the terminal 11 and the device 12 adopts a preset communication protocol. In this preset communication protocol, the format of communication data transmission is specified. The communication data is configured as: identification field + data field. The identification field can be used to represent the type of the device, and the data field can be used to represent the control instruction for the device. In addition, a "reserved field" (identification field + data field + reserved field) can be added to the communication data for future use. The field lengths of the above-mentioned "identification field", "data field", and "reserved field" can be set according to actual needs. For this, this embodiment does not make specific limitations.

[0048] When the device 12 is in the wake-up state, it broadcasts the Bluetooth name of the device itself in the form of a broadcast. The content of the identification field in the communication data is included in the Bluetooth name to represent the type of the device, which is convenient for the terminal 11 to identify. When the user needs to perform power distribution to control the device 12 through the terminal 11, the Bluetooth module of the terminal 11 is used to complete the power distribution of the device 12, achieving the technical effect of rapid power distribution even when the terminal does not have an NFC chip.

[0049] The terminal involved in this embodiment may include, but is not limited to: mobile terminals such as smart phones and tablet computers. The device may include, but is not limited to: smart home devices such as smart air conditioners, sweeping robots, smart speakers, and smart refrigerators. The terminal and the device are within the recognizable range of their respective Bluetooth modules. A client (APP program) is installed on the terminal, and the power distribution operation of the device can be realized through the client carried on the terminal.

[0050] Figure 2Schematic diagram of a power distribution network method provided by an embodiment of the present invention, as shown in Figure 2 The method specifically includes:

[0051] S21. Determine the target device by searching for identification information in the wireless signal.

[0052] In this embodiment, the Bluetooth module of the terminal is used to implement the device networking operation. When the device is in the wake-up state, the device type is added as identification information to the Bluetooth name of the device locally, and the Bluetooth name is broadcast outward in the form of a broadcast as a Bluetooth signal; the terminal turns on the local Bluetooth module to search for Bluetooth signals and display the searchable Bluetooth signals.

[0053] The terminal determines the target device from the searchable Bluetooth signals according to the type (identification information) of the device to be networked, that is, the device whose Bluetooth name contains the identification information is the target device.

[0054] Further, the identification information can be understood as information used to characterize the device type, and the identification can be part or all of the hardware address (Mac address) of the device.

[0055] S22. When it is determined that the target device is the device to be networked, obtain the device information of the target device.

[0056] In this embodiment, after the target device is recognized, it is also necessary to verify the target device to verify whether the target device is the device to be networked. The terminal initiates a communication handshake for the communication data of the target device containing the identification information to determine whether the communication data of the target device is the data format corresponding to the preset communication protocol. When it is determined that the communication data is the data format corresponding to the preset communication protocol, it is determined that the target device is the device to be networked.

[0057] Further, the terminal device sends a network configuration request to the target device so that the target device returns the device information of the target device. The device information can be understood as the information required for network configuration. For example, the device information may include, but is not limited to: mac address, device firmware program version number, etc.

[0058] S23. Send the device information to the server so that the server uses the device information to complete the network configuration operation of the target device.

[0059] In this embodiment, when the terminal obtains the device information of the target device, it sends the device information to the server. When the server receives the device information, after verifying the terminal (for example, the identity information of the terminal), it uses the device information of the target device to perform a network configuration operation to complete the binding between the server and the device, and then realizes the control of the device by the terminal.

[0060] The network configuration method provided by the embodiment of the present invention determines a target device by searching for identification information in a wireless signal; when it is determined that the target device is a device to be network-configured, the device information of the target device is obtained; the device information is sent to a server so that the server uses the device information to complete the network configuration operation of the target device, and uses the Bluetooth module of the terminal to complete the network configuration operation of the device. Without configuring an NFC chip on the terminal, fast network configuration can be realized, saving the cost of the terminal.

[0061] Figure 3 It is a schematic flowchart of another network configuration method provided by the embodiment of the present invention. As Figure 3 shown, this method specifically includes:

[0062] S31. When a preset operation is detected, a network configuration event is triggered.

[0063] In this embodiment, the trigger condition of the network configuration event is preset. When this trigger condition is triggered, the network configuration event is triggered, and then the Bluetooth module of the terminal device is used to realize the network configuration operation of the device. This trigger condition can be a preset shaking operation of the terminal (for example, shaking up and down a certain number of times, or shaking left and right a certain number of times). For example, the user holds the terminal and performs the preset shaking operation.

[0064] When the trigger condition is a shaking operation of the terminal, it is detected by the gravity sensor of the terminal whether there is a preset shaking operation. When it is detected that there is a preset shaking operation of the terminal, the network configuration event is triggered.

[0065] Further, after the network configuration event is triggered, a Bluetooth communication channel is constructed according to a preset Bluetooth communication protocol, and the search step of the target device is executed in this channel.

[0066] S32. Determine the identification information according to the type of the device to be network-configured.

[0067] S33. Determine the target device from the searched Bluetooth signals according to the identification information.

[0068] In this embodiment, when the device is in the wake-up state, the Bluetooth name of the device is broadcast in a preset format. The preset format can be: [identification information] + [chip code] + [verification information], where the identification information can be part or all of the hardware address (mac address), used to characterize the type of the device. For example, the 5th - 8th bits of the mac address can be used as the identification information, and the verification information can be part or all of the hardware address (mac address), used to verify the device. For example, the last 4 bits of the mac address can be used as the verification information.

[0069] In one example, assume that the identification information is: acff, the chip code is 74299TTL, and the verification information is bcfe. Then the Bluetooth name of the device is: acff74299TTLbcfe.

[0070] Furthermore, an association relationship between the device type and the hardware address is preset in advance. A part of the hardware address is used as the identification information of the device. According to the device type to be networked, the identification information is determined. For example, the 5th - 8th bits of the hardware address are used as the identification information. Assume that the hardware address of the air conditioner is: xxxxacffxxxxxxxx, then the identification information is "acff".

[0071] It should be noted that the selection of the identification information can be set according to actual needs. For example, the 5th - 8th bits of the hardware address can be used as the identification information, or the last 4 bits of the hardware address can be used as the identification information. In this regard, the present embodiment does not make specific limitations.

[0072] Match the searched Bluetooth signal (device Bluetooth name) according to the identification information to determine the target device corresponding to the identification information.

[0073] In an alternative solution of the embodiment of the present invention, when the number of devices is one, it can be directly determined through the identification information. When the number of devices is multiple, they can be distinguished and determined through the chip code in the device Bluetooth name; if the chip codes in the device Bluetooth names are the same, it is necessary to determine the distance between the user - specified device to be networked and the terminal, and use this distance to distinguish according to the signal strength of the Bluetooth name.

[0074] For example, the user's handheld terminal is in the master bedroom, and the master bedroom and the secondary bedroom are both equipped with air conditioners of the same model. At this time, it is necessary to determine the target device according to the signal strength of the Bluetooth signals (Bluetooth names) of the two air conditioners detected by the terminal. When the user's handheld terminal is in the master bedroom, the signal strength of the Bluetooth signal of the air conditioner in the master bedroom detected by the terminal is higher than that of the air conditioner in the secondary bedroom.

[0075] S34. Obtain the characteristic information corresponding to the communication data of the target device, where the communication data carries the identification information.

[0076] In this embodiment, a Bluetooth communication protocol between the terminal and the device is pre - configured, and the communication data transmitted using this Bluetooth communication protocol is configured. The format of this communication data can be: identification field + data field; or it can be: identification field + data field + reserved field.

[0077] In one example: The format of the communication data can be 16-bit hexadecimal data, with a 4-bit identification field, an 8-bit data field, and a 4-bit reserved field (the reserved field is filled with 0s). For example, the communication data can be: acff010000000000, where acff (identification information of the air conditioner), 01 (turn on), 00 (mode is automatic), 00 (wind speed is automatic), 00 (strong wind and silent wind are off), 0000 (reserved field).

[0078] Further, the device splits the local communication data according to a preset rule, calculates the eigenvalue for each split part, and then obtains the characteristic information corresponding to the communication data.

[0079] In an alternative solution of the embodiment of the present invention, the characteristic information is determined in the following manner:

[0080] Split the communication data according to a preset rule to obtain multiple sub-data; for each sub-data, perform a modulo operation on the sub-data according to the firmware random number to obtain the eigenvalue corresponding to the sub-data; determine the characteristic information corresponding to the communication data according to the multiple eigenvalues corresponding to the multiple sub-data.

[0081] Further, the preset rule can be: split the communication data according to a data length of 4. For example, "acff010000000000" can be split into "acff", "0100", "0000", and "0000".

[0082] For the split sub-data, perform a modulo operation on the sub-data according to the firmware random number. Assuming the firmware random number is 20, the eigenvalue corresponding to each sub-data is as follows:

[0083] Sub-data: acff / 20 = 7, sub-data: 0100 / 20 = 16, sub-data: 0000 / 20 = 0, sub-data: 0000 / 20 = 0. Correspondingly, the characteristic information is (7 / 16 / 0 / 0).

[0084] S35. Verify the characteristic information.

[0085] The terminal restores the communication data according to the pre-stored firmware random number and characteristic information, and then verifies whether the restored communication data is in the format specified by the preset communication protocol for communication data transmission.

[0086] S36. When the characteristic information is verified, determine that the target device is a device to be networked.

[0087] When it is determined that the restored communication data is in the format specified by the preset communication protocol for communication data transmission, determine that the target device is a device to be networked.

[0088] When it is determined that the restored communication data is in the format specified by a non - preset preset communication protocol for communication data transmission, it is determined that the target device is a non - device to be network - configured, and the step of determining the target device is re - executed.

[0089] S37. Send a network - configuration request to the target device and receive the device information returned by the target device in response to the network - configuration request.

[0090] S38. Send the device information to the server.

[0091] After determining that the target device is a device to be network - configured, send a network - configuration request to the target device. This network - configuration request is used to obtain the device information of the target device (for example, mac address, device firmware program version number, etc.). After receiving the device information returned by the target device, send this device information to the server.

[0092] S39. Send the feature information and account information to the server for verification.

[0093] S310. When the feature information and the account information pass the verification, the server uses the device information to complete the network - configuration operation of the target device.

[0094] S311. After the network - configuration of the target device is completed, receive the message of successful network - configuration sent by the server.

[0095] In this embodiment, while the terminal sends the device information to the server, it also sends the feature information of the communication data and the account information of the terminal client to the server for verification. The server verifies the account information of the terminal client and the restored verification of the feature information of the communication data. When the feature information and the account information pass the verification, the server uses the device information of the target device to perform the network - configuration operation to complete the binding between the server and the device, and further realize the control of the device by the terminal.

[0096] The network - configuration method provided by the embodiment of the present invention determines the target device by searching for the identification information in the wireless signal; when it is determined that the target device is a device to be network - configured, obtain the device information of the target device; send the device information to the server so that the server uses the device information to complete the network - configuration operation of the target device, and use the Bluetooth module of the terminal to complete the network - configuration operation of the device. Without configuring the NFC chip on the terminal, fast network - configuration can be realized, saving the cost of the terminal.

[0097] Figure 4 It is a schematic structural diagram of a network - configuration device provided by an embodiment of the present invention. As Figure 4 shown, the device specifically includes:

[0098] A determination module 41, configured to determine a target device by searching for identification information in a wireless signal;

[0099] An acquisition module 42, configured to acquire device information of the target device when the target device is determined to be a device to be networked;

[0100] A sending module 43, configured to send the device information to a server, so that the server completes the network configuration operation of the target device by using the device information.

[0101] In a possible implementation manner, the determination module 41 is further configured to acquire characteristic information corresponding to communication data of the target device, where the communication data carries the identification information;

[0102] Verify the characteristic information; when the characteristic information passes the verification, determine that the target device is a device to be networked.

[0103] In a possible implementation manner, the characteristic information is determined by the following method:

[0104] Split the communication data according to a preset rule to obtain a plurality of sub-data; for each sub-data, perform a modulo operation on the sub-data according to a firmware random number to obtain a characteristic value corresponding to the sub-data; determine the characteristic information corresponding to the communication data according to the plurality of characteristic values corresponding to the plurality of sub-data.

[0105] In a possible implementation manner, the sending module 43 is further configured to send the characteristic information and account information to the server for verification; when the characteristic information and the account information pass the verification, execute the step of "the server completes the network configuration operation of the target device by using the device information".

[0106] In a possible implementation manner, the communication data includes: an identification field and a data field; where, the identification field includes part or all of the hardware address of the target device.

[0107] In a possible implementation manner, the acquisition module 42 is specifically configured to send a network configuration request to the target device; receive the device information returned by the target device in response to the network configuration request.

[0108] In a possible implementation manner, the acquisition module 42 is further configured to receive a network configuration success message sent by the server after the target device completes network configuration.

[0109] In a possible implementation manner, the determining module 41 is specifically configured to determine identification information according to the type of the device to be networked; and determine a target device from the searched Bluetooth signals according to the identification information.

[0110] In a possible implementation manner, the device further includes: a detection module 44, configured to trigger a network configuration event when a preset operation is detected.

[0111] The network configuration device provided in this embodiment may be the network configuration device as shown in Figure 4 and may execute all steps of the network configuration method as shown in Figure 2-3 so as to achieve the technical effects of the network configuration method as shown in Figure 2-3 For specific reference, please refer to the Figure 2-3 related description. For the sake of concise description, it will not be elaborated here.

[0112] Figure 5 FIG. is a schematic structural diagram of a terminal provided in an embodiment of the present invention. Figure 5 The terminal 500 shown includes: at least one processor 501, a memory 502, at least one network interface 504, and other user interfaces 503. Each component in the terminal 500 is coupled together through a bus system 505. It can be understood that the bus system 505 is used to implement the connection and communication between these components. In addition to the data bus, the bus system 505 further includes a power bus, a control bus, and a status signal bus. However, for the sake of clear illustration, in Figure 5 all kinds of buses are labeled as the bus system 505.

[0113] Among them, the user interface 503 may include a display, a keyboard, or a pointing device (such as a mouse, a trackball, a touchpad, or a touch screen, etc.).

[0114] It can be understood that the memory 502 in the embodiments of the present invention can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchlink dynamic random access memory (SLDRAM), and direct rambus random access memory (DRRAM). The memory 502 described herein is intended to include but not be limited to these and any other suitable types of memory.

[0115] In some embodiments, the memory 502 stores the following elements, executable units, or data structures, or subsets thereof, or extended sets thereof: the operating system 5021 and the application program 5022.

[0116] Among them, the operating system 5021 includes various system programs, such as the framework layer, the core library layer, the driver layer, etc., and is used to implement various basic services and process hardware-based tasks. The application program 5022 includes various application programs, such as a media player (MediaPlayer), a browser (Browser), etc., and is used to implement various application services. The program for implementing the method of the embodiments of the present invention can be included in the application program 5022.

[0117] In the embodiments of the present invention, by calling the program or instruction stored in the memory 502, specifically, the program or instruction stored in the application program 5022, the processor 501 is used to execute the method steps provided by each method embodiment, for example, including:

[0118] Determine the target device by searching for identification information in the wireless signal; when it is determined that the target device is a device to be networked, obtain the device information of the target device; send the device information to the server so that the server can complete the network configuration operation of the target device using the device information.

[0119] In a possible implementation, obtain the characteristic information corresponding to the communication data of the target device, where the identification information is carried in the communication data; verify the characteristic information; when the characteristic information passes the verification, determine that the target device is a device to be networked.

[0120] In a possible implementation, split the communication data according to a preset rule to obtain a plurality of sub-data; for each sub-data, perform a modulo operation on the sub-data according to the firmware random number to obtain the characteristic value corresponding to the sub-data; determine the characteristic information corresponding to the communication data according to the plurality of characteristic values corresponding to the plurality of sub-data.

[0121] In a possible implementation, send the characteristic information and the account information to the server for verification; when the characteristic information and the account information pass the verification, execute the step of "the server uses the device information to complete the network configuration operation of the target device".

[0122] In a possible implementation, the communication data includes: an identification field and a data field; where the identification field includes part or all of the hardware address of the target device.

[0123] In a possible implementation, send a network configuration request to the target device; receive the device information returned by the target device in response to the network configuration request.

[0124] In a possible implementation, after the target device completes the network configuration, receive the message of successful network configuration sent by the server.

[0125] In a possible implementation, determine the identification information according to the type of the device to be networked; determine the target device from the searched Bluetooth signals according to the identification information.

[0126] In a possible implementation, trigger a network configuration event when a preset operation is detected.

[0127] The method disclosed in the embodiments of the present invention above can be applied to the processor 501 or implemented by the processor 501. The processor 501 may be an integrated circuit chip with signal processing capabilities. During implementation, the steps of the above method can be completed by the integrated logic circuit in the hardware of the processor 501 or instructions in the form of software. The above-mentioned processor 501 may be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. It can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present invention. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in combination with the embodiments of the present invention can be directly embodied as being executed and completed by a hardware decoding processor, or executed and completed by a combination of the hardware and software units in the decoding processor. The software unit may be located in a mature storage medium in the art such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, registers, etc. This storage medium is located in the memory 502, and the processor 501 reads the information in the memory 502 and combines its hardware to complete the steps of the above method.

[0128] It can be understood that these embodiments described herein can be implemented using 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, microcontrollers, microprocessors, other electronic units for performing the functions described in this application, or a combination thereof.

[0129] For software implementation, the techniques described herein can be implemented by units that execute the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented inside or outside the processor.

[0130] The terminal provided in this embodiment may be, for example, Figure 5The terminal shown in can execute all steps of the network configuration method as shown in Figure 2-3 and thus achieve the technical effects of the network configuration method shown in Figure 2-3 . For specific details, please refer to Figure 2-3 the relevant description. For the sake of brevity, it will not be elaborated here.

[0131] The embodiment of the present invention also provides a storage medium (computer-readable storage medium). One or more programs are stored in this storage medium. Among them, the storage medium may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, hard disk or solid-state drive; the memory may also include a combination of the above types of memory.

[0132] When one or more programs in the storage medium can be executed by one or more processors to implement the above network configuration method executed on the network configuration device side.

[0133] The processor is used to execute the network configuration program stored in the memory to implement the following steps of the network configuration method executed on the network configuration device side:

[0134] Determine the target device by searching for identification information in the wireless signal; when it is determined that the target device is a device to be network-configured, obtain the device information of the target device; send the device information to the server so that the server uses the device information to complete the network configuration operation of the target device.

[0135] In a possible implementation manner, obtain the characteristic information corresponding to the communication data of the target device, and the identification information is carried in the communication data; verify the characteristic information; when the characteristic information is verified to be passed, determine that the target device is a device to be network-configured.

[0136] In a possible implementation manner, split the communication data according to a preset rule to obtain a plurality of sub-data; for each sub-data, perform modulo operation on the sub-data according to the firmware random number to obtain the characteristic value corresponding to the sub-data; determine the characteristic information corresponding to the communication data according to the plurality of characteristic values corresponding to the plurality of sub-data.

[0137] In a possible implementation manner, send the characteristic information and the account information to the server for verification; when the characteristic information and the account information are verified to be passed, execute the step of "the server uses the device information to complete the network configuration operation of the target device".

[0138] In a possible implementation manner, the communication data includes: an identification field and a data field; wherein, the identification field includes part or all of the hardware address of the target device.

[0139] In a possible implementation, a network configuration request is sent to the target device; device information returned by the target device in response to the network configuration request is received.

[0140] In a possible implementation, after the target device completes network configuration, a message indicating successful network configuration sent by the server is received.

[0141] In a possible implementation, identification information is determined according to the type of the device to be network-configured; the target device is determined from the detected Bluetooth signals according to the identification information.

[0142] In a possible implementation, a network configuration event is triggered when a preset operation is detected.

[0143] Those skilled in the art should further realize that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the components and steps of the examples have been generally described according to their functions in the above description. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled professionals can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.

[0144] 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 the two. The software modules can be placed in a random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium well-known in the technical field.

[0145] The specific implementation manners described above further elaborate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above description is only for the specific implementation manners of the present invention and is not used to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A distribution network method, characterized in that, Including: Determine the target device by searching for identification information in the wireless signal; wherein, the device adds the device type as the identification information to the local Bluetooth name of the device, and broadcasts the Bluetooth name as a Bluetooth signal in a broadcast form; When it is determined that the target device is a device to be networked, obtain the device information of the target device; wherein, determining that the target device is a device to be networked includes: obtaining the characteristic information corresponding to the communication data of the target device, the communication data carrying the identification information; verifying the characteristic information; when the characteristic information passes the verification, determining that the target device is a device to be networked; The characteristic information is determined by the following method: splitting the communication data according to a preset rule to obtain a plurality of sub-data; for each sub-data, performing a modulo operation on the sub-data according to the firmware random number to obtain the characteristic value corresponding to the sub-data; determining the characteristic information corresponding to the communication data according to the plurality of characteristic values corresponding to the plurality of sub-data; Send the device information to the server so that the server completes the network configuration operation of the target device by using the device information.

2. The method according to claim 1, characterized in that The method further includes: Send the characteristic information and the account information to the server for verification; When the characteristic information and the account information pass the verification, execute the step of the server completing the network configuration operation of the target device by using the device information.

3. The method according to claim 1, characterized in that, The communication data includes: an identification field and a data field; Wherein, the identification field includes part or all of the hardware address of the target device.

4. The method according to claim 1, wherein The obtaining the device information of the target device includes: Send a network configuration request to the target device; Receive the device information returned by the target device in response to the network configuration request.

5. The method according to claim 1, wherein The method further includes: After the network configuration of the target device is completed, receive the network configuration success message sent by the server.

6. The method according to claim 1, wherein The determining the target device by searching for identification information in the wireless signal includes: Determine the identification information according to the type of the device to be networked; Determine the target device from the searched Bluetooth signals according to the identification information.

7. The method according to any one of claims 1-6, characterized in that, The method further includes: When a preset operation is detected, trigger a network configuration event.

8. A distribution network device, characterized in that, Including: A determination module, configured to determine a target device by searching for identification information in a wireless signal; wherein, a device adds a device type as the identification information to a local Bluetooth name of the device, and broadcasts the Bluetooth name as a Bluetooth signal in a broadcast form; An obtaining module, configured to obtain device information of the target device when it is determined that the target device is a device to be networked; wherein, determining that the target device is a device to be networked includes: obtaining characteristic information corresponding to communication data of the target device, the communication data carrying the identification information; verifying the characteristic information; when the characteristic information passes the verification, determining that the target device is a device to be networked; The feature information is determined in the following manner: splitting the communication data according to a preset rule to obtain a plurality of sub-data; for each of the sub-data, performing a modulo operation on the sub-data according to the firmware random number to obtain the feature value corresponding to the sub-data; determining the feature information corresponding to the communication data according to the plurality of feature values corresponding to the plurality of sub-data; A sending module, configured to send the device information to the server, so that the server uses the device information to complete the network configuration operation of the target device.

9. A terminal, characterized in that, Comprising: A processor and a memory, the processor is configured to execute the network configuration program stored in the memory to implement the network configuration method according to any one of claims 1 to 7.

10. A storage medium, characterized in that, 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 network configuration method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Equipment network distribution method and device, computer readable storage medium and electronic device

    CN112152853A

  • Network configuration method, device, equipment and system

    CN113099440A

  • Intelligent equipment network distribution method and device

    CN113573313A