CN110351225B - Hardware device networking method and system, computing device and readable storage medium - Google Patents

Hardware device networking method and system, computing device and readable storage medium Download PDF

Info

Publication number
CN110351225B
CN110351225B CN201810287525.6A CN201810287525A CN110351225B CN 110351225 B CN110351225 B CN 110351225B CN 201810287525 A CN201810287525 A CN 201810287525A CN 110351225 B CN110351225 B CN 110351225B
Authority
CN
China
Prior art keywords
equipment
network
target
identifier
connection information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810287525.6A
Other languages
Chinese (zh)
Other versions
CN110351225A (en
Inventor
孙铭银
倪虎
饶凌河
张锦建
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201810287525.6A priority Critical patent/CN110351225B/en
Publication of CN110351225A publication Critical patent/CN110351225A/en
Application granted granted Critical
Publication of CN110351225B publication Critical patent/CN110351225B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application provides a networking method of hardware equipment, which comprises the steps of responding to the operation of adding a second device, and generating network connection information; acquiring a list of device identifications of second devices which start short-distance communication functions around; determining a device identity of the target second device from the list of device identities; sending a pairing request carrying the network connection information to the target second equipment according to the equipment identifier of the target second equipment, so that the target second equipment is connected to the network to be connected according to the network connection information in the pairing request and establishes a connection relation with the first equipment; and the first equipment and the target second equipment carry out information interaction through the network to be connected and the connection relation. The application also provides a device and a system for realizing the method.

Description

Hardware device networking method and system, computing device and readable storage medium
Technical Field
The present application relates to the field of information technology, and in particular, to a method and an apparatus for networking hardware devices, and a storage medium.
Background
At present, with the development of the internet, the technology of the internet of things is also rapidly developed and widely applied, which is a necessary result of the development of computer technology, and the internet of things refers to a huge network formed by combining various information sensing devices, collecting various required information such as any object or process needing monitoring, connection and interaction in real time, and the like with the internet, so that the connection between objects such as a non-screen hardware device and a mobile terminal, and between objects and people and the like with the network is realized, and the identification and management are convenient.
Disclosure of Invention
The application provides a networking method and device of hardware equipment and a storage medium, which can improve the networking efficiency of the hardware equipment.
An embodiment of the present application provides a networking method for hardware devices, including: generating network connection information in response to an operation of adding the second device; acquiring a list of device identifications of second devices which start short-distance communication functions around; determining a device identity of the target second device from the list of device identities; sending a pairing request carrying the network connection information to the target second equipment according to the equipment identifier of the target second equipment, so that the target second equipment is connected to the network to be connected according to the network connection information in the pairing request and establishes a connection relation with the first equipment; and the first equipment and the target second equipment carry out information interaction through the network to be connected and the connection relation. .
An embodiment of the present application provides a networking method for hardware devices, including: starting a short-distance communication function to monitor pairing requests from other equipment; receiving a pairing request sent by second equipment, and acquiring network connection information from equipment information of the second equipment sending the pairing request, wherein sender information carried by the pairing request comprises the network connection information serving as the equipment information of the second equipment; connecting to a network to be connected according to the network connection information, and establishing a connection relation with the second equipment; and the first equipment and the second equipment carry out information interaction through the network to be connected and the connection relation.
An embodiment of the present application further provides a networking apparatus for a hardware device, including: the generation module responds to the operation of adding the second equipment and generates network connection information; the acquisition module acquires a list of equipment identifiers of second equipment with a short-distance communication function opened around; a determining module, configured to determine a device identifier of a target second device from the list of device identifiers; a sending module, configured to send a pairing request carrying the network connection information to the target second device according to the device identifier of the target second device, so that the target second device is connected to the network to be connected according to the network connection information in the pairing request and establishes a connection relationship with the first device; and the interaction module is used for performing information interaction between the first equipment and the target second equipment through the network to be connected and the connection relation.
In some examples, the generating module displays a page, and receives the name and the password of the network to be connected, which are input in the page; sending an adding request containing the hardware equipment identifier of the first equipment to a server so that the server generates an electronic code according to the hardware equipment identifier; receiving the electronization code returned by the server; and generating the network connection information according to the name and the password of the network to be connected and the electronic code.
In some examples, the networking device further comprises: a modification module, configured to modify device information of the first device corresponding to the short-range communication function in a system configuration file from a device identifier of the first device to the network connection information; and sending a pairing request to the target second device according to the device identifier of the target second device and the modified device information in the system configuration file, wherein sender information carried by the pairing request comprises the network connection information serving as the modified device information.
In some examples, the networking device further comprises: the first equipment encrypts the network connection information by adopting a preset secret key; after the target second device acquires the network connection information, decrypting the network connection information by using the secret key, connecting to the network to be connected according to the name and the password of the network to be connected in the decrypted network connection information, and sending a connection request comprising the hardware device identifier of the second device and the electronic code in the network connection information to the server through the network to be connected, so that the server establishes the binding relationship between the hardware device identifier of the first device and the hardware device identifier of the second device according to the hardware device identifier of the first device, the hardware device identifier of the second device and the electronic code.
In some examples, the obtaining module further enables a short-range communication function of the first device; scanning surrounding second equipment with a short-distance communication function to acquire a list of equipment identifications of the second equipment.
In some examples, the determining module determines, according to a preset identifier, a device identifier including the preset identifier from the list of device identifiers and uses the device identifier as the device identifier of the target second device.
In some examples, the modifying module further modifies the device information in the system configuration file from a first character string constituting a device identifier of the first device to a second character string constituting the network connection information, where the second character string constituting the network connection information has a preset format, so that the target second device identifies, according to the preset format, a name and a password of the network to be connected and the e-code from the second character string.
In some examples, the modification module further modifies the device information of the first device corresponding to the short-range communication function in the system configuration file from the connection network information to a device identifier of the first device
In some examples, the interaction module sends a management message to the target second device according to the device identifier of the target second device, so that the interaction module executes an operation corresponding to the management message.
An embodiment of the present application further provides a networking apparatus for a hardware device, including: the starting module starts the short-distance communication function to monitor the pairing request from other equipment; the system comprises an acquisition module, a matching module and a matching module, wherein the acquisition module receives a matching request sent by second equipment and acquires network connection information from equipment information of the second equipment sending the matching request, and sender information carried by the matching request comprises the network connection information serving as the equipment information of the second equipment; the connection module is connected to a network to be connected according to the network connection information and establishes a connection relation with the second equipment; and the interaction module is used for performing information interaction between the first equipment and the second equipment through the network to be connected and the connection relation.
In some examples, the network connection information includes a name, a password, and an e-code of the network to be connected; the connection module acquires the name and the password of the network to be connected from the network connection information; connecting to the network to be connected according to the name and the password of the network to be connected; the connection module is further used for acquiring the electronization code from the network connection information; and sending a connection request comprising the hardware equipment identifier of the first equipment and the electronization code to a server through the network to be connected so that the server establishes a binding relationship between the hardware identifier of the first equipment and the hardware equipment identifier of the second equipment.
In some examples, before the short-range communication function is started, the starting module further sets the device identifier of the first device corresponding to the short-range communication function according to a preset format.
In some examples, the initiating module further adds a preset identifier to the device identification of the first device.
In some examples, the networking apparatus further includes a decryption module, configured to decrypt, using a preset key, the device information of the second device that sent the pairing request, so as to obtain the network connection information from the device information of the second device.
In some examples, the second string that makes up the network connection information has a preset format; and the acquisition module identifies and obtains the name, the password and the electronic code of the network to be connected from the second character string according to the preset format.
In some examples, the connection module generates and sends a prompt message of successful connection to the second device.
In some examples, the interaction module receives a management message sent by the second device; and executing operation corresponding to the management message according to the management message.
The embodiment of the present application further provides a networking system for hardware devices, which includes: a first device and a second device; wherein the content of the first and second substances,
the second equipment starts a short-distance communication function to monitor pairing requests from other equipment;
the first device responds to the operation of adding the second device and generates network connection information; acquiring a list of device identifications of second devices which start short-distance communication functions around; determining a device identity of the second device from the list of device identities; sending a pairing request carrying the network connection information to the second equipment according to the equipment identifier of the second equipment, so that the second equipment is connected to the network to be connected according to the network connection information in the pairing request and establishes a connection relation with the first equipment; the first equipment and the second equipment carry out information interaction through the network to be connected and the connection relation;
the second device further starts a short-distance communication function to monitor pairing requests from other devices; receiving a pairing request sent by first equipment, and acquiring network connection information from equipment information of the first equipment sending the pairing request, wherein sender information carried by the pairing request comprises the network connection information serving as the equipment information of the first equipment; connecting to a network to be connected according to the network connection information, and establishing a connection relation with the first equipment; and the second equipment and the first equipment carry out information interaction through the network to be connected and the connection relation.
The embodiment of the application also provides a storage medium, which stores readable instructions and can enable at least one processor to execute the networking method of the hardware device.
According to the technical scheme, on one hand, as the short-distance communication technology is mature, the technical scheme provided by the application utilizes the short-distance communication technology to assist the intelligent hardware equipment to access the network, the network access efficiency can be improved, the experience of a user on the hardware equipment to access the network is improved, on the other hand, the steps of the intelligent hardware equipment to access the network are simplified, frequent interaction between the user terminal and the intelligent hardware equipment is avoided, the processing efficiency of the user terminal and the intelligent hardware equipment and the utilization rate of the network are improved, the power consumption is reduced, resources are saved, and the like. In addition, the existing intelligent hardware equipment has a short-distance communication function, such as a Bluetooth function, and the technical scheme provided by the application does not need a user to additionally add other hardware components to access the network, so that the cost is saved for the user.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1a is a schematic diagram of a system configuration according to an embodiment of the present application;
FIG. 1b is a schematic structural diagram of a networking module and target application software for implementing a networking method for a hardware device according to an embodiment of the present application;
FIG. 2 is a flow chart of a method for networking hardware devices according to an embodiment of the present application;
fig. 3 is an example of a page for inputting information of a network to be connected according to an embodiment of the present application;
fig. 4 is an example of a list of device identifiers of a second device obtained by a first device according to an embodiment of the present application;
FIG. 5 is a flow chart of a method for networking hardware devices according to an embodiment of the present application;
FIG. 6 is an interaction flow diagram of a method for networking hardware devices according to an embodiment of the present application;
FIG. 7 is a schematic structural diagram of a hardware device networking apparatus according to an embodiment of the present application;
fig. 8 is a schematic hardware structure diagram of a first device according to an embodiment of the present application;
FIG. 9 is a schematic structural diagram of a hardware device networking apparatus according to an embodiment of the present application; and
fig. 10 is a schematic hardware structure diagram of a second device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
For simplicity and clarity of description, the invention will be described below by describing several representative embodiments. The numerous details of the examples are merely provided to assist in understanding the inventive arrangements. It will be apparent, however, that the invention may be practiced without these specific details. Some embodiments are not described in detail, but rather are merely provided as frameworks, in order to avoid unnecessarily obscuring aspects of the invention. Hereinafter, "including" means "including but not limited to", "according to … …" means "at least according to … …, but not limited to … … only". When the number of one component is not particularly specified hereinafter, it means that the component may be one or more, or may be understood as at least one.
As mentioned above, the internet of things technology is to realize connection between an object and an object, between an object and a person, and the like and a network, and currently, a method for accessing a hardware device, particularly a hardware device without a screen, to a network may be a SmartConfig technology, but the SmartConfig technology requires the hardware device to provide hardware support, that is, the hardware device needs to have a SmartConfig capability to access the network when leaving a factory, which increases the cost.
The example of the application provides a networking method of hardware equipment. The method enables a hardware device to access a network without establishing any communication link of any nature with other devices and without establishing a bluetooth connection. For example, a hardware manufacturer produces a batch of intelligent robots (supporting bluetooth), the batch of robots need to be connected to a network, but the batch of robots do not have screens, keyboards and any other hardware conditions for directly inputting information. It should be noted that the hardware device needs to support a short-range communication function, such as a bluetooth function.
Fig. 1a is a schematic structural diagram of a system to which a networking method for hardware devices according to some embodiments of the present application is applied. As shown in fig. 1a, the application program starting system of the present application at least includes: a second hardware device 11, a network 12, a first hardware device 13, and a server 16.
In some examples of the present application, the second hardware device 11 may be an intelligent terminal device without any other hardware condition that information can be directly input, such as a screen or a keyboard, such as an intelligent bluetooth speaker, an intelligent watch, an intelligent robot, a printer, a scanner, a washing machine, a refrigerator, and the like, and as mentioned above, the hardware device 11 includes a short-distance communication module, such as the bluetooth module 14, through which the hardware device 11 can communicate with other terminal devices in a short distance. The hardware device 11 may further include a network communication module, such as a WiFi module, through which the user terminal 11 may access a network to communicate with a server or other terminal devices in the network.
The network 12 may be a wireless network. As shown in fig. 1, the user terminal 13 is wirelessly connected to the network 12; and the hardware device 11 accesses the network 12 in a wireless manner after acquiring the user name and the password of the network 12.
The first hardware device 13 may be a user terminal, specifically, an intelligent terminal device such as a Personal Computer (PC) and a notebook computer, or an intelligent mobile terminal device such as a smart phone, a PAD, or a tablet computer. In some examples of the present application, the user terminal 11 may include a short-range communication module, such as a bluetooth module 14, etc., through which the user terminal 11 may facilitate other terminal devices in close proximity, such as a hardware device 11, to access the network 12. The user terminal 11 may include a network communication module, such as a WiFi module, etc., through which the user terminal 11 may access a network to communicate with a server or other terminal devices in the network. In general, various application software may be installed on the user terminal 11, and in the following description, the application software to be used or being used by the user is referred to as the target application software 15 for convenience of description.
The server 16 may be an application server of the target application software 15, and provides a service to the user together with the user terminal 11 where the target application software 15 is located.
The networking method of the hardware device provided by the embodiment of the application is described by several embodiments in the following with reference to the attached drawings.
Based on the system structure shown in fig. 1a, an embodiment of the present application provides a networking method for a hardware device, which can be integrated as a functional module in target application software of the user terminal 13 and executed by the target application software, and fig. 1b shows a networking module for implementing the networking method for a hardware device provided in the embodiment of the present application and a structural diagram of the target application software. As shown in fig. 1b, a networking module 102 is located in the target application 101, which networking module 102 can modify the device information of the first device by accessing the device information in the system configuration file 103 of the first device 13.
Fig. 2 shows a flowchart of a networking method of a hardware device, which is executed by target application software on the first device 13, according to an example of the present application. As shown in fig. 2, the networking method of the hardware device includes the following steps:
step 201: in response to the operation of adding the second device, network connection information is generated.
As described above, the networking module implementing the networking method of the hardware device proposed in the present application is integrated in the target application software. In some examples, in response to an operation of adding a second device, a page is displayed, and a name and a password of the network to be connected, which are input in the page, are received; sending an adding request containing the hardware equipment identifier of the first equipment to a server so that the server generates an electronic code according to the hardware equipment identifier; receiving the electronization code returned by the server; and generating the network connection information according to the name and the password of the network to be connected and the electronic code. Specifically, when a user needs to enable a target second device to be networked to access a network, the first device displays a page to the user through the target application software, and the user can input the name and the password of the network to be connected on the page, wherein the network to be connected can be a wifi network. At the same time, an add request is sent to the server to cause it to generate an e-code. Wherein the electronic code may be a verification code, and the electronic code may have a predetermined time period, for example, valid for 5 minutes. For example, the target application software provides an add button for adding the second device, and in response to the user clicking the add button, the target application software pulls up a page for the user to input the name and the password of the network to be connected, so that the user inputs the name and the password of the network to be connected on the page.
It should be noted that the hardware device Identifier is different from the device Identifier, the device Identifier corresponding to the short-range communication function is, for example, a bluetooth name, and the hardware device Identifier may be a Globally Unique Identifier (GUID) of the client device or another Identifier capable of uniquely identifying the device itself, such as a MAC address (Media Access Control address).
In some examples, after the obtaining of the network connection information, the first device encrypts the network connection information with a preset key; after the target second device acquires the network connection information, decrypting the network connection information by using the secret key, connecting to the network to be connected according to the name and the password of the network to be connected in the decrypted network connection information, and sending a connection request comprising the hardware device identifier of the second device and the electronic code in the network connection information to the server through the network to be connected, so that the server establishes the binding relationship between the hardware device identifier of the first device and the hardware device identifier of the second device according to the hardware device identifier of the first device, the hardware device identifier of the second device and the electronic code.
Specifically, after the network connection information is generated according to the name and the password of the network to be connected, which are input by a user on a page provided by the target application software, and the electronic code returned by the server, the network connection information is arranged according to a preset first format; the network information is encrypted by using a preset key to generate encrypted network connection information, where the preset key may be a public key in an RSA encryption algorithm or other keys, and the application is not limited herein. For example, the name of the network to be connected, which is input by the user, is staffwifi, the password is 12345678, and the electronization code returned by the server is 5634, and the network is arranged according to the preset first format, such as a colon ": "separate the name, password and the above-mentioned electronization code of the above-mentioned network of waiting to connect, arrange into staffwifi promptly: 12345678: 5634; the network connection information is encrypted using the public key of the RSA encryption algorithm to generate encrypted network connection information XXXXXXXX.
Fig. 3 is an example of a page provided by the first device for inputting information of a network to be connected. As shown in fig. 3, a page 31 is a page for inputting information of a network to be connected, which is displayed by target application software on a first device, in the page 31, a selection box 32 for selecting an identifier of the network to be connected and a text box 33 for inputting a password of the network to be connected are provided, and a user can select a name of the network to be connected desired through the selection box 32 and input the password of the network to be connected in the text box 33.
Step 202: a list of device identifications of surrounding second devices that initiate short-range communication functions is obtained.
In some examples, a short-range communication function of the first device is turned on; scanning surrounding second equipment with a short-distance communication function to acquire a list of equipment identifications of the second equipment. Specifically, after the user inputs the information of the network to be connected, the first device 13 opens the short-range communication function of the first device 13, such as the bluetooth function, searches for surrounding second devices that open the short-range communication function, and obtains a list of device identifiers of the above second devices that open the short-range communication function.
Fig. 4 is an example of a list of device identifications of second devices around which a short-range communication function, such as a bluetooth function, is turned on, which is acquired by the first device 13. As shown in fig. 4, 4 second devices that turn on the bluetooth function can be searched for at present. The target application software on the first device 13 may obtain the list 41 of the identifiers of the 4 second devices that open the bluetooth function.
Step 203: determining a device identity of the target second device from the list of device identities.
In some examples, according to a preset identifier, the device identifier including the preset identifier is determined from the list of device identifiers and is used as the device identifier of the target second device.
Specifically, the target second device to be networked sets its own device identifier according to a preset second format, so that the device identifier of the target second device includes the preset identifier, and the first device determines the device identifier of the second device from the list of device identifiers according to the preset identifier, that is, the hardware device whose device identifier includes the preset identifier is the target second device to be networked. For example, if the device identifier of one hardware device is "bot 123", and the preset identifier is "bot", it may be determined that the hardware device is the second device to be networked.
Still taking fig. 4 as an example, assuming that the preset identifier is "bot", after the first device 13 obtains the list of identifiers of other hardware devices that open bluetooth shown in fig. 4, the second device to be networked, that is, the hardware device 42 whose device identifier is "bot 123", may be determined according to the preset identifier "bot".
Step 204: and sending a pairing request carrying the information of the network to be connected to the target second equipment according to the equipment identifier of the target second equipment, so that the target second equipment is connected to the network to be connected according to the network connection information in the pairing request and establishes a connection relation with the first equipment.
In some examples, modifying the device information of the first device corresponding to the short-range communication function in the system configuration file from the device identifier of the first device to the network connection information; and sending a pairing request to the target second device according to the device identifier of the target second device and the modified device information in the system configuration file, wherein sender information carried by the pairing request comprises the network connection information serving as the modified device information. Specifically, the system interface is called to modify the device identifier corresponding to the short-distance communication function of the first device in the device information table in the system configuration file into the network connection information, for example, modify the device identifier corresponding to the bluetooth function of the first device in the device information table in the system configuration file into the network connection information, for example, modify the device identifier iphone6splus corresponding to the bluetooth function of the first device into the name and the password staffwifi of the network to be connected: 12345678: 5634.
In some examples, the device information in the system configuration file is modified from a first character string forming a device identifier of the first device to a second character string forming the network connection information, where the second character string forming the network connection information has a preset second format, so that the target second device identifies, according to the preset second format, a name and a password of the network to be connected and the e-code from the second character string. For example, assume that the information of the network to be connected is "staffwifi: 12345678 ", the electronic code is" 5634 ", that is, the network connection information is" staffwifi: 12345678: 5634 "and if the device identifier of the first device is" hiajokg ", changing the device identifier of the first device from" hiajokg "to" staffwifi: 12345678: 5634".
In some examples, the preset second format includes: the name of the network to be connected, the separator, the password of the network to be connected, the separator and the electronic code are arranged according to a preset sequence, and the separator is a preset character. Assuming that the network connection information is' staffwifi: 12345678: 5634 ", the preset characters are": ", the name" staffwifi "of the network to be connected, the password" 12345678 "of the network to be connected, and the electronic code" 5634 "are separated, so that the name, the password, and the electronic code of the network to be connected can be extracted from the network connection information.
In some examples, after sending the pairing request to the target second device to be networked, the first device 13 further modifies the device information of the first device corresponding to the short-range communication function in the system configuration file from the information of the network to be connected to the device identifier of the first device.
Specifically, if the pairing request is successfully sent, the device identifier of the first device is set as the original identifier before modification, so that the user can conveniently use the short-range communication module subsequently and close the short-range communication module; and if the pairing request is not successfully sent, displaying a prompt message to the user to prompt the user that no matched hardware equipment is found.
In some examples, after the target second device connects to the network to be connected according to the information of the network to be connected, adding the target second device to the target application software on the first device is completed. Meanwhile, after the target second device is connected to the network to be connected, a connection request including the hardware device identifier of the target second device and the electronic code is sent to the server, so that the server establishes a binding relationship between the hardware device identifier of the first device and the hardware device identifier of the target second device according to the hardware device identifier of the target second device, the electronic code and the hardware device identifier of the first device, that is, the first device and the target second device establish a connection relationship on a network side, and therefore, the first device and the target second device can perform message interaction through the commonly connected network to be connected.
Step 205: and the first equipment and the target second equipment carry out information interaction through the network to be connected and the connection relation.
In some examples, after the target second device connects to the network to be connected, the first device sends a management message to the target second device according to the device identifier of the target second device, so that the first device executes an operation corresponding to the management message. Specifically, the first device sends a management message to a server of the target application software through the target application software according to the device identifier of the target second device; after receiving the management message sent by the first device, the server of the target application software determines the hardware device identifier of the target second device corresponding to the hardware device identifier of the first device according to the binding relationship between the hardware device identifier of the first device carried in the management message and the hardware device identifier of the first device and the hardware device identifier of the target second device stored in the server, and then sends the management message to the target second device. The management message may be a reminding message for reminding the target second device to perform an operation corresponding to the reminding message, for example, the reminding message may be a message for waking up the target second device, and the target second device may switch from a sleep mode to a normal operating mode when receiving the reminding message.
Fig. 5 shows a flowchart of a networking method of a hardware device, which is performed by the second device 11, according to an example of the present application. As shown in fig. 5, the networking method of the hardware device includes the following steps:
step 501: the short-range communication function is enabled to listen for pairing requests from other devices.
In some examples, before the short-range communication function is started, the device identifier of the second device corresponding to the short-range communication function is set according to a preset first format. Specifically, a preset identifier is added to the device identifier of the second device, so that the device identifier of the second device includes the preset identifier. For example, the preset identifier is "bot", and the preset identifier may be added to the beginning of the own device identifier, so that the own device identifier is "bot 123", and the preset identifier "bot" is included.
Step 502: receiving a pairing request sent by a first device 13, and acquiring network connection information from device information of the first device 13 sending the pairing request, wherein sender information carried by the pairing request includes the network connection information as device information of a second device.
In some examples, the second device decrypts the device information of the first device that sent the pairing request with a preset key to obtain the network connection information from the device information of the first device.
In some examples, the second string that makes up the network connection information has a preset second format; wherein the obtaining the information of the network to be connected from the device information of the second device includes: and the first equipment identifies and obtains the name, the password and the electronic code of the network to be connected from the second character string according to the preset format.
In some examples, the preset second format includes: the name of the network to be connected, the separator, the password of the network to be connected, the separator and the electronic code are arranged according to a preset sequence, and the separator is a preset character.
Specifically, after receiving a pairing request sent by a first device 13, the second device 11 decrypts device information of the first device that sends the pairing request by using a preset key, so as to obtain decrypted network connection information; and extracting the name and the password of the network to be connected and the electronic code from the decrypted network connection information, wherein the preset key can be a private key of an RSA decryption algorithm or other keys, and the application is not limited herein. Since the decrypted second character string constituting the network connection information has a preset second format, the name and password of the network to be connected and the electronic code are extracted from the network connection information according to the preset second format, for example, assuming that the preset key is used to decrypt the device identifier of the first device that sends the pairing request, the obtained network connection information is staffwifi: 12345678: 5634, according to a preset second format, the first colon ": "preceding character string is the name of the above-mentioned network to be connected, the first colon": "following or second colon": "the former character string is the password of the network to be connected, and the second colon": the "preceding character string is the electronic code.
Step 503: and connecting to a network to be connected according to the network connection information, and establishing a connection relation with the second equipment.
In some examples, the network connection information includes a name of a network to be connected, a password, and the e-code. After the second device acquires the network connection information from the pairing request, acquiring the name and the password of the network to be connected from the network connection information; and connecting to the network to be connected according to the name and the password of the network to be connected. And obtaining the electronization code from the network connection information; and sending a connection request comprising the hardware device identifier of the first device and the electronic code to a server through the network to be connected, so that the server establishes a binding relationship between the hardware device identifier of the first device and the hardware device identifier of the second device according to the connection request, that is, the first device and the second device establish a network-side connection relationship, and therefore, the first device and the second device can perform message interaction through the commonly-connected network to be connected.
Step 504: and the first equipment and the second equipment carry out information interaction through the network to be connected and the connection relation.
In some examples, after connecting to the network to be connected, the second device generates and sends a prompt message of successful connection to the first device.
In some examples, after connecting to the network to be connected, the second device may further receive a management message sent by the first device, and perform a corresponding operation according to the management message. The management message may be a reminding message, and is used to remind the target second device to execute an operation corresponding to the reminding message. For example, the alert message may be a message for waking up the target second device, and the target second device may switch from the sleep mode to the normal operation mode upon receiving the alert message.
According to the technical scheme, on one hand, as the short-distance communication technology is mature, the technical scheme provided by the application utilizes the short-distance communication technology to assist the intelligent hardware equipment to access the network, the network access efficiency can be improved, the experience of a user on the hardware equipment to access the network is improved, on the other hand, the steps of the intelligent hardware equipment to access the network are simplified, frequent interaction between the user terminal and the intelligent hardware equipment is avoided, the processing efficiency of the user terminal and the intelligent hardware equipment and the utilization rate of the network are improved, the power consumption is reduced, resources are saved, and the like. In addition, the existing intelligent hardware equipment has a short-distance communication function, such as a Bluetooth function, and the technical scheme provided by the application does not need a user to additionally add other hardware components to access the network, so that the cost is saved for the user.
The following describes the networking method of the hardware device in detail by taking the short-range communication function as a bluetooth function and taking a preset key as a key of an RSA algorithm as an example, with reference to the accompanying drawings. The method is applied to the implementation environment as shown in fig. 1. Fig. 6 is an interaction flowchart of the networking method for the hardware devices, and as shown in fig. 6, the method mainly includes the following steps:
step 601: the second device 11 turns on bluetooth and sets its own device identifier according to a preset first format.
Specifically, a preset identifier is added to the device identifier of the second device, so that the device identifier of the second device includes the preset identifier. For example, the preset identifier is "bot", and the preset identifier may be added to the beginning of the own device identifier, so that the own device identifier is "bot 123", and the preset identifier "bot" is included.
Step 602: the second device 11 initiates bluetooth listening to listen for pairing requests of other devices.
Step 603: the first device 13, in response to the operation of adding the second device, displays a page, receives the name and password of the network to be connected, which are input in the page, and sends an addition request including the hardware device identifier of the first device to the server, so that the server generates an electronic code according to the hardware device identifier.
In some examples, when a user needs to enable a target second hardware device to be networked to access a network, the first device may provide a page for inputting information of the network to be connected to the user through the target application software, so that the user inputs the information of the network to be connected on the page, where the network to be connected may be a wifi network.
Step 604: the server generates an electronic code according to the hardware device identifier of the first device in the addition request, and returns the electronic code to the first device 13.
Step 605: the first device 13 generates the network connection information according to the name and password of the network to be connected and the e-code returned by the server.
Step 606: the first device 13 encrypts the network connection information using a preset encryption key.
In this step, the preset encryption key may be a public key of an RSA algorithm.
Step 607: the first device 13 opens bluetooth and obtains a list of device identifications of other surrounding hardware devices that open bluetooth.
Step 608: the first device 13 determines whether the device identifier of the target second device to be networked is in the list of device identifiers according to a preset identifier, and if the device identifier of the target second device to be networked exists, step 609 is executed; if there is no device identification of the second device to be networked, step 610 is performed.
In some examples, according to a preset identifier, the device identifier including the preset identifier is determined from the list of device identifiers and is used as the device identifier of the target second device.
Step 609: the first device 13 modifies the device information in the system configuration file from the device identifier of the first device to the network connection information, and sends a pairing request to the target second device to be networked according to the modified device information in the system configuration file.
For example, assume that the network connection information is "staffwifi: 12345678: 5634 "and if the device identifier of the first device is" hiajokg ", changing the device identifier of the first device from" hiajokg "to" staffwifi: 12345678: 5634".
Step 610: the first device 13 generates and displays a matching failure prompt message to prompt the user that no matching hardware device is found.
Step 611: the second device 11 receives the pairing request sent by the first device 13, and decrypts the device information of the first device 13 sending the pairing request by using a preset decryption key, so as to obtain the network connection information.
Specifically, after receiving a pairing request sent by a first device 13, the second device 11 decrypts device information of the first device that sends the pairing request by using a preset key, so as to obtain decrypted network connection information; and extracting the name and the password of the network to be connected and the electronic code from the decrypted network connection information, wherein the preset key can be a private key of an RSA decryption algorithm or other keys, and the application is not limited herein. Since the decrypted second character string constituting the network connection information has a preset second format, the name and password of the network to be connected and the electronic code are extracted from the network connection information according to the preset second format, for example, assuming that the preset key is used to decrypt the device identifier of the first device that sends the pairing request, the obtained network connection information is staffwifi: 12345678: 5634, according to a preset second format, the first colon ": "preceding character string is the name of the above-mentioned network to be connected, the first colon": "following or second colon": "the former character string is the password of the network to be connected, and the second colon": the "preceding character string is the electronic code.
Step 612: the second device 11 obtains the name and the password of the network to be connected from the network connection information, and connects to the network to be connected according to the name and the password of the network to be connected.
Step 613: the second device 11 obtains the electronic code from the network connection information, and sends a connection request including the hardware device identifier of the first device and the electronic code to a server through the network to be connected.
Step 614: and the server establishes the binding relationship between the hardware identifier of the first device and the hardware identifier of the second device according to the connection request.
In this step, the server establishes, according to the hardware device identifier of the second device and the electronic code in the connection request and the hardware device identifier of the first device received in step 604, a binding relationship between the hardware device identifier of the first device and the hardware device identifier of the second device, that is, a connection relationship between the first device and the second device on the network side is established, so that the first device and the second device can perform message interaction through a network to be connected that is commonly connected.
Step 615: the second device 11 generates and sends a connection success prompting message to the first device 13 to prompt the user of successful networking.
Step 616: the first device 13 sets the device information of the first device back to the device identifier of the first device 13, and turns off bluetooth.
Corresponding to the networking method of the hardware equipment, the application also provides a networking device 700 for realizing the method. Fig. 7 shows a block diagram of a networking arrangement 700 of hardware devices. As shown in fig. 7, the networking apparatus 700 includes: the function of each module is as follows:
a generating module 701, configured to generate network connection information in response to an operation of adding a second device;
an obtaining module 702, configured to obtain a list of device identifiers of surrounding second devices that start a short-range communication function;
a determining module 703, configured to determine the device identifier of the target second device from the list of device identifiers;
a sending module 704, configured to send a pairing request carrying the network connection information to the target second device according to the device identifier of the target second device, so that the target second device connects to the network to be connected according to the network connection information in the pairing request and establishes a connection relationship with the first device; and
the interaction module 705, through the network to be connected and the connection relationship, performs information interaction between the first device and the target second device.
In some examples, the generating module 701 presents a page, and receives a name and a password of the network to be connected, which are input in the page; sending an adding request containing the hardware equipment identifier of the first equipment to a server so that the server generates an electronic code according to the hardware equipment identifier; receiving the electronization code returned by the server; and generating the network connection information according to the name and the password of the network to be connected and the electronic code.
In some examples, the networking device further comprises: a modifying module 706, configured to modify the device information of the first device corresponding to the short-range communication function in the system configuration file from the device identifier of the first device to the network connection information; and sending a pairing request to the target second device according to the device identifier of the target second device and the modified device information in the system configuration file, wherein sender information carried by the pairing request comprises the network connection information serving as the modified device information.
In some examples, the networking device further comprises: an encryption module 707, where the first device encrypts the network connection information by using a preset key; after the target second device acquires the network connection information, decrypting the network connection information by using the secret key, connecting to the network to be connected according to the name and the password of the network to be connected in the decrypted network connection information, and sending a connection request comprising the hardware device identifier of the second device and the electronic code in the network connection information to the server through the network to be connected, so that the server establishes the binding relationship between the hardware device identifier of the first device and the hardware device identifier of the second device according to the hardware device identifier of the first device, the hardware device identifier of the second device and the electronic code.
In some examples, the obtaining module 702 further enables a short-range communication function of the first device; scanning surrounding second equipment with a short-distance communication function to acquire a list of equipment identifications of the second equipment.
In some examples, the determining module 703 determines, according to a preset identifier, a device identifier including the preset identifier from the list of device identifiers and uses the device identifier as the device identifier of the target second device.
In some examples, the modifying module 706 further modifies the device information in the system configuration file from a first character string constituting a device identifier of the first device to a second character string constituting the network connection information, where the second character string constituting the network connection information has a preset format, so that the target second device identifies a name and a password of the network to be connected and the e-code from the second character string according to the preset format.
In some examples, the modifying module 706 further modifies the device information of the first device corresponding to the short-range communication function in the system configuration file from the connection network information to a device identifier of the first device
In some examples, the interaction module 705 sends a management message to the target second device according to the device identifier of the target second device, so that the target second device executes an operation corresponding to the management message.
Fig. 8 shows a component configuration diagram of a first device 800 in which a networking apparatus 800 of a hardware device implementing a networking method of the hardware device is located. As shown in fig. 8, the computing device includes one or more processors (CPUs) 802, a communication module 804, a memory 806, a user interface 810, and a communication bus 808 for interconnecting these components.
The processor 802 may receive and transmit data via the communication module 804 to enable network communications and/or local communications.
User interface 810 includes one or more output devices 812 including one or more speakers and/or one or more visual displays. The user interface 810 also includes one or more input devices 814, including, for example, a keyboard, a mouse, a voice command input unit or microphone, a touch screen display, a touch sensitive tablet, a gesture capture camera or other input buttons or controls, and the like.
The memory 806 may be high-speed random access memory, such as DRAM, SRAM, DDR RAM, or other random access solid state memory devices; or non-volatile memory, such as one or more magnetic disk storage devices, optical disk storage devices, flash memory devices, or other non-volatile solid-state storage devices.
The memory 806 stores a set of instructions executable by the processor 802, including:
an operating system 816, including programs for handling various basic system services and for performing hardware-related tasks;
the application 818 includes various application programs for implementing the networking method of the hardware device, and such application programs can implement the processing flows in the above examples, such as may include some or all of the units in the networking apparatus 700 implementing the networking method of the hardware device shown in fig. 7. At least one of the units or modules 701-707 may store machine-executable instructions. The processor 802 can implement the functions of at least one of the modules 701-707 by executing the machine-executable instructions in at least one of the modules 701-707 in the memory 806.
It should be noted that not all steps and modules in the above flows and structures are necessary, and some steps or modules may be omitted according to actual needs. The execution order of the steps is not fixed and can be adjusted as required. The division of each module is only for convenience of describing adopted functional division, and in actual implementation, one module may be divided into multiple modules, and the functions of multiple modules may also be implemented by the same module, and these modules may be located in the same device or in different devices.
Corresponding to the networking method of the hardware device, the application also provides a networking device 900 for implementing the method. Fig. 9 shows a block diagram of a networking apparatus 900 of a hardware device. As shown in fig. 9, the networking apparatus 900 includes an opening module 901, an obtaining module 902, a connecting module 903, and an interacting module 904, and the functions of the modules are as follows:
a starting module 901, which starts a short-distance communication function to monitor pairing requests from other devices;
an obtaining module 902, configured to receive a pairing request sent by a second device, and obtain network connection information from device information of the second device that sends the pairing request, where sender information carried in the pairing request includes the network connection information serving as the device information of the second device;
a connection module 903, configured to connect to a network to be connected according to the network connection information, and establish a connection relationship with the second device; and
and an interaction module 904, configured to perform information interaction between the first device and the second device through the network to be connected and the connection relationship.
In some examples, the network connection information includes a name, a password, and an e-code of the network to be connected; the connection module 903 obtains a name and a password of a network to be connected from the network connection information; connecting to the network to be connected according to the name and the password of the network to be connected; the connection module 903 is further configured to obtain the electronic code from the network connection information; and sending a connection request comprising the hardware equipment identifier of the first equipment and the electronization code to a server through the network to be connected so that the server establishes a binding relationship between the hardware identifier of the first equipment and the hardware equipment identifier of the second equipment.
In some examples, before the short-range communication function is started, the starting module 901 further sets the device identifier of the first device corresponding to the short-range communication function according to a preset format.
In some examples, the initiating module 901 further adds a preset identifier to the device identifier of the first device.
In some examples, the networking apparatus further includes a decryption module 905, configured to decrypt, using a preset key, the device information of the second device that sent the pairing request, so as to obtain the network connection information from the device information of the second device.
In some examples, the second string that makes up the network connection information has a preset format; the obtaining module 902 identifies and obtains the name, the password, and the electronic code of the network to be connected from the second character string according to the preset format.
In some examples, the connection module 903 generates and sends a prompt message indicating that the connection is successful to the second device.
In some examples, the interaction module 904 receives a management message sent by the second device; and executing operation corresponding to the management message according to the management message.
Fig. 10 shows a component configuration diagram of a second device 1000 in which a networking apparatus 1000 of a hardware device implementing a networking method of the hardware device is located. As shown in fig. 10, the computing device includes one or more processors (CPUs) 1002, a communications module 1004, a memory 1006, a user interface 1010, and a communications bus 1008 for interconnecting these components.
The processor 1002 can receive and transmit data via the communication module 1004 to enable network communications and/or local communications.
The user interface 1010 includes one or more output devices 1012 including one or more speakers and/or one or more visual displays. The user interface 1010 also includes one or more input devices 1014, including, for example, a keyboard, a mouse, a voice command input unit or microphone, a touch screen display, a touch sensitive tablet, a gesture capture camera or other input buttons or controls, and the like.
The memory 1006 may be a high-speed random access memory, such as DRAM, SRAM, DDR RAM, or other random access solid state memory devices; or non-volatile memory, such as one or more magnetic disk storage devices, optical disk storage devices, flash memory devices, or other non-volatile solid-state storage devices.
The memory 1006 stores a set of instructions executable by the processor 1002, including:
an operating system 1016 including programs for handling various basic system services and for performing hardware related tasks;
the application 1018 includes various application programs for implementing the networking method of the hardware device, and such application programs can implement the processing flows in the above examples, such as may include some or all of the units in the networking apparatus 900 implementing the networking method of the hardware device shown in fig. 9. At least one of the units or modules 901-905 may store machine-executable instructions. The processor 1002 can implement the functions of at least one of the modules 901 and 905 by executing the machine-executable instructions in at least one of the modules 901 and 905 in the memory 1006.
The application also provides a networking system of hardware equipment, and the structure diagram of the networking system is shown in FIG. 1 a. The networked system includes a first device and a second device; wherein the content of the first and second substances,
the second equipment starts a short-distance communication function to monitor pairing requests from other equipment;
the first device responds to the operation of adding the second device and generates network connection information; acquiring a list of device identifications of second devices which start short-distance communication functions around; determining a device identity of the second device from the list of device identities; sending a pairing request carrying the network connection information to the second equipment according to the equipment identifier of the second equipment, so that the second equipment is connected to the network to be connected according to the network connection information in the pairing request and establishes a connection relation with the first equipment; the first equipment and the second equipment carry out information interaction through the network to be connected and the connection relation;
the second device further starts a short-distance communication function to monitor pairing requests from other devices; receiving a pairing request sent by first equipment, and acquiring network connection information from equipment information of the first equipment sending the pairing request, wherein sender information carried by the pairing request comprises the network connection information serving as the equipment information of the first equipment; connecting to a network to be connected according to the network connection information, and establishing a connection relation with the first equipment; and the second equipment and the first equipment carry out information interaction through the network to be connected and the connection relation.
It should be noted that not all steps and modules in the above flows and structures are necessary, and some steps or modules may be omitted according to actual needs. The execution order of the steps is not fixed and can be adjusted as required. The division of each module is only for convenience of describing adopted functional division, and in actual implementation, one module may be divided into multiple modules, and the functions of multiple modules may also be implemented by the same module, and these modules may be located in the same device or in different devices.
The hardware modules in the embodiments may be implemented in hardware or a hardware platform plus software. The software includes machine-readable instructions stored on a non-volatile storage medium. Thus, embodiments may also be embodied as software products.
Accordingly, some examples of the present application also provide a computer-readable storage medium having stored thereon computer instructions, wherein the computer instructions, when executed by a processor, implement the steps of the method described above in fig. 2-6.
In various examples, the hardware may be implemented by specialized hardware or hardware executing machine-readable instructions. For example, the hardware may be specially designed permanent circuits or logic devices (e.g., special purpose processors, such as FPGAs or ASICs) for performing the specified operations. Hardware may also include programmable logic devices or circuits temporarily configured by software (e.g., including a general purpose processor or other programmable processor) to perform certain operations.
In addition, each example of the present application can be realized by a data processing program executed by a data processing apparatus such as a computer. It is clear that a data processing program constitutes the present application. Further, the data processing program, which is generally stored in one storage medium, is executed by directly reading the program out of the storage medium or by installing or copying the program into a storage device (such as a hard disk and/or a memory) of the data processing device. Such a storage medium therefore also constitutes the present application, which also provides a non-volatile storage medium in which a data processing program is stored, which data processing program can be used to carry out any one of the above-mentioned method examples of the present application.
Machine-readable instructions corresponding to the modules in fig. 7 and 9 may cause an operating system or the like operating on the computer to perform some or all of the operations described herein. The nonvolatile computer-readable storage medium may be a memory provided in an expansion board inserted into the computer or written to a memory provided in an expansion unit connected to the computer. A CPU or the like mounted on the expansion board or the expansion unit may perform part or all of the actual operations according to the instructions.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (14)

1. A networking method of hardware equipment is applied to first equipment and comprises the following steps:
in response to the operation of adding the target second device, generating network connection information, including: sending an adding request containing the hardware equipment identifier of the first equipment to a server so that the server generates an electronic code according to the hardware equipment identifier of the first equipment; receiving the electronization code returned by the server; generating the network connection information according to the name and the password of the network to be connected and the electronic code;
acquiring a list of device identifications of other peripheral hardware devices with short-distance communication functions;
determining a device identity of the target second device from the list of device identities;
sending a pairing request carrying the network connection information to the target second equipment according to the equipment identifier of the target second equipment so that the target second equipment is connected to a network to be connected according to the network connection information in the pairing request and establishes a connection relation with the first equipment, wherein the network connection information comprises a name, a password and the electronic code of the network to be connected; the target second equipment acquires the name and the password of the network to be connected from the network connection information; connecting to the network to be connected according to the name and the password of the network to be connected; sending a connection request comprising the hardware device identifier of the target second device and the electronic code in the network connection information to a server through the network to be connected, so that the server establishes a binding relationship between the hardware device identifier of the first device and the hardware device identifier of the target second device according to the hardware device identifier of the first device and the hardware device identifier of the target second device in the electronic code; and
and the first equipment and the target second equipment carry out information interaction through the network to be connected and the connection relation.
2. The method of claim 1, wherein the sending, to the target second device according to the device identifier of the target second device, a pairing request carrying the network connection information includes:
modifying the equipment information of the first equipment corresponding to the short-distance communication function in the system configuration file from the equipment identification of the first equipment into the network connection information; and
and sending a pairing request to the target second device according to the device identifier of the target second device and the modified device information in the system configuration file, wherein sender information carried by the pairing request comprises the network connection information serving as the modified device information.
3. The method of claim 1, wherein after the generating network connection information, the method further comprises: the first equipment encrypts the network connection information by adopting a preset secret key;
after the target second device acquires the network connection information, decrypting the network connection information by using the secret key, and connecting to the network to be connected according to the name and the password of the network to be connected in the decrypted network connection information.
4. The method of claim 1, wherein the obtaining of the list of device identifications of the surrounding other hardware devices that enable short-range communication functionality comprises:
starting a short-range communication function of the first equipment;
and scanning other peripheral hardware devices with short-distance communication functions to acquire a list of device identifications of the other hardware devices.
5. The method of claim 1, wherein determining the device identification of the target second device from the list of device identifications comprises:
and according to a preset identifier, determining the equipment identifier containing the preset identifier from the list of the equipment identifiers and taking the equipment identifier as the equipment identifier of the target second equipment.
6. The method of claim 2, wherein the modifying the device information corresponding to the short-range communication function in the system configuration file from the device identifier of the first device to the network connection information comprises:
and modifying the device information in the system configuration file from a first character string forming a device identifier of the first device into a second character string forming the network connection information, wherein the second character string forming the network connection information has a preset format, so that the target second device identifies the name and the password of the network to be connected and the electronic code from the second character string according to the preset format.
7. The method of claim 6, wherein the preset format comprises: the name of the network to be connected, the separator, the password of the network to be connected, the separator and the electronic code are arranged according to a preset sequence, and the separator is a preset character.
8. The method of claim 2, wherein after sending a pairing request to the target second device, the method further comprises:
and modifying the equipment information of the first equipment corresponding to the short-distance communication function in the system configuration file into the equipment identification of the first equipment from the network connection information.
9. The method of claim 1, wherein the information interaction between the first device and the target second device comprises:
and sending a management message to the target second equipment according to the equipment identifier of the target second equipment so as to enable the target second equipment to execute the operation corresponding to the management message.
10. A networking system of hardware devices, comprising: a first device and a target second device; wherein the content of the first and second substances,
the target second equipment starts a short-distance communication function to monitor pairing requests from other equipment;
the first device generates network connection information in response to an operation of adding a target second device; acquiring a list of device identifications of other peripheral hardware devices with short-distance communication functions; determining a device identity of the target second device from the list of device identities; sending a pairing request carrying the network connection information to the target second equipment according to the equipment identifier of the target second equipment, so that the target second equipment is connected to a network to be connected according to the network connection information in the pairing request and establishes a connection relation with the first equipment; the first equipment and the target second equipment carry out information interaction through the network to be connected and the connection relation; wherein the generating network connection information in response to the operation of adding the target second device includes: sending an adding request containing the hardware equipment identifier of the first equipment to a server so that the server generates an electronic code according to the hardware equipment identifier of the first equipment; receiving the electronization code returned by the server; generating the network connection information according to the name and the password of the network to be connected and the electronic code;
the target second device receives a pairing request sent by a first device and acquires network connection information from device information of the first device sending the pairing request, wherein sender information carried by the pairing request comprises the network connection information serving as the device information of the first device; the network connection information comprises the name, the password and the electronic code of the network to be connected; acquiring the name and the password of the network to be connected from the network connection information; connecting to a network to be connected according to the name and the password of the network connection information, and sending a connection request comprising the hardware device identifier of the target second device and the electronic code in the network connection information to a server through the network to be connected, so that the server establishes a binding relationship between the hardware device identifier of the first device and the hardware device identifier of the target second device according to the hardware device identifier of the first device and the hardware device identifier of the target second device in the electronic code, and further establishes a connection relationship with the first device; and the target second equipment and the first equipment carry out information interaction through the network to be connected and the connection relation.
11. The system of claim 10, wherein the first device modifies device information of the first device corresponding to the short-range communication function in a system configuration file from a device identifier of the first device to the network connection information; and sending a pairing request to the target second device according to the device identifier of the target second device and the modified device information in the system configuration file, wherein sender information carried by the pairing request comprises the network connection information serving as the modified device information.
12. The system of claim 11, wherein the first device modifies the device information in the system configuration file from a first string constituting a device identification of the first device to a second string constituting the network connection information, wherein the second string constituting the network connection information has a preset format;
the target second device identifies the name, the password and the electronic code of the network to be connected from the second character string according to the preset format, wherein the preset format comprises: the name of the network to be connected, the separator, the password of the network to be connected, the separator and the electronic code are arranged according to a preset sequence, and the separator is a preset character.
13. A computer-readable storage medium having stored thereon computer instructions executable by a processor to perform the method of any one of claims 1-9.
14. A computing device comprising a memory, a processor, and a set of instructions stored on the memory and executed on the processor; the processor, when executing the set of instructions, implements the method of any of claims 1-9.
CN201810287525.6A 2018-04-03 2018-04-03 Hardware device networking method and system, computing device and readable storage medium Active CN110351225B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810287525.6A CN110351225B (en) 2018-04-03 2018-04-03 Hardware device networking method and system, computing device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810287525.6A CN110351225B (en) 2018-04-03 2018-04-03 Hardware device networking method and system, computing device and readable storage medium

Publications (2)

Publication Number Publication Date
CN110351225A CN110351225A (en) 2019-10-18
CN110351225B true CN110351225B (en) 2021-09-24

Family

ID=68172335

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810287525.6A Active CN110351225B (en) 2018-04-03 2018-04-03 Hardware device networking method and system, computing device and readable storage medium

Country Status (1)

Country Link
CN (1) CN110351225B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112860663B (en) * 2021-01-29 2023-02-28 漳州科华电气技术有限公司 System configuration method, device, equipment and storage medium
CN113645596A (en) * 2021-07-14 2021-11-12 麒盛科技股份有限公司 Networking pairing method and device for electric bed based on Internet of things
CN115314328A (en) * 2022-06-17 2022-11-08 巽腾(广东)科技有限公司 Method, device, equipment and storage medium for automatic association of Internet of things equipment
CN115277395B (en) * 2022-07-29 2024-05-28 联想(北京)有限公司 Configuration method, configuration device, first equipment and configuration system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015167797A1 (en) * 2014-05-02 2015-11-05 Qualcomm Incorporated Method and apparatus for setting user preferences or device configuration
CN106059869A (en) * 2016-07-26 2016-10-26 北京握奇智能科技有限公司 Internet of things smart home equipment safety control method and system
CN107231606A (en) * 2017-07-19 2017-10-03 北京京东尚科信息技术有限公司 WiFi method of network entry, intelligent hardware devices and electric terminal
CN107294793A (en) * 2017-07-26 2017-10-24 北京小米移动软件有限公司 Replacement method, device, equipment and the storage medium of intelligent home device
CN107368042A (en) * 2016-05-13 2017-11-21 上海澜腾智能科技有限公司 Intelligent home control system and its control device and control method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015167797A1 (en) * 2014-05-02 2015-11-05 Qualcomm Incorporated Method and apparatus for setting user preferences or device configuration
CN107368042A (en) * 2016-05-13 2017-11-21 上海澜腾智能科技有限公司 Intelligent home control system and its control device and control method
CN106059869A (en) * 2016-07-26 2016-10-26 北京握奇智能科技有限公司 Internet of things smart home equipment safety control method and system
CN107231606A (en) * 2017-07-19 2017-10-03 北京京东尚科信息技术有限公司 WiFi method of network entry, intelligent hardware devices and electric terminal
CN107294793A (en) * 2017-07-26 2017-10-24 北京小米移动软件有限公司 Replacement method, device, equipment and the storage medium of intelligent home device

Also Published As

Publication number Publication date
CN110351225A (en) 2019-10-18

Similar Documents

Publication Publication Date Title
CN110351225B (en) Hardware device networking method and system, computing device and readable storage medium
CN108762791B (en) Firmware upgrading method and device
US20180234237A1 (en) Key updating method, apparatus, and system
CN108920366B (en) Sub-application debugging method, device and system
WO2017020630A1 (en) Method, apparatus and system for processing order information
WO2017185711A1 (en) Method, apparatus and system for controlling smart device, and storage medium
CN110032512B (en) Debugging method of small program, related equipment and terminal
WO2015101273A1 (en) Security verification method, and related device and system
CN110417543B (en) Data encryption method, device and storage medium
CN113055867A (en) Method and device for auxiliary network distribution of terminal and electronic equipment
US20150319173A1 (en) Co-verification method, two dimensional code generation method, and device and system therefor
CN104954126B (en) Sensitive operation verification method, device and system
KR20140124304A (en) Controlling Method for Communication and Electronic Device supporting the same
CN107154935B (en) Service request method and device
WO2015149235A1 (en) Privacy protection method and terminal device
WO2021135593A1 (en) Device sharing method and electronic device
CN108234124B (en) Identity verification method, device and system
CN111787540B (en) Method and device for accessing Internet of things, electronic equipment and readable storage medium
WO2020168561A1 (en) Device network distribution method and apparatus, electronic device, and storage medium
WO2018108062A1 (en) Method and device for identity verification, and storage medium
CN105228141A (en) A kind of methods, devices and systems set up network and connect
CN112291364A (en) Message pushing processing method and device
CN109525666A (en) A kind of data back up method and mobile terminal
CN108234412B (en) Identity verification method and device
CN108234113B (en) Identity verification method, device and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant