Device network access method, device, electronic device and storage medium

By sending a registration request to the IoT server when the smart home appliance is powered on for the first time, a virtual account is obtained and connected to the server, which solves the trouble of manual registration during large-scale deployment of smart home appliances and enables the device to be connected to the IoT right out of the factory.

CN115834269BActive Publication Date: 2025-01-24SHENZHEN SKYWORTH RGB ELECTRONICS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211438084.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-16
Publication Date
2025-01-24
Estimated Expiration
2042-11-16

AI Technical Summary

Technical Problem

In the prior art, smart home appliances need to be manually registered and connected to the Internet of Things after leaving the factory, resulting in trouble in deployment in large-scale deployment scenarios and increasing workload.

Method used

When the testing device is turned on for the first time, the first registration request is sent to the Internet of Things server, carrying the equipment information to obtain a virtual account, and connected to the Internet of Things server based on the virtual account.

Benefits of technology

It can automatically access the Internet of Things server after the device leaves the factory, which reduces artificial login steps and reduces the workload of personnel.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115834269B_ABST
    Figure CN115834269B_ABST
Patent Text Reader

Abstract

The embodiments of the present invention relate to a method, apparatus, electronic device and storage medium for device access to the network. The method comprises: in response to detecting that the device is powered on for the first time, sending a first registration request to an Internet of Things server, wherein the first registration request carries device information of the device, so that the Internet of Things server determines a virtual account for the device according to the device information; receiving the virtual account from the Internet of Things server; and accessing the Internet of Things server based on the virtual account. Thus, the technical effect of enabling the device to access the Internet of Things server as soon as it leaves the factory, eliminating the need for login and reducing the workload of personnel can be achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the technical field of smart home appliances, and in particular, to a method and apparatus for accessing a device to a network, an electronic device, and a storage medium. Background Art

[0002] With the continuous development of smart home appliances, the application services that smart home appliances can support are becoming more and more extensive. If a device wants to become an Internet of Things (IOT) device, it must first be connected to the Internet of Things. For example, TV sets are non-IOT devices when they leave the factory. After the user purchases the TV, the after-sales staff will come to the user's home to register for the network and log in to the IOT account. That is, only after connecting to the Internet of Things can it become an IOT device.

[0003] The above network access process is fine for a single device or a few devices, but it is very troublesome when a large number of devices are required, such as in hotels or museums. Especially in the hotel scenario, when large-scale deployment is required, each TV needs to be logged in to become an IOT device, which makes deployment troublesome and labor-intensive. Summary of the invention

[0004] In view of this, in order to solve the technical problem that the above-mentioned devices are manually registered and connected to the Internet of Things after leaving the factory, which leads to deployment troubles and increased workload, the embodiments of the present invention provide a device network access method, device, electronic device and storage medium.

[0005] In a first aspect, an embodiment of the present invention provides a method for a device to access a network, including:

[0006] In response to detecting that the device is powered on for the first time, sending a first registration request to an Internet of Things server, where the first registration request carries device information of the device, so that the Internet of Things server determines a virtual account for the device according to the device information;

[0007] Receiving the virtual account from the IoT server;

[0008] Access the Internet of Things server based on the virtual account.

[0009] In a possible implementation manner, before receiving the virtual account from the Internet of Things server, the method further includes:

[0010] Obtaining a user identification code of the device, where the user identification code is used to identify an owner of the device;

[0011] The user identification code is sent to the Internet of Things server so that the Internet of Things server authenticates the owner of the device according to the user identification code, and sends the virtual account to the device if the authentication result indicates that the owner of the device has Internet of Things access authority.

[0012] In a possible implementation, the acquiring the user identification code of the device includes:

[0013] Output visualization interface;

[0014] The user identification code input by the user on the visual interface is obtained.

[0015] In a possible implementation, after accessing the Internet of Things server based on the virtual account, the method further includes:

[0016] Sending a second registration request to the Internet of Things server, where the second registration request carries a user account, and the user account is input by the user, so that the Internet of Things server registers the user account on the local end;

[0017] Access the Internet of Things server based on the user account.

[0018] In a second aspect, an embodiment of the present invention provides a method for device network access, the method being applied to an Internet of Things server, comprising:

[0019] receiving a first registration request from a device, where the first registration request is sent by the device when detecting that the device is powered on for the first time, and the first registration request carries device information of the device;

[0020] Determine a virtual account for the device according to the device information;

[0021] The virtual account is sent to the device, so that the device accesses the Internet of Things server based on the virtual account.

[0022] In a possible implementation, determining a virtual account for the device according to the device information includes:

[0023] Using the device information as a keyword, searching for a preset virtual account list, wherein the virtual account list includes a correspondence between the device information and the virtual account;

[0024] The found virtual account corresponding to the keyword is determined as the virtual account of the device.

[0025] In a possible implementation manner, before determining a virtual account for the device according to the device information, the method further includes:

[0026] receiving a user identification code from the device, the user identification code being used to identify an owner of the device;

[0027] authenticating the owner of the device based on the user identification code;

[0028] When the authentication result indicates that the owner of the device has the Internet of Things access authority, the step of determining a virtual account for the device based on the device information is performed.

[0029] In a possible implementation manner, before sending the virtual account to the device, the method further includes:

[0030] receiving a user identification code from the device, the user identification code being used to identify an owner of the device;

[0031] authenticating the owner of the device based on the user identification code;

[0032] When the authentication result indicates that the owner of the device has the Internet of Things access authority, the step of sending the virtual account to the device is performed.

[0033] In a possible implementation, authenticating the owner of the device according to the user identification code includes:

[0034] Using the user identification code as a keyword, searching a preset legal user list, wherein the legal user list includes user identification codes of users with Internet of Things access rights;

[0035] When the user identification code is found in the legal user list, an authentication result is obtained for identifying that the owner of the device has the right to access the Internet of Things;

[0036] In the case where the user identification code is not found in the legal user list, an authentication result is obtained for identifying that the owner of the device does not have the Internet of Things access authority.

[0037] In a possible implementation manner, after sending the virtual account to the device so that the device accesses the Internet of Things server based on the virtual account, the method further includes:

[0038] receiving a second registration request from the device, wherein the second registration request carries a user account, and the user account is input by a user;

[0039] Register the user account on the local end so that the device can access the Internet of Things server based on the user account.

[0040] In a possible implementation manner, after registering the user account on the local end, the method further includes:

[0041] Delete the virtual account of the device.

[0042] In a third aspect, an embodiment of the present invention provides a device for accessing a network, including:

[0043] a sending module, configured to send a first registration request to an IoT server in response to detecting that the device is powered on for the first time, wherein the first registration request carries device information of the device, so that the IoT server determines a virtual account for the device according to the device information;

[0044] A receiving module, used for receiving the virtual account from the Internet of Things server;

[0045] An access module is used to access the Internet of Things server based on the virtual account.

[0046] In a fourth aspect, an embodiment of the present invention provides a device for accessing a network, the device being applied to an Internet of Things server, comprising:

[0047] A receiving module, configured to receive a first registration request from a device, wherein the first registration request is sent by the device when detecting that the device is powered on for the first time, and the first registration request carries device information of the device;

[0048] A determination module, configured to determine a virtual account for the device according to the device information;

[0049] The sending module is used to send the virtual account to the device, so that the device can access the Internet of Things server based on the virtual account.

[0050] In a fifth aspect, an embodiment of the present invention provides an electronic device, comprising: a processor and a memory, wherein the processor is used to execute a device network access program stored in the memory to implement the device network access method described in any one of the first aspect or the second aspect.

[0051] In a sixth aspect, an embodiment of the present invention provides a storage medium, characterized in that the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the device access method described in any one of the first aspect or the second aspect.

[0052] The device access scheme provided by the embodiment of the present invention sends a first registration request to the Internet of Things server in response to detecting that the device is turned on for the first time. The first registration request carries the device information of the device, so that the Internet of Things server determines a virtual account for the device according to the device information; then receives the virtual account from the Internet of Things server; and finally accesses the Internet of Things server based on the virtual account. This scheme can achieve the technical effect of enabling the device to access the Internet of Things server as soon as it leaves the factory, eliminating the need for login and reducing the workload of personnel. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0054] Figure 1 A schematic diagram of a flow chart of a method for accessing a device to a network provided by an embodiment of the present invention;

[0055] Figure 2 A schematic diagram of a flow chart of another device network access method provided by an embodiment of the present invention;

[0056] Figure 3 A schematic diagram of a flow chart of another device network access method provided by an embodiment of the present invention;

[0057] Figure 4 A schematic diagram of a flow chart of another device network access method provided by an embodiment of the present invention;

[0058] Figure 5 An interactive diagram of a device network access method provided by an embodiment of the present invention;

[0059] Figure 6 A schematic diagram of the structure of a device network access apparatus provided by an embodiment of the present invention;

[0060] Figure 7 A schematic diagram of the structure of another device network access apparatus provided by an embodiment of the present invention;

[0061] Figure 8 A schematic diagram of the structure of a network access device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0062] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0063] The terms "including" and "having" in the embodiments of the present invention are used to express an open-ended inclusive meaning, and mean that in addition to the listed elements / components / etc., there may be other elements / components / etc.; the terms "first" and "second" etc. are used only as labels and are not intended to limit the quantity of their objects. In addition, the different elements and regions in the drawings are only schematically shown, so the present invention is not limited to the sizes or distances shown in the drawings.

[0064] To facilitate understanding of the embodiments of the present invention, specific embodiments will be further explained below in conjunction with the accompanying drawings. The embodiments do not constitute a limitation on the embodiments of the present invention.

[0065] The Internet of Things (IoT) refers to a network that connects any object to the Internet through information sensing devices such as radio frequency identification, infrared sensors, global positioning systems, laser scanners, etc., according to agreed protocols, to exchange and communicate information, so as to achieve intelligent identification, positioning, tracking, monitoring and management of objects.

[0066] Virtual phone numbers are internet-based phone numbers, meaning they are transmitted over the internet and are not linked to any specific device. How virtual phone numbers work should not be thought of in the same way as phone numbers connected to landlines or smartphones. These numbers originate in the cloud and are tied to an existing phone number that the user already has.

[0067] Figure 1 A schematic diagram of a device access method provided by an embodiment of the present invention. The execution subject of the embodiment of the present invention is a device. A virtual account is obtained by sending a network access request on the device, and the virtual account is used to complete the purpose of accessing the Internet of Things server. Figure 1 According to the diagram provided, the device network access method specifically includes:

[0068] S101. In response to detecting that the device is powered on for the first time, the device sends a first registration request to an Internet of Things server. The first registration request carries device information of the device, so that the Internet of Things server determines a virtual account for the device according to the device information.

[0069] The embodiment of the present invention is applied to the process of device access to the Internet of Things server. The device mentioned here can be, but is not limited to, smart home appliances, production equipment or mechanical equipment, such as televisions, computers or mobile phones. The first boot mentioned here can be understood as the first boot and connection to the mobile network after the device is produced and assembled. The first registration request mentioned here can be understood as a request for the device to access the Internet of Things server. The device information mentioned here can be understood as the identification information for requesting access to the Internet of Things server, and the specific information of the device that issues the request is identified through the device information, which may include but is not limited to information such as the device identification code and / or the device production batch code, and may also include information such as the date when the device leaves the factory, the device model or the name of the operating system supported by the device. The virtual account mentioned here can be understood as a cloud number implemented based on virtual phone number technology. This number is used to replace the real number required in the device, but does not support functions such as making calls or sending text messages, which is different from the phone number. The virtual account provided in the embodiment of the present invention can be an account in the form of any number of digits, letters or Chinese characters.

[0070] Furthermore, after the device is manufactured, it is powered on and connected to the Internet, all functions of the device are activated, and at the same time, the device sends a first registration request carrying device information to the Internet of Things server, so that the Internet of Things server determines a virtual account for the device based on the device information.

[0071] S102: The device receives a virtual account from an IoT server.

[0072] S103: The device accesses the IoT server based on the virtual account.

[0073] The access mentioned here can be understood as registering an account through the IoT server, logging in, and truly connecting the device to the IoT server, so that the device can use the resources and functions provided by the IoT as soon as it is turned on.

[0074] Furthermore, after the device sends the first registration request for registering a virtual account to the IoT server, the IoT server receives the request and randomly generates the final virtual account of the device based on the device information carried in the first registration request or determines it from a preset virtual account list, and feeds it back to the device. After receiving the virtual account, the device automatically logs in based on the IoT service function software pre-installed on the device, completing the purpose of accessing the IoT server, and achieving the effect that the device can directly use the IoT service function without manual login.

[0075] In a possible example scenario, the hotel purchased 100 televisions, which need to be connected to the IOT server separately. The TV production factory produces 100 TVs according to customer needs. When the TV is turned on for the first time, it is first connected to the Internet. After connecting to the network, the request for access to IOT is sent to the IOT server through the TV. After receiving the request, the IOT server identifies the TV currently requested based on the device information of the TV carried in the request (including one or more of the following: TV model, TV ID, production batch code, and TV identification code, etc.), and provides the TV with a temporary initialization account generated by the IOT server as a virtual account. After the TV obtains the virtual account and confirms that the TV has completed the operation of registering the IOT service function, it uses the virtual account to directly access the IOT server, completing the purpose of supporting the IOT service function when the TV leaves the factory. After the user purchases it, the registration and login steps are exempted, and the IOT service function can be used.

[0076] The device access method provided by the embodiment of the present invention sends a first registration request to the Internet of Things server in response to detecting that the device is turned on for the first time. The first registration request carries the device information of the device, so that the Internet of Things server determines a virtual account for the device according to the device information; then receives the virtual account from the Internet of Things server; and finally accesses the Internet of Things server based on the virtual account. This solution can achieve the technical effect of automatically accessing the Internet of Things server when the device leaves the factory, achieving manual login-free and reducing the workload of personnel.

[0077] Figure 2 A flowchart of another device access method provided by an embodiment of the present invention. The execution subject of the embodiment of the present invention is an Internet of Things server. The Internet of Things server receives a network access request from a device, determines a virtual account for the device, and sends the virtual account to the device so that the device can access the Internet of Things server using the virtual account. Figure 2 According to the diagram provided, the device network access method specifically includes:

[0078] S201. The Internet of Things server receives a first registration request from a device. The first registration request is sent by the device when it is detected that the device is turned on for the first time. The first registration request carries device information of the device.

[0079] S202: The IoT server determines a virtual account for the device based on the device information.

[0080] S203: The IoT server sends the virtual account to the device, so that the device accesses the IoT server based on the virtual account.

[0081] The embodiment of the present invention is applied to an Internet of Things server, that is, an IOT server, which receives and processes a request of a device to access an IOT service function.

[0082] Furthermore, after the device is turned on and connected to the Internet, the IoT server receives a request from the device to access the IoT server, identifies the designated device sending the request based on the device information provided by the device, assigns a virtual account to the device, and sends the virtual account to the requesting device, so that the device can access the IoT server based on the virtual account.

[0083] In a possible example scenario, when the device is turned on for the first time after it is shipped and connected to the mobile network, the IOT server communicates with the device. The IOT server receives the request sent by the device to apply for access to the IOT server, and obtains the device information of the device after parsing the request, including information such as the device identification code ID, production batch code, and device model. The IOT server identifies the device that issued the request by referring to the device identification code, and selects a number as a virtual account by referring to the production batch code and other device information to complete the registration and login operation of the virtual account on the IOT server. The determined virtual account is then sent to the device. After the device obtains the virtual account, it can directly access the IOT server, completing the purpose of starting the IOT service function when the device is turned on after purchase, greatly reducing labor costs.

[0084] The device access method provided by the embodiment of the present invention is applied to an Internet of Things server. The Internet of Things server receives a first registration request from a device, and the first registration request carries device information of the device. The Internet of Things server determines a virtual account for the device based on the device information. The virtual account is sent to the device so that the device can access the Internet of Things server based on the virtual account. In this way, the technical effect of enabling the device to access the Internet of Things server as soon as it leaves the factory and log in without reducing the workload of personnel can be achieved.

[0085] Figure 3 A schematic diagram of a flow chart of another method for device network access provided by an embodiment of the present invention. The execution subject of the embodiment of the present invention is a device. Figure 3 This is introduced on the basis of the first embodiment. Figure 3 According to the diagram provided, the device network access method specifically includes:

[0086] S301. In response to detecting that the device is powered on for the first time, the device sends a first registration request to an IoT server. The first registration request carries device information of the device, so that the IoT server determines a virtual account for the device according to the device information.

[0087] The embodiment of the present invention is applied to the process of accessing a device to an Internet of Things server. The device mentioned here may be, but is not limited to, a smart home appliance, production equipment or mechanical equipment, such as a television, a computer or a mobile phone.

[0088] The first boot mentioned here can be understood as the first time the device is turned on and connected to the mobile network after production and assembly. The first registration request mentioned here can be understood as a request for the device to access the Internet of Things (IOT) server. The device information mentioned here can be understood as the identification information for requesting access to the IOT server. The specific information of the device that issued the request is identified through the device information, which may include but is not limited to information such as the device identification code, the device production batch code or the user identification code. It may also include information such as the date when the device was manufactured, the device model or the name of the operating system supported by the device.

[0089] The virtual account mentioned here can be understood as a cloud number implemented based on virtual phone number technology. This number is used to replace the real number required in the device, but does not support functions such as making calls or sending text messages. Different from the phone number, the virtual account provided in the embodiment of the present invention can be an account with any number of digits, letters or Chinese characters. For example, the virtual number may use the actual number of the staff. That is: the front-line deployment personnel report their own numbers to the server in advance. When deploying, you only need to enter your mobile phone number into the TV to complete the registration of the IOT device (with an account), but this method is particularly risky, as follows: the entry / resignation of employees will make it extremely difficult to maintain the server account; once the hotel fails to log in to its own number in time, all the equipment will be under the name of the deployment personnel, which has great security risks, so the embodiment of the present invention generally uses the factory batch code of the equipment as the virtual account.

[0090] Furthermore, when the device is manufactured and shipped out of the factory, the device is turned on and connected to the Internet, and all functions of the device are activated. At the same time, the device sends a first registration request carrying device information to the IoT server, so that the IoT server determines a virtual account for the device based on the device information.

[0091] S302, the device outputs a visual interface.

[0092] S303: The device obtains a user identification code input by the user on the visual interface.

[0093] S304: The device obtains a user identification code of the device, where the user identification code is used to identify the owner of the device.

[0094] The visual interface mentioned here can be understood as a display interface set at a designated position of the device. This display interface is used to obtain input information and parse and process the input information by sending the received information to the manager of the device. The user identification code mentioned here can be understood as an identification code to distinguish the user name, which can be in the form of numbers, letters, text, or a combination of multiple forms. It can be, but is not limited to, a user identification code set by the user.

[0095] In a possible instance scenario, a hotel purchases 100 televisions, which are turned on and connected to the Internet after installation. An input interface is displayed on the televisions, reminding hotel managers to enter the identification code used by the hotel as the user name, such as "Sheraton Heping Road No. 22". The television receives the identification code representing the hotel name entered by the user through the input serial port, preparing for the next step in which the television sends the received user name to the IOT server for identification.

[0096] S305: The device sends a user identification code to the Internet of Things server, so that the Internet of Things server authenticates the owner of the device according to the user identification code, and sends a virtual account to the device if the authentication result indicates that the owner of the device has Internet of Things access authority.

[0097] The authentication mentioned here can be understood as the process of identification, matching or judgment. It is used to identify the owner of the device after identifying the user identification code, and to determine whether the owner of the device has the authority to access the network or make changes.

[0098] In a possible example scenario, after the hotel manager inputs the hotel identification code set by the hotel into the purchased TV, the TV sends a network access request to the IOT server, and the request carries the hotel identification code identified by the hotel name. The IOT server first identifies and authenticates the hotel identification code to determine which hotel the user who sent the network access request refers to, and can obtain the corresponding user information. It is further determined whether the hotel has IOT network access rights. If the authentication result indicates that the hotel that owns the TV has access to the IOT server, the virtual account determined for the hotel's network access will be sent to the TV according to the pre-set rules.

[0099] S306: The device receives a virtual account from the IoT server.

[0100] S307: The device accesses the IoT server based on the virtual account.

[0101] Furthermore, after the device sends the first registration request for registering a virtual account to the IoT server, the IoT server receives the request and randomly generates the final virtual account of the device according to the device information carried in the first registration request or determines it from a preset virtual account list, and feeds it back to the device. After receiving the virtual account, the device logs in according to the IoT service function software pre-installed on the device, completing the purpose of accessing the IoT server, and realizing the registration method of the device using the virtual account, so that the IoT service function can be used directly without manual login.

[0102] S308: The device sends a second registration request to the IoT server. The second registration request carries a user account. The user account is input by the user, so that the IoT server registers the user account on the local end.

[0103] S309: The device accesses the IoT server based on the user account.

[0104] The second registration request mentioned here can be understood as a network access request of other accounts different from the virtual account. The attributes of the user account mentioned here can be the same as the virtual account, that is, both can be attributes of the phone number.

[0105] Furthermore, when the user wants to add a real account, the user enters the real user account to be replaced in the visual input interface of the device, and the device sends a request carrying the user account to the IoT server. The IoT server registers a real user account on the local side according to the provided account, and after the registration is successful, the registered user account is fed back to the device. The device uses the replaced user account to complete the task of accessing the IoT server, thereby achieving the purpose of changing the user account.

[0106] The embodiment of the present invention provides a method for device access to the network. When a user uses the device for the first time, the device automatically sends a network access request to an Internet of Things server. The Internet of Things server identifies the device through the device identification code carried in the received network access request, and feeds back the factory batch code in the device information as the virtual account of the device to the device. After receiving the virtual account, the device completes the activation of the Internet of Things service function on the device, and achieves the purpose of using the Internet of Things service function after leaving the factory, which greatly reduces the manual workload. When the user enters a customized user account on the visual interface of the device, the device sends a request to the Internet of Things server to replace the virtual account or the Internet of Things server usage account of the current device. After receiving the user account, the Internet of Things server automatically transfers the device usage authority to the user account and feeds back to the device. The device can access the Internet of Things server again using the registered user account. The technical effect of enabling the device to access the Internet of Things server after leaving the factory and reducing the workload of personnel without logging in is achieved.

[0107] Figure 4A schematic diagram of a flow chart of another device network access method provided by an embodiment of the present invention. The execution subject of the embodiment of the present invention is an Internet of Things server. Figure 4 This is introduced based on the second embodiment. Figure 4 According to the diagram provided, the device network access method specifically includes:

[0108] S401. The Internet of Things server receives a first registration request from a device. The first registration request is sent by the device when it is detected that the device is turned on for the first time. The first registration request carries device information of the device.

[0109] S402: The IoT server searches for a preset virtual account list using the device information as a keyword, where the virtual account list includes a correspondence between the device information and the virtual account.

[0110] S403: The IoT server determines the found virtual account corresponding to the keyword as the virtual account of the device.

[0111] S404: The IoT server sends the virtual account to the device, so that the device accesses the IoT server based on the virtual account.

[0112] The embodiment of the present invention is applied to an Internet of Things server, that is, an IOT server, which receives and sends a request for accessing an IOT service function of a device.

[0113] The device information mentioned here includes the device identification code and the device production batch code. The virtual account list mentioned here can be understood as the mapping relationship of the rules for determining the virtual account according to the device information. For example, if the virtual account is selected by the production batch code included in the device information, the virtual account list is the correspondence between the device's factory information and the corresponding production batch code.

[0114] In a possible example scenario, after the TV is turned on and connected to the Internet, the IoT server and the TV form wireless communication. After the IoT server receives the request sent by the TV to access the IoT server, it identifies the TV and obtains the TV information, which includes the TV identification code, TV model, TV code, production date and production batch code. This information is compared with the pre-set virtual account list to find out whether there is information in the virtual account list that is the same as the production batch code of the TV. If the production batch code of the TV is found in the virtual account list, it is determined that the virtual account of the TV is the production batch code of the corresponding TV. The virtual account is sent to the TV so that the TV can access the IoT server based on the virtual account. The TV's network access request is completed.

[0115] S405: The IoT server receives a second registration request from the device. The second registration request carries a user account, which is input by the user.

[0116] S406: The IoT server registers the user account on the local end, so that the device can access the IoT server based on the user account.

[0117] S407: The IoT server deletes the virtual account of the device.

[0118] In a possible example scenario, when the hotel manager wants to replace the currently logged-in account (which can be a virtual account or a real user account), the hotel manager enters the user account that he wants to change through the display interface on the TV, and sends the request to change the account to the IOT server through the TV. When the IOT server receives a new request, it first determines which user sent the request. When it is determined that it is a hotel application with permission to use, it re-registers a user account for the hotel according to the registration steps, so that the device can access the IOT server based on the user account to implement the account change operation. Similarly, the virtual account deletion request set when the TV is out of the house can also be sent to the IOT server according to the hotel manager. The IOT server finds the virtual account to be deleted through the operation of identification and comparison with the virtual account list, deletes the virtual account of the device according to the request, and completes the operation of deleting the virtual account.

[0119] The following is a unified description of S402 and S403:

[0120] Step 1: The IoT server receives a user identification code from the device, which is used to identify the owner of the device.

[0121] Step 2: The IoT server authenticates the owner of the device based on the user identification code. This includes:

[0122] The Internet of Things server uses the user identification code as a keyword to search for a preset legal user list, where the legal user list includes the user identification codes of users with Internet of Things access rights;

[0123] When the Internet of Things server finds the user identification code from the list of legal users, it obtains an authentication result for identifying that the owner of the device has the Internet of Things access authority;

[0124] When the Internet of Things server fails to find the user identification code in the legal user list, it obtains an authentication result for identifying that the owner of the device does not have the Internet of Things access authority.

[0125] When the device sends a network access request for the first time and no user identification code is entered, the IoT server executes the step of sending the virtual account to the device if the authentication result indicates that the owner of the device has IoT access authority.

[0126] After the device inputs the user identification code and the authentication result indicates that the owner of the device has the right to access the Internet of Things, the Internet of Things server executes the step of determining a virtual account for the device according to the device information.

[0127] In a possible example scenario, the hotel manager turns on the purchased TV and connects it to the Internet. At this time, the TV automatically sends a network access request. After receiving the request, the IOT server obtains the user identification code, matches the user identification code with the pre-set legal user list, and determines the user's use authority. After the IOT server finds the user identification code and determines that the user has the use authority, the set virtual account is sent to the TV, so that the TV uses the virtual account to register the IOT server. The operation of the TV without login is realized, and the effect of using the IOT service function can be used after turning on the TV. Then the hotel manager enters the pre-set user identification code through the input interface displayed on the TV, and sends the user identification code to the IOT server through the TV. After the IOT server receives the user identification code, it is compared with the pre-set user list. After determining that the user has the use authority, the virtual account is sent to the device, so that the TV uses the virtual account to access the IOT server. It can achieve the technical effect of the device being able to access the IOT server as soon as it leaves the factory, and reducing the workload of personnel without login.

[0128] A device access method provided by an embodiment of the present invention receives a first registration request from a device, and the first registration request carries device information of the device. The preset virtual account list is searched with the device information as a keyword, and the virtual account list includes the correspondence between the device information and the virtual account. Then the virtual account corresponding to the keyword is determined as the virtual account of the device. Finally, the virtual account is sent to the device so that the device can access the Internet of Things server based on the virtual account. The account for the device to access the network can also be changed or deleted. The technical effect of enabling the device to access the Internet of Things server as soon as it leaves the factory and log-in-free to reduce the workload of personnel can be achieved.

[0129] In one possible example scenario, Figure 5 This is an interactive diagram of the device network access method provided by an embodiment of the present invention. Figure 5 According to the diagram provided, the steps of the device access method include:

[0130] S501: In response to detecting that the device is powered on for the first time, the device sends a first registration request to an Internet of Things server.

[0131] S502, the IoT server receives a first registration request from a device;

[0132] S503, the IoT server determines a virtual account for the device according to the device information;

[0133] S504, the IoT server sends the virtual account to the device;

[0134] S505, the device receives a virtual account from the IoT server;

[0135] S506, the device accesses the IoT server based on the virtual account;

[0136] S507, the device sends a second registration request to the IoT server;

[0137] S508, the IoT server receives a second registration request from the device;

[0138] S509, the IoT server determines a user account for the device according to the user account;

[0139] S510, the IoT server sends the user account to the device;

[0140] S511, the device receives a user account from the IoT server;

[0141] S512: The device accesses the IoT server based on the user account.

[0142] Through this interactive process, the equipment can be connected to the IoT server as soon as it leaves the factory, achieving the technical effect of eliminating the need for login and reducing the workload of personnel.

[0143] Corresponding to the above-mentioned embodiment of the device binding method, the present invention also provides a block diagram of an embodiment of an apparatus.

[0144] Figure 6 A schematic diagram of the structure of a device accessing the network provided by an embodiment of the present invention. Figure 6 According to the diagram provided, the device network access device specifically includes:

[0145] A sending module 61 is used for sending a first registration request to an IoT server in response to detecting that the device is powered on for the first time, where the first registration request carries device information of the device, so that the IoT server determines a virtual account for the device according to the device information;

[0146] A receiving module 62, used for receiving a virtual account from an IoT server;

[0147] The access module 63 is used to access the Internet of Things server based on the virtual account.

[0148] The device network access device provided in this embodiment may be as follows Figure 6 The device access device shown in the figure can be executed as follows Figure 1 , 3 , all steps of the 5 device access methods, and then achieve Figure 1 , 3、5 The technical effect of the device access method shown in Figure 5, please refer to Figure 1 , 3 , 5. For the sake of brevity, the related descriptions are not repeated here.

[0149] Figure 7 A schematic diagram of the structure of another device access device provided by an embodiment of the present invention. Figure 7 According to the diagram provided, the device network access device specifically includes:

[0150] A receiving module 71 is used to receive a first registration request from a device, where the first registration request is sent by the device when it is detected that the device is powered on for the first time, and the first registration request carries device information of the device;

[0151] A determination module 72, configured to determine a virtual account for a device according to the device information;

[0152] The sending module 73 is used to send the virtual account to the device so that the device can access the Internet of Things server based on the virtual account.

[0153] The device network access device provided in this embodiment may also be as follows Figure 7 The device access device shown in the figure can be executed as follows Figure 2 , 4 , all steps of the 5 device access methods, and then achieve Figure 2 , 4 、5 The technical effect of the device access method shown in Figure 5, please refer to Figure 2 , 4 , 5. For the sake of brevity, the related descriptions are not repeated here.

[0154] Figure 8 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention, Figure 8 The electronic device 800 shown includes: at least one processor 801, a memory 802, at least one network interface 804 and other user interfaces 803. The various components in the electronic device 800 are coupled together via a bus system 805. It is understood that the bus system 805 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 805 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 805 is not described in detail. Figure 8 Various buses are labeled as bus system 805 .

[0155] The user interface 803 may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touch pad, or a touch screen).

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

[0157] In some implementations, the memory 802 stores the following elements, executable units or data structures, or a subset thereof, or an extended set thereof: an operating system 8021 and an application program 8022 .

[0158] The operating system 8021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application program 8022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., which are used to implement various application services. The program for implementing the method of the embodiment of the present invention can be included in the application program 8022.

[0159] In the embodiment of the present invention, by calling the program or instruction stored in the memory 902, specifically, the program or instruction stored in the application 9022, the processor 901 is used to execute the following Figure 1-5 The method steps provided by each method embodiment are shown.

[0160] The method disclosed in the above embodiment of the present invention can be applied to the processor 801, or implemented by the processor 801. The processor 801 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 801 or the instruction in the form of software. The above processor 801 can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiment of the present invention can be directly embodied as a hardware decoding processor to execute, or the hardware and software units in the decoding processor can be executed. The software unit can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 802, and the processor 801 reads the information in the memory 802 and completes the steps of the above method in combination with its hardware.

[0161] It is understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPDevice, DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in the present application, or a combination thereof.

[0162] For software implementation, the technology described herein can be implemented by a unit that performs the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.

[0163] The electronic device provided in this embodiment may be Figure 8 The electronic device shown in FIG. 1 may perform the following steps: Figure 1-5 All steps of the device access method in the network, so as to achieve Figure 1-5 The technical effect of the device access method shown is shown in the figure. For details, please refer to Figure 1-5 For the sake of brevity, the relevant description is not repeated here.

[0164] The embodiment of the present invention also provides a storage medium (computer-readable storage medium). The storage medium here stores one or more programs. The storage medium may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state drive; the memory may also include a combination of the above-mentioned types of memory.

[0165] When one or more programs in the storage medium can be executed by one or more processors, the device access method executed on the device access device side can be implemented.

[0166] The processor is used to execute the stored in the memory. Figure 1-5 The related procedures of the method embodiment shown in the figure are used to implement the following steps performed on the electronic device side: Figure 1-5 The steps of the relevant method of the method embodiment shown.

[0167] The professionals should further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0168] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0169] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for device accessing a network, characterized in that: include: In response to detecting that the device is powered on for the first time, sending a first registration request to an Internet of Things server, where the first registration request carries device information of the device, so that the Internet of Things server determines a virtual account for the device according to the device information; Receiving the virtual account from the IoT server; Accessing the Internet of Things server based on the virtual account; The accessing the Internet of Things server based on the virtual account includes: Sending a second registration request to the Internet of Things server, where the second registration request carries a user account, and the user account is input by the user, so that the Internet of Things server registers the user account on the local end; Access the Internet of Things server based on the user account.

2. The method according to claim 1, characterized in that Before receiving the virtual account from the Internet of Things server, the method further includes: Obtaining a user identification code of the device, where the user identification code is used to identify an owner of the device; The user identification code is sent to the Internet of Things server so that the Internet of Things server authenticates the owner of the device according to the user identification code, and sends the virtual account to the device if the authentication result indicates that the owner of the device has Internet of Things access authority.

3. The method according to claim 2, characterized in that The obtaining of the user identification code of the device comprises: Output visualization interface; The user identification code input by the user on the visual interface is obtained.

4. A method for device accessing a network, characterized in that: The method is applied to an Internet of Things server, comprising: receiving a first registration request from a device, where the first registration request is sent by the device when detecting that the device is powered on for the first time, and the first registration request carries device information of the device; Determine a virtual account for the device according to the device information; Sending the virtual account to the device, so that the device accesses the Internet of Things server based on the virtual account; The sending the virtual account to the device so that the device accesses the Internet of Things server based on the virtual account includes: receiving a second registration request from the device, wherein the second registration request carries a user account, and the user account is input by a user; Register the user account on the local end so that the device can access the Internet of Things server based on the user account.

5. The method according to claim 4, characterized in that The determining a virtual account for the device according to the device information includes: Using the device information as a keyword, searching for a preset virtual account list, wherein the virtual account list includes a correspondence between the device information and the virtual account; The found virtual account corresponding to the keyword is determined as the virtual account of the device.

6. The method according to claim 4, characterized in that Before determining a virtual account for the device according to the device information, the method further includes: receiving a user identification code from the device, the user identification code being used to identify an owner of the device; authenticating the owner of the device based on the user identification code; When the authentication result indicates that the owner of the device has the Internet of Things access authority, the step of determining a virtual account for the device based on the device information is performed.

7. The method according to claim 4, characterized in that Before sending the virtual account to the device, the method further includes: receiving a user identification code from the device, the user identification code being used to identify an owner of the device; authenticating the owner of the device based on the user identification code; When the authentication result indicates that the owner of the device has the Internet of Things access authority, the step of sending the virtual account to the device is performed.

8. The method according to claim 6 or 7, characterized in that: The authenticating the owner of the device according to the user identification code comprises: Using the user identification code as a keyword, searching a preset legal user list, wherein the legal user list includes user identification codes of users with Internet of Things access rights; When the user identification code is found in the legal user list, an authentication result is obtained for identifying that the owner of the device has the right to access the Internet of Things; In the case where the user identification code is not found in the legal user list, an authentication result is obtained for identifying that the owner of the device does not have the Internet of Things access authority.

9. The method according to claim 5, characterized in that After registering the user account on the local end, the method further includes: Delete the virtual account of the device.

10. A device for accessing a network, characterized in that: include: a sending module, configured to send a first registration request to an IoT server in response to detecting that the device is powered on for the first time, wherein the first registration request carries device information of the device, so that the IoT server determines a virtual account for the device according to the device information; A receiving module, used for receiving the virtual account from the Internet of Things server; An access module, used to access the Internet of Things server based on the virtual account; The access module is further used for: Sending a second registration request to the Internet of Things server, where the second registration request carries a user account, and the user account is input by the user, so that the Internet of Things server registers the user account on the local end; Access the Internet of Things server based on the user account.

11. A device for accessing a network, characterized in that: The device is applied to an Internet of Things server, comprising: A receiving module, configured to receive a first registration request from a device, wherein the first registration request is sent by the device when detecting that the device is powered on for the first time, and the first registration request carries device information of the device; A determination module, configured to determine a virtual account for the device according to the device information; A sending module, used for sending the virtual account to the device, so that the device can access the Internet of Things server based on the virtual account; The sending module is further used for: receiving a second registration request from the device, wherein the second registration request carries a user account, and the user account is input by a user; Register the user account on the local end so that the device can access the Internet of Things server based on the user account.

12. An electronic device, characterized in that: include: A processor and a memory, wherein the processor is used to execute a device network access program stored in the memory to implement the device network access method according to any one of claims 1 to 3 or 4 to 9.

13. A storage medium, characterized in that: The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the device network access method described in any one of claims 1 to 3 or 4 to 9.

Citation Information

Patent Citations

  • Method and apparatus for registering devices on Internet of things platform

    CN104967595A

  • Privacy protection method, device and user terminal

    CN105393523A