WO2024032085A1 - Terminal device reset method, system and apparatus, intelligent device, and storage medium - Google Patents

Terminal device reset method, system and apparatus, intelligent device, and storage medium Download PDF

Info

Publication number
WO2024032085A1
WO2024032085A1 PCT/CN2023/096105 CN2023096105W WO2024032085A1 WO 2024032085 A1 WO2024032085 A1 WO 2024032085A1 CN 2023096105 W CN2023096105 W CN 2023096105W WO 2024032085 A1 WO2024032085 A1 WO 2024032085A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal device
terminal
binding code
cloud
identification
Prior art date
Application number
PCT/CN2023/096105
Other languages
French (fr)
Chinese (zh)
Inventor
廖述镇
Original Assignee
深圳Tcl新技术有限公司
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 深圳Tcl新技术有限公司 filed Critical 深圳Tcl新技术有限公司
Publication of WO2024032085A1 publication Critical patent/WO2024032085A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data
    • H04W8/245Transfer of terminal data from a network towards a terminal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/009Security arrangements; Authentication; Protecting privacy or anonymity specially adapted for networks, e.g. wireless sensor networks, ad-hoc networks, RFID networks or cloud networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/40Security arrangements using identity modules
    • H04W12/48Security arrangements using identity modules using secure binding, e.g. securely binding identity modules to devices, services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities

Definitions

  • This application relates to the technical field of the Internet of Things, and specifically relates to a terminal equipment reset method, system, device, intelligent device and storage medium.
  • Embodiments of the present application provide a method, system, device, smart device, and storage medium for resetting a terminal device, which can enable the cloud to accurately reset the device, ensure the security of historical user information, and thereby improve the subsequent registration success rate of the device.
  • Embodiments of this application provide a method for resetting a terminal device, which is applied to the cloud.
  • the method includes:
  • the terminal device After the terminal device accesses the routing network, receive the binding code and device identification sent by the terminal device, wherein the binding code is sent to the terminal device after the control terminal establishes a network connection with the terminal device;
  • the binding relationship between the terminal device and historical users is reset.
  • the method includes:
  • the method for resetting the terminal device further includes:
  • the terminal device is an unregistered device, generate a device ID according to the device identification of the terminal device;
  • the resetting method of the terminal device further includes:
  • querying whether the terminal device is a registered device according to the device identifier includes:
  • binding code and device identification are compliant, query whether the terminal device is registered based on the device identification. equipment.
  • generating a binding code corresponding to the control terminal based on a control terminal request includes:
  • generating a binding code corresponding to the control terminal based on the identification information of the control terminal includes:
  • a binding code corresponding to the control terminal is generated based on the identification information of the control terminal.
  • the resetting method of the terminal device further includes:
  • querying whether the terminal device is a registered device according to the device identifier includes:
  • the terminal device has not been unbound from other bound user account identifiers, it is determined that the terminal device has been registered
  • the terminal device has never been bound to a historical user account ID before, or if the terminal device has been bound to a historical user account ID but has now been unbound from the historical user account ID, then It is determined that the terminal device is not registered.
  • checking whether the binding code and device identification sent by the terminal device are compliant includes:
  • the device ID matches the reference device ID and the binding code matches the preset binding code, it is determined that the device ID and binding code are compliant.
  • checking whether the binding code and device identification sent by the terminal device are compliant includes:
  • the equipment identification duplicates the reference equipment identification, or the equipment type in the equipment identification duplicates the equipment type in the reference equipment identification, it is determined that the equipment identification matches the reference equipment identification;
  • binding code is repeated with the default binding code or the binding code and the default binding code have the same format, it is determined that the binding code matches the default binding code.
  • the binding code acquisition request includes a user identity authentication token
  • generating the binding code corresponding to the control terminal based on the control terminal request may include:
  • An embodiment of the present application also provides a method for resetting a terminal device, which is applied to the terminal device.
  • the method includes:
  • the embodiment of the present application also provides a method for resetting a terminal device, which is applied to the control end.
  • the method includes:
  • Embodiments of the present application also provide a reset system for terminal equipment.
  • the system includes a control end, a terminal equipment, and a cloud.
  • the control end detects that the terminal equipment is in reset mode, it sends a control end request to the cloud, wherein:
  • the control end request carries identification information of the control end;
  • the cloud generates a binding code corresponding to the control terminal based on the control terminal request, and sends the binding code to the control terminal;
  • the control terminal receives the binding code returned by the cloud based on the control terminal request
  • the control terminal obtains routing information of the routing network corresponding to the terminal device and the cloud;
  • the control terminal sends the routing information and the authorization code to the terminal device;
  • the terminal device accesses the routing network based on the binding code and routing information sent by the control terminal;
  • the terminal device uploads the binding code and the device identification of the terminal device to the cloud through the routing network;
  • the cloud After the terminal device accesses the routing network, the cloud receives the binding code and device identification sent by the terminal device.
  • the binding code is sent to the terminal device after the control terminal establishes a network connection with the terminal device.
  • the cloud queries whether the terminal device is a registered device according to the device identification
  • the cloud resets the binding relationship between the terminal device and the historical user.
  • another reset device for terminal equipment including:
  • a sending module configured to generate a binding code corresponding to the control terminal based on the control terminal request, and send the binding code to the control terminal;
  • the receiving module is configured to receive the binding code and device identification sent by the terminal device after the terminal device accesses the routing network, wherein the binding code is sent to the terminal after the control terminal establishes a network connection with the terminal device.
  • a query module configured to query whether the terminal device is a registered device according to the device identification
  • a reset module configured to reset the binding relationship between the terminal device and historical users if the terminal device is a registered device.
  • a reset device for terminal equipment including:
  • the access module is used to access the routing network based on the binding code and routing information sent by the control terminal;
  • An upload module configured to upload the binding code and the device identification of the terminal device to the cloud through the routing network, so as to reset the terminal device based on the device identification of the terminal device through the cloud.
  • an intelligent device including a processor and a memory.
  • a computer program is stored in the memory.
  • the processor calls the computer program in the memory, it executes the method provided by the embodiment of the present application. Any method of resetting terminal equipment.
  • a storage medium is also provided.
  • the storage medium is used to store a computer program.
  • the computer program is loaded by the processor to execute any of the terminal device resetting methods provided by the embodiments of the present application. .
  • control end when the control end detects that the terminal device is in reset mode, it sends a control end request to the cloud, where the control end request carries the identification information of the control end; the cloud end generates a control end request related to the control end based on the control end request.
  • Figure 1 is a schematic flowchart of a method for resetting a terminal device provided by an embodiment of the present application
  • Figure 2 is another schematic flowchart of a method for resetting a terminal device provided by an embodiment of the present application
  • Figure 3 is another schematic flowchart of a method for resetting a terminal device provided by an embodiment of the present application
  • Figure 4 is a schematic diagram of data transmission between the control end, the terminal equipment and the cloud in the reset system of the terminal equipment provided by the embodiment of the present application;
  • Figure 5 is a schematic diagram of a reset device of a terminal device provided by an embodiment of the present application.
  • Figure 6 is a schematic diagram of a reset device of a terminal device provided by an embodiment of the present application.
  • Figure 7 is a schematic diagram of a reset device of a terminal device provided by an embodiment of the present application.
  • Figure 8 is a schematic structural diagram of an intelligent device provided by an embodiment of the present application.
  • Embodiments of the present application provide a terminal equipment reset method, system, device, intelligent device, and storage medium (ie, computer-readable storage medium).
  • the reset method of the terminal device can be applied to the reset device of the terminal device.
  • the reset device of the terminal device can be integrated in an intelligent device.
  • the intelligent device can be a control end, a terminal device or a server.
  • the server can be an independent physical device.
  • a server can also be a server cluster or distributed system composed of multiple physical servers, or it can provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, Security services, Content Delivery Network (CDN), and cloud servers for basic cloud computing services such as big data and artificial intelligence platforms, but are not limited to these.
  • the server and the control terminal can be connected directly or indirectly through wired or wireless communication methods, which is not limited in this application.
  • the smart device can be a mobile phone, computer, home appliance, or wearable device, etc.
  • FIG. 1 is a schematic flowchart of a method for resetting a terminal device according to an embodiment of the present application.
  • the reset method of the terminal device can be applied to the cloud and can include:
  • the cloud may be a cloud server.
  • the control end can be a terminal independent of the terminal device, or it can be the terminal device itself. In this embodiment, the control end is a terminal independent of the terminal device.
  • the control end can be a mobile phone, a computer, or a home appliance. , or wearable devices, etc.
  • the control terminal request may be a binding code acquisition request, and the binding code acquisition request may include identification information of the control terminal.
  • the binding code may be a binding code used to bind the terminal device to the identification information of the control terminal.
  • the identification information of the control terminal may be a user account identification, such as the login ID of the control terminal.
  • the user account identification may include the user's identity information and the user's past usage information.
  • the user can enter the user's user account and password on the control terminal to log in to the control terminal, and send a reset command of the terminal device to the terminal device on the control terminal to control the entry of the terminal device.
  • Reset mode and sends a binding code acquisition request to the cloud to reset the terminal device through the binding code returned by the cloud, and bind the terminal device to the identification information of the control end.
  • the control terminal sends a binding code acquisition request carrying the user account ID to the cloud.
  • the cloud receives the binding code acquisition request carrying the user account ID sent by the control terminal, that is, the control terminal request, and obtains the identification information of the control terminal in the control terminal request. Generate a binding code corresponding to the control end based on the identification information of the control end.
  • the terminal device accesses the routing network, receive the binding code and device identification sent by the terminal device.
  • the binding code is sent to the terminal device after the control terminal establishes a network connection with the terminal device.
  • the routing network may be a wireless network accessed by the cloud.
  • the device identification may include the unique code of the terminal device and basic device information.
  • the unique code may be the IP address or MAC address of the terminal device, etc.
  • the basic device information may be the device type, location information, CPU information, memory information and Operating system version, etc.
  • the control terminal sends the binding code and the routing information of the cloud to the terminal device.
  • the routing information can be the identification information, account number, password, etc. of the router corresponding to the wireless network accessed by the cloud.
  • the routing information can be input by the user on the control end, and the control end can send the routing information and binding code to
  • the terminal device allows the control terminal to access the corresponding routing network in the cloud based on the routing information after receiving the routing information.
  • the cloud obtains a binding code based on the binding code sent by the control terminal and carries the user account ID. After generating the binding code, the cloud returns the binding code to the control terminal so that the control terminal can send the binding code to the terminal device.
  • the cloud can receive the device identification and binding code reported by the terminal device by connecting to the routing network corresponding to the cloud based on the routing information.
  • the terminal device After receiving the routing information and binding code returned by the cloud, the terminal device obtains the device identification of the terminal device, establishes a communication connection with the cloud based on the routing information, and reports the device identification and binding code of the terminal device to the cloud.
  • the cloud receives the device identification and binding code so as to reset the terminal device according to the device identification and binding code.
  • the terminal device has been bound to a historical user account ID before, that is, the terminal device has been registered but has not been reset, that is, it has not been unbound from other bound user account IDs. , it can be determined that the terminal device has been registered. If the terminal device has never been bound to a historical user account ID before, or has been bound to a historical user account ID, but has now been unbound from the historical user account ID, it can be determined that the terminal device is not registered. If it has been bound to the historical user account ID, you need to unbind the historical user account ID before binding it to the user account ID sent by the current control terminal. If it is not bound to the historical user account ID, It can be directly bound to the user account ID sent by the current control terminal.
  • the terminal device before resetting the terminal device, it is necessary to determine whether the terminal device has been registered. And because if the terminal device has been registered, the device ID of the terminal device is bound to the historical user account ID, therefore whether the terminal device is a registered device can be queried based on the device ID of the terminal device.
  • obtain the unique code in the device ID and query whether the terminal device has been bound to the historical user account ID based on the unique code. If the query finds that the terminal device has been bound to the historical user account ID, it is determined that the terminal device has been registered. If the terminal device is not found to be bound to the historical user account ID, it is determined that the terminal device is not registered.
  • terminal device If the terminal device is a registered device, reset the binding relationship between the terminal device and historical users.
  • the terminal device is a registered device
  • the registered historical user account identifier is obtained based on the device identifier; and the binding relationship between the terminal device and the historical user account identifier is released based on the device ID and the historical user account identifier.
  • the historical user account ID is the user account ID previously bound to the terminal device, which is different from the user account ID sent by the current control terminal.
  • the bound historical user account identifier based on the device ID
  • unbind the device ID from the historical user account identifier thereby unbinding the terminal device from the historical user account.
  • the binding relationship of the account ID is to reset the terminal device in the cloud.
  • the user account ID can be obtained based on the binding code; based on the device ID and the user account ID, the user account ID can be bound to the terminal device to complete the registration of the terminal device. . That is to say, first unbind the historical user account ID, and then bind it to the user account ID sent by the current control terminal.
  • the following steps may be performed:
  • the device ID may include a unique code of the device and basic device information.
  • the unique code may be the IP address or MAC address of the terminal device, etc.
  • the basic device information may be the location information, CPU information, memory information and Operating system version, etc. Since the terminal device has been registered, the device ID is stored in the terminal device, and therefore the device ID of the terminal device can be obtained based on the device identification.
  • the unique code in the device identification and the basic information of the device are packaged and encapsulated into the device identification, or the unique code in the device identification and the basic information of the device are spliced together to obtain the device ID.
  • the binding code can contain the identification information of the control terminal, that is, the user account identification. Therefore, when the cloud receives the device identification and binding code reported by the terminal device, it can obtain the user account identification of the logged in control terminal from the binding code. In order to bind the user account ID with the terminal device.
  • the user account identification and the device ID are bound to realize the binding of the user account identification and the terminal device, thereby completing the registration of the terminal device.
  • the user can log in to the user account ID on the terminal device to view the device ID of the terminal device or control the terminal device.
  • the cloud determines whether the terminal device has been registered based on the device identifier. If it is determined that the terminal device has been registered, the cloud unbinds the historical user account identifier bound to the terminal device and rebinds the user account identifier information. In this way, the terminal device is reset through the cloud after it is determined that the terminal device is registered, which improves the accuracy of resetting the terminal device.
  • the method for resetting a terminal device further includes:
  • the terminal device is an unregistered device
  • the device ID is generated based on the device identification of the terminal device; the identification information of the control end is obtained based on the binding code; based on the device ID and the identification information of the control end, a binding relationship between the terminal device and the control end is established.
  • the terminal device ID of the terminal device is directly generated based on the device ID; the user account ID is obtained based on the binding code; and the user account ID is bound to the terminal device based on the target device ID and the user account ID. , to complete the registration of the terminal device. That is to say, if the terminal device has been reset or has never been bound to a user account ID, the binding relationship between the terminal device and the user account ID is directly established based on the binding code and the device ID, thereby completing the registration of the terminal device.
  • the cloud determines whether the terminal device has been registered based on the device identifier. If it is determined that the terminal device is not registered, the cloud directly binds the user account identifier to the terminal device. If it is determined that the terminal device has been registered, the historical user account ID bound to the terminal device will be unbound, and the user account ID information will be re-bound. In this way, the terminal device is reset and registered through the cloud, and there is no need to register after receiving the reset flag reported by the terminal device. In this way, the registration can be completed accurately regardless of whether the terminal device has been reset before, which improves the accuracy of smart device registration.
  • registering the terminal device according to the device identification and binding code may include:
  • the device identifiers of multiple reference terminal devices can be pre-stored in the cloud as reference device identifiers.
  • the reference device identifier is used to match the device identifier to determine the device identifier. Whether the terminal device conforms to the reference terminal device pre-stored in the cloud.
  • the format information of the binding code can be stored in the cloud in advance, so that when the binding code is received, it can be used to determine whether the binding code is compliant based on the format of the binding code.
  • checking whether the binding code and device identification sent by the terminal device are compliant may include: obtaining the reference device identification and preset binding code pre-stored in the cloud; determining whether the device identification matches the reference device identification, and whether the binding code matches the preset binding code. Assume whether the binding code matches; if the device ID matches the reference device ID and the binding code matches the preset binding code, it is determined that the device ID and binding code are compliant. When the device identification and binding code are both compliant, query whether the terminal device is a registered device based on the device identification.
  • the device identifier overlaps with the reference device identifier, or the device type in the device identifier overlaps with the device type in the reference device identifier, it is determined that the device identifier matches the reference device identifier. If the binding code is bound to the default If the code is repeated or the binding code corresponds to the same format as the default binding code, it is determined that the binding code matches the default binding code.
  • the binding code acquisition request includes the user identity authentication token, and the binding code corresponding to the control terminal is generated based on the control terminal request, which may include:
  • the cloud can pre-store compliantly registered reference users, where the compliantly registered reference users can be the user's valid ID card information, or valid phone number information, etc. Based on the reference user, it can be determined whether the identity authentication token sent by the control end is compliant. If the identity authentication token is the same as the reference user, it is determined that the user's identity authentication token is compliant. If the user identity authentication token complies with the rules and determines that the binding code acquisition request is compliant, the user account ID corresponding to the user identity authentication token can be obtained at this time; the binding code is generated based on the user account ID.
  • the cloud when the cloud receives the binding code acquisition request, binding code and device identification, it must first determine whether the binding code acquisition request, binding code and device identification are compliant. If they are compliant, the binding code is When the fixed code and device identification are valid or safe, subsequent processing is performed on the binding code acquisition request, binding code and device identification, which can improve the security of resetting the terminal device.
  • the terminal reset method further includes: returning an authentication token corresponding to the device ID and the identification information of the control terminal to the terminal device, and returning the terminal to the control terminal. Prompt message indicating successful registration between the device and the console.
  • the device ID and user identity authentication token are returned to the terminal device; a prompt message that the device registration is successful is returned to the control terminal.
  • the cloud After detecting that the binding relationship between the terminal device and the user account ID is established, the cloud returns the device ID and user identity authentication token to the terminal device so that the terminal device can communicate with the cloud based on the device ID and user identity authentication token. And returns prompt information indicating successful registration of the terminal device to the control terminal, so as to prompt the user that the registration is successful.
  • the cloud after detecting that the terminal device is successfully registered, the cloud returns the device ID and user identity authentication token to the terminal device, and returns a prompt message indicating that the terminal device has successfully registered to the control end, so as to prompt the user that the registration is successful and improve Visualization of smart device registration.
  • Figure 2 is another schematic flowchart of a method for resetting a terminal device provided by an embodiment of the present application.
  • the reset method of the terminal device can be applied to the terminal device, including:
  • accessing the routing network based on the binding code and routing information sent by the control terminal may include: receiving the binding code and routing information sent by the control terminal.
  • the binding code and routing information sent are connected to the routing network corresponding to the cloud based on the routing information.
  • the binding code acquisition request can include the user account identification, and the binding code can be used to bind the user account identification with the terminal device.
  • the binding code is generated by the cloud based on the binding code acquisition request sent by the control terminal. , after being sent to the control terminal via the cloud, the control terminal sends it to the terminal device.
  • the routing information can be the identification information, account number, password, etc. of the router corresponding to the wireless network accessed by the cloud.
  • the routing information can be input by the user on the control end.
  • the control end can send the routing information and binding code to the terminal device. .
  • the terminal device can receive the binding code and routing information sent by the control terminal through the communication connection with the control terminal, and connect to the cloud corresponding to the router's identification information, account number, password, etc. in the routing information. Routing network to establish a communication connection with the cloud.
  • the routing network can be a local area network where the terminal device and the cloud are co-located.
  • S202 Upload the binding code and the device identification of the terminal device to the cloud through the routing network, so as to reset the terminal device based on the device identification of the terminal device through the cloud.
  • the device identification may include the unique code of the terminal device and basic device information.
  • the unique code may be the IP address or MAC address of the terminal device, etc.
  • the basic device information may be the device type, location information, CPU information, memory, etc. of the terminal device. information and operating system version, etc.
  • the terminal device reports the device identification and binding code of the terminal device to the cloud through the communication connection with the cloud, so that the terminal device can be reset based on the device identification of the terminal device through the cloud.
  • the user account ID is bound to the terminal device through the cloud based on the device ID and binding code, thereby registering the terminal device.
  • the terminal device receives the binding code and routing information sent by the control terminal; connects to the routing network according to the routing information; and reports the device identification and binding code of the terminal device to the cloud through the routing network, so that the cloud determines the binding code based on the device identification.
  • the terminal device is reset, or the terminal device is registered based on the device identification and binding code.
  • the cloud is used to reset or register the terminal device, and there is no need to reset the reset flag on the terminal device before registering. This can solve the problem that the cloud cannot receive the reset flag of the terminal device and cannot register when the network is not good, which improves Smart device registration efficiency.
  • the device identification and binding code of the terminal device are reported to the cloud through the routing network, so that the cloud registers the terminal device according to the device identification and binding code, including:
  • the returned terminal device ID and user identity authentication token are communicated and connected to the cloud based on the device ID and user identity authentication token.
  • the terminal device can communicate with the cloud through the device ID and user identity authentication token, so that the terminal device can be controlled through the cloud to perform corresponding operations.
  • the terminal device can be controlled through the cloud later, or the user has used a user account Identification controls the terminal device.
  • FIG. 3 is a schematic flowchart of a method for resetting a terminal device according to an embodiment of the present application.
  • the reset method of the terminal device can be applied to the control end and can include:
  • the control end may be a terminal independent of the terminal device, or the terminal device itself. In this embodiment, the control end is a terminal independent of the terminal device as an example.
  • the control end may be a mobile phone, a computer, Home appliances, or wearable devices, etc.
  • the cloud may be a cloud server, which is used to bind the terminal device to the user account identification to complete the reset of the terminal device.
  • the identification information of the control terminal may be the user account identification.
  • the user account identification may be identification information corresponding to the account of the user logged in to the control terminal.
  • the user account identification information includes the user's identity information and the user's past usage information. The user account identification is used to bind to the terminal device.
  • the control end request can be a binding code acquisition request.
  • the binding code acquisition request can include the user account ID and the user identity authentication token.
  • the binding code can be used to connect the user account ID to the device. Make the binding.
  • the control terminal when the user logs in to the control terminal, the control terminal sends a reset command of the terminal device to the terminal device, thereby controlling the terminal device to enter the reset mode.
  • the control terminal obtains the login information and obtains the login information from the login information.
  • Obtain the user account ID and the user authentication token corresponding to the user account ID and generate a binding code acquisition request based on the user account ID and the user authentication token corresponding to the user account ID.
  • the cloud obtains the binding code acquisition request, which is the user account ID in the control end request, adds the user account ID to the binding code, and returns the binding code to the control end so that the control end can send the binding code to Terminal Equipment.
  • the control terminal receives the binding code returned by the cloud based on the binding code acquisition request that matches the user account ID.
  • the routing information can be the identification information, account number, password, etc. of the router corresponding to the wireless network accessed by the cloud.
  • the routing information can be input by the user on the control end, and the control end can send the routing information and binding code to Terminal Equipment.
  • control terminal receives the routing information corresponding to the cloud input by the user, so as to send the routing information to the terminal device, so that the terminal device can connect to the cloud through the routing information.
  • the control terminal when the control terminal detects that the terminal device is in reset mode, it sends a binding code acquisition request carrying the user account identification of the control terminal to the cloud; when receiving the binding code returned by the cloud based on the binding code acquisition request , obtain the routing information corresponding to the terminal device and the cloud, and send the binding code and routing information to the terminal device, so that the terminal device can be reset or registered through the cloud based on the binding code and routing information.
  • the cloud is used to reset or register the terminal device without the need to reset the reset flag on the terminal device. This can solve the problem that the cloud cannot receive the reset flag of the terminal device and cannot register when the network is not good, which improves intelligence. Device registration efficiency.
  • the terminal device after sending the binding code and routing information to the terminal device, it may include:
  • the prompt information that the terminal device has successfully registered is displayed.
  • the prompt information can be displayed in the form of text in a pop-up box or in the form of audio.
  • control terminal when the control terminal receives the prompt information that the terminal device has successfully registered returned from the cloud, it displays the prompt information that the terminal device has successfully registered on the display screen to remind the user that the terminal device has been successfully bound to the user account ID.
  • sending the binding code and routing information to the terminal device may include:
  • obtaining the connection signal of the terminal device may include: searching for candidate connection signals within a preset distance range of the control terminal; and filtering out the connection signal of the terminal device from the candidate connection signals in response to a selection instruction input by the user.
  • connection signal may be a hotspot signal of the terminal device.
  • the preset distance may be the maximum radiation distance of the hotspot signal of the terminal device.
  • connection signals may be multiple hotspot signals that can be scanned around the control terminal.
  • control terminal searches for nearby hotspot signals and displays the searched candidate hotspot signals.
  • the user selects the connection signal of the terminal device among the displayed candidate hotspot signals.
  • the control terminal After determining the hotspot signal of the terminal device, the control terminal connects to the hotspot signal, thereby establishing a communication connection with the terminal device.
  • control terminal sends the binding code and routing information to the terminal device through the communication connection with the terminal device, so that the terminal device accesses the wireless network corresponding to the cloud according to the router account and password, thereby communicating with the cloud, and according to the The binding code is registered through the cloud.
  • obtaining routing information corresponding to the terminal device and the cloud may include:
  • the routing information can be the identification information, account number, password, etc. of the router corresponding to the wireless network accessed by the cloud.
  • the routing information can be input by the user on the control end, and the control end can send the routing information and binding code to Terminal Equipment.
  • the routing information input interface can display the identification information, account number and password filling area of the router connected to the cloud.
  • control terminal when the control terminal receives the binding code returned by the cloud based on the binding code acquisition request that matches the user account ID, it displays the identification information, account number, and password filling area of the router connected to the cloud. Receive the identification information, account number, and password of the cloud-connected router input by the user, so as to send the identification information, account number, and password of the cloud-connected router to the terminal device, so that the terminal device can connect to the cloud through the routing information.
  • control terminal connects to the terminal device through the hotspot information of the terminal device, and sends the routing information of the router connected to the cloud input by the user to the terminal device, thereby facilitating the connection between the terminal device and the cloud and improving the efficiency of smart devices. Registration efficiency.
  • Figure 4 is a schematic diagram of data transmission between the control end, the terminal equipment and the cloud in the reset system of the terminal equipment provided by the embodiment of the present application.
  • the system includes the control end, terminal equipment and cloud.
  • Data transmission between the control end, terminal equipment and cloud can include:
  • control terminal When the control terminal detects that the terminal device is in reset mode, it sends a binding code acquisition request carrying the user account identification of the control terminal to the cloud.
  • the cloud receives the binding code acquisition request carrying the user account identification sent by the control terminal, obtains the user identity authentication token in the binding code acquisition request; verifies whether the user identity authentication token is compliant; if the user identity authentication If the authorization token is compliant, obtain the user account ID corresponding to the user identity authentication token; generate a binding code based on the user account ID.
  • the cloud returns the binding code to the control terminal.
  • the control terminal receives the binding code returned by the cloud based on the binding code acquisition request that matches the user account ID, and outputs the routing information input interface; receives the routing information corresponding to the terminal device and the cloud input by the user based on the routing information input interface.
  • the control terminal obtains the connection signal of the terminal device; communicates with the terminal device according to the connection signal; and sends the binding code and routing information to the terminal device through the communication connection.
  • the terminal device receives the binding code and routing information sent by the control terminal; connects to the routing network corresponding to the cloud according to the routing information; and reports the device identification and binding code of the terminal device to the cloud through the routing network.
  • the cloud receives the device identification and binding code reported by the terminal device based on the routing information and connects to the routing network corresponding to the cloud; verifies whether the device identification and binding code are compliant; if the device identification and binding code are compliant, the device The identification determines whether the terminal device has been registered;
  • the cloud determines that the terminal device has been registered, it will obtain the device ID of the terminal device based on the device ID; obtain the historical user account ID based on the device ID; and unbind the terminal device from the historical user account ID based on the device ID and the historical user account ID. relationship; and obtain the user account ID based on the binding code; bind the user account ID to the terminal device based on the device ID and user account ID to complete the registration of the terminal device.
  • the cloud determines that the terminal device is not registered, it will generate the device ID of the terminal device based on the device ID; obtain the user account ID based on the binding code; and bind the user account ID to the terminal device based on the device ID and user account ID. to complete the registration of the terminal device.
  • the cloud detects that the terminal device is successfully registered, it returns the device ID and user identity authentication token to the terminal device; it returns a reset message of the terminal device or a successful registration message to the control terminal.
  • control terminal When the control terminal receives the prompt information of reset or successful registration of the terminal device returned from the cloud, it displays the prompt information of successful registration of the terminal device.
  • the control terminal when the control terminal detects that the terminal device is in reset mode, it sends a binding code acquisition request carrying the user account ID of the control terminal to the cloud; the cloud receives the binding code acquisition request carrying the user account ID sent by the control terminal. , generate a binding code based on the user account identification in the binding code acquisition request, and return the binding code to the control end, so that the control end sends the binding code and routing information to the terminal device; the control end receives the binding code from the cloud based on After obtaining the binding code returned by the request that matches the user account ID, obtain the routing information corresponding to the terminal device and the cloud, and send the binding code and routing information to the terminal device; the terminal device receives the binding code and routing sent by the control end When receiving information, it connects to the routing network corresponding to the cloud based on the routing information, and reports the device identification and binding code of the terminal device to the cloud through the routing network; the cloud receives the device identification reported by the terminal device based on the routing network connected to the cloud corresponding to the routing network and
  • the cloud is used to register the terminal device, and there is no need to reset the reset flag on the terminal device before registration. This can solve the problem that the cloud cannot receive the reset flag of the terminal device and cannot register when the network is not good, and improves the efficiency of smart devices. Registration efficiency.
  • the embodiment of the present application also provides an apparatus based on the above resetting method of the terminal equipment.
  • the meanings of the nouns are the same as in the above-mentioned method of resetting the terminal device. For specific implementation details, please refer to the description in the method embodiment.
  • FIG. 5 is a schematic structural diagram of a reset device of a terminal device provided by an embodiment of the present application.
  • the reset device 300 of the terminal device may include a sending module 301, a receiving module 302, a query module 303, a reset module 304, etc.
  • the sending module 301 is used to generate a binding code corresponding to the control terminal based on the control terminal request, and send the binding code to the control terminal;
  • the receiving module 302 is used to receive the binding code and device identification sent by the terminal device after the terminal device accesses the routing network, wherein the binding code is sent to the terminal device after the control terminal establishes a network connection with the terminal device;
  • Query module 303 used to query whether the terminal device is a registered device according to the device identification
  • the reset module 304 is used to reset the binding relationship between the terminal device and historical users if the terminal device is a registered device.
  • the first acquisition module is used to acquire the device ID of the terminal device based on the device identifier
  • the second acquisition module is used to obtain the identification information of the control terminal according to the binding code
  • the binding module is used to establish a binding relationship between the terminal device and the control end based on the device ID and the identification information of the control end.
  • the first generation module is used to generate a device ID based on the device identification of the terminal device if the terminal device is an unregistered device;
  • the third acquisition module is used to obtain the identification information of the control terminal according to the binding code
  • the binding module is used to establish a binding relationship between the terminal device and the control end based on the device ID and the identification information of the control end.
  • the return module is used to return to the terminal device an authentication token corresponding to the device ID and the identification information of the control terminal, and to return to the control terminal a prompt message indicating that the terminal device and the control terminal have successfully registered.
  • the first verification module is used to verify whether the binding code and device identification sent by the terminal device are compliant
  • the query module is used to query whether the terminal device is a registered device based on the device identifier if the binding code and device identification are consistent.
  • the fourth acquisition module is used to obtain the identification information of the control terminal in the control terminal request
  • the second generation module is used to generate a binding code corresponding to the control terminal based on the identification information of the control terminal.
  • the second verification module is used to verify whether the control end request is compliant
  • the third generation module is used to generate a binding code corresponding to the control end based on the identification information of the control end if the control end requests compliance.
  • FIG. 6 is a schematic structural diagram of a reset device of a terminal device provided by an embodiment of the present application.
  • the reset device 300 of the terminal device may include an access module 305 and an upload module 306 .
  • the access module 305 is used to access the routing network based on the binding code and routing information sent by the control terminal;
  • the upload module 306 is used to upload the binding code and the device identification of the terminal device to the cloud through the routing network, so as to reset the terminal device based on the device identification of the terminal device through the cloud.
  • the receiving module is used to receive the terminal device ID and user identity authentication token returned after the cloud successfully registers the terminal device based on the device identification and binding code;
  • FIG. 7 is a schematic structural diagram of a reset device of a terminal device provided by an embodiment of the present application.
  • the reset device 300 of the terminal device may include a sending module 307, a receiving module 308, an acquisition module 309, a sending module 310, etc.
  • the sending module 307 is configured to send a control end request to the cloud when detecting that the terminal device is in reset mode, where the control end request carries identification information of the control end;
  • the receiving module 308 is used to receive the binding code returned by the cloud based on the control terminal request
  • the acquisition module 309 is used to obtain the routing information of the routing network corresponding to the terminal device and the cloud;
  • the sending module 310 is used to send routing information and authorization codes to the terminal device, so that the terminal device resets the terminal device through the cloud according to the routing information.
  • the embodiment of the present application also provides an intelligent device.
  • the intelligent device may be a terminal such as a mobile phone. As shown in Figure 8, it shows a schematic structural diagram of the intelligent device involved in the embodiment of the present application. Specifically:
  • the smart device may include components such as a processor 401 of one or more processing cores, a memory 402 of one or more computer-readable storage media, a power supply 403, and an input unit 404.
  • a processor 401 of one or more processing cores a memory 402 of one or more computer-readable storage media
  • a power supply 403 a power supply 403
  • an input unit 404 an input unit 404.
  • the processor 401 is the control center of the smart device, using various interfaces and lines to connect various parts of the entire smart device, by running or executing software programs and/or modules stored in the memory 402, and calling software programs stored in the memory 402. Data, perform various functions of smart devices and process data to conduct overall monitoring of smart devices.
  • the processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, where the application processor mainly processes operating systems, user interfaces, application programs, etc. , the modem processor mainly handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 401.
  • the memory 402 can be used to store software programs and modules.
  • the processor 401 executes various functional applications and data processing by running the software programs and modules stored in the memory 402 .
  • the memory 402 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the storage data area may store data based on Data created by the use of smart devices, etc.
  • memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402 .
  • the smart device also includes a power supply 403 that supplies power to various components.
  • the power supply 403 can be logically connected to the processor 401 through a power management system, so that functions such as charging, discharging, and power consumption management can be implemented through the power management system.
  • Power supply 403 may also include one or more DC or AC power supplies, recharging systems, power supply fault detection Test circuits, power converters or inverters, power status indicators, and any other component.
  • the smart device may also include an input unit 404 that may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
  • an input unit 404 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
  • the smart device may also include a display unit, etc., which will not be described again here.
  • the processor 401 in the smart device will load the executable files corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 401 will run the executable files stored in The application program in the memory 402 realizes various functions.
  • the smart device includes the control terminal, the terminal device, and the cloud. When the smart device is the control terminal, the following program is executed:
  • the smart device When the smart device is a terminal device, the following procedures are executed: access the routing network based on the binding code and routing information sent by the control terminal; upload the binding code and the device identification of the terminal device to the cloud through the routing network to use the terminal device through the cloud. Use the device identifier to reset the terminal device.
  • the following procedures are executed: generate a binding code corresponding to the control terminal based on the control terminal request, and send the binding code to the control terminal; after the terminal device accesses the routing network, receive the binding sent by the terminal device code and device identification, where the binding code is sent to the terminal device after the control terminal establishes a network connection with the terminal device; query whether the terminal device is a registered device according to the device identification; if the terminal device is a registered device, reset the terminal device Binding relationship with historical users.
  • a computer program product or computer program includes computer instructions stored in a computer-readable storage medium.
  • the processor of the smart device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the smart device executes the methods provided in various optional implementations in the above embodiments.
  • the computer instructions can be stored in a storage medium and It is loaded and executed by the processor, and the storage medium is a computer-readable storage medium.
  • embodiments of the present application provide a storage medium in which a computer program is stored.
  • the computer program may include computer instructions.
  • the computer program can be loaded by a processor to execute any terminal device provided by the embodiments of the present application. reset method.
  • the storage medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, etc.
  • ROM read-only memory
  • RAM random access memory
  • magnetic disk or optical disk etc.
  • the computer instructions stored in the storage medium can execute any of the resetting methods of the terminal equipment provided by the embodiments of the present application, it is possible to realize the capabilities of any of the resetting methods of the terminal equipment provided by the embodiments of the present application.
  • the beneficial effects achieved are detailed in the previous embodiments and will not be described again here.

Abstract

Disclosed in the embodiments of the present application are a terminal device reset method, system and apparatus, an intelligent device, and a storage medium. In the embodiments of the present application, a cloud can generate a binding code on the basis of a control end request and send same to a control end; receive a binding code and a device identifier sent by a terminal device, the binding code being sent to the terminal device by the control end; and, if the terminal device is a registered device, reset a binding relationship between the terminal device and a historical user. The reset efficiency of the terminal device is improved.

Description

终端设备的复位方法、系统、装置、智能设备及存储介质Reset method, system, device, intelligent device and storage medium of terminal equipment
本申请要求于2022年08月08日提交中国专利局、申请号为202210943502.2、申请名称为“终端设备的复位方法、系统、装置、智能设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application requires the priority of the Chinese patent application submitted to the China Patent Office on August 8, 2022, with the application number 202210943502.2 and the application name "Reset method, system, device, intelligent device and storage medium of terminal equipment", all of which The contents are incorporated into this application by reference.
技术领域Technical field
本申请涉及物联网技术领域,具体涉及一种终端设备的复位方法、系统、装置、智能设备及存储介质。This application relates to the technical field of the Internet of Things, and specifically relates to a terminal equipment reset method, system, device, intelligent device and storage medium.
背景技术Background technique
在这个物联网盛行的时代,物联网(Internet of Things,IoT)设备和用户数据的安全性越来越受到大家的关注。为保证设备和用户数据安全,有时需要对设备进行复位,例如,设备回厂被二次销售时、更新设备与用户绑定关系时等场景。现有技术中一般采用手动方式对对设备进行复位,导致终端设备的复位效率较低。In this era when the Internet of Things is prevalent, the security of Internet of Things (IoT) devices and user data has attracted more and more attention. In order to ensure the security of the device and user data, it is sometimes necessary to reset the device, for example, when the device is returned to the factory for resale, when the binding relationship between the device and the user is updated, etc. In the prior art, a manual method is generally used to reset the device, resulting in low resetting efficiency of the terminal device.
发明内容Contents of the invention
本申请实施例提供一种终端设备的复位方法、系统、装置、智能设备及存储介质,可以使云端精准的对设备进行复位,保证历史用户信息安全,进而提高设备后续的注册成功率。Embodiments of the present application provide a method, system, device, smart device, and storage medium for resetting a terminal device, which can enable the cloud to accurately reset the device, ensure the security of historical user information, and thereby improve the subsequent registration success rate of the device.
为解决上述技术问题,本申请实施例提供以下技术方案:In order to solve the above technical problems, the embodiments of this application provide the following technical solutions:
本申请实施例提供了一种终端设备的复位方法,应用于云端,所述方法包括:Embodiments of this application provide a method for resetting a terminal device, which is applied to the cloud. The method includes:
基于控制端请求生成与所述控制端对应的绑定码,并发送所述绑定码到所述控制端;Generate a binding code corresponding to the control terminal based on the control terminal request, and send the binding code to the control terminal;
在终端设备接入路由网络之后,接收终端设备发送的绑定码和设备标识,其中,所述绑定码由所述控制端与所述终端设备建立网络连接后,发送到所述终端设备;After the terminal device accesses the routing network, receive the binding code and device identification sent by the terminal device, wherein the binding code is sent to the terminal device after the control terminal establishes a network connection with the terminal device;
根据所述设备标识查询所述终端设备是否为已注册设备;Query whether the terminal device is a registered device according to the device identification;
若所述终端设备为已注册设备,则复位所述终端设备与历史用户的绑定关系。If the terminal device is a registered device, the binding relationship between the terminal device and historical users is reset.
在一实施方式中,在所述复位所述终端设备与历史用户的绑定关系之后,包括:In one embodiment, after resetting the binding relationship between the terminal device and historical users, the method includes:
基于所述设备标识获取所述终端设备的设备ID;Obtain the device ID of the terminal device based on the device identification;
根据所述绑定码获取所述控制端的标识信息;Obtain the identification information of the control terminal according to the binding code;
基于所述设备ID和所述控制端的标识信息,建立所述终端设备和所述控制端的绑定关系。Based on the device ID and the identification information of the control terminal, a binding relationship between the terminal device and the control terminal is established.
在一实施方式中,所述终端设备的复位方法,还包括:In one embodiment, the method for resetting the terminal device further includes:
若所述终端设备为未注册设备,则根据所述终端设备的设备标识生成设备ID;If the terminal device is an unregistered device, generate a device ID according to the device identification of the terminal device;
根据所述绑定码获取所述控制端的标识信息;Obtain the identification information of the control terminal according to the binding code;
基于所述设备ID和所述控制端的标识信息,建立所述终端设备和所述控制端的绑定关系。Based on the device ID and the identification information of the control terminal, a binding relationship between the terminal device and the control terminal is established.
在一实施方式中,在建立所述终端设备和所述控制端的绑定关系之后,所述终端设备的复位方法,还包括:In one embodiment, after establishing the binding relationship between the terminal device and the control end, the resetting method of the terminal device further includes:
向所述终端设备返回设备ID所述设备ID与所述控制端的标识信息对应的鉴权令牌,以及向所述控制端返回所述终端设备与所述控制端注册成功的提示信息。Return to the terminal device an authentication token corresponding to the device ID, the device ID and the identification information of the control terminal, and return to the control terminal prompt information indicating that the terminal device and the control terminal have successfully registered.
在一实施方式中,所述根据所述设备标识查询所述终端设备是否为已注册设备,包括:In one embodiment, querying whether the terminal device is a registered device according to the device identifier includes:
检验所述终端设备发送的绑定码和设备标识是否合规;Verify whether the binding code and device identification sent by the terminal device are compliant;
若所述绑定码和设备标识合规,则根据所述设备标识查询所述终端设备是否为已注册 设备。If the binding code and device identification are compliant, query whether the terminal device is registered based on the device identification. equipment.
在一实施方式中,所述基于控制端请求生成与所述控制端对应的绑定码,包括:In one implementation, generating a binding code corresponding to the control terminal based on a control terminal request includes:
获取所述控制端请求中的控制端的标识信息;Obtain the identification information of the control terminal in the control terminal request;
基于所述控制端的标识信息生成与所述控制端对应的绑定码。Generate a binding code corresponding to the control terminal based on the identification information of the control terminal.
在一实施方式中,所述基于所述控制端的标识信息生成与所述控制端对应的绑定码,包括:In one embodiment, generating a binding code corresponding to the control terminal based on the identification information of the control terminal includes:
校验所述控制端请求是否合规;Verify whether the control request is compliant;
若所述控制端请求合规,则基于所述控制端的标识信息生成与所述控制端对应的绑定码。If the control terminal requests compliance, a binding code corresponding to the control terminal is generated based on the identification information of the control terminal.
在一实施方式中,在建立所述终端设备和所述控制端的绑定关系之后,所述终端设备的复位方法,还包括:In one embodiment, after establishing the binding relationship between the terminal device and the control end, the resetting method of the terminal device further includes:
向所述终端设备返回所述设备ID与所述控制端的标识信息对应的鉴权令牌,以及向所述控制端返回所述终端设备与所述控制端注册成功的提示信息。Return to the terminal device an authentication token corresponding to the device ID and the identification information of the control terminal, and return to the control terminal prompt information indicating successful registration between the terminal device and the control terminal.
在一实施方式中,所述根据所述设备标识查询所述终端设备是否为已注册设备,包括:In one embodiment, querying whether the terminal device is a registered device according to the device identifier includes:
若所述终端设备并未与其他已绑定的用户账号标识进行绑定关系解除,则判定所述终端设备已注册;If the terminal device has not been unbound from other bound user account identifiers, it is determined that the terminal device has been registered;
若所述终端设备之前从未与历史用户账号标识绑定过,或者,若所述终端设备曾与历史用户账号标识绑定过,但目已经解除了与历史用户账号标识的绑定关系,则判定所述终端设备未注册。If the terminal device has never been bound to a historical user account ID before, or if the terminal device has been bound to a historical user account ID but has now been unbound from the historical user account ID, then It is determined that the terminal device is not registered.
在一实施方式中,所述检验所述终端设备发送的绑定码和设备标识是否合规,包括:In one embodiment, checking whether the binding code and device identification sent by the terminal device are compliant includes:
获取云端预先存储的参考设备标识与预设绑定码;Obtain the reference device identification and default binding code pre-stored in the cloud;
判断设备标识与参考设备标识是否匹配,以及绑定码与预设绑定码是否匹配;Determine whether the device identification matches the reference device identification, and whether the binding code matches the preset binding code;
若设备标识与参考设备标识匹配且绑定码与预设绑定码匹配,则判定设备标识和绑定码合规。If the device ID matches the reference device ID and the binding code matches the preset binding code, it is determined that the device ID and binding code are compliant.
在一实施方式中,所述检验所述终端设备发送的绑定码和设备标识是否合规,包括:In one embodiment, checking whether the binding code and device identification sent by the terminal device are compliant includes:
若设备标识与参考设备标识重复,或者设备标识中的设备类型与参考设备标识中的设备类型重复,则判定该设备标识与参考设备标识匹配;If the equipment identification duplicates the reference equipment identification, or the equipment type in the equipment identification duplicates the equipment type in the reference equipment identification, it is determined that the equipment identification matches the reference equipment identification;
若绑定码与预设绑定码重复或者绑定码与预设绑定码对应的格式相同,则判定绑定码与预设绑定码匹配。If the binding code is repeated with the default binding code or the binding code and the default binding code have the same format, it is determined that the binding code matches the default binding code.
在一实施方式中,所述绑定码获取请求中包括用户身份鉴权令牌,所述基于控制端请求生成与所述控制端对应的绑定码,可以包括:In one embodiment, the binding code acquisition request includes a user identity authentication token, and generating the binding code corresponding to the control terminal based on the control terminal request may include:
校验所述用户身份鉴权令牌是否合规;Verify whether the user identity authentication token is compliant;
若所述用户身份鉴权令牌合规,则获取用户身份鉴权令牌对应的用户账号标识;If the user identity authentication token is compliant, obtain the user account ID corresponding to the user identity authentication token;
根据所述用户账号标识生成控制端对应的绑定码。Generate a binding code corresponding to the control terminal according to the user account identification.
本申请实施例还提供了一种终端设备的复位方法,应用于终端设备,所述方法包括:An embodiment of the present application also provides a method for resetting a terminal device, which is applied to the terminal device. The method includes:
基于控制端发送的绑定码与路由信息接入路由网络;Access the routing network based on the binding code and routing information sent by the control terminal;
通过所述路由网络向所述云端上传所述绑定码以及所述终端设备的设备标识,以通过所述云端基于所述终端设备的设备标识对所述终端设备进行复位。Upload the binding code and the device identification of the terminal device to the cloud through the routing network, so that the terminal device is reset based on the device identification of the terminal device through the cloud.
本申请实施例还提供了一种终端设备的复位方法,应用于控制端,所述方法包括:The embodiment of the present application also provides a method for resetting a terminal device, which is applied to the control end. The method includes:
在检测到终端设备处于复位模式时,向云端发送控制端请求,其中,所述控制端请求携带所述控制端的标识信息;When it is detected that the terminal device is in reset mode, send a control terminal request to the cloud, wherein the control terminal request carries the identification information of the control terminal;
接收所述云端基于所述控制端请求返回的绑定码;Receive the binding code returned by the cloud based on the control terminal request;
获取所述终端设备与所述云端对应的路由网络的路由信息; Obtain routing information of the routing network corresponding to the terminal device and the cloud;
向所述终端设备发送所述路由信息以及所述授权码,以使所述终端设备根据所述路由信息通过云端对所述终端设备进行复位。Send the routing information and the authorization code to the terminal device, so that the terminal device resets the terminal device through the cloud according to the routing information.
本申请实施例还提供了一种终端设备的复位系统,所述系统包括控制端、终端设备以及云端,控制端在检测到终端设备处于复位模式时,向云端发送控制端请求,其中,所述控制端请求携带所述控制端的标识信息;Embodiments of the present application also provide a reset system for terminal equipment. The system includes a control end, a terminal equipment, and a cloud. When the control end detects that the terminal equipment is in reset mode, it sends a control end request to the cloud, wherein: The control end request carries identification information of the control end;
云端基于控制端请求生成与所述控制端对应的绑定码,并发送所述绑定码到所述控制端;The cloud generates a binding code corresponding to the control terminal based on the control terminal request, and sends the binding code to the control terminal;
控制端接收所述云端基于所述控制端请求返回的绑定码;The control terminal receives the binding code returned by the cloud based on the control terminal request;
控制端获取所述终端设备与所述云端对应的路由网络的路由信息;The control terminal obtains routing information of the routing network corresponding to the terminal device and the cloud;
控制端向所述终端设备发送所述路由信息以及所述授权码;The control terminal sends the routing information and the authorization code to the terminal device;
终端设备基于控制端发送的绑定码与路由信息接入路由网络;The terminal device accesses the routing network based on the binding code and routing information sent by the control terminal;
终端设备通过所述路由网络向所述云端上传所述绑定码以及所述终端设备的设备标识;The terminal device uploads the binding code and the device identification of the terminal device to the cloud through the routing network;
云端在终端设备接入路由网络之后,接收终端设备发送的绑定码和设备标识,其中,所述绑定码由所述控制端与所述终端设备建立网络连接后,发送到所述终端设备;After the terminal device accesses the routing network, the cloud receives the binding code and device identification sent by the terminal device. The binding code is sent to the terminal device after the control terminal establishes a network connection with the terminal device. ;
云端根据所述设备标识查询所述终端设备是否为已注册设备;The cloud queries whether the terminal device is a registered device according to the device identification;
若所述终端设备为已注册设备,则云端复位所述终端设备与历史用户的绑定关系。If the terminal device is a registered device, the cloud resets the binding relationship between the terminal device and the historical user.
根据本申请的一个方面,还提供了另一种终端设备的复位装置,包括:According to one aspect of the present application, another reset device for terminal equipment is also provided, including:
发送模块,用于基于控制端请求生成与所述控制端对应的绑定码,并发送所述绑定码到所述控制端;A sending module, configured to generate a binding code corresponding to the control terminal based on the control terminal request, and send the binding code to the control terminal;
接收模块,用于在终端设备接入路由网络之后,接收终端设备发送的绑定码和设备标识,其中,所述绑定码由所述控制端与所述终端设备建立网络连接后,发送到所述终端设备;The receiving module is configured to receive the binding code and device identification sent by the terminal device after the terminal device accesses the routing network, wherein the binding code is sent to the terminal after the control terminal establishes a network connection with the terminal device. The terminal equipment;
查询模块,用于根据所述设备标识查询所述终端设备是否为已注册设备;A query module, configured to query whether the terminal device is a registered device according to the device identification;
复位模块,用于若所述终端设备为已注册设备,则复位所述终端设备与历史用户的绑定关系。A reset module, configured to reset the binding relationship between the terminal device and historical users if the terminal device is a registered device.
根据本申请的一个方面,还提供了一种终端设备的复位装置,包括:According to one aspect of the present application, a reset device for terminal equipment is also provided, including:
接入模块,用于基于控制端发送的绑定码与路由信息接入路由网络;The access module is used to access the routing network based on the binding code and routing information sent by the control terminal;
上传模块,用于通过所述路由网络向所述云端上传所述绑定码以及所述终端设备的设备标识,以通过所述云端基于所述终端设备的设备标识对所述终端设备进行复位。An upload module, configured to upload the binding code and the device identification of the terminal device to the cloud through the routing network, so as to reset the terminal device based on the device identification of the terminal device through the cloud.
根据本申请的一个方面,还提供了一种智能设备,包括处理器和存储器,所述存储器中存储有计算机程序,所述处理器调用所述存储器中的计算机程序时执行本申请实施例提供的任一种终端设备的复位方法。According to one aspect of the present application, an intelligent device is also provided, including a processor and a memory. A computer program is stored in the memory. When the processor calls the computer program in the memory, it executes the method provided by the embodiment of the present application. Any method of resetting terminal equipment.
根据本申请的一个方面,还提供了一种存储介质,所述存储介质用于存储计算机程序,所述计算机程序被处理器加载,以执行本申请实施例提供的任一种终端设备的复位方法。According to one aspect of the present application, a storage medium is also provided. The storage medium is used to store a computer program. The computer program is loaded by the processor to execute any of the terminal device resetting methods provided by the embodiments of the present application. .
本申请实施例中,控制端在检测到终端设备处于复位模式时,向云端发送控制端请求,其中,所述控制端请求携带所述控制端的标识信息;云端基于控制端请求生成与所述控制端对应的绑定码,并发送所述绑定码到所述控制端;控制端接收所述云端基于所述控制端请求返回的绑定码;控制端获取所述终端设备与所述云端对应的路由网络的路由信息;控制端向所述终端设备发送所述路由信息以及所述授权码;终端设备基于控制端发送的绑定码与路由信息接入路由网络;终端设备通过所述路由网络向所述云端上传所述绑定码以及所述终端设备的设备标识;云端在终端设备接入路由网络之后,接收终端设备发送的绑定码和设备标识,其中,所述绑定码由所述控制端与所述终端设备建立网络连接后,发送到 所述终端设备;云端根据所述设备标识查询所述终端设备是否为已注册设备;若所述终端设备为已注册设备,则云端复位所述终端设备与历史用户的绑定关系。这样利用云端对查询终端设备是否为已注册设备,并在终端设备为已注册设备时,对终端设备进行复位,从而提高了终端设备的复位的准确性与效率。In the embodiment of this application, when the control end detects that the terminal device is in reset mode, it sends a control end request to the cloud, where the control end request carries the identification information of the control end; the cloud end generates a control end request related to the control end based on the control end request. The binding code corresponding to the terminal and sends the binding code to the control terminal; the control terminal receives the binding code returned by the cloud based on the control terminal request; the control terminal obtains the correspondence between the terminal device and the cloud The routing information of the routing network; the control end sends the routing information and the authorization code to the terminal device; the terminal device accesses the routing network based on the binding code and routing information sent by the control end; the terminal device uses the routing network Upload the binding code and the device identification of the terminal device to the cloud; after the terminal device accesses the routing network, the cloud receives the binding code and device identification sent by the terminal device, wherein the binding code is provided by the After the control terminal establishes a network connection with the terminal device, it sends The terminal device; the cloud queries whether the terminal device is a registered device according to the device identifier; if the terminal device is a registered device, the cloud resets the binding relationship between the terminal device and historical users. In this way, the cloud is used to query whether the terminal device is a registered device, and when the terminal device is a registered device, the terminal device is reset, thereby improving the accuracy and efficiency of resetting the terminal device.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained based on these drawings without exerting creative efforts.
图1是本申请实施例提供的终端设备的复位方法的流程示意图;Figure 1 is a schematic flowchart of a method for resetting a terminal device provided by an embodiment of the present application;
图2是本申请实施例提供的终端设备的复位方法的另一流程示意图;Figure 2 is another schematic flowchart of a method for resetting a terminal device provided by an embodiment of the present application;
图3是本申请实施例提供的终端设备的复位方法的另一流程示意图;Figure 3 is another schematic flowchart of a method for resetting a terminal device provided by an embodiment of the present application;
图4为本申请实施例提供的终端设备的复位系统中控制端、终端设备以及云端之间的数据传输示意图;Figure 4 is a schematic diagram of data transmission between the control end, the terminal equipment and the cloud in the reset system of the terminal equipment provided by the embodiment of the present application;
图5是本申请实施例提供的终端设备的复位装置的示意图;Figure 5 is a schematic diagram of a reset device of a terminal device provided by an embodiment of the present application;
图6是本申请实施例提供的终端设备的复位装置的示意图;Figure 6 is a schematic diagram of a reset device of a terminal device provided by an embodiment of the present application;
图7是本申请实施例提供的终端设备的复位装置的示意图;Figure 7 is a schematic diagram of a reset device of a terminal device provided by an embodiment of the present application;
图8是本申请实施例提供的智能设备的结构示意图。Figure 8 is a schematic structural diagram of an intelligent device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making creative efforts fall within the scope of protection of this application.
本申请实施例提供一种终端设备的复位方法、系统、装置、智能设备及存储介质(即计算机可读存储介质)。其中,终端设备的复位方法可以应用于终端设备的复位装置,该终端设备的复位装置具体可以集成在智能设备中,该智能设备可以是控制端、终端设备或者服务器,该服务器可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群或者分布式系统,还可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、内容分发网络(Content Delivery Network,CDN)、以及大数据和人工智能平台等基础云计算服务的云端服务器,但并不局限于此。服务器与控制端之间可以通过有线或无线通信方式进行直接或间接地连接,本申请在此不做限制。该智能设备可以是手机、电脑、家电设备、或者可穿戴设备等。Embodiments of the present application provide a terminal equipment reset method, system, device, intelligent device, and storage medium (ie, computer-readable storage medium). Among them, the reset method of the terminal device can be applied to the reset device of the terminal device. The reset device of the terminal device can be integrated in an intelligent device. The intelligent device can be a control end, a terminal device or a server. The server can be an independent physical device. A server can also be a server cluster or distributed system composed of multiple physical servers, or it can provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, Security services, Content Delivery Network (CDN), and cloud servers for basic cloud computing services such as big data and artificial intelligence platforms, but are not limited to these. The server and the control terminal can be connected directly or indirectly through wired or wireless communication methods, which is not limited in this application. The smart device can be a mobile phone, computer, home appliance, or wearable device, etc.
以下分别进行详细说明。需说明的是,以下实施例的描述顺序不作为对实施例优选顺序的限定。Each is explained in detail below. It should be noted that the order of description of the following embodiments does not limit the preferred order of the embodiments.
在本实施例中,将从智能设备的角度进行描述,该智能设备可以包括控制端、终端设备、以及云端。请参阅图1,图1是本申请一实施例提供的终端设备的复位方法的流程示意图。该终端设备的复位方法可以应用于云端,可以包括:In this embodiment, the description will be made from the perspective of an intelligent device, which may include a control terminal, a terminal device, and a cloud. Please refer to FIG. 1 , which is a schematic flowchart of a method for resetting a terminal device according to an embodiment of the present application. The reset method of the terminal device can be applied to the cloud and can include:
S101、基于控制端请求生成与控制端对应的绑定码,并发送绑定码到控制端。S101. Generate a binding code corresponding to the control terminal based on the control terminal request, and send the binding code to the control terminal.
其中,该云端可以是云端服务器。控制端可以是独立于终端设备之外的终端,也可以是终端设备本身,在本实施例中控制端以独立于终端设备之外的终端为例,该控制端可以是手机、电脑、家电设备、或者可穿戴设备等。该控制端请求可以是绑定码获取请求,该绑定码获取请求中可以包含控制端的标识信息。该绑定码可以是绑定码,用于将终端设备与控制端的标识信息绑定,该控制端的标识信息可以是用户账号标识,比如控制端登录的 用户的账号对应的标识信息,用户账号标识可以包含用户的身份信息以及用户以往的使用信息。Wherein, the cloud may be a cloud server. The control end can be a terminal independent of the terminal device, or it can be the terminal device itself. In this embodiment, the control end is a terminal independent of the terminal device. The control end can be a mobile phone, a computer, or a home appliance. , or wearable devices, etc. The control terminal request may be a binding code acquisition request, and the binding code acquisition request may include identification information of the control terminal. The binding code may be a binding code used to bind the terminal device to the identification information of the control terminal. The identification information of the control terminal may be a user account identification, such as the login ID of the control terminal. The identification information corresponding to the user's account. The user account identification may include the user's identity information and the user's past usage information.
在本实施例的一种实际应用场景中,用户可以在控制端输入用户的用户账号与密码,从而登录控制端,并在控制端向终端设备发送终端设备的复位指令到,以控制终端设备进入复位模式,并向云端发送绑定码获取请求,以通过云端返回的绑定码将终端设备进行复位,并将终端设备与控制端的标识信息进行绑定。In a practical application scenario of this embodiment, the user can enter the user's user account and password on the control terminal to log in to the control terminal, and send a reset command of the terminal device to the terminal device on the control terminal to control the entry of the terminal device. Reset mode, and sends a binding code acquisition request to the cloud to reset the terminal device through the binding code returned by the cloud, and bind the terminal device to the identification information of the control end.
例如,控制端发送携带用户账号标识的绑定码获取请求到云端,云端接收控制端发送的携带用户账号标识的绑定码获取请求即控制端请求,获取控制端请求中的控制端的标识信息,基于控制端的标识信息生成与控制端对应的绑定码。For example, the control terminal sends a binding code acquisition request carrying the user account ID to the cloud. The cloud receives the binding code acquisition request carrying the user account ID sent by the control terminal, that is, the control terminal request, and obtains the identification information of the control terminal in the control terminal request. Generate a binding code corresponding to the control end based on the identification information of the control end.
S102、在终端设备接入路由网络之后,接收终端设备发送的绑定码和设备标识,其中,绑定码由控制端与终端设备建立网络连接后,发送到终端设备。S102. After the terminal device accesses the routing network, receive the binding code and device identification sent by the terminal device. The binding code is sent to the terminal device after the control terminal establishes a network connection with the terminal device.
其中,该路由网络可以是云端接入的无线网络。设备标识可以包括终端设备的唯一编码以及设备基本信息,例如,唯一编码可以是终端设备的IP地址或者MAC地址等,设备基本信息可以是终端设备的设备类型、位置信息、CPU信息、内存信息以及操作系统版本等。The routing network may be a wireless network accessed by the cloud. The device identification may include the unique code of the terminal device and basic device information. For example, the unique code may be the IP address or MAC address of the terminal device, etc. The basic device information may be the device type, location information, CPU information, memory information and Operating system version, etc.
可选地,云端在向控制端返回绑定码后,控制端将绑定码和云端的路由信息发送给终端设备。Optionally, after the cloud returns the binding code to the control terminal, the control terminal sends the binding code and the routing information of the cloud to the terminal device.
其中,路由信息可以是云端接入的无线网络对应的路由器的标识信息、账号以及密码等,该路由信息可以是由用户在控制端输入的,控制端可以将该路由信息以及绑定码发送给终端设备,以使得控制终端在接收到路由信息后,基于路由信息接入云端对应的路由网络。Among them, the routing information can be the identification information, account number, password, etc. of the router corresponding to the wireless network accessed by the cloud. The routing information can be input by the user on the control end, and the control end can send the routing information and binding code to The terminal device allows the control terminal to access the corresponding routing network in the cloud based on the routing information after receiving the routing information.
例如,云端在基于控制端发送的携带用户账号标识的绑定码获取请求,生成绑定码后,将该绑定码返回给控制端,以便控制端可以将绑定码发送给终端设备。For example, the cloud obtains a binding code based on the binding code sent by the control terminal and carries the user account ID. After generating the binding code, the cloud returns the binding code to the control terminal so that the control terminal can send the binding code to the terminal device.
在终端设备接入路由网络后,云端可以接收终端设备基于路由信息连接与云端对应的路由网络上报的设备标识以及绑定码。After the terminal device is connected to the routing network, the cloud can receive the device identification and binding code reported by the terminal device by connecting to the routing network corresponding to the cloud based on the routing information.
例如,终端设备在接收到云端返回的路由信息以及绑定码后,获取终端设备的设备标识,并根据该路由信息与云端建立通信连接,将终端设备的设备标识与绑定码上报给云端,云端接收该设备标识与绑定码,以便于根据该设备标识与绑定码对终端设备进行复位。For example, after receiving the routing information and binding code returned by the cloud, the terminal device obtains the device identification of the terminal device, establishes a communication connection with the cloud based on the routing information, and reports the device identification and binding code of the terminal device to the cloud. The cloud receives the device identification and binding code so as to reset the terminal device according to the device identification and binding code.
S103、根据设备标识查询终端设备是否为已注册设备。S103. Query whether the terminal device is a registered device according to the device identification.
可以理解的是,如果终端设备之前与历史用户账号标识绑定过,即该终端设备已注册过,但并未复位过,也就是并未与其他已绑定的用户账号标识进行绑定关系解除,则可以判定终端设备已注册。若终端设备之前从未与历史用户账号标识绑定过,或者曾与历史用户账号标识绑定过,但目前已经解除了与历史用户账号标识的绑定关系,则可以判定该终端设备未注册。如果已与历史用户账号标识绑定,则需要先解除历史用户账号标识的绑定关系后,才能再与当前的控制端发送的用户账号标识进行绑定,如果未与历史用户账号标识绑定,则可以直接与当前的控制端发送的用户账号标识绑定。It is understandable that if the terminal device has been bound to a historical user account ID before, that is, the terminal device has been registered but has not been reset, that is, it has not been unbound from other bound user account IDs. , it can be determined that the terminal device has been registered. If the terminal device has never been bound to a historical user account ID before, or has been bound to a historical user account ID, but has now been unbound from the historical user account ID, it can be determined that the terminal device is not registered. If it has been bound to the historical user account ID, you need to unbind the historical user account ID before binding it to the user account ID sent by the current control terminal. If it is not bound to the historical user account ID, It can be directly bound to the user account ID sent by the current control terminal.
因此在本实施例中,在对终端设备进行复位之前,需要先判断该终端设备是否已注册。而由于若终端设备已注册,则该终端设备的设备标识绑定有历史用户账号标识,因此可以根据终端设备的设备ID来查询终端设备是否为已注册设备。Therefore, in this embodiment, before resetting the terminal device, it is necessary to determine whether the terminal device has been registered. And because if the terminal device has been registered, the device ID of the terminal device is bound to the historical user account ID, therefore whether the terminal device is a registered device can be queried based on the device ID of the terminal device.
例如,获取设备标识中的唯一编码,根据该唯一编码查询终端设备是否已与历史用户账户标识绑定,如果查询到终端设备已与历史用户账户标识绑定,则判定该终端设备已注册。如果未查询到终端设备与历史用户账户标识绑定,则判定该终端设备未注册。For example, obtain the unique code in the device ID, and query whether the terminal device has been bound to the historical user account ID based on the unique code. If the query finds that the terminal device has been bound to the historical user account ID, it is determined that the terminal device has been registered. If the terminal device is not found to be bound to the historical user account ID, it is determined that the terminal device is not registered.
S104、若终端设备为已注册设备,则复位终端设备与历史用户的绑定关系。 S104. If the terminal device is a registered device, reset the binding relationship between the terminal device and historical users.
可选地,若终端设备为已注册设备,则根据设备标识获取注册的历史用户账号标识;根据设备ID与历史用户账号标识,解除终端设备与历史用户账号标识的绑定关系。Optionally, if the terminal device is a registered device, the registered historical user account identifier is obtained based on the device identifier; and the binding relationship between the terminal device and the historical user account identifier is released based on the device ID and the historical user account identifier.
其中,历史用户账号标识为终端设备之前绑定的用户账号标识,与当前的控制端发送的用户账号标识不同。Among them, the historical user account ID is the user account ID previously bound to the terminal device, which is different from the user account ID sent by the current control terminal.
例如,根据设备ID查询绑定的历史用户账户标识,在获取到终端设备的设备ID以及历史用户账号标识后,将该设备ID与历史用户账号标识解除绑定关系,从而解除终端设备与历史用户账号标识的绑定关系,也就是在云端将终端设备进行复位。在解除终端设备与历史用户账号标识的绑定关系之后,可以根据绑定码获取用户账号标识;根据设备ID与用户账号标识,将用户账号标识与终端设备进行绑定,以完成终端设备的注册。也就是先解除历史用户账号标识的绑定关系后,再与当前的控制端发送的用户账号标识进行绑定。For example, query the bound historical user account identifier based on the device ID, and after obtaining the device ID and historical user account identifier of the terminal device, unbind the device ID from the historical user account identifier, thereby unbinding the terminal device from the historical user account. The binding relationship of the account ID is to reset the terminal device in the cloud. After unbinding the terminal device from the historical user account ID, the user account ID can be obtained based on the binding code; based on the device ID and the user account ID, the user account ID can be bound to the terminal device to complete the registration of the terminal device. . That is to say, first unbind the historical user account ID, and then bind it to the user account ID sent by the current control terminal.
在一实施例中,在复位终端设备与历史用户的绑定关系之后,可以包括:In one embodiment, after resetting the binding relationship between the terminal device and the historical user, the following steps may be performed:
S1、基于设备标识获取终端设备的设备ID。S1. Obtain the device ID of the terminal device based on the device identification.
其中,该设备ID可以包括设备的唯一编码以及设备基本信息,例如,该唯一编码可以是终端设备的IP地址或者MAC地址等,设备基本信息可以是终端设备的位置信息、CPU信息、内存信息以及操作系统版本等。由于该终端设备已注册,因此该终端设备中存储有设备ID,因此可以基于设备标识获取终端设备的设备ID。The device ID may include a unique code of the device and basic device information. For example, the unique code may be the IP address or MAC address of the terminal device, etc. The basic device information may be the location information, CPU information, memory information and Operating system version, etc. Since the terminal device has been registered, the device ID is stored in the terminal device, and therefore the device ID of the terminal device can be obtained based on the device identification.
例如,将设备标识中的唯一编码以及设备基本信息打包后封装为设备标识,或者将设备标识中的的唯一编码以及设备基本信息拼接后得到设备ID。For example, the unique code in the device identification and the basic information of the device are packaged and encapsulated into the device identification, or the unique code in the device identification and the basic information of the device are spliced together to obtain the device ID.
S2、根据绑定码获取控制端的标识信息。S2. Obtain the identification information of the control terminal according to the binding code.
其中,绑定码中可以包含控制端的标识信息,即用户账号标识,因此云端可以在接收到终端设备上报的设备标识以及绑定码时,可以从绑定码中获取登录控制端的用户账号标识,以便将该用户账号标识与终端设备进行绑定。Among them, the binding code can contain the identification information of the control terminal, that is, the user account identification. Therefore, when the cloud receives the device identification and binding code reported by the terminal device, it can obtain the user account identification of the logged in control terminal from the binding code. In order to bind the user account ID with the terminal device.
S3、基于设备ID和控制端的标识信息,建立终端设备和控制端的绑定关系。S3. Based on the device ID and the identification information of the control end, establish a binding relationship between the terminal device and the control end.
例如,将用户账号标识与设备ID进行绑定,以实现用户账号标识与终端设备的绑定,从而完成终端设备的注册。这样用户可以在终端设备登录该用户账号标识,从而查看终端设备的设备标识,或者控制终端设备。For example, the user account identification and the device ID are bound to realize the binding of the user account identification and the terminal device, thereby completing the registration of the terminal device. In this way, the user can log in to the user account ID on the terminal device to view the device ID of the terminal device or control the terminal device.
在本实施例中,云端根据设备标识判断终端设备是否已注册,如果判定终端设备已注册,则将终端设备绑定的历史用户账号标识解除绑定,并重新绑定用户账号标识信息。这样通过云端在确定终端设备注册的情况下,对终端设备进行复位,提高了终端设备的复位的准确性。In this embodiment, the cloud determines whether the terminal device has been registered based on the device identifier. If it is determined that the terminal device has been registered, the cloud unbinds the historical user account identifier bound to the terminal device and rebinds the user account identifier information. In this way, the terminal device is reset through the cloud after it is determined that the terminal device is registered, which improves the accuracy of resetting the terminal device.
在一实施例中,终端设备的复位方法,还包括:In one embodiment, the method for resetting a terminal device further includes:
若终端设备为未注册设备,则根据终端设备的设备标识生成设备ID;根据绑定码获取控制端的标识信息;基于设备ID和控制端的标识信息,建立终端设备和控制端的绑定关系。If the terminal device is an unregistered device, the device ID is generated based on the device identification of the terminal device; the identification information of the control end is obtained based on the binding code; based on the device ID and the identification information of the control end, a binding relationship between the terminal device and the control end is established.
例如,若终端设备为未注册设备,则直接根据设备标识生成终端设备的设备ID;根据绑定码获取用户账号标识;根据目标设备ID与用户账号标识,将用户账号标识与终端设备进行绑定,以完成终端设备的注册。也就是说,如果终端设备已经复位或者从未绑定过用户账号标识,则直接根据绑定码与设备标识建立终端设备与用户账号标识之间的绑定关系,从而完成终端设备的注册。For example, if the terminal device is an unregistered device, the device ID of the terminal device is directly generated based on the device ID; the user account ID is obtained based on the binding code; and the user account ID is bound to the terminal device based on the target device ID and the user account ID. , to complete the registration of the terminal device. That is to say, if the terminal device has been reset or has never been bound to a user account ID, the binding relationship between the terminal device and the user account ID is directly established based on the binding code and the device ID, thereby completing the registration of the terminal device.
在本实施例中,云端根据设备标识判断终端设备是否已注册,如果判定终端设备未注册,则直接将用户账号标识与终端设备进行绑定。如果判定终端设备已注册,则将终端设备绑定的历史用户账号标识解除绑定,并重新绑定用户账号标识信息。这样通过云端对终端设备进行复位以及注册,不需要在接收到终端设备上报的复位标志后才进行注册,这样不论终端设备之前是否复位,都可以准确完成注册,提高了智能设备注册的准确性。 In this embodiment, the cloud determines whether the terminal device has been registered based on the device identifier. If it is determined that the terminal device is not registered, the cloud directly binds the user account identifier to the terminal device. If it is determined that the terminal device has been registered, the historical user account ID bound to the terminal device will be unbound, and the user account ID information will be re-bound. In this way, the terminal device is reset and registered through the cloud, and there is no need to register after receiving the reset flag reported by the terminal device. In this way, the registration can be completed accurately regardless of whether the terminal device has been reset before, which improves the accuracy of smart device registration.
在一实施例中,根据设备标识以及绑定码对终端设备进行注册可以包括:In an embodiment, registering the terminal device according to the device identification and binding code may include:
检验终端设备发送的绑定码和设备标识是否合规;若绑定码和设备标识合规,则根据设备标识查询终端设备是否为已注册设备。Check whether the binding code and device identification sent by the terminal device are compliant; if the binding code and device identification are compliant, query whether the terminal device is a registered device based on the device identification.
需要说明的是,云端中可以预先存储多个参考终端设备的设备标识作为参考设备标识,该参考设备标识用于在云端接收到终端设备的设备标识时,与该设备标识进行匹配,从而确定该终端设备是否符合云端预存的参考终端设备。云端中可以预先存储绑定码的格式信息,用于在接收到绑定码时,根据绑定码的格式判断绑定码是否合规。It should be noted that the device identifiers of multiple reference terminal devices can be pre-stored in the cloud as reference device identifiers. When the cloud receives the device identifier of the terminal device, the reference device identifier is used to match the device identifier to determine the device identifier. Whether the terminal device conforms to the reference terminal device pre-stored in the cloud. The format information of the binding code can be stored in the cloud in advance, so that when the binding code is received, it can be used to determine whether the binding code is compliant based on the format of the binding code.
例如,检验终端设备发送的绑定码和设备标识是否合规可以包括:获取云端预先存储的参考设备标识与预设绑定码;判断设备标识与参考设备标识是否匹配,以及绑定码与预设绑定码是否匹配;若设备标识与参考设备标识匹配且绑定码与预设绑定码匹配,则判定设备标识和绑定码合规。在设备标识与绑定码均合规时,根据设备标识查询终端设备是否为已注册设备。For example, checking whether the binding code and device identification sent by the terminal device are compliant may include: obtaining the reference device identification and preset binding code pre-stored in the cloud; determining whether the device identification matches the reference device identification, and whether the binding code matches the preset binding code. Assume whether the binding code matches; if the device ID matches the reference device ID and the binding code matches the preset binding code, it is determined that the device ID and binding code are compliant. When the device identification and binding code are both compliant, query whether the terminal device is a registered device based on the device identification.
可选地,若设备标识与参考设备标识重复,或者设备标识中的设备类型与参考设备标识中的设备类型重复,则判定该设备标识与参考设备标识匹配,若绑定码与预设绑定码重复或者绑定码与预设绑定码对应的格式相同,则判定绑定码与预设绑定码匹配。Optionally, if the device identifier overlaps with the reference device identifier, or the device type in the device identifier overlaps with the device type in the reference device identifier, it is determined that the device identifier matches the reference device identifier. If the binding code is bound to the default If the code is repeated or the binding code corresponds to the same format as the default binding code, it is determined that the binding code matches the default binding code.
在一实施例中,绑定码获取请求中包括用户身份鉴权令牌,基于控制端请求生成与控制端对应的绑定码,可以包括:In one embodiment, the binding code acquisition request includes the user identity authentication token, and the binding code corresponding to the control terminal is generated based on the control terminal request, which may include:
校验用户身份鉴权令牌是否合规;若用户身份鉴权令牌合规,则获取用户身份鉴权令牌对应的用户账号标识;根据用户账号标识生成控制端对应的绑定码。Verify whether the user identity authentication token is compliant; if the user identity authentication token is compliant, obtain the user account ID corresponding to the user identity authentication token; generate the binding code corresponding to the control end based on the user account ID.
需要说明的是,云端中可以预先存储合规注册的参考用户,其中,该合规注册的参考用户可以是用户的有效身份证信息,或者有效电话号码信息等。根据该参考用户可以判断控制端发送的身份鉴权令牌是否合规,如果身份鉴权令牌与参考用户相同,则判定用户身份鉴权令牌合规。如果用户身份鉴权令牌合规则判定绑定码获取请求合规,此时可以获取用户身份鉴权令牌对应的用户账号标识;根据用户账号标识生成绑定码。It should be noted that the cloud can pre-store compliantly registered reference users, where the compliantly registered reference users can be the user's valid ID card information, or valid phone number information, etc. Based on the reference user, it can be determined whether the identity authentication token sent by the control end is compliant. If the identity authentication token is the same as the reference user, it is determined that the user's identity authentication token is compliant. If the user identity authentication token complies with the rules and determines that the binding code acquisition request is compliant, the user account ID corresponding to the user identity authentication token can be obtained at this time; the binding code is generated based on the user account ID.
在本实施例中,云端在接收到绑定码获取请求、绑定码以及设备标识时,首先要判断绑定码获取请求、绑定码以及设备标识是否合规,如果合规,也就是绑定码以及设备标识有效或安全的情况下,再对绑定码获取请求、绑定码以及设备标识进行后续处理,这样可以提高终端设备的复位的安全性。In this embodiment, when the cloud receives the binding code acquisition request, binding code and device identification, it must first determine whether the binding code acquisition request, binding code and device identification are compliant. If they are compliant, the binding code is When the fixed code and device identification are valid or safe, subsequent processing is performed on the binding code acquisition request, binding code and device identification, which can improve the security of resetting the terminal device.
在一实施例中,根据设备标识以及绑定码对终端设备进行注册之后,终端复位方法还包括:向终端设备返回设备ID与控制端的标识信息对应的鉴权令牌,以及向控制端返回终端设备与控制端注册成功的提示信息。In one embodiment, after registering the terminal device according to the device identification and binding code, the terminal reset method further includes: returning an authentication token corresponding to the device ID and the identification information of the control terminal to the terminal device, and returning the terminal to the control terminal. Prompt message indicating successful registration between the device and the console.
例如,在终端设备注册成功时,向终端设备返回设备ID与用户身份鉴权令牌;向控制端返回设备注册成功的提示信息。For example, when the terminal device is successfully registered, the device ID and user identity authentication token are returned to the terminal device; a prompt message that the device registration is successful is returned to the control terminal.
例如,云端在检测到终端设备与用户账号标识建立绑定关系后,向终端设备返回设备ID与用户身份鉴权令牌,以便终端设备根据设备ID与用户身份鉴权令牌与云端进行通信,并向控制端返回终端设备注册成功的提示信息,以便提示用户注册成功。For example, after detecting that the binding relationship between the terminal device and the user account ID is established, the cloud returns the device ID and user identity authentication token to the terminal device so that the terminal device can communicate with the cloud based on the device ID and user identity authentication token. And returns prompt information indicating successful registration of the terminal device to the control terminal, so as to prompt the user that the registration is successful.
在本实施例中,云端在检测到终端设备注册成功后,向终端设备返回设备ID与用户身份鉴权令牌,并向控制端返回终端设备注册成功的提示信息,以便提示用户注册成功,提高了智能设备注册的可视化效果。In this embodiment, after detecting that the terminal device is successfully registered, the cloud returns the device ID and user identity authentication token to the terminal device, and returns a prompt message indicating that the terminal device has successfully registered to the control end, so as to prompt the user that the registration is successful and improve Visualization of smart device registration.
参照图2,图2是本申请一实施例提供的终端设备的复位方法的另一流程示意图。该终端设备的复位方法可以应用于终端设备,包括:Referring to Figure 2, Figure 2 is another schematic flowchart of a method for resetting a terminal device provided by an embodiment of the present application. The reset method of the terminal device can be applied to the terminal device, including:
S201、基于控制端发送的绑定码与路由信息接入路由网络。S201. Access the routing network based on the binding code and routing information sent by the control terminal.
可选地,基于控制端发送的绑定码与路由信息接入路由网络可以包括:接收控制端发 送的绑定码与路由信息,根据路由信息连接与云端对应的路由网络。Optionally, accessing the routing network based on the binding code and routing information sent by the control terminal may include: receiving the binding code and routing information sent by the control terminal. The binding code and routing information sent are connected to the routing network corresponding to the cloud based on the routing information.
其中,该绑定码获取请求中可以包含用户账号标识,该绑定码可以用于将用户账号标识与终端设备进行绑定,该绑定码为云端基于控制端发送的绑定码获取请求生成的,经由云端发送至控制端后,控制端发送至终端设备。路由信息可以是云端接入的无线网络对应的路由器的标识信息、账号以及密码等,该路由信息可以是由用户在控制端输入的,控制端可以将该路由信息以及绑定码发送给终端设备。Among them, the binding code acquisition request can include the user account identification, and the binding code can be used to bind the user account identification with the terminal device. The binding code is generated by the cloud based on the binding code acquisition request sent by the control terminal. , after being sent to the control terminal via the cloud, the control terminal sends it to the terminal device. The routing information can be the identification information, account number, password, etc. of the router corresponding to the wireless network accessed by the cloud. The routing information can be input by the user on the control end. The control end can send the routing information and binding code to the terminal device. .
需要说明的是,终端设备可以通过与控制端之间的通信连接接收控制端发送的绑定码与路由信息,并根据路由信息中的路由器的标识信息、账号以及密码等,连接与云端对应的路由网络,从而与云端建立通信连接,该路由网络可以是终端设备与云端同处的局域网。It should be noted that the terminal device can receive the binding code and routing information sent by the control terminal through the communication connection with the control terminal, and connect to the cloud corresponding to the router's identification information, account number, password, etc. in the routing information. Routing network to establish a communication connection with the cloud. The routing network can be a local area network where the terminal device and the cloud are co-located.
S202、通过路由网络向云端上传绑定码以及终端设备的设备标识,以通过云端基于终端设备的设备标识对终端设备进行复位。S202: Upload the binding code and the device identification of the terminal device to the cloud through the routing network, so as to reset the terminal device based on the device identification of the terminal device through the cloud.
其中,设备标识可以包括终端设备的唯一编码以及设备基本信息,例如,唯一编码可以是终端设备的IP地址或者MAC地址等,设备基本信息可以是终端设备的设备类型、位置信息、CPU信息、内存信息以及操作系统版本等。The device identification may include the unique code of the terminal device and basic device information. For example, the unique code may be the IP address or MAC address of the terminal device, etc. The basic device information may be the device type, location information, CPU information, memory, etc. of the terminal device. information and operating system version, etc.
例如,终端设备通过与云端的通信连接向云端上报终端设备的设备标识与绑定码,以便通过云端基于终端设备的设备标识对终端设备进行复位。或者通过云端基于设备标识与绑定码将用户账号标识与终端设备进行绑定,从而对终端设备进行注册。For example, the terminal device reports the device identification and binding code of the terminal device to the cloud through the communication connection with the cloud, so that the terminal device can be reset based on the device identification of the terminal device through the cloud. Or, the user account ID is bound to the terminal device through the cloud based on the device ID and binding code, thereby registering the terminal device.
在本实施例中,终端设备接收控制端发送的绑定码与路由信息;根据路由信息连接路由网络;通过路由网络向云端上报终端设备的设备标识与绑定码,以使云端根据设备标识对终端设备进行复位,或者根据设备标识与绑定码对终端设备进行注册。这样利用云端对终端设备进行复位或注册,不需要通过在终端设备上报复位标志后才进行注册,这样可以解决网络不好时云端无法接收到终端设备的复位标志,而无法注册的情况,提高了智能设备注册效率。In this embodiment, the terminal device receives the binding code and routing information sent by the control terminal; connects to the routing network according to the routing information; and reports the device identification and binding code of the terminal device to the cloud through the routing network, so that the cloud determines the binding code based on the device identification. The terminal device is reset, or the terminal device is registered based on the device identification and binding code. In this way, the cloud is used to reset or register the terminal device, and there is no need to reset the reset flag on the terminal device before registering. This can solve the problem that the cloud cannot receive the reset flag of the terminal device and cannot register when the network is not good, which improves Smart device registration efficiency.
基于上述实施例,通过路由网络向云端上报终端设备的设备标识与绑定码,以使云端根据设备标识与绑定码对终端设备进行注册之后,包括:Based on the above embodiment, the device identification and binding code of the terminal device are reported to the cloud through the routing network, so that the cloud registers the terminal device according to the device identification and binding code, including:
接收云端基于设备标识与绑定码对终端设备进行注册成功后,返回的终端设备ID与用户身份鉴权令牌;根据设备ID与用户身份鉴权令牌与云端进行通信连接。After receiving the cloud's successful registration of the terminal device based on the device identification and binding code, the returned terminal device ID and user identity authentication token are communicated and connected to the cloud based on the device ID and user identity authentication token.
例如,终端设备可以通过设备ID与用户身份鉴权令牌与云端进行通信连接,从而可以通过云端控制终端设备进行相应的操作,例如后续可以通过云端对终端设备进行控制,或者用户用过用户账号标识对终端设备进行控制。For example, the terminal device can communicate with the cloud through the device ID and user identity authentication token, so that the terminal device can be controlled through the cloud to perform corresponding operations. For example, the terminal device can be controlled through the cloud later, or the user has used a user account Identification controls the terminal device.
参阅图3,图3是本申请一实施例提供的终端设备的复位方法的流程示意图。该终端设备的复位方法可以应用于控制端,可以包括:Refer to FIG. 3 , which is a schematic flowchart of a method for resetting a terminal device according to an embodiment of the present application. The reset method of the terminal device can be applied to the control end and can include:
S301、在检测到终端设备处于复位模式时,向云端发送控制端请求,其中,控制端请求携带控制端的标识信息。S301. When detecting that the terminal device is in the reset mode, send a control terminal request to the cloud, where the control terminal request carries identification information of the control terminal.
其中,控制端可以是独立于终端设备之外的终端,也可以是终端设备本身,在本实施例中控制端以独立于终端设备之外的终端为例,该控制端可以是手机、电脑、家电设备、或者可穿戴设备等。该云端可以是云端服务器,用于将终端设备与用户账号标识进行绑定从而完成终端设备的复位。控制端的标识信息可以是用户账号标识。用户账号标识可以是控制端登录的用户的账号对应的标识信息,该用户账号标识信息包含用户的身份信息以及用户以往的使用信息,该用户账号标识用于与终端设备进行绑定。例如,用户在控制端输入用户的账号与密码,登录控制端,并在控制端发送终端设备的复位指令到终端设备,从而控制终端设备进入复位模式。该控制端请求可以是绑定码获取请求,绑定码获取请求中可以包含用户账号标识以及用户身份鉴权令牌,该绑定码可以用于将用户账号标识与设备 进行绑定。The control end may be a terminal independent of the terminal device, or the terminal device itself. In this embodiment, the control end is a terminal independent of the terminal device as an example. The control end may be a mobile phone, a computer, Home appliances, or wearable devices, etc. The cloud may be a cloud server, which is used to bind the terminal device to the user account identification to complete the reset of the terminal device. The identification information of the control terminal may be the user account identification. The user account identification may be identification information corresponding to the account of the user logged in to the control terminal. The user account identification information includes the user's identity information and the user's past usage information. The user account identification is used to bind to the terminal device. For example, the user enters the user's account and password on the control terminal, logs in to the control terminal, and sends a reset command of the terminal device to the terminal device on the control terminal, thereby controlling the terminal device to enter the reset mode. The control end request can be a binding code acquisition request. The binding code acquisition request can include the user account ID and the user identity authentication token. The binding code can be used to connect the user account ID to the device. Make the binding.
例如,用户在登录控制端时,并在控制端发送终端设备的复位指令到终端设备,从而控制终端设备进入复位模式,在终端设备进入复位模式时,控制端获取登录信息,并从登录信息中获取用户账号标识,以及用户账号标识对应的用户鉴权令牌,基于用户账号标识以及用户账号标识对应的用户鉴权令牌,生成绑定码获取请求。向云端发送携带控制端的用户账号标识的绑定码获取请求。For example, when the user logs in to the control terminal, the control terminal sends a reset command of the terminal device to the terminal device, thereby controlling the terminal device to enter the reset mode. When the terminal device enters the reset mode, the control terminal obtains the login information and obtains the login information from the login information. Obtain the user account ID and the user authentication token corresponding to the user account ID, and generate a binding code acquisition request based on the user account ID and the user authentication token corresponding to the user account ID. Send a binding code acquisition request carrying the user account ID of the controller to the cloud.
S302、接收云端基于控制端请求返回的绑定码。S302. Receive the binding code returned by the cloud based on the control terminal request.
例如,云端获取绑定码获取请求即控制端请求中的用户账号标识,将用户账号标识添加进绑定码中,并将绑定码返回给控制端,以便控制端可以将绑定码发送给终端设备。控制端接收云端基于绑定码获取请求返回的与用户账号标识匹配的绑定码。For example, the cloud obtains the binding code acquisition request, which is the user account ID in the control end request, adds the user account ID to the binding code, and returns the binding code to the control end so that the control end can send the binding code to Terminal Equipment. The control terminal receives the binding code returned by the cloud based on the binding code acquisition request that matches the user account ID.
S303、获取终端设备与云端对应的路由网络的路由信息。S303. Obtain routing information of the routing network corresponding to the terminal device and the cloud.
其中,路由信息可以是云端接入的无线网络对应的路由器的标识信息、账号以及密码等,该路由信息可以是由用户在控制端输入的,控制端可以将该路由信息以及绑定码发送给终端设备。Among them, the routing information can be the identification information, account number, password, etc. of the router corresponding to the wireless network accessed by the cloud. The routing information can be input by the user on the control end, and the control end can send the routing information and binding code to Terminal Equipment.
例如,控制端接收用户输入的云端对应的路由信息,以便将路由信息发送给终端设备,从而使终端设备通过该路由信息与云端进行连接。For example, the control terminal receives the routing information corresponding to the cloud input by the user, so as to send the routing information to the terminal device, so that the terminal device can connect to the cloud through the routing information.
S304、向终端设备发送路由信息以及授权码,以使终端设备根据路由信息通过云端对终端设备进行复位。S304. Send the routing information and authorization code to the terminal device, so that the terminal device resets the terminal device through the cloud according to the routing information.
在本实施例中,控制端在检测到终端设备处于复位模式时,向云端发送携带控制端的用户账号标识的绑定码获取请求;在接收到云端基于绑定码获取请求返回的绑定码时,获取终端设备与云端对应的路由信息,向终端设备发送绑定码以及路由信息,以使终端设备根据绑定码与路由信息通过云端进行复位或注册。这样利用云端对终端设备进行复位或注册,不需要通过在终端设备上报复位标志后才进行,这样可以解决网络不好时云端无法接收到终端设备的复位标志,而无法注册的情况,提高了智能设备注册效率。In this embodiment, when the control terminal detects that the terminal device is in reset mode, it sends a binding code acquisition request carrying the user account identification of the control terminal to the cloud; when receiving the binding code returned by the cloud based on the binding code acquisition request , obtain the routing information corresponding to the terminal device and the cloud, and send the binding code and routing information to the terminal device, so that the terminal device can be reset or registered through the cloud based on the binding code and routing information. In this way, the cloud is used to reset or register the terminal device without the need to reset the reset flag on the terminal device. This can solve the problem that the cloud cannot receive the reset flag of the terminal device and cannot register when the network is not good, which improves intelligence. Device registration efficiency.
基于上述实施例,向终端设备发送绑定码以及路由信息之后,可以包括:Based on the above embodiment, after sending the binding code and routing information to the terminal device, it may include:
在接收到云端返回的终端设备注册成功的提示信息时,显示终端设备注册成功的提示信息。When receiving the prompt information that the terminal device has successfully registered returned from the cloud, the prompt information that the terminal device has successfully registered is displayed.
其中,提示信息可以是弹框中的文字形式,或者音频形式来显示。Among them, the prompt information can be displayed in the form of text in a pop-up box or in the form of audio.
例如,控制端在接收到云端返回的终端设备注册成功的提示信息时,在显示屏显示终端设备注册成功的提示信息,以提示用户终端设备已与用户账号标识绑定成功。For example, when the control terminal receives the prompt information that the terminal device has successfully registered returned from the cloud, it displays the prompt information that the terminal device has successfully registered on the display screen to remind the user that the terminal device has been successfully bound to the user account ID.
在一实施例中,向终端设备发送绑定码以及路由信息,可以包括:In one embodiment, sending the binding code and routing information to the terminal device may include:
S1、获取终端设备的连接信号;S1. Obtain the connection signal of the terminal device;
在一实施例中,获取终端设备的连接信号,可以包括:搜索在控制端预设距离范围内的候选连接信号;响应于用户输入的选择指令,从候选连接信号筛选出终端设备的连接信号。In one embodiment, obtaining the connection signal of the terminal device may include: searching for candidate connection signals within a preset distance range of the control terminal; and filtering out the connection signal of the terminal device from the candidate connection signals in response to a selection instruction input by the user.
其中,该连接信号可以是终端设备的热点信号。该预设距离可以是终端设备的热点信号的最大辐射距离。候选连接信号可以是控制端周围可以扫描到的多个热点信号。The connection signal may be a hotspot signal of the terminal device. The preset distance may be the maximum radiation distance of the hotspot signal of the terminal device. Candidate connection signals may be multiple hotspot signals that can be scanned around the control terminal.
例如,控制端搜索附近的热点信号,并显示搜索到的候选热点信号,用户在显示的候选热点信号中选择终端设备的连接信号。For example, the control terminal searches for nearby hotspot signals and displays the searched candidate hotspot signals. The user selects the connection signal of the terminal device among the displayed candidate hotspot signals.
S2、根据连接信号与终端设备进行通信连接;S2. Communicate with the terminal device according to the connection signal;
例如,控制端在确定终端设备的热点信号后,连接该热点信号,从而简历与终端设备的通信连接。For example, after determining the hotspot signal of the terminal device, the control terminal connects to the hotspot signal, thereby establishing a communication connection with the terminal device.
S3、通过通信连接向终端设备发送绑定码以及路由信息。 S3. Send the binding code and routing information to the terminal device through the communication connection.
例如,控制端通过与终端设备的通信连接向终端设备发送绑定码以及路由信息,以使得终端设备根据该路由器账号与密码接入与云端对应的无线网,从而与云端进行通信,并根据该绑定码通过云端进行注册。For example, the control terminal sends the binding code and routing information to the terminal device through the communication connection with the terminal device, so that the terminal device accesses the wireless network corresponding to the cloud according to the router account and password, thereby communicating with the cloud, and according to the The binding code is registered through the cloud.
基于上述实施例,获取终端设备与云端对应的路由信息,可以包括:Based on the above embodiment, obtaining routing information corresponding to the terminal device and the cloud may include:
S1、接收到云端基于绑定码获取请求返回的与用户账号标识匹配的绑定码时,输出路由信息输入界面;S1. When receiving the binding code returned by the cloud based on the binding code acquisition request that matches the user account ID, output the routing information input interface;
S2、基于路由信息输入界面接收用户输入的终端设备与云端对应的路由信息。S2. Receive the routing information corresponding to the terminal device and the cloud input by the user based on the routing information input interface.
其中,路由信息可以是云端接入的无线网络对应的路由器的标识信息、账号以及密码等,该路由信息可以是由用户在控制端输入的,控制端可以将该路由信息以及绑定码发送给终端设备。路由信息输入界面可以显示云端连接的路由器的标识信息、账号以及密码的填写区域。Among them, the routing information can be the identification information, account number, password, etc. of the router corresponding to the wireless network accessed by the cloud. The routing information can be input by the user on the control end, and the control end can send the routing information and binding code to Terminal Equipment. The routing information input interface can display the identification information, account number and password filling area of the router connected to the cloud.
例如,控制端接收到云端基于绑定码获取请求返回的与用户账号标识匹配的绑定码时,显示云端连接的路由器的标识信息、账号以及密码的填写区域。接收用户输入的云端连接的路由器的标识信息、账号以及密码,以便将云端连接的路由器的标识信息、账号以及密码发送给终端设备,从而使终端设备通过该路由信息与云端进行连接。For example, when the control terminal receives the binding code returned by the cloud based on the binding code acquisition request that matches the user account ID, it displays the identification information, account number, and password filling area of the router connected to the cloud. Receive the identification information, account number, and password of the cloud-connected router input by the user, so as to send the identification information, account number, and password of the cloud-connected router to the terminal device, so that the terminal device can connect to the cloud through the routing information.
在本实施例中,控制端通过终端设备的热点信息与终端设备进行连接,并将用户输入的云端连接的路由器的路由信息发送至终端设备,从而方便终端设备与云端进行连接,提高了智能设备注册的效率。In this embodiment, the control terminal connects to the terminal device through the hotspot information of the terminal device, and sends the routing information of the router connected to the cloud input by the user to the terminal device, thereby facilitating the connection between the terminal device and the cloud and improving the efficiency of smart devices. Registration efficiency.
参照图4,图4为本申请实施例提供的终端设备的复位系统中控制端、终端设备以及云端之间的数据传输示意图。其中,系统包括控制端、终端设备以及云端,控制端、终端设备以及云端之间的数据传输可以包括:Referring to Figure 4, Figure 4 is a schematic diagram of data transmission between the control end, the terminal equipment and the cloud in the reset system of the terminal equipment provided by the embodiment of the present application. Among them, the system includes the control end, terminal equipment and cloud. Data transmission between the control end, terminal equipment and cloud can include:
S10、控制端在检测到终端设备处于复位模式时,向云端发送携带控制端的用户账号标识的绑定码获取请求。S10. When the control terminal detects that the terminal device is in reset mode, it sends a binding code acquisition request carrying the user account identification of the control terminal to the cloud.
S11、云端接收控制端发送的携带用户账号标识的绑定码获取请求,获取绑定码获取请求中的用户身份鉴权令牌;校验用户身份鉴权令牌是否合规;若用户身份鉴权令牌合规,则获取用户身份鉴权令牌对应的用户账号标识;根据用户账号标识生成绑定码。S11. The cloud receives the binding code acquisition request carrying the user account identification sent by the control terminal, obtains the user identity authentication token in the binding code acquisition request; verifies whether the user identity authentication token is compliant; if the user identity authentication If the authorization token is compliant, obtain the user account ID corresponding to the user identity authentication token; generate a binding code based on the user account ID.
S12、云端向控制端返回绑定码。S12. The cloud returns the binding code to the control terminal.
S13、控制端接收云端基于绑定码获取请求返回的与用户账号标识匹配的绑定码,输出路由信息输入界面;基于路由信息输入界面接收用户输入的终端设备与云端对应的路由信息。S13. The control terminal receives the binding code returned by the cloud based on the binding code acquisition request that matches the user account ID, and outputs the routing information input interface; receives the routing information corresponding to the terminal device and the cloud input by the user based on the routing information input interface.
S14、控制端获取终端设备的连接信号;根据连接信号与终端设备进行通信连接;通过通信连接向终端设备发送绑定码以及路由信息。S14. The control terminal obtains the connection signal of the terminal device; communicates with the terminal device according to the connection signal; and sends the binding code and routing information to the terminal device through the communication connection.
S15、终端设备接收控制端发送的绑定码与路由信息;根据路由信息连接与云端对应的路由网络;通过路由网络向云端上报终端设备的设备标识与绑定码。S15. The terminal device receives the binding code and routing information sent by the control terminal; connects to the routing network corresponding to the cloud according to the routing information; and reports the device identification and binding code of the terminal device to the cloud through the routing network.
S16、云端接收终端设备基于路由信息连接与云端对应的路由网络上报的设备标识以及绑定码;校验设备标识和绑定码是否合规;若设备标识和绑定码合规,则根据设备标识判断终端设备是否已注册;S16. The cloud receives the device identification and binding code reported by the terminal device based on the routing information and connects to the routing network corresponding to the cloud; verifies whether the device identification and binding code are compliant; if the device identification and binding code are compliant, the device The identification determines whether the terminal device has been registered;
S17、云端若判定终端设备已注册,则根据设备标识获取终端设备的设备ID;根据设备ID获取历史用户账号标识;根据设备ID与历史用户账号标识,解除终端设备与历史用户账号标识的绑定关系;并根据绑定码获取用户账号标识;根据设备ID与用户账号标识,将用户账号标识与终端设备进行绑定,以完成终端设备的注册。S17. If the cloud determines that the terminal device has been registered, it will obtain the device ID of the terminal device based on the device ID; obtain the historical user account ID based on the device ID; and unbind the terminal device from the historical user account ID based on the device ID and the historical user account ID. relationship; and obtain the user account ID based on the binding code; bind the user account ID to the terminal device based on the device ID and user account ID to complete the registration of the terminal device.
S18、云端若判定终端设备未注册,则根据设备标识生成终端设备的设备ID;根据绑定码获取用户账号标识;根据设备ID与用户账号标识,将用户账号标识与终端设备进行绑 定,以完成终端设备的注册。S18. If the cloud determines that the terminal device is not registered, it will generate the device ID of the terminal device based on the device ID; obtain the user account ID based on the binding code; and bind the user account ID to the terminal device based on the device ID and user account ID. to complete the registration of the terminal device.
S19、云端在检测到终端设备注册成功时,向终端设备返回设备ID与用户身份鉴权令牌;向控制端返回终端设备的复位或注册成功的提示信息。S19. When the cloud detects that the terminal device is successfully registered, it returns the device ID and user identity authentication token to the terminal device; it returns a reset message of the terminal device or a successful registration message to the control terminal.
S20、控制端在接收到云端返回的终端设备的复位或注册成功的提示信息时,显示终端设备注册成功的提示信息。S20. When the control terminal receives the prompt information of reset or successful registration of the terminal device returned from the cloud, it displays the prompt information of successful registration of the terminal device.
以上各个操作的具体实施可参见前面的实施例,在此不作赘述。The specific implementation of each of the above operations may be referred to the previous embodiments and will not be described in detail here.
在本实施例中,控制端在检测到终端设备处于复位模式时,向云端发送携带控制端的用户账号标识的绑定码获取请求;云端接收控制端发送的携带用户账号标识的绑定码获取请求,基于绑定码获取请求中的用户账号标识生成绑定码,并向控制端返回绑定码,以使控制端将绑定码和路由信息发送给终端设备;控制端接收云端基于绑定码获取请求返回的与用户账号标识匹配的绑定码之后,获取终端设备与云端对应的路由信息,并向终端设备发送绑定码以及路由信息;终端设备在接收控制端发送的绑定码与路由信息时,根据路由信息连接与云端对应的路由网络,并通过路由网络向云端上报终端设备的设备标识与绑定码;云端接收终端设备基于路由信息连接与云端对应的路由网络上报的设备标识以及绑定码,并根据设备标识以及绑定码对终端设备进行注册。这样利用云端对终端设备进行注册,不需要通过在终端设备上报复位标志后才进行注册,这样可以解决网络不好时云端无法接收到终端设备的复位标志,而无法注册的情况,提高了智能设备注册效率。In this embodiment, when the control terminal detects that the terminal device is in reset mode, it sends a binding code acquisition request carrying the user account ID of the control terminal to the cloud; the cloud receives the binding code acquisition request carrying the user account ID sent by the control terminal. , generate a binding code based on the user account identification in the binding code acquisition request, and return the binding code to the control end, so that the control end sends the binding code and routing information to the terminal device; the control end receives the binding code from the cloud based on After obtaining the binding code returned by the request that matches the user account ID, obtain the routing information corresponding to the terminal device and the cloud, and send the binding code and routing information to the terminal device; the terminal device receives the binding code and routing sent by the control end When receiving information, it connects to the routing network corresponding to the cloud based on the routing information, and reports the device identification and binding code of the terminal device to the cloud through the routing network; the cloud receives the device identification reported by the terminal device based on the routing network connected to the cloud corresponding to the routing network and Binding code, and register the terminal device according to the device identification and binding code. In this way, the cloud is used to register the terminal device, and there is no need to reset the reset flag on the terminal device before registration. This can solve the problem that the cloud cannot receive the reset flag of the terminal device and cannot register when the network is not good, and improves the efficiency of smart devices. Registration efficiency.
为便于更好的实施本申请实施例提供的终端设备的复位方法,本申请实施例还提供一种基于上述终端设备的复位方法的装置。其中名词的含义与上述终端设备的复位方法中相同,具体实现细节可以参考方法实施例中的说明。In order to facilitate better implementation of the resetting method of the terminal equipment provided by the embodiment of the present application, the embodiment of the present application also provides an apparatus based on the above resetting method of the terminal equipment. The meanings of the nouns are the same as in the above-mentioned method of resetting the terminal device. For specific implementation details, please refer to the description in the method embodiment.
请参阅图5,图5为本申请实施例提供的终端设备的复位装置的结构示意图,其中该终端设备的复位装置300可以包括发送模块301、接收模块302、查询模块303以及复位模块304等。Please refer to Figure 5. Figure 5 is a schematic structural diagram of a reset device of a terminal device provided by an embodiment of the present application. The reset device 300 of the terminal device may include a sending module 301, a receiving module 302, a query module 303, a reset module 304, etc.
其中,发送模块301,用于基于控制端请求生成与控制端对应的绑定码,并发送绑定码到控制端;Among them, the sending module 301 is used to generate a binding code corresponding to the control terminal based on the control terminal request, and send the binding code to the control terminal;
接收模块302,用于在终端设备接入路由网络之后,接收终端设备发送的绑定码和设备标识,其中,绑定码由控制端与终端设备建立网络连接后,发送到终端设备;The receiving module 302 is used to receive the binding code and device identification sent by the terminal device after the terminal device accesses the routing network, wherein the binding code is sent to the terminal device after the control terminal establishes a network connection with the terminal device;
查询模块303,用于根据设备标识查询终端设备是否为已注册设备;Query module 303, used to query whether the terminal device is a registered device according to the device identification;
复位模块304,用于若终端设备为已注册设备,则复位终端设备与历史用户的绑定关系。The reset module 304 is used to reset the binding relationship between the terminal device and historical users if the terminal device is a registered device.
第一获取模块,用于基于设备标识获取终端设备的设备ID;The first acquisition module is used to acquire the device ID of the terminal device based on the device identifier;
第二获取模块,用于根据绑定码获取控制端的标识信息;The second acquisition module is used to obtain the identification information of the control terminal according to the binding code;
绑定模块,用于基于设备ID和控制端的标识信息,建立终端设备和控制端的绑定关系。The binding module is used to establish a binding relationship between the terminal device and the control end based on the device ID and the identification information of the control end.
第一生成模块,用于若终端设备为未注册设备,则根据终端设备的设备标识生成设备ID;The first generation module is used to generate a device ID based on the device identification of the terminal device if the terminal device is an unregistered device;
第三获取模块,用于根据绑定码获取控制端的标识信息;The third acquisition module is used to obtain the identification information of the control terminal according to the binding code;
绑定模块,用于基于设备ID和控制端的标识信息,建立终端设备和控制端的绑定关系。The binding module is used to establish a binding relationship between the terminal device and the control end based on the device ID and the identification information of the control end.
返回模块,用于向终端设备返回设备ID与控制端的标识信息对应的鉴权令牌,以及向控制端返回终端设备与控制端注册成功的提示信息。The return module is used to return to the terminal device an authentication token corresponding to the device ID and the identification information of the control terminal, and to return to the control terminal a prompt message indicating that the terminal device and the control terminal have successfully registered.
第一校验模块,用于检验终端设备发送的绑定码和设备标识是否合规;The first verification module is used to verify whether the binding code and device identification sent by the terminal device are compliant;
查询模块,用于若绑定码和设备标识合规,则根据设备标识查询终端设备是否为已注册设备。The query module is used to query whether the terminal device is a registered device based on the device identifier if the binding code and device identification are consistent.
第四获取模块,用于获取控制端请求中的控制端的标识信息; The fourth acquisition module is used to obtain the identification information of the control terminal in the control terminal request;
第二生成模块,用于基于控制端的标识信息生成与控制端对应的绑定码。The second generation module is used to generate a binding code corresponding to the control terminal based on the identification information of the control terminal.
第二校验模块,用于校验控制端请求是否合规;The second verification module is used to verify whether the control end request is compliant;
第三生成模块,用于若控制端请求合规,则基于控制端的标识信息生成与控制端对应的绑定码。The third generation module is used to generate a binding code corresponding to the control end based on the identification information of the control end if the control end requests compliance.
请参阅图6,图6为本申请实施例提供的终端设备的复位装置的结构示意图,其中该终端设备的复位装置300可以包括接入模块305以及上传模块306等。Please refer to FIG. 6 . FIG. 6 is a schematic structural diagram of a reset device of a terminal device provided by an embodiment of the present application. The reset device 300 of the terminal device may include an access module 305 and an upload module 306 .
接入模块305,用于基于控制端发送的绑定码与路由信息接入路由网络;The access module 305 is used to access the routing network based on the binding code and routing information sent by the control terminal;
上传模块306,用于通过路由网络向云端上传绑定码以及终端设备的设备标识,以通过云端基于终端设备的设备标识对终端设备进行复位。接收模块,用于接收云端基于设备标识与绑定码对终端设备进行注册成功后,返回的终端设备ID与用户身份鉴权令牌;The upload module 306 is used to upload the binding code and the device identification of the terminal device to the cloud through the routing network, so as to reset the terminal device based on the device identification of the terminal device through the cloud. The receiving module is used to receive the terminal device ID and user identity authentication token returned after the cloud successfully registers the terminal device based on the device identification and binding code;
请参阅图7,图7为本申请实施例提供的终端设备的复位装置的结构示意图,其中该终端设备的复位装置300可以包括发送模块307、接收模块308、获取模块309以及发送模块310等。Please refer to Figure 7, which is a schematic structural diagram of a reset device of a terminal device provided by an embodiment of the present application. The reset device 300 of the terminal device may include a sending module 307, a receiving module 308, an acquisition module 309, a sending module 310, etc.
发送模块307,用于在检测到终端设备处于复位模式时,向云端发送控制端请求,其中,控制端请求携带控制端的标识信息;The sending module 307 is configured to send a control end request to the cloud when detecting that the terminal device is in reset mode, where the control end request carries identification information of the control end;
接收模块308,用于接收云端基于控制端请求返回的绑定码;The receiving module 308 is used to receive the binding code returned by the cloud based on the control terminal request;
获取模块309,用于获取终端设备与云端对应的路由网络的路由信息;The acquisition module 309 is used to obtain the routing information of the routing network corresponding to the terminal device and the cloud;
发送模块310,用于向终端设备发送路由信息以及授权码,以使终端设备根据路由信息通过云端对终端设备进行复位。The sending module 310 is used to send routing information and authorization codes to the terminal device, so that the terminal device resets the terminal device through the cloud according to the routing information.
以上各个装置的具体实施可参见前面的实施例,在此不作赘述。The specific implementation of each of the above devices can be referred to the previous embodiments and will not be described in detail here.
本申请实施例还提供一种智能设备,该智能设备可以是手机等终端,如图8所示,其示出了本申请实施例所涉及的智能设备的结构示意图,具体来讲:The embodiment of the present application also provides an intelligent device. The intelligent device may be a terminal such as a mobile phone. As shown in Figure 8, it shows a schematic structural diagram of the intelligent device involved in the embodiment of the present application. Specifically:
该智能设备可以包括一个或者一个以上处理核心的处理器401、一个或一个以上计算机可读存储介质的存储器402、电源403和输入单元404等部件。本领域技术人员可以理解,图8中示出的智能设备结构并不构成对智能设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:The smart device may include components such as a processor 401 of one or more processing cores, a memory 402 of one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art can understand that the structure of the smart device shown in Figure 8 does not constitute a limitation on the smart device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange different components. in:
处理器401是该智能设备的控制中心,利用各种接口和线路连接整个智能设备的各个部分,通过运行或执行存储在存储器402内的软件程序和/或模块,以及调用存储在存储器402内的数据,执行智能设备的各种功能和处理数据,从而对智能设备进行整体监控。可选的,处理器401可包括一个或多个处理核心;优选的,处理器401可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器401中。The processor 401 is the control center of the smart device, using various interfaces and lines to connect various parts of the entire smart device, by running or executing software programs and/or modules stored in the memory 402, and calling software programs stored in the memory 402. Data, perform various functions of smart devices and process data to conduct overall monitoring of smart devices. Optionally, the processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, where the application processor mainly processes operating systems, user interfaces, application programs, etc. , the modem processor mainly handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 401.
存储器402可用于存储软件程序以及模块,处理器401通过运行存储在存储器402的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器402可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据智能设备的使用所创建的数据等。此外,存储器402可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器402还可以包括存储器控制器,以提供处理器401对存储器402的访问。The memory 402 can be used to store software programs and modules. The processor 401 executes various functional applications and data processing by running the software programs and modules stored in the memory 402 . The memory 402 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the storage data area may store data based on Data created by the use of smart devices, etc. In addition, memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402 .
智能设备还包括给各个部件供电的电源403,优选的,电源403可以通过电源管理系统与处理器401逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源403还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检 测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The smart device also includes a power supply 403 that supplies power to various components. Preferably, the power supply 403 can be logically connected to the processor 401 through a power management system, so that functions such as charging, discharging, and power consumption management can be implemented through the power management system. Power supply 403 may also include one or more DC or AC power supplies, recharging systems, power supply fault detection Test circuits, power converters or inverters, power status indicators, and any other component.
该智能设备还可包括输入单元404,该输入单元404可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。The smart device may also include an input unit 404 that may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
尽管未示出,智能设备还可以包括显示单元等,在此不再赘述。具体在本实施例中,智能设备中的处理器401会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行文件加载到存储器402中,并由处理器401来运行存储在存储器402中的应用程序,从而实现各种功能,智能设备包括控制端、终端设备、以及云端,当智能设备为控制端时,执行如下程序:Although not shown, the smart device may also include a display unit, etc., which will not be described again here. Specifically, in this embodiment, the processor 401 in the smart device will load the executable files corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 401 will run the executable files stored in The application program in the memory 402 realizes various functions. The smart device includes the control terminal, the terminal device, and the cloud. When the smart device is the control terminal, the following program is executed:
在检测到终端设备处于复位模式时,向云端发送控制端请求,其中,控制端请求携带控制端的标识信息;接收云端基于控制端请求返回的绑定码;获取终端设备与云端对应的路由网络的路由信息;向终端设备发送路由信息以及授权码,以使终端设备根据路由信息通过云端对终端设备进行复位。When detecting that the terminal device is in reset mode, send a control request to the cloud, where the control request carries the identification information of the control; receive the binding code returned by the cloud based on the control request; obtain the routing network corresponding to the terminal device and the cloud Routing information; sending routing information and authorization codes to the terminal device so that the terminal device can reset the terminal device through the cloud based on the routing information.
当智能设备为终端设备时,执行如下程序:基于控制端发送的绑定码与路由信息接入路由网络;通过路由网络向云端上传绑定码以及终端设备的设备标识,以通过云端基于终端设备的设备标识对终端设备进行复位。When the smart device is a terminal device, the following procedures are executed: access the routing network based on the binding code and routing information sent by the control terminal; upload the binding code and the device identification of the terminal device to the cloud through the routing network to use the terminal device through the cloud. Use the device identifier to reset the terminal device.
当智能设备为云端时,执行如下程序:基于控制端请求生成与控制端对应的绑定码,并发送绑定码到控制端;在终端设备接入路由网络之后,接收终端设备发送的绑定码和设备标识,其中,绑定码由控制端与终端设备建立网络连接后,发送到终端设备;根据设备标识查询终端设备是否为已注册设备;若终端设备为已注册设备,则复位终端设备与历史用户的绑定关系。When the smart device is a cloud, the following procedures are executed: generate a binding code corresponding to the control terminal based on the control terminal request, and send the binding code to the control terminal; after the terminal device accesses the routing network, receive the binding sent by the terminal device code and device identification, where the binding code is sent to the terminal device after the control terminal establishes a network connection with the terminal device; query whether the terminal device is a registered device according to the device identification; if the terminal device is a registered device, reset the terminal device Binding relationship with historical users.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见上文针对终端设备的复位方法的详细描述,此处不再赘述。In the above embodiments, each embodiment is described with its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the detailed description of the resetting method of the terminal device above, which will not be described again here.
根据本申请的一个方面,提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。智能设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该智能设备执行上述实施例中各种可选实现方式中提供的方法。According to one aspect of the present application, a computer program product or computer program is provided, which computer program product or computer program includes computer instructions stored in a computer-readable storage medium. The processor of the smart device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the smart device executes the methods provided in various optional implementations in the above embodiments.
本领域普通技术人员可以理解,上述实施例的各种方法中的全部或部分步骤可以通过计算机指令来完成,或通过计算机指令控制相关的硬件来完成,该计算机指令可以存储于一存储介质中并由处理器进行加载和执行,该存储介质为计算机可读存储介质。为此,本申请实施例提供一种存储介质,其中存储有计算机程序,计算机程序可以包括计算机指令,该计算机程序能够被处理器进行加载,以执行本申请实施例所提供的任一种终端设备的复位方法。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by computer instructions, or by controlling relevant hardware through computer instructions. The computer instructions can be stored in a storage medium and It is loaded and executed by the processor, and the storage medium is a computer-readable storage medium. To this end, embodiments of the present application provide a storage medium in which a computer program is stored. The computer program may include computer instructions. The computer program can be loaded by a processor to execute any terminal device provided by the embodiments of the present application. reset method.
以上各个操作的具体实施可参见前面的实施例,在此不再赘述。For the specific implementation of each of the above operations, please refer to the previous embodiments and will not be described again here.
其中,该存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。Among them, the storage medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, etc.
由于该存储介质中所存储的计算机指令,可以执行本申请实施例所提供的任一种终端设备的复位方法,因此,可以实现本申请实施例所提供的任一种终端设备的复位方法所能实现的有益效果,详见前面的实施例,在此不再赘述。Since the computer instructions stored in the storage medium can execute any of the resetting methods of the terminal equipment provided by the embodiments of the present application, it is possible to realize the capabilities of any of the resetting methods of the terminal equipment provided by the embodiments of the present application. The beneficial effects achieved are detailed in the previous embodiments and will not be described again here.
以上对本申请实施例所提供的一种终端设备的复位方法、系统、装置、智能设备及存储介质进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上,本说 明书内容不应理解为对本申请的限制。 The above is a detailed introduction to the reset method, system, device, intelligent device and storage medium of a terminal device provided by the embodiments of the present application. This article uses specific examples to illustrate the principles and implementation methods of the present application. The above implementation The description of the examples is only used to help understand the method and the core idea of the present application; at the same time, for those skilled in the art, there will be changes in the specific implementation and application scope based on the ideas of the present application. In summary, original theory The contents of the specification should not be construed as limitations on this application.

Claims (20)

  1. 一种终端设备的复位方法,应用于云端,其中,所述方法包括:A method for resetting terminal equipment, applied to the cloud, wherein the method includes:
    基于控制端请求生成与所述控制端对应的绑定码,并发送所述绑定码到所述控制端;Generate a binding code corresponding to the control terminal based on the control terminal request, and send the binding code to the control terminal;
    在终端设备接入路由网络之后,接收终端设备发送的绑定码和设备标识,其中,所述绑定码由所述控制端与所述终端设备建立网络连接后,发送到所述终端设备;After the terminal device accesses the routing network, receive the binding code and device identification sent by the terminal device, wherein the binding code is sent to the terminal device after the control terminal establishes a network connection with the terminal device;
    根据所述设备标识查询所述终端设备是否为已注册设备;Query whether the terminal device is a registered device according to the device identification;
    若所述终端设备为已注册设备,则复位所述终端设备与历史用户的绑定关系。If the terminal device is a registered device, the binding relationship between the terminal device and historical users is reset.
  2. 根据权利要求1所述的终端设备的复位方法,其中,在所述复位所述终端设备与历史用户的绑定关系之后,包括:The method for resetting a terminal device according to claim 1, wherein after resetting the binding relationship between the terminal device and historical users, the method includes:
    基于所述设备标识获取所述终端设备的设备ID;Obtain the device ID of the terminal device based on the device identification;
    根据所述绑定码获取所述控制端的标识信息;Obtain the identification information of the control terminal according to the binding code;
    基于所述设备ID和所述控制端的标识信息,建立所述终端设备和所述控制端的绑定关系。Based on the device ID and the identification information of the control terminal, a binding relationship between the terminal device and the control terminal is established.
  3. 根据权利要求1所述的终端设备的复位方法,其中,所述终端设备的复位方法,还包括:The resetting method of terminal equipment according to claim 1, wherein the resetting method of terminal equipment further includes:
    若所述终端设备为未注册设备,则根据所述终端设备的设备标识生成设备ID;If the terminal device is an unregistered device, generate a device ID according to the device identification of the terminal device;
    根据所述绑定码获取所述控制端的标识信息;Obtain the identification information of the control terminal according to the binding code;
    基于所述设备ID和所述控制端的标识信息,建立所述终端设备和所述控制端的绑定关系。Based on the device ID and the identification information of the control terminal, a binding relationship between the terminal device and the control terminal is established.
  4. 根据权利要求2所述的终端设备的复位方法,其中,在建立所述终端设备和所述控制端的绑定关系之后,所述终端设备的复位方法,还包括:The resetting method of the terminal device according to claim 2, wherein, after establishing the binding relationship between the terminal device and the control end, the resetting method of the terminal device further includes:
    向所述终端设备返回所述设备ID与所述控制端的标识信息对应的鉴权令牌,以及向所述控制端返回所述终端设备与所述控制端注册成功的提示信息。Return to the terminal device an authentication token corresponding to the device ID and the identification information of the control terminal, and return to the control terminal prompt information indicating successful registration between the terminal device and the control terminal.
  5. 根据权利要求1所述的终端设备的复位方法,其中,所述根据所述设备标识查询所述终端设备是否为已注册设备,包括:The method for resetting a terminal device according to claim 1, wherein the querying whether the terminal device is a registered device according to the device identification includes:
    检验所述终端设备发送的绑定码和设备标识是否合规;Verify whether the binding code and device identification sent by the terminal device are compliant;
    若所述绑定码和设备标识合规,则根据所述设备标识查询所述终端设备是否为已注册设备。If the binding code and the device identification are compliant, query whether the terminal device is a registered device according to the device identification.
  6. 根据权利要求1所述的终端设备的复位方法,其中,所述基于控制端请求生成与所述控制端对应的绑定码,包括:The reset method of a terminal device according to claim 1, wherein the generating a binding code corresponding to the control terminal based on the control terminal request includes:
    获取所述控制端请求中的控制端的标识信息;Obtain the identification information of the control terminal in the control terminal request;
    基于所述控制端的标识信息生成与所述控制端对应的绑定码。Generate a binding code corresponding to the control terminal based on the identification information of the control terminal.
  7. 根据权利要求6所述的终端设备的复位方法,其中,所述基于所述控制端的标识信息生成与所述控制端对应的绑定码,包括:The resetting method of a terminal device according to claim 6, wherein the generating a binding code corresponding to the control terminal based on the identification information of the control terminal includes:
    校验所述控制端请求是否合规;Verify whether the control request is compliant;
    若所述控制端请求合规,则基于所述控制端的标识信息生成与所述控制端对应的绑定码。If the control terminal requests compliance, a binding code corresponding to the control terminal is generated based on the identification information of the control terminal.
  8. 根据权利要求3所述的终端设备的复位方法,其中,在建立所述终端设备和所述控制端的绑定关系之后,所述终端设备的复位方法,还包括:The resetting method of the terminal device according to claim 3, wherein after establishing the binding relationship between the terminal device and the control terminal, the resetting method of the terminal device further includes:
    向所述终端设备返回所述设备ID与所述控制端的标识信息对应的鉴权令牌,以及向所述控制端返回所述终端设备与所述控制端注册成功的提示信息。Return to the terminal device an authentication token corresponding to the device ID and the identification information of the control terminal, and return to the control terminal prompt information indicating successful registration between the terminal device and the control terminal.
  9. 根据权利要求5所述的终端设备的复位方法,其中,所述根据所述设备标识查询所述终端设备是否为已注册设备,包括:The method for resetting a terminal device according to claim 5, wherein the querying whether the terminal device is a registered device according to the device identification includes:
    若所述终端设备并未与其他已绑定的用户账号标识进行绑定关系解除,则判定所述终 端设备已注册;If the terminal device has not been unbound from other bound user account identifiers, it is determined that the terminal device The terminal device has been registered;
    若所述终端设备之前从未与历史用户账号标识绑定过,或者,若所述终端设备曾与历史用户账号标识绑定过,但目已经解除了与历史用户账号标识的绑定关系,则判定所述终端设备未注册。If the terminal device has never been bound to a historical user account ID before, or if the terminal device has been bound to a historical user account ID but has now been unbound from the historical user account ID, then It is determined that the terminal device is not registered.
  10. 根据权利要求5所述的终端设备的复位方法,其中,所述检验所述终端设备发送的绑定码和设备标识是否合规,包括:The reset method of a terminal device according to claim 5, wherein the checking whether the binding code and device identification sent by the terminal device are compliant includes:
    获取云端预先存储的参考设备标识与预设绑定码;Obtain the reference device identification and default binding code pre-stored in the cloud;
    判断设备标识与参考设备标识是否匹配,以及绑定码与预设绑定码是否匹配;Determine whether the device identification matches the reference device identification, and whether the binding code matches the preset binding code;
    若设备标识与参考设备标识匹配且绑定码与预设绑定码匹配,则判定设备标识和绑定码合规。If the device ID matches the reference device ID and the binding code matches the preset binding code, it is determined that the device ID and binding code are compliant.
  11. 根据权利要求5所述的终端设备的复位方法,其中,所述检验所述终端设备发送的绑定码和设备标识是否合规,包括:The reset method of a terminal device according to claim 5, wherein the checking whether the binding code and device identification sent by the terminal device are compliant includes:
    若设备标识与参考设备标识重复,或者设备标识中的设备类型与参考设备标识中的设备类型重复,则判定该设备标识与参考设备标识匹配;If the equipment identification duplicates the reference equipment identification, or the equipment type in the equipment identification duplicates the equipment type in the reference equipment identification, it is determined that the equipment identification matches the reference equipment identification;
    若绑定码与预设绑定码重复或者绑定码与预设绑定码对应的格式相同,则判定绑定码与预设绑定码匹配。If the binding code is repeated with the default binding code or the binding code and the default binding code have the same format, it is determined that the binding code matches the default binding code.
  12. 根据权利要求1所述的终端设备的复位方法,其中,所述绑定码获取请求中包括用户身份鉴权令牌,所述基于控制端请求生成与所述控制端对应的绑定码,可以包括:The reset method of a terminal device according to claim 1, wherein the binding code acquisition request includes a user identity authentication token, and the binding code corresponding to the control terminal is generated based on the control terminal request. include:
    校验所述用户身份鉴权令牌是否合规;Verify whether the user identity authentication token is compliant;
    若所述用户身份鉴权令牌合规,则获取用户身份鉴权令牌对应的用户账号标识;If the user identity authentication token is compliant, obtain the user account ID corresponding to the user identity authentication token;
    根据所述用户账号标识生成控制端对应的绑定码。Generate a binding code corresponding to the control terminal according to the user account identification.
  13. 一种终端设备的复位方法,应用于终端设备,其中,所述方法包括:A method for resetting terminal equipment, applied to terminal equipment, wherein the method includes:
    基于控制端发送的绑定码与路由信息接入路由网络;Access the routing network based on the binding code and routing information sent by the control terminal;
    通过所述路由网络向所述云端上传所述绑定码以及所述终端设备的设备标识,以通过所述云端基于所述终端设备的设备标识对所述终端设备进行复位。Upload the binding code and the device identification of the terminal device to the cloud through the routing network, so that the terminal device is reset based on the device identification of the terminal device through the cloud.
  14. 一种终端设备的复位方法,应用于控制端,其中,所述方法包括:A method for resetting terminal equipment, applied to the control terminal, wherein the method includes:
    在检测到终端设备处于复位模式时,向云端发送控制端请求,其中,所述控制端请求携带所述控制端的标识信息;When it is detected that the terminal device is in reset mode, send a control terminal request to the cloud, wherein the control terminal request carries the identification information of the control terminal;
    接收所述云端基于所述控制端请求返回的绑定码;Receive the binding code returned by the cloud based on the control terminal request;
    获取所述终端设备与所述云端对应的路由网络的路由信息;Obtain routing information of the routing network corresponding to the terminal device and the cloud;
    向所述终端设备发送所述路由信息以及所述授权码,以使所述终端设备根据所述路由信息通过云端对所述终端设备进行复位。Send the routing information and the authorization code to the terminal device, so that the terminal device resets the terminal device through the cloud according to the routing information.
  15. 一种终端设备的复位系统,所述系统包括控制端、终端设备以及云端,其中,控制端在检测到终端设备处于复位模式时,向云端发送控制端请求,其中,所述控制端请求携带所述控制端的标识信息;A reset system for terminal equipment. The system includes a control end, a terminal equipment and a cloud. When the control end detects that the terminal equipment is in reset mode, it sends a control end request to the cloud. The control end request carries the Describes the identification information of the control terminal;
    云端基于控制端请求生成与所述控制端对应的绑定码,并发送所述绑定码到所述控制端;The cloud generates a binding code corresponding to the control terminal based on the control terminal request, and sends the binding code to the control terminal;
    控制端接收所述云端基于所述控制端请求返回的绑定码;The control terminal receives the binding code returned by the cloud based on the control terminal request;
    控制端获取所述终端设备与所述云端对应的路由网络的路由信息;The control terminal obtains routing information of the routing network corresponding to the terminal device and the cloud;
    控制端向所述终端设备发送所述路由信息以及所述授权码;The control terminal sends the routing information and the authorization code to the terminal device;
    终端设备基于控制端发送的绑定码与路由信息接入路由网络;The terminal device accesses the routing network based on the binding code and routing information sent by the control terminal;
    终端设备通过所述路由网络向所述云端上传所述绑定码以及所述终端设备的设备标识;The terminal device uploads the binding code and the device identification of the terminal device to the cloud through the routing network;
    云端在终端设备接入路由网络之后,接收终端设备发送的绑定码和设备标识,其中, 所述绑定码由所述控制端与所述终端设备建立网络连接后,发送到所述终端设备;After the terminal device accesses the routing network, the cloud receives the binding code and device identification sent by the terminal device, where, The binding code is sent to the terminal device after the control terminal establishes a network connection with the terminal device;
    云端根据所述设备标识查询所述终端设备是否为已注册设备;The cloud queries whether the terminal device is a registered device according to the device identification;
    若所述终端设备为已注册设备,则云端复位所述终端设备与历史用户的绑定关系。If the terminal device is a registered device, the cloud resets the binding relationship between the terminal device and the historical user.
  16. 一种终端设备的复位装置,其中,包括:A reset device for terminal equipment, which includes:
    发送模块,用于基于控制端请求生成与所述控制端对应的绑定码,并发送所述绑定码到所述控制端;A sending module, configured to generate a binding code corresponding to the control terminal based on the control terminal request, and send the binding code to the control terminal;
    接收模块,用于在终端设备接入路由网络之后,接收终端设备发送的绑定码和设备标识,其中,所述绑定码由所述控制端与所述终端设备建立网络连接后,发送到所述终端设备;The receiving module is configured to receive the binding code and device identification sent by the terminal device after the terminal device accesses the routing network, wherein the binding code is sent to the terminal after the control terminal establishes a network connection with the terminal device. The terminal equipment;
    查询模块,用于根据所述设备标识查询所述终端设备是否为已注册设备;A query module, configured to query whether the terminal device is a registered device according to the device identification;
    复位模块,用于若所述终端设备为已注册设备,则复位所述终端设备与历史用户的绑定关系。A reset module, configured to reset the binding relationship between the terminal device and historical users if the terminal device is a registered device.
  17. 一种终端设备的复位装置,其中,包括:A reset device for terminal equipment, which includes:
    接入模块,用于基于控制端发送的绑定码与路由信息接入路由网络;The access module is used to access the routing network based on the binding code and routing information sent by the control terminal;
    上传模块,用于通过所述路由网络向所述云端上传所述绑定码以及所述终端设备的设备标识,以通过所述云端基于所述终端设备的设备标识对所述终端设备进行复位。An upload module, configured to upload the binding code and the device identification of the terminal device to the cloud through the routing network, so as to reset the terminal device based on the device identification of the terminal device through the cloud.
  18. 一种终端设备的复位装置,其中,包括:A reset device for terminal equipment, which includes:
    发送模块,用于在检测到终端设备处于复位模式时,向云端发送控制端请求,其中,所述控制端请求携带所述控制端的标识信息;A sending module, configured to send a control end request to the cloud when detecting that the terminal device is in reset mode, wherein the control end request carries identification information of the control end;
    接收模块,用于接收所述云端基于所述控制端请求返回的绑定码;A receiving module, configured to receive the binding code returned by the cloud based on the control terminal request;
    获取模块,用于获取所述终端设备与所述云端对应的路由网络的路由信息;An acquisition module, configured to acquire routing information of the routing network corresponding to the terminal device and the cloud;
    发送模块,用于向所述终端设备发送所述路由信息以及所述授权码,以使所述终端设备根据所述路由信息通过云端对所述终端设备进行复位。A sending module, configured to send the routing information and the authorization code to the terminal device, so that the terminal device resets the terminal device through the cloud according to the routing information.
  19. 一种智能设备,其中,包括处理器和存储器,所述存储器中存储有计算机程序,所述处理器调用所述存储器中的计算机程序时执行如权利要求1至14任一项所述的终端设备的复位方法。An intelligent device, which includes a processor and a memory. A computer program is stored in the memory. When the processor calls the computer program in the memory, the terminal device according to any one of claims 1 to 14 is executed. reset method.
  20. 一种存储介质,其中,所述存储介质用于存储计算机程序,所述计算机程序被处理器加载以执行权利要求1至14任一项所述的终端设备的复位方法。 A storage medium, wherein the storage medium is used to store a computer program, and the computer program is loaded by a processor to execute the resetting method of a terminal device according to any one of claims 1 to 14.
PCT/CN2023/096105 2022-08-08 2023-05-24 Terminal device reset method, system and apparatus, intelligent device, and storage medium WO2024032085A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210943502.2A CN115314884A (en) 2022-08-08 2022-08-08 Method, system and device for resetting terminal equipment, intelligent equipment and storage medium
CN202210943502.2 2022-08-08

Publications (1)

Publication Number Publication Date
WO2024032085A1 true WO2024032085A1 (en) 2024-02-15

Family

ID=83860865

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/096105 WO2024032085A1 (en) 2022-08-08 2023-05-24 Terminal device reset method, system and apparatus, intelligent device, and storage medium

Country Status (2)

Country Link
CN (1) CN115314884A (en)
WO (1) WO2024032085A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106357493A (en) * 2016-10-08 2017-01-25 Tcl集团股份有限公司 Method and device for binding household appliance and smart terminal
CN106685691A (en) * 2016-11-09 2017-05-17 苏州数言信息技术有限公司 Efficient configuration update method and system of terminal device in Internet of things system
CN106789153A (en) * 2016-11-09 2017-05-31 苏州数言信息技术有限公司 The log recording of self adaptation by all kinds of means of Internet of things system terminal device, output intent and system
CN113132185A (en) * 2019-12-30 2021-07-16 深圳Tcl新技术有限公司 Equipment distribution network binding method and system, mobile terminal and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106357493A (en) * 2016-10-08 2017-01-25 Tcl集团股份有限公司 Method and device for binding household appliance and smart terminal
CN106685691A (en) * 2016-11-09 2017-05-17 苏州数言信息技术有限公司 Efficient configuration update method and system of terminal device in Internet of things system
CN106789153A (en) * 2016-11-09 2017-05-31 苏州数言信息技术有限公司 The log recording of self adaptation by all kinds of means of Internet of things system terminal device, output intent and system
CN113132185A (en) * 2019-12-30 2021-07-16 深圳Tcl新技术有限公司 Equipment distribution network binding method and system, mobile terminal and storage medium

Also Published As

Publication number Publication date
CN115314884A (en) 2022-11-08

Similar Documents

Publication Publication Date Title
US11888644B2 (en) Network configuration method for home appliance, home appliance, mobile terminal, and storage medium
JP6494149B2 (en) Authorization processing method and device
WO2021057889A1 (en) Data processing method and apparatus, electronic device, and storage medium
EP2696559B1 (en) Method and Device for Resource Sharing Between Devices
WO2021135299A1 (en) Binding method and system for device network configuration, and mobile terminal and storage medium
CN113746633B (en) Internet of things equipment binding method, device, system, cloud server and storage medium
CN113347242B (en) Cross-device resource access method and device, storage medium and electronic device
CN103929419B (en) Access control method and device
US20170289243A1 (en) Domain name resolution method and electronic device
CN112839331A (en) User information authentication method for wireless local area network Portal authentication escape
CN112445700A (en) Test method and device
CN111241523B (en) Authentication processing method, device, equipment and storage medium
CN113596141B (en) Method and device for setting device control authority, computer device and storage medium
CN109218994B (en) Equivalent equipment Bluetooth communication method and device based on gateway
CN104253792A (en) Substrate management controller virtual system and method
WO2024032085A1 (en) Terminal device reset method, system and apparatus, intelligent device, and storage medium
US20120117190A1 (en) Method and apparatus for providing service using personal network
WO2023077922A1 (en) Device connection method and apparatus, and electronic device and computer-readable storage medium
US20230045914A1 (en) Method and apparatus for controlling device in internet of things, and gateway device and storage medium
WO2024087384A1 (en) Bluetooth connection establishment method, electronic device and computer storage medium
CN113489695B (en) Private cloud networking method, device, system, computer equipment and storage medium
CN113746909A (en) Network connection method, device, electronic equipment and computer readable storage medium
CN108712513A (en) network address setting method, device, terminal device and storage medium
WO2023236806A1 (en) Data burning method and apparatus, and computer device and computer-readable storage medium
CN108966199B (en) Bluetooth communication method and device based on cloud inquiry buffer node

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23851315

Country of ref document: EP

Kind code of ref document: A1