Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all 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 application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In the related technology, two modes are generally adopted to realize the distribution network among the devices in the device interconnection, the first mode is an automatic distribution network technology, but the probability of success of the automatic distribution network technology through the distribution network is low, and the accurate distribution network purpose cannot be realized. The second is a manual network distribution mode, which requires accurate judgment of a user although the accuracy is high, and the difficulty in realizing the network distribution among the devices is high under the condition that the current hotspot cannot be determined to which device. In order to solve the problem that difficulty in realizing a distribution network among devices is high, an embodiment of the present application provides a distribution network system of devices, and as shown in fig. 1, the system includes:
the first device 11 is configured to bind to the server through a first network hotspot provided by the distribution network information under the condition that the distribution network information is received, where the first network hotspot is a network hotspot provided by the second device or a network hotspot provided by the home gateway;
the second equipment 12 is used for establishing wireless connection with the first equipment according to the equipment information of the first equipment acquired by the sensor and sending the distribution network information to the first equipment through the wireless connection;
and a server 13 for managing the first device and the second device.
Optionally, in the embodiment of the present application, a button capable of resetting the first device may be disposed on a peripheral surface of the device of the first device, and at this time, the reset button may be pressed by a human touch or a touch of the second device, so that the first device becomes a device in which the reset occurs. Wherein, the first device needs to execute a reset operation, so as to generate the network hotspot information. It should be noted that the device is not reset, and there is no network hotspot (i.e., wifi hotspot), that is, wifi is in a hidden state at this time, and at this time, the network hotspot of the current device needs to be opened by performing a reset operation on the device.
Fig. 1 illustrates how a first device is connected to a server through a network hotspot when the first network hotspot is the network hotspot provided by a second device, and more specifically, the second device is connected to the first device, the second device establishes a wireless connection with the first device according to device information of the first device collected by a sensor, and sends distribution network information to the first device through the wireless connection, where the distribution network information includes the first network hotspot provided by the second device;
the server is respectively connected with the first equipment and the second equipment and used for managing the first equipment and the second equipment, and after the second equipment sends the distribution network information to the first equipment, the first equipment is bound and connected with the server to complete the networking operation of the first equipment.
In addition, the embodiment of the present application further provides a method for directly accessing to a server: the first device directly accesses the server in the home gateway by using the network hotspot provided by the home gateway through devices such as own Bluetooth and the like, and the purpose of automatic networking can be realized at the moment.
It should be noted that the network hotspot refers to a network that enables devices to complete communication, for example, a wifi hotspot, a network interface, a network access point, and the like.
In the embodiment of the application, a mode that a first device, a second device and a server are combined or the first device is directly connected to a home gateway is adopted, the second device is used for collecting device information of the first device, wireless connection with the first device is established according to the device information, distribution network information is sent to the first device through the wireless connection, wherein the first device is used for binding a first network hotspot provided by the distribution network information to the server under the condition that the distribution network information is received, or the first device is directly connected to the home gateway and is bound to the server. Because the first equipment and the second equipment of the application are connected with the network, and when the first equipment is connected into the home gateway, the network is not needed to be manually intervened, and meanwhile, the network is more efficient and more convenient than an automatic network distribution network, and the network distribution between the equipment is realized, so that the purposes of simple operation and reduction of the difficulty of the network distribution are realized, and the problem of high difficulty of the network distribution among the equipment in the related technology is solved.
According to another aspect of the embodiment of the present application, there is also provided a network distribution method for a device, which is applied to a second device, and as shown in fig. 2, the method includes:
step S201, collecting equipment information of first equipment;
step S202, establishing wireless connection with the first equipment according to the equipment information;
step S203, sending the distribution network information to the first device through the wireless connection, where the first device is configured to bind to the server through a first network hotspot provided by the distribution network information under the condition that the distribution network information is received, and the first network hotspot is a network hotspot provided by the second device or a network hotspot provided by the home gateway.
Optionally, the second device (e.g., a sweeping machine) scans a machine code of the first device through its own camera, where the machine code may be a two-dimensional code or a barcode containing device information of the first device (e.g., an air purifier), so after the second device scans the machine code, the device information of the first device is collected, and according to the device information, the second device may establish a wireless connection with the first device, for example, the second device is connected to a wireless wifi network of the first device, and the like.
The second device can send the distribution network information to the first device on the premise that the wireless connection is established between the first device and the second device, and the first device can perform networking communication by binding the server by using a first network hotspot provided by the second device and contained in the distribution network information under the condition that the first device receives the distribution network information.
In addition, the embodiment of the present application further provides a method for directly accessing to a server: the first device directly accesses the server in the home gateway by using the network hotspot provided by the home gateway through devices such as own Bluetooth and the like, and the purpose of automatic networking can be realized at the moment.
In the embodiment of the application, a mode that a first device, a second device and a server are combined or the first device is directly connected to a home gateway is adopted, the second device is used for collecting device information of the first device, wireless connection with the first device is established according to the device information, distribution network information is sent to the first device through the wireless connection, wherein the first device is used for binding a first network hotspot provided by the distribution network information to the server under the condition that the distribution network information is received, or the first device is directly connected to the home gateway and is bound to the server. Because the first equipment and the second equipment of the application are connected with the network, and when the first equipment is connected into the home gateway, the network is not needed to be manually intervened, and meanwhile, the network is more efficient and more convenient than an automatic network distribution network, and the network distribution between the equipment is realized, so that the purposes of simple operation and reduction of the difficulty of the network distribution are realized, and the problem of high difficulty of the network distribution among the equipment in the related technology is solved.
As an optional embodiment, the manner of collecting the device information of the first device includes:
decoding image coding information of the first equipment by using an image decoding technology, and decrypting the decoded information to obtain equipment information; or the like, or, alternatively,
device information is obtained from a first device using near field communication techniques.
Optionally, in the embodiment of the present application, when acquiring the device information of the first device, if the machine code of the first device is the encrypted image code, an image decoding technology may be adopted to decode the image code, and then decrypt the decoded information, so as to obtain the device information of the first device;
or the second device is close to the first device by using the near field communication technology, and the device information is acquired from the first device.
It should be noted that, in the manner of acquiring the device information, the embodiments of the present application include, but are not limited to, the manner described above.
In the embodiment of the application, the device information of the first device can be accurately and timely acquired through an image decoding technology or a near field communication technology, and the device-to-device network distribution is convenient to achieve.
As an optional embodiment, the device information includes an order account of the first device, wherein the establishing of the wireless connection with the first device according to the device information includes:
acquiring an order name field value in an order account and an access interface of a server;
accessing a preset field value set stored in a server through an access interface, wherein field values and network hotspots of corresponding equipment are stored in the preset field value set;
under the condition that a target field value matched with the order name field value exists in the preset field value set, acquiring a second network hotspot corresponding to the target field value, wherein the second network hotspot is a network hotspot provided by the first equipment;
a wireless connection is established with the first device through the second network hotspot.
Optionally, the device information of the first device includes an order account of the first device, the order account includes an order name field value, and the order name field value is generally a name field of the device, and then the order account may be encrypted.
The second device obtains an access interface of the server, where the access interface may be a specific interface through which the server can be accessed.
At this time, the encrypted order account is accessed to a server, then a preset field value set stored in the server is obtained, field values and network hotspots of corresponding devices are stored in the preset field value set, the server receives the encrypted order account and decrypts the encrypted order account to obtain the order account, then the order account is matched with the field values in the preset field value set, and when a target field value matched with the order account exists, a second network hotspot provided by a first device corresponding to the target field value is found according to the corresponding relation between the field values and the devices.
After the second device acquires the second network hotspot provided by the first device, the first network hotspot of the second device is directly connected to the second network hotspot, and wireless connection between the first device and the second device is achieved.
In the embodiment of the application, the second network hotspot matched with the order account is obtained from the server through the order account in the first device, so that the device network hotspot does not need to be manually selected when the network is distributed, the network can be more conveniently distributed, and the method is simple in operation and wide in applicability.
As an optional embodiment, the device information includes a physical address of the first device, wherein sending the distribution network information to the first device through the wireless connection includes:
acquiring room area data where the first equipment is located by using a positioning technology;
and according to the physical address, sending the room area data and the first network hotspot to the first device through wireless connection.
Optionally, a positioning technology such as a GPS may be used to obtain a room area, a home area, and the like where the first device is located, and in addition, if the second device is a sweeping machine, since a set of map positioning system is usually provided inside the sweeping machine itself, when the sweeping machine is close to the first device, the map positioning system may obtain the position information of the first device.
When the device information of the first device includes a physical address (i.e., MAC address) identifying the network location, the physical address may be used to identify the address of the first device, and then the room area data and the first network hotspot may be transmitted to the first device via the wireless connection. Since the second device and the server are connected, after the first network hotspot of the second device is sent to the first device, the first device and the server can be bound and connected under the condition that the first device and the second device are wirelessly connected.
In the embodiment of the application, the room area data of the first device and the first network hotspot of the second device are sent to the first device, so that the connection between the first device and the server can be realized, and the purpose of networking communication of the first device is achieved.
As an alternative embodiment, after sending the room area data and the first network hotspot to the first device, the method further comprises:
and acquiring prompt information of the server for binding the first equipment, wherein the prompt information is used for indicating that the server and the first equipment are successfully bound.
Optionally, if the first device can respond with some messages, which indicate that the server and the first device are successfully bound, a prompt message is sent to the second device to inform the second device that the server and the first device are successfully bound.
According to another aspect of the embodiment of the present application, there is also provided a network distribution method for a device, which is applied to a first device, and as shown in fig. 3, the method includes:
step S301, receiving distribution network information through wireless connection;
step S302, binding a first network hotspot provided by the distribution network information to a server, where the first network hotspot is a network hotspot provided by the second device or a network hotspot provided by the home gateway.
Optionally, after the first device is successfully reset, the reset information may be received, at this time, the first device may be wirelessly connected to the second device or the home gateway, and after the wireless connection, the first device may receive the distribution network information of the second device or the home gateway.
The distribution network information comprises a first network hotspot of the second device or the home gateway, and the first device can be bound to the server through the first network hotspot, so that the first device can complete automatic distribution network operation.
As an alternative embodiment, as shown in fig. 4, fig. 4 is a schematic overall flow chart of a network distribution method of an alternative device according to an embodiment of the present application, and when the first device is an air purifier and the second device is a sweeping machine, the following flow charts may be performed:
scanning a machine code of the air purifier by a sweeping machine;
the sweeping machine acquires equipment data of the air purifier, and the equipment data is carried to access the server;
the server returns an authorization token of the air purifier to determine that the air purifier is bound with the server;
the air purifier can send a response message.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., a ROM (Read-Only Memory)/RAM (Random Access Memory), a magnetic disk, an optical disk) and includes several instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the methods of the embodiments of the present application.
According to another aspect of the embodiment of the application, a network distribution device of the equipment for implementing the network distribution method of the equipment is further provided. Fig. 5 is a block diagram of a configuration network apparatus of an optional device according to an embodiment of the present application, and as shown in fig. 5, the apparatus may include:
the acquisition unit 501 is configured to acquire device information of a first device;
the establishing unit 502 is connected with the collecting unit 501 and used for establishing wireless connection with the first equipment according to the equipment information;
a sending unit 503, connected to the establishing unit 502, configured to send the distribution network information to the first device through a wireless connection, where the first device is configured to bind to the server through a first network hotspot provided by the distribution network information under the condition that the distribution network information is received, and the first network hotspot is a network hotspot provided by the second device or a network hotspot provided by the home gateway.
It should be noted that the acquiring unit 501 in this embodiment may be configured to execute the step S201, the establishing unit 502 in this embodiment may be configured to execute the step S202, and the sending unit 503 in this embodiment may be configured to execute the step S203.
Through the modules, in the embodiment of the application, a mode that the first device, the second device and the server are combined or the first device is directly connected to the home gateway is adopted, the second device is used for collecting device information of the first device, wireless connection with the first device is established according to the device information, and the distribution network information is sent to the first device through the wireless connection, wherein the first device is used for binding the first network hotspot provided by the distribution network information to the server under the condition that the distribution network information is received, or the first device is directly connected to the home gateway and bound to the server. Because the first equipment and the second equipment of the application are connected with the network, and when the first equipment is connected into the home gateway, the network is not needed to be manually intervened, and meanwhile, the network is more efficient and more convenient than an automatic network distribution network, and the network distribution between the equipment is realized, so that the purposes of simple operation and reduction of the difficulty of the network distribution are realized, and the problem of high difficulty of the network distribution among the equipment in the related technology is solved.
As an alternative embodiment, the manner of determining the acquisition unit includes: the first obtaining module is used for decoding the image coding information of the first equipment by utilizing an image decoding technology and decrypting the decoded information to obtain equipment information; or, a second obtaining module for obtaining the device information from the first device using the near field communication technology.
As an optional embodiment, the device information includes an order account of the first device, wherein the establishing unit includes: the first acquisition module is used for acquiring the value of an order name field in an order account and an access interface of the server; the access module is used for accessing a preset field value set stored in the server through an access interface, wherein a field value and a network hotspot of corresponding equipment are stored in the preset field value set; the second acquisition module is used for acquiring a second network hotspot corresponding to a target field value under the condition that the target field value matched with the order name field value exists in the preset field value set, wherein the second network hotspot is a network hotspot provided by the first equipment; and the establishing module is used for establishing wireless connection with the first equipment through the second network hotspot.
As an alternative embodiment, the device information includes a physical address of the first device, where the sending unit includes: the third acquisition module is used for acquiring the room area data where the first equipment is located by utilizing a positioning technology; and the sending module is used for sending the room area data and the first network hotspot to the first equipment through wireless connection according to the physical address.
As an alternative embodiment, the apparatus further comprises: the acquisition unit is used for acquiring prompt information of the server for binding the first equipment after the room area data and the first network hotspot are sent to the first equipment, wherein the prompt information is used for indicating that the server and the first equipment are successfully bound.
According to another aspect of the embodiment of the application, a network distribution device of the equipment for implementing the network distribution method of the equipment is further provided. Fig. 6 is a block diagram of a configuration network apparatus of another optional device according to an embodiment of the present application, and as shown in fig. 6, the apparatus may include:
a receiving unit 601, configured to receive distribution network information through a wireless connection;
a binding unit 602, configured to bind to the server through a first network hotspot provided by the distribution network information, where the first network hotspot is a network hotspot provided by the second device or a network hotspot provided by the home gateway.
It should be noted that the receiving unit 601 in this embodiment may be configured to execute the step S301, and the binding unit 602 in this embodiment may be configured to execute the step S302.
According to another aspect of the embodiments of the present application, there is also provided an electronic device for implementing the network distribution method of the above device, where the electronic device may be a server, a terminal, or a combination thereof.
Fig. 7 is a block diagram of an alternative electronic device according to an embodiment of the present application, as shown in fig. 7, including a processor 701, a communication interface 702, a memory 703 and a communication bus 704, where the processor 701, the communication interface 702 and the memory 703 complete communication with each other through the communication bus 704, where,
a memory 703 for storing a computer program;
the processor 701 is configured to implement the following steps when executing the computer program stored in the memory 703:
s1, collecting equipment information of the first equipment;
s2, establishing wireless connection with the first equipment according to the equipment information;
s3, sending the distribution network information to the first device through the wireless connection, where the first device is configured to bind to the server through a first network hotspot provided by the distribution network information when receiving the distribution network information, where the first network hotspot is a network hotspot provided by the second device or a network hotspot provided by the home gateway.
Alternatively, in this embodiment, the communication bus may be a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 7, but this is not intended to represent only one bus or type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The memory may include RAM, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory. Alternatively, the memory may be at least one memory device located remotely from the processor.
As an example, as shown in fig. 7, the storage 703 may include, but is not limited to, an acquisition unit 501, a setup unit 502, and a sending unit 503 in the distribution network apparatus including the above devices. In addition, other module units in the distribution network apparatus of the above-mentioned device may also be included, but are not limited to this, and are not described in detail in this example.
The processor may be a general-purpose processor, and may include but is not limited to: a CPU (Central Processing Unit), an NP (Network Processor), and the like; but also a DSP (Digital Signal Processing), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
In addition, the electronic device further includes: and the display is used for the distribution network result of the equipment.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment is not described herein again.
It can be understood by those skilled in the art that the structure shown in fig. 7 is only an illustration, and the device implementing the network distribution method of the device may be a terminal device, and the terminal device may be a Mobile phone (such as an Android Mobile phone, an iOS Mobile phone, and the like), a tablet computer, a palm computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 7 does not limit the structure of the electronic device. For example, the terminal device may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in FIG. 7, or have a different configuration than shown in FIG. 7.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disk, ROM, RAM, magnetic or optical disk, and the like.
According to still another aspect of an embodiment of the present application, there is also provided a storage medium. Optionally, in this embodiment, the storage medium may be used to execute a program code of a network distribution method of a device.
Optionally, in this embodiment, the storage medium may be located on at least one of a plurality of network devices in a network shown in the above embodiment.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps:
s1, collecting equipment information of the first equipment;
s2, establishing wireless connection with the first equipment according to the equipment information;
s3, sending the distribution network information to the first device through the wireless connection, where the first device is configured to bind to the server through a first network hotspot provided by the distribution network information when receiving the distribution network information, where the first network hotspot is a network hotspot provided by the second device or a network hotspot provided by the home gateway.
Optionally, the specific example in this embodiment may refer to the example described in the above embodiment, which is not described again in this embodiment.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing program codes, such as a U disk, a ROM, a RAM, a removable hard disk, a magnetic disk, or an optical disk.
According to yet another aspect of an embodiment of the present application, there is also provided a computer program product or a computer program comprising computer instructions stored in a computer readable storage medium; the processor of the computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the network distribution method steps of the device in any of the above embodiments.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a storage medium, and including several instructions for causing one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the network distribution method of the devices of the embodiments of the present application.
In the above embodiments of the present application, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, a division of a unit is merely a division of a logic function, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, and may also be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution provided in the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.