A device serial number recovery method, control device and intelligent device

By automatically determining and updating the target serial number of smart devices, the problem of difficulty in use caused by serial number changes is solved, ensuring normal use of devices and service continuity, and improving user experience.

CN118018529BActive Publication Date: 2024-11-12FOSHAN GAOMING ANHUA CERAMIC SANITARY WARE +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410035514.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-09
Publication Date
2024-11-12
Estimated Expiration
2044-01-09

AI Technical Summary

Technical Problem

When smart devices are repaired or have components replaced, the serial number changes, leading to interruptions in after-sales and personalized services, increasing the difficulty of use, and reducing the user experience.

Method used

By acquiring the serial number status of the main control module and communication module, the target serial number of the device is automatically determined and updated, ensuring the consistency and uniqueness of the serial number and avoiding manual setting.

Benefits of technology

This reduces the difficulty of using smart devices after maintenance, ensures normal device use and service continuity, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118018529B_ABST
    Figure CN118018529B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a method for recovering a device serial number, a control device, and an intelligent device, and belongs to the field of data processing technology. The method includes: obtaining a first serial number on the current main control module; if a second serial number different from the first serial number exists on the current communication module, determining the usage status of the first serial number and the binding status of the second serial number; if the usage status indicates that the first serial number has not been used, and the binding status indicates that the second serial number has been bound, then writing the second serial number into the main control module, and using the second serial number as the only target serial number of the intelligent device. The embodiment of the present application can reduce the difficulty of using intelligent devices after maintenance, and ensure the normal use of intelligent devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a method for recovering a device serial number, a control device, and an intelligent device. Background Art

[0002] With the continuous development of the Internet, more and more smart devices are entering people's lives. How to provide after-sales service or other personalized services for smart devices is the basis for improving product user experience. At present, smart devices are equipped with a unique device serial number (SN code) after leaving the factory. Therefore, this serial number can be used as the identity of the smart device in the cloud, and after-sales service or other personalized services can be provided for the smart device based on this serial number.

[0003] In the related art, due to hardware failure, software problems, human damage and other reasons, smart devices often need to be repaired or even replaced with new device components, which will cause the serial number of the smart device to change. Once the serial number changes, it will affect after-sales service or other personalized services. Users need to reconfigure themselves to restore the original service, which increases the difficulty of using the smart device after repair, affects the normal use of the smart device, and reduces the user experience. Summary of the invention

[0004] The main purpose of the embodiments of the present application is to propose a device serial number recovery method, a control device and an intelligent device, which can reduce the difficulty of using the intelligent device after maintenance and ensure the normal use of the intelligent device.

[0005] To achieve the above-mentioned purpose, a first aspect of an embodiment of the present application proposes a method for recovering a device serial number, which is applied to a smart device, wherein the smart device includes a main control module and a communication module, and the method includes:

[0006] Get the first serial number on the current main control module;

[0007] If a second serial number different from the first serial number exists on the current communication module, determining the use status of the first serial number and the binding status of the second serial number;

[0008] If the usage status indicates that the first serial number has not been used, and the binding status indicates that the second serial number has been bound, the second serial number is written into the main control module, and the second serial number is used as the unique target serial number of the smart device.

[0009] In some embodiments, the method further comprises:

[0010] If the usage status indicates that the first serial number has been used, and the binding status indicates that the second serial number is not bound, writing the first serial number into the communication module;

[0011] The first serial number is used as the unique target serial number of the smart device.

[0012] In some embodiments, the method further comprises:

[0013] If the usage status indicates that the first serial number has not been used, and the binding status indicates that the second serial number has not been bound, writing the first serial number into the communication module;

[0014] The first serial number is used as the unique target serial number of the smart device.

[0015] In some embodiments, the smart device is in communication with a server, and category information is stored in the smart device, where the category information is used to indicate a product type of the smart device;

[0016] The method further comprises:

[0017] If the usage status indicates that the first serial number has not been used, and the binding status indicates that the second serial number has not been bound, the category information and the user account currently logged in to the smart device are sent to the server, so that the server queries the associated serial number corresponding to the smart device with the same category information according to the user account;

[0018] The associated serial number is received from the server, the associated serial number is written into the main control module and the communication module, and the associated serial number is used as the unique target serial number of the smart device.

[0019] In some embodiments, the method further comprises:

[0020] If the usage status indicates that the first serial number has not been used, and the binding status indicates that the second serial number has not been bound, obtaining the current geographic location of the smart device;

[0021] Sending the current geographical location and the category information to the server, so that the server queries the associated serial number corresponding to the smart device having the same category information when the current geographical location is used as a constraint condition;

[0022] The associated serial number is received from the server, the associated serial number is written into the main control module and the communication module, and the associated serial number is used as a unique target serial number of the smart device.

[0023] In some embodiments, the method further comprises:

[0024] If the second serial number on the communication module is a default value, writing the first serial number into the communication module, and using the first serial number as the unique target serial number of the smart device;

[0025] Alternatively, the associated serial number sent by the server is received, the associated serial number is written into the communication module, and the associated serial number is used as the unique target serial number of the smart device.

[0026] In some embodiments, the smart device is controlled by a corresponding application program, and the method further includes:

[0027] Displaying an operation interface on the client of the application, displaying serial number change information, and a confirm change button and a cancel change button corresponding to the serial number change information on the operation interface, wherein the serial number change information is used to represent the current serial number change status of the smart device;

[0028] In response to the click operation of the confirmation replacement button, the serial number successful replacement information is displayed on the replacement confirmation interface, and the serial number successful replacement information is used to indicate that the associated serial number is successfully set as the unique target serial number of the smart device; or,

[0029] In response to the click operation of the cancel replacement button, serial number cancellation replacement information is displayed on the replacement confirmation interface, and the serial number cancellation replacement information is used to indicate that the current serial number of the smart device remains unchanged.

[0030] To achieve the above object, a second aspect of an embodiment of the present application provides a smart device, the smart device comprising:

[0031] An acquisition module is used to acquire the first serial number of the current main control module;

[0032] a status confirmation module, configured to determine the use status of the first serial number and the binding status of the second serial number if a second serial number different from the first serial number exists on the current communication module;

[0033] The target serial number confirmation module is used to write the second serial number into the main control module and use the second serial number as the unique target serial number of the smart device if the usage status indicates that the first serial number has not been used and the binding status indicates that the second serial number has been bound.

[0034] To achieve the above-mentioned purpose, the third aspect of an embodiment of the present application proposes a control device, which includes a memory and a processor, the memory stores a computer program, and the processor implements the device serial number recovery method described in the first aspect embodiment when executing the computer program.

[0035] To achieve the above-mentioned purpose, the fourth aspect of an embodiment of the present application proposes an intelligent device, which includes a memory and a processor, the memory stores a computer program, and the processor implements the device serial number recovery method described in the first aspect embodiment when executing the computer program.

[0036] To achieve the above-mentioned purpose, the fifth aspect of the embodiment of the present application proposes a storage medium, which is a computer-readable storage medium, and the storage medium stores a computer program. When the computer program is executed by the processor, it implements the device serial number recovery method described in the first aspect embodiment.

[0037] The present application proposes a device serial number recovery method, control device and intelligent device. The method obtains the first serial number on the current main control module; if there is a second serial number different from the first serial number on the current communication module, the use status of the first serial number and the binding status of the second serial number are determined; if the use status indicates that the first serial number has not been used, and the binding status indicates that the second serial number has been bound, the second serial number is written into the main control module, and the second serial number is used as the only target serial number of the intelligent device. In this way, when the device component of the intelligent device is replaced, the intelligent device can find the inconsistency between the serial number in the current communication module and the serial number on the main control module through comparison. Further, the target serial number of the intelligent device is determined based on the use status of the first serial number and the binding status of the second serial number. There is no need for manual experience-based judgment and manual setting of the correct target serial number. The intelligent device can automatically determine and update the target serial number, which reduces the difficulty of using the intelligent device after maintenance and ensures the normal use of the intelligent device. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 This is an optional flowchart of the device serial number recovery method provided in the embodiment of the present application;

[0039] Figure 2 This is a schematic diagram of an optional application scenario of the device serial number recovery method provided in an embodiment of the present application;

[0040] Figure 3 is another optional flow chart of the device serial number recovery method provided in the embodiment of the present application;

[0041] Figure 4This is another optional flowchart of the device serial number recovery method provided in the embodiment of the present application;

[0042] Figure 5 This is an optional flow chart of determining a target serial number based on a user account in the device serial number recovery method provided in an embodiment of the present application;

[0043] Figure 6 It is an optional flow chart of determining a target serial number based on geographic location in the device serial number recovery method provided in an embodiment of the present application;

[0044] Figure 7 This is another optional flowchart of the device serial number recovery method provided in the embodiment of the present application;

[0045] Figure 8 This is another optional flowchart of the device serial number recovery method provided in the embodiment of the present application;

[0046] Fig. 9 This is a schematic diagram of an optional operation interface display of the device serial number recovery method provided in the embodiment of the present application;

[0047] Fig.10 It is a schematic diagram of an optional functional module of the device serial number recovery control device provided in an embodiment of the present application;

[0048] Fig.11 It is a schematic diagram of the hardware structure of the smart device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0049] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0050] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0051] First, the nouns involved in this application are analyzed:

[0052] Device serial number (SN code), also known as "SN code", refers specifically to the software serial number, which is a string of numbers or letters, generally an identification code for electronic products, which is often used for anti-counterfeiting, and its biggest feature is uniqueness. For example, a semiconductor generates an SN code through encryption algorithm processing. This SN code is the unique identification of the product, also known as machine code, authentication code, registration application code, etc.

[0053] With the continuous development of the Internet, more and more smart devices are entering people's lives. How to provide after-sales service or other personalized services for smart devices is the basis for improving product user experience. At present, smart devices are equipped with a unique device serial number (SN code) after leaving the factory. Therefore, this serial number can be used as the identity of the smart device in the cloud, and after-sales service or other personalized services can be provided for the smart device based on this serial number.

[0054] In the related art, due to hardware failure, software problems, human damage and other reasons, smart devices often need to be repaired or even replaced with new device components, which will cause the serial number of the smart device to change. Once the serial number changes, it will affect after-sales service or other personalized services. Users need to reconfigure themselves to restore the original service, which increases the difficulty of using the smart device after repair, affects the normal use of the smart device, and reduces the user experience.

[0055] Based on this, the embodiment of the present application provides a method for recovering the device serial number, a control device and an intelligent device. The method obtains the first serial number on the current main control module; if there is a second serial number different from the first serial number on the current communication module, the use status of the first serial number and the binding status of the second serial number are determined; if the use status indicates that the first serial number has not been used, and the binding status indicates that the second serial number has been bound, the second serial number is written into the main control module, and the second serial number is used as the only target serial number of the intelligent device. In this way, when the device component of the intelligent device is replaced, the intelligent device can find the inconsistency between the serial number in the current communication module and the serial number on the main control module through comparison. Further, the target serial number of the intelligent device is determined based on the use status of the first serial number and the binding status of the second serial number. There is no need for manual experience-based judgment and manual setting of the correct target serial number. The intelligent device can automatically determine and update the target serial number, reducing the difficulty of using the intelligent device after maintenance and ensuring the normal use of the intelligent device.

[0056] The device serial number recovery method provided in the embodiment of the present application can be applied to smart devices, can also be applied to the server side, and can also be software running in the smart device or the server side. In some embodiments, the smart device can be a smart phone, a tablet computer, a laptop computer, a desktop computer or other smart devices; the server side can be configured as an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms; the software can be an application that implements the device serial number recovery method, but is not limited to the above forms.

[0057] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0058] It should be noted that in each specific implementation of the present application, when it comes to information related to the user's identity or characteristics, such as user login information, user geographic location information, etc., the user's permission or consent will be obtained first, and the collection, use and processing of these data will comply with relevant laws, regulations and standards. In addition, when the embodiment of the present application needs to obtain the user's sensitive personal information, the user's separate permission or consent will be obtained first. After the user's separate permission or consent is clearly obtained, the first serial number of the main control module in the smart device necessary for the normal operation of the embodiment of the present application and the second serial number of the communication module and other related data are obtained.

[0059] The method for recovering the device serial number in the embodiment of the present application can be illustrated by the following embodiment.

[0060] like Figure 1 As shown, Figure 1is an optional flowchart of the device serial number recovery method provided in the embodiment of the present application. Figure 1 The method may include but is not limited to steps S101 to S103.

[0061] Step S101, obtaining the first serial number of the current main control module.

[0062] In some embodiments, the device serial number recovery method in the embodiments of the present application can be applied to a smart device, which can be a smart phone, a smart TV, a smart speaker or other smart devices. For ease of understanding, Figure 2 As shown, Figure 2 This is a schematic diagram of an optional application scenario of the device serial number recovery method provided in an embodiment of the present application. The smart device can be a smart toilet. In addition, the smart toilet includes a main control module and a communication module. In addition, the smart toilet can also communicate with the server through the communication module. It can be understood that the smart device can be set according to actual conditions, and the smart device can determine whether to connect to the server according to actual conditions. The embodiment of the present application does not make specific restrictions.

[0063] Furthermore, the main control module is provided with a core processing unit of the smart toilet, such as a microcontroller unit (MCU), etc.; the communication module is responsible for communicating with other devices or servers to realize data transmission and / or remote control, such as a wireless transmission (WiFi) component.

[0064] Furthermore, in order to achieve the distinction between different MCUs, each MCU is usually provided with a corresponding unique serial number. For the convenience of distinction, the device serial number obtained based on the main control module in the embodiment of the present application is referred to as the first serial number.

[0065] Step S102: If a second serial number different from the first serial number exists on the current communication module, the use status of the first serial number and the binding status of the second serial number are determined.

[0066] In some embodiments, in order to achieve the distinction between different communication modules, different communication modules are also provided with corresponding unique serial numbers. For the convenience of distinction, the serial number obtained based on the communication module in the embodiments of the present application is called the second serial number.

[0067] Furthermore, under normal circumstances, in order to achieve unified management or service of smart toilets, each module in the smart toilet will use the same serial number. This same serial number enables the smart toilet to be connected to the server or cloud through the communication module. The relevant data of the smart toilet can be uploaded to the server or cloud based on the unified serial number to achieve unified storage and management of relevant data.

[0068] Furthermore, when the second serial number is different from the first serial number, it means that the main control module and / or the communication module has been repaired or even replaced. At this time, the usage status of the first serial number and the binding status of the second serial number are obtained to determine which of the main control module and the communication module has been repaired or replaced, and then determine the unique target serial number of the smart device.

[0069] Furthermore, the usage status is used to characterize the usage of the main control module in the past, and the binding status is used to characterize the service association between the communication module and other modules in the past.

[0070] It should be noted that the main control module may also include other control units with core processing capabilities in addition to the MCU. Similarly, the communication module may also include other communication units with the ability to connect to external devices or servers and communicate and transmit in addition to the WIFI module. The embodiments of the present application are only described with preferred examples and are not specifically limited.

[0071] Step S103: if the usage status indicates that the first serial number has not been used, and the binding status indicates that the second serial number has been bound, the second serial number is written into the main control module and used as the unique target serial number of the smart device.

[0072] In some embodiments, if the usage status of the first serial number is unused, it means that the MCU has not been used in the past and is obtained after repair or replacement. On this basis, if the binding status is bound, it indicates that the communication module has been associated with the smart device in the past and no repair or replacement has occurred. Therefore, the second serial number in the communication module can be written into the main control module. At this time, the serial numbers in the main control module and the communication module are unified, and the second serial number is the unique target serial number of the smart device.

[0073] It can be understood that when there is a second serial number different from the first serial number on the current communication module, by obtaining and judging the usage status of the first serial number and the binding status of the second serial number, it is possible to quickly determine which of the main control module and the communication module has undergone repair or replacement. When the main control module is repaired or replaced, the target serial number of the smart device can be automatically determined by writing the second serial number in the communication module into the main control module. There is no need to manually set the correct target serial number based on experience, which reduces the difficulty of using the smart device after repair and ensures the normal use of the smart device.

[0074] like Figure 3 As shown, Figure 3 is another optional flowchart of the device serial number recovery method provided in the embodiment of the present application, Figure 3The method may include but is not limited to steps S201 to S202.

[0075] Step S201: if the use status indicates that the first serial number has been used, and the binding status indicates that the second serial number is not bound, then the first serial number is written into the communication module.

[0076] In some embodiments, if the usage status is used, it means that the MCU has been used in the past and no repair or replacement has occurred. On this basis, if the binding status is unbound, it indicates that the communication module has not been associated with the smart device in the past and is obtained after repair or replacement. Therefore, the first serial number in the main control module can be written into the communication module. At this time, the serial numbers in the main control module and the communication module are unified, and the first serial number is the unique target serial number of the smart device.

[0077] Furthermore, a storage unit is provided in the communication module for storing the first serial number.

[0078] Step S202: Use the first serial number as the unique target serial number of the smart device.

[0079] In some embodiments, when the serial numbers in the main control module and the communication module are unified, the first serial number is used as the unique target serial number of the smart device. Based on this target serial number, the smart toilet can transmit the generated data to the cloud or server.

[0080] It is understandable that even if the communication module is obtained after repair or replacement, the smart toilet can quickly unify the serial numbers in the main control module and the communication module to reduce the difficulty of using the smart toilet after repair.

[0081] like Figure 4 As shown, Figure 4 is another optional flowchart of the device serial number recovery method provided in the embodiment of the present application. Figure 4 The method may include but is not limited to steps S301 to S302.

[0082] Step S301: if the use status indicates that the first serial number has not been used, and the binding status indicates that the second serial number has not been bound, then the first serial number is written into the communication module.

[0083] In some embodiments, if the usage status is unused and the binding status is unbound, it indicates that the communication module and the main control module have been repaired and replaced in the past. Since the MCU in the main control module is set with a serial number when leaving the factory, the first serial number in the main control module can be written into the communication module. At this time, the serial numbers in the main control module and the communication module are unified, and the first serial number is the unique target serial number of the smart device.

[0084] Step S302: Use the first serial number as the unique target serial number of the smart device.

[0085] In some embodiments, similarly, when the serial numbers in the main control module and the communication module are unified, the first serial number is used as the unique target serial number of the smart device. Based on this target serial number, the smart toilet can transmit the generated data to the cloud or server.

[0086] like Figure 5 As shown, Figure 5 is an optional flow chart of determining a target serial number based on a user account in the device serial number recovery method provided in an embodiment of the present application. Figure 5 The method may include but is not limited to steps S401 to S402.

[0087] Step S401, if the usage status indicates that the first serial number has not been used, and the binding status indicates that the second serial number has not been bound, the category information and the user account currently logged in to the smart device are sent to the server, so that the server queries the associated serial number corresponding to the smart device with the same category information according to the user account.

[0088] In some embodiments, the smart device may also be connected to a server for communication. Category information is stored in the smart device, and the category information is used to indicate a product type of the smart device.

[0089] Furthermore, when the usage status is unused and the binding status is unbound, you can also log in to the user account on the smart device and connect to the server based on the currently logged in user account. Since the server stores the smart device information under the user account, the original serial number of the smart device, that is, the associated serial number, can be further determined based on the category information.

[0090] For example, user A's home is equipped with a smart toilet a, and the mobile phone of user A has downloaded the application corresponding to the smart toilet a. User A can manage the smart toilet a by logging in to his user account A. Usually, the serial number of the smart toilet a is consistent with the serial number stored on the server. When the serial number of the smart toilet a changes, in addition to automatically setting the correct target serial number, the smart toilet a can also log in to the same user account A on the smart toilet b that has been repaired and replaced, and send the currently logged in user account A and the category information corresponding to the smart toilet a to the server. For example, the mobile phone sends the information to the server: user account A, smart toilet; the server queries and returns the associated serial number to the mobile phone based on this information.

[0091] Furthermore, the server side stores the maintenance record information corresponding to each smart device under the user account. According to the maintenance record information and category information, the server side can quickly query the corresponding associated serial number.

[0092] Furthermore, if there are multiple smart devices with the same category information under the user account, the user can be asked one by one to confirm whether it is the required associated serial number.

[0093] Step S402, receiving the associated serial number sent by the server, writing the associated serial number into the main control module and the communication module, and using the associated serial number as the unique target serial number of the smart device.

[0094] In some embodiments, the server can send the associated serial number to the smart device, the smart device receives the associated serial number, and writes the associated serial number, i.e., the serial number used before the repair and replacement, into the main control module and the communication module, and uses the associated serial number as the unique target serial number of the smart toilet. In this way, even if the main control module and the communication module of the smart toilet are replaced, the associated serial number that was originally used and has relevant data stored on the server can still be quickly determined. In this way, the original serial number and the target serial number are unified. On the one hand, there is no need for the operator to manually set it, and on the other hand, the relevant data originally stored on the server side will not be lost because the corresponding serial number cannot be found, which reduces the difficulty of using the smart device after repair and replacement.

[0095] like Figure 6 As shown, Figure 6 is an optional flow chart of determining a target serial number based on geographic location in the device serial number recovery method provided in an embodiment of the present application. Figure 6 The method may include but is not limited to steps S501 to S503.

[0096] Step S501: if the usage status indicates that the first serial number has not been used, and the binding status indicates that the second serial number has not been bound, the current geographic location of the smart device is obtained.

[0097] In some embodiments, in order to meet the needs of unified management and anti-loss, a positioning device is usually also provided in the smart device. When the smart device is connected to the server in communication, and the usage status is used and the binding status is unbound, the current geographic location of the smart device can be obtained. If the user has not logged in to the user account, the original serial number stored on the server can also be quickly determined through the current geographic location.

[0098] Furthermore, the current geographic location can be determined by a positioning device provided in the smart toilet, or by another server connected to the smart toilet. The embodiments of the present application are only described with reference to preferred embodiments, and no specific limitations are imposed.

[0099] Step S502: Send the current geographical location and category information to the server, so that the server queries the associated serial number corresponding to the smart device with the same category information when the current geographical location is used as a constraint condition.

[0100] For example, user B has a smart toilet B installed in his home, and the application corresponding to the smart toilet B is downloaded on the mobile phone of user B. When the usage status is used and the binding status is unbound, the application can send the current geographic location B of the smart toilet B and the category information corresponding to the smart toilet B to the connected server. The server can find the associated serial number corresponding to the smart device with the same category information in the current geographic location B.

[0101] Furthermore, if there are multiple smart devices with the same category information in the current geographical location, the user can be asked one by one to confirm whether it is the required associated serial number.

[0102] Step S503, receiving the associated serial number sent by the server, writing the associated serial number into the main control module and the communication module, and using the associated serial number as the unique target serial number of the smart device.

[0103] Exemplarily, the communication module of smart toilet b sends information to the server: current geographic location B, smart toilet; the server queries based on this information and returns the associated serial number to the communication module. Then, smart toilet b writes the associated serial number into the main control module and the communication module, and uses the associated serial number as the unique target serial number of the smart device.

[0104] It is understandable that when there is no user account logged in, or the maintenance personnel logs in with their own account instead of the user's account, the original serial number can be quickly determined from the server through the current geographic location information and category information.

[0105] Step S502, receiving the associated serial number sent by the server, writing the associated serial number into the main control module and the communication module, and using the associated serial number as the unique target serial number of the smart device.

[0106] In some embodiments, after receiving the associated serial number sent by the server, the smart device can write the associated serial number represented by the original serial number into the main control module and the communication module, and use the associated serial number as the unique target serial number of the smart device. In this way, the smart device after repair and replacement is unified with the original serial number, reducing the difficulty of using the smart device after repair and replacement.

[0107] like Figure 7 As shown, Figure 7is another optional flowchart of the device serial number recovery method provided in the embodiment of the present application. Figure 7 The method may include but is not limited to steps S601 to S602.

[0108] Step S601: if the second serial number on the communication module is a default value, the first serial number is written into the communication module, and the first serial number is used as the unique target serial number of the smart device.

[0109] In some embodiments, when the communication module is brand new, the first serial number value of the communication module may be empty or an initial value, that is, a default value. At this time, the first serial number in the main control module can be directly written into the communication module, and the first serial number can be used as the unique target serial number of the smart device to complete the rapid unification of the serial number of the smart toilet device.

[0110] It should be noted that the default value can be set according to actual conditions, and it can be 0 or a null (NULL) value, and the embodiments of the present application do not impose specific limitations.

[0111] Step S602, alternatively, receiving the associated serial number sent by the server, writing the associated serial number into the communication module, and using the associated serial number as the unique target serial number of the smart device.

[0112] In some embodiments, when the second serial number is the default value, if the smart toilet is connected to the server at this time, it can also receive the associated serial number sent by the server to write the associated serial number into the communication module. In this way, the associated serial number written at this time is the original serial number stored in the server side of the smart device. By writing the associated serial number into the communication module, the serial number of the smart device can be better matched with that before repair and replacement, thereby reducing the difficulty of using the smart device after repair and replacement.

[0113] like Figure 8 As shown, Figure 8 is another optional flowchart of the device serial number recovery method provided in the embodiment of the present application. Figure 8 The method may include but is not limited to steps S701 to S703.

[0114] Step S701, displaying an operation interface on the client of the application, displaying serial number change information, as well as a confirm change button and a cancel change button corresponding to the serial number change information on the operation interface, wherein the serial number change information is used to represent the current serial number change status of the smart device.

[0115] In some embodiments, the smart device can be controlled by a corresponding application, wherein the application can be deployed in a client, for example, the client can be a mobile phone, and when the target serial number of the smart toilet needs to be replaced and confirmed, an operation interface can be displayed on the mobile phone, and the serial number replacement information can be displayed on the operation interface, such as Fig. 9 As shown, Fig. 9 It is an optional operation interface display diagram of the device serial number recovery method provided in the embodiment of the present application. The serial number change information is used to prompt the user or operator of the specific circumstances in which the current serial number of the smart device needs to be changed, so that the user or operator can read it. When the user or operator has finished reading, he or she can click the Confirm Change button or the Cancel Change button to perform the corresponding operation.

[0116] Step S702, in response to the click operation of the confirm change button, a serial number successful change message is displayed on the change confirmation interface, and the serial number successful change message is used to indicate that the associated serial number is successfully set as the unique target serial number of the smart device.

[0117] In some embodiments, when the user or operator clicks the confirm change button, it indicates that the user or operator agrees to set the associated serial number obtained from the server as the unique target serial number of the smart device.

[0118] It should be noted that, usually, the relevant operation interface will be displayed on the client after the smart device is connected to the server. When the smart device is not connected to the server, the serial numbers of the main control module and the communication module can be unified first, and when the smart device is connected to the server, the user or operator can receive the confirmation or cancellation instruction of the replacement based on the operation interface, thus improving the user experience.

[0119] Step S703, or, in response to a click operation on the cancel replacement button, displaying serial number replacement cancellation information on the replacement confirmation interface, the serial number replacement cancellation information is used to indicate that the current serial number of the smart device remains unchanged.

[0120] In some embodiments, when the user or operator clicks the confirm change button, it indicates that the user or operator does not agree to set the associated serial number obtained from the server as the unique target serial number of the smart device.

[0121] Furthermore, based on the click operation of canceling the replacement button, the smart device will not use the associated serial number queried by the server as its target serial number. Furthermore, when there are multiple associated serial numbers to choose from, the server can initiate a replacement query to the user or operator again from the remaining associated serial numbers to improve the efficiency of determining the device serial number of the smart device.

[0122] It can be understood that through the visual display of the operation interface, users can more intuitively know the serial number changes of smart devices. Users or operators do not need to care about the details of the serial number changes inside the smart device, but only need to confirm the changes, which further reduces the difficulty of using the smart device after repair and replacement, and improves the user experience.

[0123] like Fig.10 As shown, Fig.10 This is an optional functional module diagram of the device serial number recovery control device provided in the embodiment of the present application. The embodiment of the present application also provides a device serial number recovery control device, which can implement the above-mentioned device serial number recovery method. The device serial number recovery control device includes:

[0124] The acquisition module 801 is used to acquire the first serial number of the current main control module;

[0125] The status confirmation module 802 is used to determine the use status of the first serial number and the binding status of the second serial number if a second serial number different from the first serial number exists on the current communication module;

[0126] The target serial number confirmation module 803 is used to write the second serial number into the main control module and use the second serial number as the unique target serial number of the smart device if the use status indicates that the first serial number has not been used and the binding status indicates that the second serial number has been bound.

[0127] In some embodiments, the device serial number recovery method in the embodiments of the present application can be applied to a smart device, which can be a smart phone, a smart TV, a smart speaker or other smart devices. For ease of understanding, Figure 2 As shown, Figure 2 This is a schematic diagram of an optional application scenario of the device serial number recovery method provided in an embodiment of the present application. The smart device can be a smart toilet. In addition, the smart toilet includes a main control module and a communication module. In addition, the smart toilet can also communicate with the server through the communication module. It can be understood that the smart device can be set according to actual conditions, and the smart device can determine whether to connect to the server according to actual conditions. The embodiment of the present application does not make specific restrictions.

[0128] Furthermore, the main control module is provided with a core processing unit of the smart toilet, such as a microcontroller (MCU); the communication module is responsible for communicating with other devices or servers to realize data transmission and / or remote control, such as a wireless transmission (WiFi) component.

[0129] Furthermore, in order to achieve the distinction between different MCUs, each MCU is usually provided with a corresponding unique serial number. For the convenience of distinction, the device serial number obtained based on the main control module in the embodiment of the present application is referred to as the first serial number.

[0130] In some embodiments, in order to achieve the distinction between different communication modules, different communication modules are also provided with corresponding unique serial numbers. For the convenience of distinction, the serial number obtained based on the communication module in the embodiments of the present application is called the second serial number.

[0131] Furthermore, under normal circumstances, in order to achieve unified management or service of smart toilets, each module in the smart toilet will use the same serial number. This same serial number enables the smart toilet to be connected to the server or cloud through the communication module. The relevant data of the smart toilet can be uploaded to the server or cloud based on the unified serial number to achieve unified storage and management of relevant data.

[0132] Furthermore, when the second serial number is different from the first serial number, it means that the main control module and / or the communication module has been repaired or even replaced. At this time, the usage status of the first serial number and the binding status of the second serial number are obtained to determine which of the main control module and the communication module has been repaired or replaced, and then determine the unique target serial number of the smart device.

[0133] Furthermore, the usage status is used to characterize the usage of the main control module in the past, and the binding status is used to characterize the service association between the communication module and other modules in the past.

[0134] It should be noted that the main control module may also include other control units with core processing capabilities in addition to the MCU. Similarly, the communication module may also include other communication units with the ability to connect to external devices or servers and communicate and transmit in addition to the WIFI module. The embodiments of the present application are only described with preferred examples and are not specifically limited.

[0135] In some embodiments, if the usage status of the first serial number is unused, it means that the MCU has not been used in the past and is obtained after repair or replacement. On this basis, if the binding status is bound, it indicates that the communication module has been associated with the smart device in the past and no repair or replacement has occurred. Therefore, the second serial number in the communication module can be written into the main control module. At this time, the serial numbers in the main control module and the communication module are unified, and the second serial number is the unique target serial number of the smart device.

[0136] It can be understood that when there is a second serial number different from the first serial number on the current communication module, by obtaining and judging the usage status of the first serial number and the binding status of the second serial number, it is possible to quickly determine which of the main control module and the communication module has undergone repair or replacement. When the main control module is repaired or replaced, the target serial number of the smart device can be automatically determined by writing the second serial number in the communication module into the main control module. There is no need to manually set the correct target serial number based on experience, which reduces the difficulty of using the smart device after repair and ensures the normal use of the smart device.

[0137] The specific implementation of the device serial number recovery control device is basically the same as the specific implementation of the device serial number recovery method described above, and will not be repeated here. On the premise of meeting the requirements of the embodiment of the present application, the device serial number recovery control device can also be provided with other functional modules to implement the device serial number recovery method in the above embodiment.

[0138] The embodiment of the present application also provides a smart device, the smart device includes a memory and a processor, the memory stores a computer program, and the processor implements the above device serial number recovery method when executing the computer program. The smart device can be any smart terminal including a tablet computer, a car computer, etc.

[0139] like Fig.11 As shown, Fig.11 : is a schematic diagram of the hardware structure of the smart device provided in the embodiment of the present application, and the smart device includes:

[0140] The processor 901 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;

[0141] The memory 902 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 902 can store the operation control device and other applications. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 902, and the processor 901 calls and executes the device serial number recovery method of the embodiment of this application;

[0142] Input / output interface 903, used to implement information input and output;

[0143] Communication interface 904, used to realize communication interaction between the device and other devices, which can be realized by wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WIFI, Bluetooth, etc.);

[0144] A bus 905 that transmits information between various components of the device (e.g., the processor 901, the memory 902, the input / output interface 903, and the communication interface 904);

[0145] The processor 901 , the memory 902 , the input / output interface 903 and the communication interface 904 are connected to each other in communication within the device via a bus 905 .

[0146] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the method for recovering the device serial number is implemented.

[0147] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0148] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0149] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.

[0150] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0151] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0152] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0153] It should be understood that in the present application, "at least one (item)" and "several" refer to one or more, and "plurality" refers to two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the previous and subsequent associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0154] In the several embodiments provided in the present application, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are merely schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0155] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0156] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0157] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.

[0158] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.

Claims

1. A method for recovering a device serial number, It is characterized in that Applied in a smart device, the smart device includes a main control module and a communication module, and the method includes: Get the first serial number on the current main control module; If a second serial number different from the first serial number exists on the current communication module, determining the use status of the first serial number and the binding status of the second serial number; If the usage status indicates that the first serial number has not been used, and the binding status indicates that the second serial number has been bound, the second serial number is written into the main control module, and the second serial number is used as the unique target serial number of the smart device; The method further comprises: If the usage status indicates that the first serial number has been used, and the binding status indicates that the second serial number is not bound, writing the first serial number into the communication module; Using the first serial number as the unique target serial number of the smart device; The method further comprises: If the usage status indicates that the first serial number has not been used, and the binding status indicates that the second serial number has not been bound, writing the first serial number into the communication module; Using the first serial number as the unique target serial number of the smart device; The smart device is in communication with the server, and the smart device stores category information, where the category information is used to indicate the product type of the smart device; The method further comprises: If the usage status indicates that the first serial number has not been used, and the binding status indicates that the second serial number has not been bound, the category information and the user account currently logged in to the smart device are sent to the server, so that the server queries the associated serial number corresponding to the smart device with the same category information according to the user account; The associated serial number is received from the server, the associated serial number is written into the main control module and the communication module, and the associated serial number is used as the unique target serial number of the smart device.

2. The device serial number recovery method according to claim 1, It is characterized in that The method further comprises: If the usage status indicates that the first serial number has not been used, and the binding status indicates that the second serial number has not been bound, obtaining the current geographic location of the smart device; Sending the current geographical location and the category information to the server, so that the server queries the associated serial number corresponding to the smart device having the same category information when the current geographical location is used as a constraint condition; The associated serial number is received from the server, the associated serial number is written into the main control module and the communication module, and the associated serial number is used as a unique target serial number of the smart device.

3. The device serial number recovery method according to claim 2, It is characterized in that The method further comprises: If the second serial number on the communication module is a default value, writing the first serial number into the communication module, and using the first serial number as the unique target serial number of the smart device; Alternatively, the associated serial number sent by the server is received, the associated serial number is written into the communication module, and the associated serial number is used as the unique target serial number of the smart device.

4. The device serial number recovery method according to claim 1, It is characterized in that The smart device is controlled by a corresponding application program, and the method further comprises: Displaying an operation interface on the client of the application, displaying serial number change information, and a confirm change button and a cancel change button corresponding to the serial number change information on the operation interface, wherein the serial number change information is used to represent the current serial number change status of the smart device; In response to the click operation of the confirmation change button, the serial number successful change information is displayed on the operation interface, and the serial number successful change information is used to indicate that the associated serial number is successfully set as the unique target serial number of the smart device; or, In response to the click operation of the cancel replacement button, serial number cancellation replacement information is displayed on the operation interface, and the serial number cancellation replacement information is used to indicate that the current serial number of the smart device remains unchanged.

5. A smart device, It is characterized in that A method for recovering a device serial number according to any one of claims 1 to 4, wherein the smart device comprises: An acquisition module is used to acquire the first serial number of the current main control module; a status confirmation module, configured to determine the use status of the first serial number and the binding status of the second serial number if a second serial number different from the first serial number exists on the current communication module; a target serial number confirmation module, configured to write the second serial number into the main control module and use the second serial number as a unique target serial number of the smart device if the usage status indicates that the first serial number has not been used and the binding status indicates that the second serial number has been bound; The method further comprises: If the usage status indicates that the first serial number has been used, and the binding status indicates that the second serial number is not bound, writing the first serial number into the communication module; Using the first serial number as the unique target serial number of the smart device; The method further comprises: If the usage status indicates that the first serial number has not been used, and the binding status indicates that the second serial number has not been bound, writing the first serial number into the communication module; Using the first serial number as the unique target serial number of the smart device; The smart device is in communication with the server, and the smart device stores category information, where the category information is used to indicate the product type of the smart device; The method further comprises: If the usage status indicates that the first serial number has not been used, and the binding status indicates that the second serial number has not been bound, the category information and the user account currently logged in to the smart device are sent to the server, so that the server queries the associated serial number corresponding to the smart device with the same category information according to the user account; The associated serial number is received from the server, the associated serial number is written into the main control module and the communication module, and the associated serial number is used as the unique target serial number of the smart device.

6. A control device, It is characterized in that The control device includes a memory and a processor, the memory stores a computer program, and the processor implements the device serial number recovery method according to any one of claims 1 to 4 when executing the computer program.

7. A smart device, It is characterized in that The smart device includes a memory and a processor, the memory stores a computer program, and the processor implements the device serial number recovery method according to any one of claims 1 to 4 when executing the computer program.