CN113015160A - Network distribution method and device for Internet of things equipment, electronic equipment and computer readable medium - Google Patents

Network distribution method and device for Internet of things equipment, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN113015160A
CN113015160A CN201911226212.0A CN201911226212A CN113015160A CN 113015160 A CN113015160 A CN 113015160A CN 201911226212 A CN201911226212 A CN 201911226212A CN 113015160 A CN113015160 A CN 113015160A
Authority
CN
China
Prior art keywords
internet
applet
things
distributed
application
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.)
Granted
Application number
CN201911226212.0A
Other languages
Chinese (zh)
Other versions
CN113015160B (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201911226212.0A priority Critical patent/CN113015160B/en
Publication of CN113015160A publication Critical patent/CN113015160A/en
Application granted granted Critical
Publication of CN113015160B publication Critical patent/CN113015160B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the application provides a network distribution method and device for Internet of things equipment, electronic equipment and a computer readable medium, and relates to the technical field of Internet of things. Wherein the method comprises the following steps: accessing a hotspot started by the Internet of things equipment to be distributed through an application applet of the Internet of things equipment hung on a client; after the hotspot is accessed, the distribution network information carried by the subtype subfield in the service type field in the network message is sent to the internet of things equipment to be distributed through an application program interface of the multicast-based equipment discovery protocol of the applet, so that the internet of things equipment to be distributed is networked based on the distribution network information. Through the embodiment of the application, the success rate of the distribution network of the Internet of things equipment can be effectively improved, and the development of the client of the Internet of things equipment can be avoided, so that the time to market of the Internet of things equipment is greatly shortened.

Description

Network distribution method and device for Internet of things equipment, electronic equipment and computer readable medium
Technical Field
The embodiment of the application relates to the technical field of internet of things, in particular to a network distribution method and device for internet of things equipment, electronic equipment and a computer readable medium.
Background
The advantages of the IoT (Internet of things) device are obvious compared with the conventional devices, and users can control the device more conveniently, know the conditions of the device in real time, monitor the environment and the like, and are far away from thousands of miles, but all are in hand. However, the IoT device is equivalent to an information island before networking, and is completely isolated from the outside world, and the IoT device cannot be controlled by us at this time, so that the IoT device does not have the capability of internet of things. The IoT device generally does not have a man-machine interface, and cannot connect and route through manually inputting the SSID (Service Set Identifier) and password of Wi-Fi (Wireless-Fidelity). Wi-Fi routing information (including SSID and password) is transmitted to the devices, so that the user experience is affected by the networking process of the IoT devices, i.e., the quality of the network distribution process.
In the related technology, there are two common network distribution schemes of the IoT device, the first scheme is to send network distribution information to the IoT device through a client of an IoT device manufacturer installed in a mobile phone terminal, and the second scheme is to adopt a packet length network distribution technology to distribute a network for the IoT device.
For the first scheme, each time a user of an internet of things device purchases an internet of things device of a manufacturer, the user needs to download an APP (Application) of the corresponding manufacturer to perform network distribution and control of the internet of things device. Therefore, the Internet of things equipment has the problem of complicated distribution network steps, and the use experience of the user on the Internet of things equipment is reduced. In addition, manufacturers of the internet of things equipment need to invest manpower and material resources specially to develop the APP and put the APP on shelf in order to distribute networks for the internet of things equipment. Specifically, a client based on an IOS system and a client based on an Android system are developed, so that the research and development cost of the equipment of the Internet of things is increased, and the time to market of the equipment of the Internet of things is delayed.
For the second scheme, the packet length distribution network technology encodes distribution network information sent to the internet of things device based on the length of a broadcast packet, and sends a series of broadcast packets with encoded length fields to a space, and the internet of things device monitors a wireless signal in the space to intercept the broadcast packet with the encoded length fields from a data link layer, and analyzes the intercepted broadcast packet with the encoded length fields according to a packet length distribution network communication protocol to obtain the distribution network information. However, the distribution network mechanism based on packet length coding is based on a data link layer below a network layer, no network connection is established between a mobile phone terminal and an internet of things device, and data transmission quality is unreliable due to packet loss, disorder, interference and the like, so that the distribution network success rate is not high, the actual success rate is generally about 60%, and user experience is not good.
Therefore, how to effectively improve the distribution network success rate of the internet of things equipment and avoid the development of the client of the internet of things equipment becoming a technical problem to be solved urgently at present.
Disclosure of Invention
The application aims to provide a network distribution method and device for internet of things equipment, electronic equipment and a computer readable medium, and the network distribution method and device, the electronic equipment and the computer readable medium are used for solving the technical problems that in the prior art, the network distribution success rate of the internet of things equipment is effectively improved, and the development of a client of the internet of things equipment is avoided.
According to a first aspect of an embodiment of the application, a network distribution method of internet of things equipment is provided. The method comprises the following steps: accessing a hotspot started by the Internet of things equipment to be distributed through an application applet of the Internet of things equipment hung on a client; after the hotspot is accessed, the distribution network information carried by the subtype subfield in the service type field in the network message is sent to the internet of things equipment to be distributed through an application program interface of the multicast-based equipment discovery protocol of the applet, so that the internet of things equipment to be distributed is networked based on the distribution network information.
According to a second aspect of the embodiments of the present application, a network distribution device of an internet of things device is provided. The device comprises: the access module is used for accessing a hotspot started by the Internet of things equipment to be distributed through an application applet of the Internet of things equipment mounted on the client; and the sending module is used for sending the distribution network information carried by the subtype subfield in the service type field in the network message to the Internet of things equipment to be distributed through an application program interface of the multicast-based equipment discovery protocol of the application applet after the hotspot is accessed, so that the Internet of things equipment to be distributed is networked based on the distribution network information.
According to a third aspect of embodiments of the present application, there is provided an electronic apparatus, including: one or more processors; a computer readable medium configured to store one or more programs which, when executed by the one or more processors, cause the one or more processors to implement a method for network distribution of internet of things devices as described in the first aspect of the embodiments above.
According to a fourth aspect of embodiments of the present application, there is provided a computer-readable medium, on which a computer program is stored, which when executed by a processor, implements the network distribution method for the internet of things device as described in the first aspect of the embodiments.
According to the distribution network scheme of the Internet of things equipment, a hotspot for starting the Internet of things equipment to be distributed is accessed through an application applet of the Internet of things equipment mounted on a client; after the hotspot is accessed, the distribution network information carried by the subtype subfield in the service type field in the network message is sent to the Internet of things equipment to be distributed through the application program interface of the multicast-based equipment discovery protocol of the application applet, so that the Internet of things equipment to be distributed is networked based on the distribution network information. In addition, manufacturers of the Internet of things equipment do not need to invest manpower and material resources specially to develop and put on shelf the clients of the Internet of things equipment, the research and development cost of the Internet of things equipment is saved, and the time of the Internet of things equipment to market is greatly shortened. In addition, by using an application program interface of the multicast-based device discovery protocol of the application applet, the distribution network information is carried by using the subtype subfield in the service type field in the network message, and the distribution network information can be reliably transmitted to the internet of things device to be distributed.
In addition, compared with the second scheme in the prior art, the application applet of the internet of things equipment mounted on the client is accessed to a hotspot opened by the internet of things equipment to be distributed, after the hotspot is accessed, distribution network information carried by a subtype subfield in a service type field in a network message is sent to the internet of things equipment to be distributed through an application program interface of an equipment discovery protocol based on multicast of the application applet, and technically speaking, the distribution network information is transmitted to the internet of things equipment to be distributed based on a network layer transmission mode in a network communication layer, so that stable hotspot connection is established between the terminal equipment and the internet of things equipment, the data transmission quality is stable, and the distribution network information can be reliably transmitted to the internet of things equipment to be distributed, and the distribution network success rate of the internet of things equipment is effectively improved. In addition, the Internet of things equipment can also quickly receive distribution network information, so that the distribution network efficiency of the Internet of things equipment is effectively improved.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
fig. 1A is a flowchart illustrating a network distribution method for devices in the internet of things according to an embodiment of the present application;
fig. 1B is a schematic diagram of a network distribution process of an internet of things device according to an embodiment of the present application;
fig. 2A is a flowchart of a network distribution method for devices in the internet of things in the second embodiment of the present application;
fig. 2B is a schematic interaction diagram after the internet of things device is distributed in a network according to the second embodiment of the present application;
fig. 3 is a schematic structural diagram of a network distribution device of an internet of things device in the third embodiment of the present application;
fig. 4 is a schematic structural diagram of a network distribution device of an internet of things device in the fourth embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device in a fifth embodiment of the present application;
fig. 6 is a hardware structure of an electronic device according to a sixth embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Referring to fig. 1A, a flowchart of steps of a network distribution method for internet of things devices according to a first embodiment of the present application is shown.
Specifically, the network distribution method for the internet of things equipment provided by the embodiment includes the following steps:
in step S101, a hotspot started by the internet of things device to be distributed is accessed through an applet of the internet of things device loaded on the client.
In the embodiment of the application, the client can include an instant messaging client, a payment client, a shopping client, or a taxi-taking client and other clients capable of mounting the applet. The Internet of things equipment can comprise air purifier, air conditioner, smoke alarm, sound box, socket and other equipment. The applet may be understood as an applet mounted on the client, e.g. an applet mounted in an instant messaging client, an applet mounted in a payment client, etc. The hotspot can be understood as a transmitting point for providing WIFI internet surfing for the Internet of things equipment. It should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
In some optional embodiments, when accessing a hotspot opened by the internet of things device to be distributed through an application applet of the internet of things device mounted on a client, accessing the hotspot opened by the internet of things device to be distributed through calling an application program interface used for connecting the hotspot in the application applet. Therefore, the hotspot started by the Internet of things equipment to be distributed can be accessed quickly by calling the application program interface used for connecting the hotspot in the application applet. It should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
In a specific example, when the client is an instant messaging client, the application program interface for connecting the hotspot in the applet may be an application program interface for connecting a router, for example, a local area network connection interface in the instant messaging client. It should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
In some optional embodiments, when the hotspot started by the internet of things device to be distributed is accessed by calling an application program interface used for connecting the hotspot in the application applet, in response to an operation on an icon of the application applet or a hotspot access control in the application applet, an application program interface used for connecting the hotspot in the application applet is called to access the hotspot started by the internet of things device to be distributed. Therefore, the hotspot started by the Internet of things equipment to be distributed can be conveniently accessed through the operation of the icon of the application small program or the hotspot access control in the application small program. It should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
In a specific example, after a user of the internet of things device clicks a wireless local area network control element of a mobile phone terminal to open a wireless local area network of the mobile phone terminal, the user can click an icon of an instant messaging client and pull down a home page of the instant messaging client to display an icon of an applet of the internet of things device. Then, a user of the internet of things device may click on an icon of an applet of the internet of things device. Responding to the click operation of the user of the Internet of things equipment on the icon of the application applet, and calling an application program interface used for connecting the hotspot of the Internet of things equipment in the application applet by the application applet of the Internet of things equipment so as to access the hotspot started by the Internet of things equipment to be distributed. Certainly, the embodiment of the application is not limited to this, and after the user of the internet of things device clicks the icon of the application applet of the internet of things device, the page of the application applet of the internet of things device may be displayed, and then, the user of the internet of things device may click the hotspot access control displayed on the page to input the network name and the password of the hotspot opened by the internet of things device. And responding to the operation that a user of the Internet of things equipment completes the input of the network name and the password of the hotspot opened by the Internet of things equipment, and calling an application program interface used for connecting the hotspot of the Internet of things equipment in the application program by the application applet of the Internet of things equipment so as to access the hotspot opened by the Internet of things equipment to be distributed. It should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
In step S102, after accessing the hotspot, sending, through an application program interface of a multicast-based device discovery protocol of the applet, distribution network information carried by a subtype subfield in a service type field in a network message to the internet of things device to be distributed, so that the internet of things device to be distributed is networked based on the distribution network information.
In this application embodiment, the distribution network information may include a wireless network name and a password, and of course, this application embodiment is not limited thereto, and the distribution network information may further include information of a service provider of the internet of things device, device type information of the internet of things device, a device serial number of the internet of things device, a device model of the internet of things device, a device security code of the internet of things device, a random number, and the like. It should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
In a specific example, since a user datagram socket in the current instant messaging client cannot be used in a real-time environment, requesting a serial application program interface requires an internet-of-things device to start a server. Therefore, the workload is large, and the method is not suitable for the embedded Internet of things equipment. Therefore, what is finally verified as being the local service discovery interface initiated by the multicast-based device discovery protocol suite. The application program interface can send out a User Datagram Protocol (UDP) message, but the difficulty is that fields capable of carrying distribution network information are very limited, and only one service type field can be used. The service type field is composed of several subfields, a service name subfield, a protocol subfield, and a subtype subfield. The service name subfield is several subfields picked from a fixed set, i.e. the user cannot customize the character string and therefore has no encoding possibility. The protocol subfield is also the possibility of not having user-defined coding. The only thing that can be encoded is the subtype subfield, which allows encoding ASCII characters, and distribution network information can be written in this subfield so that it carries the distribution network information. It should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
In some optional embodiments, when the distribution network information carried by the subtype subfield in the service type field in the network message is sent to the internet of things device to be distributed through the application program interface of the multicast-based device discovery protocol of the applet, the distribution network information carried by the subtype subfield in the service type field in the network message is sent to the internet of things device to be distributed through the application program interface of the multicast-based device discovery protocol of the applet. Therefore, the distribution network information can be reliably sent to the Internet of things equipment to be distributed by calling the application program interface of the multicast-based equipment discovery protocol of the application applet. It should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
In one specific example, when the client is an instant messaging client, the application program interface of the multicast-based device discovery protocol of the applet may be to initiate a local service discovery interface. It should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
In some optional embodiments, when the distribution network information carried by the subtype subfield in the service type field in the network message is sent to the internet of things device to be distributed by calling the application program interface of the multicast-based device discovery protocol of the applet, in response to completing the operation of inputting the distribution network information in the applet, the application program interface of the multicast-based device discovery protocol of the applet is called, and the distribution network information carried by the subtype subfield in the service type field in the network message is sent to the internet of things device to be distributed. Therefore, the operation of distribution network information input is completed in the application small program, and the distribution network information can be conveniently sent to the Internet of things equipment to be distributed. It should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
In a specific example, after accessing a hotspot where the internet of things device is turned on, a user may input distribution network information of the internet of things device in a networking configuration interface in an applet of the internet of things device. Responding to the operation that a user completes the input of the distribution network information of the Internet of things equipment in a networking configuration interface, and calling an application program interface of a multicast-based equipment discovery protocol of the application program by the application program of the Internet of things equipment so as to send the input distribution network information to the Internet of things equipment to be distributed. It should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
In some optional embodiments, before the distribution network information includes a wireless network name, and before the distribution network information carried by a subtype subfield in a service type field in a network message is sent to the internet of things device to be distributed through an application program interface of a multicast-based device discovery protocol of the applet, the method further includes: and determining the wireless network name based on the network usage data of the terminal equipment to which the application applet belongs. Therefore, through the application small program of the Internet of things equipment, the wireless network name can be accurately determined based on the network use data of the terminal equipment to which the application small program belongs, the condition that the user manually inputs the wireless network name can be avoided, the input process of distribution network information is simplified, and the use experience of the user for the Internet of things equipment is effectively improved. It should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
In a specific example, the network usage data of the terminal device to which the applet belongs may include data that the terminal device uses the network for a historical period of time, such as a network name, a network type, network usage time information. In determining the wireless network name, the network name and password of the wireless local area network in the room where the article networking device is located can be presumed based on the name, type, and time information of the network used by the terminal device in the historical period of time. For example, the names of networks used by the terminal device at 9 to 10 pm every day in the past month may be counted, and the name of the network used the most number of times may be determined as the wireless network name. It should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
In a specific example, as shown in fig. 1B, in response to an operation that a user of the internet of things device clicks an icon of an applet mounted on a socket in an instant messaging client, the applet of the socket accesses a hotspot where the socket of a network to be distributed is opened by calling an application program interface used for connecting with the hotspot of the socket in the applet. After accessing a hot spot where a socket of a network to be distributed is opened, a user can input distribution network information of the socket in a networking configuration interface in an applet of the socket. And in response to the operation that the user completes the input of the distribution network information of the socket in the networking configuration interface, the application applet of the socket calls an application program interface of a multicast-based device discovery protocol of the application applet and sends the distribution network information carried by the subtype subfield in the service type field in the network message to the socket to be distributed, so that the socket to be distributed is networked based on the distribution network information. It should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
According to the network distribution method of the Internet of things equipment, the hotspot for starting the Internet of things equipment to be distributed is accessed through the application applet of the Internet of things equipment mounted on the client; after the hotspot is accessed, the distribution network information carried by the subtype subfield in the service type field in the network message is sent to the Internet of things equipment to be distributed through the application program interface of the multicast-based equipment discovery protocol of the application applet, so that the Internet of things equipment to be distributed is networked based on the distribution network information. In addition, manufacturers of the Internet of things equipment do not need to invest manpower and material resources specially to develop and put on shelf the clients of the Internet of things equipment, the research and development cost of the Internet of things equipment is saved, and the time of the Internet of things equipment to market is greatly shortened. In addition, by using an application program interface of the multicast-based device discovery protocol of the application applet, the distribution network information is carried by using the subtype subfield in the service type field in the network message, and the distribution network information can be reliably transmitted to the internet of things device to be distributed.
In addition, compared with the second scheme in the prior art, the application applet of the internet of things equipment mounted on the client is accessed to a hotspot opened by the internet of things equipment to be distributed, after the hotspot is accessed, distribution network information carried by a subtype subfield in a service type field in a network message is sent to the internet of things equipment to be distributed through an application program interface of an equipment discovery protocol based on multicast of the application applet, and technically speaking, the distribution network information is transmitted to the internet of things equipment to be distributed based on a network layer transmission mode in a network communication layer, so that stable hotspot connection is established between the terminal equipment and the internet of things equipment, the data transmission quality is stable, and the distribution network information can be reliably transmitted to the internet of things equipment to be distributed, and the distribution network success rate of the internet of things equipment is effectively improved. In addition, the Internet of things equipment can also quickly receive distribution network information, so that the distribution network efficiency of the Internet of things equipment is effectively improved.
The network distribution method for the internet of things device in this embodiment may be performed by any suitable device with data processing capability, including but not limited to: cameras, terminals, mobile terminals, PCs, servers, in-vehicle devices, entertainment devices, advertising devices, Personal Digital Assistants (PDAs), tablet computers, notebook computers, handheld game consoles, glasses, watches, wearable devices, virtual display devices or display enhancement devices (such as Google Glass, Oculus rise, HoloLens, Gear VR), and the like.
Referring to fig. 2A, a flowchart of steps of a network distribution method for internet of things devices in the second embodiment of the present application is shown.
Specifically, the network distribution method for the internet of things equipment provided by the embodiment includes the following steps:
in step S201, a hotspot started by the internet of things device to be distributed is accessed through an applet of the internet of things device mounted on the client.
Since the embodiment of step S201 is similar to that of step S101, it is not described herein again.
In step S202, after accessing the hotspot, determining, by the applet, a wireless network name based on the network usage data of the terminal device to which the applet belongs, and receiving a password input by a user.
In the embodiment of the application, through the application applet of the internet of things equipment, based on the network use data of the terminal equipment to which the application applet belongs, the name of the wireless network can be accurately determined, the condition that the user manually inputs the name of the wireless network can be avoided, the input process of the distribution network information is simplified, and therefore the use experience of the user for the internet of things equipment is effectively improved. It should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
In step S203, a wireless network name and a password carried by a subtype subfield in a service type field in a network message are sent to the internet of things device to be distributed through an application program interface of a multicast-based device discovery protocol of the applet, so that the internet of things device to be distributed is networked based on the wireless network name and the password.
Since the embodiment of step S203 is similar to that of step S102, it is not repeated herein.
In a specific example, as shown in fig. 2B, the socket belongs to an internet of things control type device, and can be used for switching control of household appliances (such as an electric lamp, a water heater, and the like). After the socket is networked based on the network distribution method provided by the embodiment of the application, the socket can send the control information of the household appliance switch to a manufacturer server of the socket through an indoor wireless router. After receiving the control information of the household appliance switch sent by the socket, the manufacturer server of the socket can transmit the control information of the household appliance switch to the terminal device of the instant messaging client which is hung with the application applet of the socket in real time through the indoor wireless router, so that a user of the socket can know the control condition of the household appliance switch in real time. It should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
According to the network distribution method of the Internet of things equipment, the hotspot for starting the Internet of things equipment to be distributed is accessed through the application applet of the Internet of things equipment mounted on the client; after the hotspot is accessed, the application applet determines the name of a wireless network based on the network use data of the terminal equipment to which the application applet belongs, receives a password input by a user, and sends the name and the password carried by the sub-type sub-field in the service type field in a network message to the equipment of the internet of things to be distributed through an application program interface of a multicast-based equipment discovery protocol of the application applet, so that the equipment of the internet of things to be distributed is networked based on the name and the password, compared with the first scheme, the application applet of the equipment of the internet of things mounted on a client side is used for starting the equipment of the internet of things to be distributed of the hotspot to be distributed, so that the development of the client side of the equipment of the internet of things can be avoided, and the user of the equipment of the internet of things does not need to download the client side of the equipment of the internet of the, the network distribution steps of the Internet of things equipment are simplified, and therefore the use experience of the user on the Internet of things equipment is effectively improved. In addition, manufacturers of the Internet of things equipment do not need to invest manpower and material resources specially to develop and put on shelf the clients of the Internet of things equipment, the research and development cost of the Internet of things equipment is saved, and the time of the Internet of things equipment to market is greatly shortened. In addition, through an application program interface of the multicast-based device discovery protocol of the application applet, the wireless network name and the password are carried by using the subtype subfield in the service type field in the network message, and the wireless network name and the password can be reliably transmitted to the Internet of things device to be distributed.
In addition, compared with the second scheme in the prior art, the application applet of the internet of things equipment mounted on the client accesses a hotspot opened by the internet of things equipment to be distributed, and after the hotspot is accessed, the application applet sends a wireless network name and a password carried by a subtype subfield in a service type field in a network message to the internet of things equipment to be distributed through an application program interface of a multicast-based equipment discovery protocol. In addition, the internet of things equipment can also quickly receive the wireless network name and the password, so that the distribution network efficiency of the internet of things equipment is effectively improved.
The network distribution method for the internet of things device in this embodiment may be performed by any suitable device with data processing capability, including but not limited to: cameras, terminals, mobile terminals, PCs, servers, in-vehicle devices, entertainment devices, advertising devices, Personal Digital Assistants (PDAs), tablet computers, notebook computers, handheld game consoles, glasses, watches, wearable devices, virtual display devices or display enhancement devices (such as Google Glass, Oculus rise, HoloLens, Gear VR), and the like.
Referring to fig. 3, a schematic structural diagram of a network distribution device of an internet of things device in the third embodiment of the present application is shown.
The network distribution device of the internet of things equipment provided by the embodiment comprises: the access module 301 is configured to access a hotspot started by an internet of things device to be distributed through an applet of the internet of things device mounted on a client; a sending module 302, configured to send, through an application program interface of a multicast-based device discovery protocol of the applet, distribution network information carried by a subtype subfield in a service type field in a network message to the internet of things device to be distributed, so that the internet of things device to be distributed is networked based on the distribution network information.
The network distribution device of the internet of things equipment is used for realizing the network distribution method of the internet of things equipment in the multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, which are not described herein again.
Referring to fig. 4, a schematic structural diagram of a network distribution device of an internet of things device in the fourth embodiment of the present application is shown.
The network distribution device of the internet of things equipment provided by the embodiment comprises: the access module 401 is configured to access a hotspot, which is to be opened by the internet of things device, of the network to be distributed through an applet of the internet of things device mounted on the client; a sending module 405, configured to send, through an application program interface of a multicast-based device discovery protocol of the applet, distribution network information carried by a subtype subfield in a service type field in a network message to the internet of things device to be distributed, so that the internet of things device to be distributed is networked based on the distribution network information.
Optionally, the access module 401 includes: the access sub-module 402 is configured to access the hotspot started by the internet of things device to be distributed by calling an application program interface in the applet, the application program interface being used to connect the hotspot.
Optionally, the access sub-module 402 includes: an accessing unit 403, configured to, in response to an operation on an icon of the applet or a hotspot accessing control in the applet, call an application program interface in the applet, which is used to connect the hotspot, so as to access the hotspot started by the internet of things device to be connected to a network.
Optionally, the sending module 405 includes: the sending submodule 406 is configured to send, to the internet of things device to be connected to a network, distribution network information carried by a subtype subfield in a service type field in a network message by calling an application program interface of a multicast-based device discovery protocol of the applet.
Optionally, the sending sub-module 406 includes: a sending unit 407, configured to invoke an application program interface of a multicast-based device discovery protocol of the applet in response to the completion of the operation of inputting the distribution network information in the applet, and send the distribution network information carried by a subtype subfield in a service type field in a network message to the internet of things device to be distributed.
Optionally, the distribution network information includes a wireless network name, and before the sending module 405, the apparatus further includes: a determining module 404, configured to determine the wireless network name based on the network usage data of the terminal device to which the applet belongs.
The network distribution device of the internet of things equipment is used for realizing the network distribution method of the internet of things equipment in the multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, which are not described herein again.
Fig. 5 is a schematic structural diagram of an electronic device in a fifth embodiment of the present application; the electronic device may include:
one or more processors 501;
a computer-readable medium 502, which may be configured to store one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors are enabled to implement the network distribution method for the internet of things device as described in the first embodiment or the second embodiment.
Fig. 6 is a hardware structure of an electronic device according to a sixth embodiment of the present application; as shown in fig. 6, the hardware structure of the electronic device may include: a processor 601, a communication interface 602, a computer-readable medium 603, and a communication bus 604;
wherein the processor 601, the communication interface 602, and the computer readable medium 603 communicate with each other via a communication bus 604;
alternatively, the communication interface 602 may be an interface of a communication module, such as an interface of a GSM module;
the processor 601 may be specifically configured to: accessing a hotspot started by the Internet of things equipment to be distributed through an application applet of the Internet of things equipment hung on a client; after the hotspot is accessed, the distribution network information carried by the subtype subfield in the service type field in the network message is sent to the internet of things equipment to be distributed through an application program interface of the multicast-based equipment discovery protocol of the applet, so that the internet of things equipment to be distributed is networked based on the distribution network information.
The Processor 601 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The computer-readable medium 603 may be, but is not limited to, a Random Access Memory (RAM), a Read-Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code configured to perform the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication section, and/or installed from a removable medium. The computer program, when executed by a Central Processing Unit (CPU), performs the above-described functions defined in the method of the present application. It should be noted that the computer readable medium described herein can be a computer readable signal medium or a computer readable storage medium or any combination of the two. The computer readable medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access storage media (RAM), a read-only storage media (ROM), an erasable programmable read-only storage media (EPROM or flash memory), an optical fiber, a portable compact disc read-only storage media (CD-ROM), an optical storage media piece, a magnetic storage media piece, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code configured to carry out operations for the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may operate over any of a variety of networks: including a Local Area Network (LAN) or a Wide Area Network (WAN) -to the user's computer, or alternatively, to an external computer (e.g., through the internet using an internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions configured to implement the specified logical function(s). In the above embodiments, specific precedence relationships are provided, but these precedence relationships are only exemplary, and in particular implementations, the steps may be fewer, more, or the execution order may be modified. That is, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present application may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor includes an access module and a transmit module. The names of the modules do not limit the modules themselves in some cases, for example, an access module may also be described as a module that accesses a hotspot opened by an internet of things device to be distributed through an applet of the internet of things device mounted on a client.
As another aspect, the present application further provides a computer readable medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the network distribution method for the internet of things device as described in the first embodiment or the second embodiment.
As another aspect, the present application also provides a computer-readable medium, which may be contained in the apparatus described in the above embodiments; or may be present separately and not assembled into the device. The computer readable medium carries one or more programs which, when executed by the apparatus, cause the apparatus to: accessing a hotspot started by the Internet of things equipment to be distributed through an application applet of the Internet of things equipment hung on a client; after the hotspot is accessed, the distribution network information carried by the subtype subfield in the service type field in the network message is sent to the internet of things equipment to be distributed through an application program interface of the multicast-based equipment discovery protocol of the applet, so that the internet of things equipment to be distributed is networked based on the distribution network information.
The expressions "first", "second", "said first" or "said second" used in various embodiments of the present disclosure may modify various components regardless of order and/or importance, but these expressions do not limit the respective components. The above description is only configured for the purpose of distinguishing elements from other elements. For example, the first user equipment and the second user equipment represent different user equipment, although both are user equipment. For example, a first element could be termed a second element, and, similarly, a second element could be termed a first element, without departing from the scope of the present disclosure.
When an element (e.g., a first element) is referred to as being "operably or communicatively coupled" or "connected" (operably or communicatively) to "another element (e.g., a second element) or" connected "to another element (e.g., a second element), it is understood that the element is directly connected to the other element or the element is indirectly connected to the other element via yet another element (e.g., a third element). In contrast, it is understood that when an element (e.g., a first element) is referred to as being "directly connected" or "directly coupled" to another element (a second element), no element (e.g., a third element) is interposed therebetween.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the invention. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (14)

1. A network distribution method of Internet of things equipment is characterized by comprising the following steps:
accessing a hotspot started by the Internet of things equipment to be distributed through an application applet of the Internet of things equipment hung on a client;
after the hotspot is accessed, the distribution network information carried by the subtype subfield in the service type field in the network message is sent to the internet of things equipment to be distributed through an application program interface of the multicast-based equipment discovery protocol of the applet, so that the internet of things equipment to be distributed is networked based on the distribution network information.
2. The method of claim 1, wherein accessing a hotspot opened by an internet of things device to be distributed through an applet of the internet of things device loaded on a client comprises:
and accessing the hot spot started by the Internet of things equipment to be distributed by calling an application program interface used for connecting the hot spot in the application applet.
3. The method of claim 2, wherein the accessing the hotspot started by the internet of things device to be distributed by calling an application program interface in the applet for connecting to the hotspot comprises:
and responding to an icon of the application applet or the operation of a hotspot access control in the application applet, and calling an application program interface used for connecting the hotspot in the application applet to access the hotspot started by the Internet of things equipment to be distributed.
4. The method of claim 1, wherein the sending, to the internet of things device to be distributed, distribution network information carried by a subtype subfield in a service type field in a network message through an application program interface of a multicast-based device discovery protocol of the applet, comprises:
and sending the distribution network information carried by the subtype subfield in the service type field in the network message to the Internet of things equipment to be distributed by calling an application program interface of the multicast-based equipment discovery protocol of the application applet.
5. The method of claim 4, wherein the sending distribution network information carried by a subtype subfield in a service type field in a network message to the Internet of things device to be distributed by invoking an application program interface of a multicast-based device discovery protocol of the applet comprises:
and in response to the completion of the operation of the distribution network information input in the application applet, calling an application program interface of a multicast-based device discovery protocol of the application applet, and sending distribution network information carried by a subtype subfield in a service type field in a network message to the internet of things device to be distributed.
6. The method according to any of claims 1-5, wherein the distribution network information comprises a wireless network name,
before the sending, through an application program interface of a multicast-based device discovery protocol of the applet, distribution network information carried by a subtype subfield in a service type field in a network message to the internet of things device to be distributed, the method further includes:
and determining the wireless network name based on the network usage data of the terminal equipment to which the application applet belongs.
7. A network distribution device of Internet of things equipment is characterized in that the device comprises:
the access module is used for accessing a hotspot started by the Internet of things equipment to be distributed through an application applet of the Internet of things equipment mounted on the client;
and the sending module is used for sending the distribution network information carried by the subtype subfield in the service type field in the network message to the Internet of things equipment to be distributed through an application program interface of the multicast-based equipment discovery protocol of the application applet after the hotspot is accessed, so that the Internet of things equipment to be distributed is networked based on the distribution network information.
8. The apparatus of claim 7, wherein the access module comprises:
and the access sub-module is used for accessing the hot spot started by the Internet of things equipment to be distributed by calling an application program interface used for connecting the hot spot in the application applet.
9. The apparatus of claim 8, wherein the access sub-module comprises:
and the access unit is used for responding to an icon aiming at the application applet or the operation of a hotspot access control in the application applet, and calling an application program interface used for connecting the hotspot in the application applet so as to access the hotspot started by the Internet of things equipment to be distributed.
10. The apparatus of claim 7, wherein the sending module comprises:
and the sending submodule is used for sending the distribution network information carried by the subtype subfield in the service type field in the network message to the Internet of things equipment to be distributed through calling an application program interface of the multicast-based equipment discovery protocol of the application applet.
11. The apparatus of claim 10, wherein the transmit submodule comprises:
and the sending unit is used for responding to the operation of finishing the distribution network information input in the application applet, calling an application program interface of a multicast-based device discovery protocol of the application applet, and sending the distribution network information carried by a subtype subfield in a service type field in a network message to the Internet of things device to be distributed.
12. The apparatus of any of claims 7-11, wherein the distribution network information comprises a wireless network name,
before the sending module, the apparatus further includes:
a determining module, configured to determine the wireless network name based on network usage data of the terminal device to which the applet belongs.
13. An electronic device, characterized in that the device comprises:
one or more processors;
a computer readable medium configured to store one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method for network distribution of internet of things devices as recited in any one of claims 1-6.
14. A computer-readable medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out a method for network distribution of devices of the internet of things as claimed in any one of claims 1 to 6.
CN201911226212.0A 2019-12-04 2019-12-04 Network allocation method and device of Internet of things equipment, electronic equipment and computer readable medium Active CN113015160B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911226212.0A CN113015160B (en) 2019-12-04 2019-12-04 Network allocation method and device of Internet of things equipment, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911226212.0A CN113015160B (en) 2019-12-04 2019-12-04 Network allocation method and device of Internet of things equipment, electronic equipment and computer readable medium

Publications (2)

Publication Number Publication Date
CN113015160A true CN113015160A (en) 2021-06-22
CN113015160B CN113015160B (en) 2023-09-22

Family

ID=76380981

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911226212.0A Active CN113015160B (en) 2019-12-04 2019-12-04 Network allocation method and device of Internet of things equipment, electronic equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN113015160B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115426398A (en) * 2022-10-27 2022-12-02 杭州海康威视数字技术股份有限公司 Video Internet of things equipment safety discovery method and device based on multi-layer cooperation

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103312571A (en) * 2013-05-28 2013-09-18 北京小米科技有限责任公司 Method and device for finding equipment
CN104618375A (en) * 2015-01-30 2015-05-13 普联技术有限公司 Method and device for discovering network devices
CN105246126A (en) * 2015-08-28 2016-01-13 深圳市唯传科技有限公司 Intelligent equipment access method, device and system
CN106254189A (en) * 2016-09-13 2016-12-21 四川长虹电器股份有限公司 A kind of WiFi distribution method
CN106452924A (en) * 2016-11-30 2017-02-22 北京小米移动软件有限公司 Method and device for synchronizing wireless network configuration
CN109921943A (en) * 2019-03-19 2019-06-21 维沃移动通信有限公司 One kind matching network method and terminal
CN110234117A (en) * 2019-06-27 2019-09-13 杭州博联智能科技股份有限公司 IOT equipment distribution method, apparatus, equipment and medium based on small routine

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103312571A (en) * 2013-05-28 2013-09-18 北京小米科技有限责任公司 Method and device for finding equipment
CN104618375A (en) * 2015-01-30 2015-05-13 普联技术有限公司 Method and device for discovering network devices
CN105246126A (en) * 2015-08-28 2016-01-13 深圳市唯传科技有限公司 Intelligent equipment access method, device and system
CN106254189A (en) * 2016-09-13 2016-12-21 四川长虹电器股份有限公司 A kind of WiFi distribution method
CN106452924A (en) * 2016-11-30 2017-02-22 北京小米移动软件有限公司 Method and device for synchronizing wireless network configuration
CN109921943A (en) * 2019-03-19 2019-06-21 维沃移动通信有限公司 One kind matching network method and terminal
CN110234117A (en) * 2019-06-27 2019-09-13 杭州博联智能科技股份有限公司 IOT equipment distribution method, apparatus, equipment and medium based on small routine

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115426398A (en) * 2022-10-27 2022-12-02 杭州海康威视数字技术股份有限公司 Video Internet of things equipment safety discovery method and device based on multi-layer cooperation

Also Published As

Publication number Publication date
CN113015160B (en) 2023-09-22

Similar Documents

Publication Publication Date Title
US20210297410A1 (en) Mec platform deployment method and apparatus
CN107231606B (en) WiFi network access method, intelligent hardware equipment and electronic terminal
WO2017101265A1 (en) Message processing method, processing server, terminal and storage medium
CN109152094B (en) Wireless network connection method for terminal
US10999377B2 (en) Method, device and computer program product for protocol selection
CN102685210B (en) Wireless routing equipment, mobile terminal, management system and method
JP5870471B2 (en) Method, apparatus, and system for sharing software between terminals
CN108200170A (en) Message treatment method, device and readable storage medium storing program for executing
CN108833251B (en) Method and apparatus for controlling network interconnection
CN111246311A (en) Data transmission method and device, storage medium and electronic equipment
US20230015800A1 (en) A method, apparatus, medium and electronic device for configuring a gift list in a live broadcast room
JP6793667B2 (en) Application download method and equipment
WO2015000379A1 (en) Method for remotely controlling air conditioner and remote control system for air conditioner
TW201605203A (en) Home control gateway and home control network connection method thereof
US10700879B2 (en) Charging method and device, access device, service quality control method and device
CN108600378B (en) File downloading method, device, terminal and storage medium
CN108370500B (en) Optimized settings for wireless devices
CN112202739B (en) Flow monitoring method and device
CN113015160B (en) Network allocation method and device of Internet of things equipment, electronic equipment and computer readable medium
CN104580084A (en) Method, terminals and system for sharing multimedia file
CN111030900A (en) Authentication-free login method and device and electronic equipment
CN110087281A (en) The method, apparatus and system of network insertion
CN113765987A (en) Method, device and system for managing and processing information of equipment of Internet of things
CN109348298B (en) Method and equipment for pushing and playing multimedia data stream
CN105446803A (en) Application management method and apparatus

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40050683

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant