Device identifier writing method and device, storage medium and program product

By configuring the WIFI module in the smart device and using the communication link between the server and the routing device to automatically write the device identification, the inefficiency problem caused by manual intervention in the prior art is solved, and efficient and accurate device identification writing and sensorless distribution network are achieved.

CN119676797APending Publication Date: 2025-03-21XIAOMI TECH (WUHAN) CO LTD +3
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411878044.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-18
Publication Date
2025-03-21

AI Technical Summary

Technical Problem

In the prior art, smart devices have inefficient problems of manual intervention in the process of configuring unique identity identifiers before leaving the factory, especially in the commercial inspection and maintenance scenarios of equipment, and cannot write equipment identifiers efficiently and accurately.

Method used

By configuring the WIFI module in the smart device, when the WIFI module establishes a wireless LAN connection with the routing device, the server obtains the WIFI module identification, and determines the device identification based on the pre-stored identification mapping relationship, and finally writes the identification to the device's motherboard and WIFI module.

Benefits of technology

It realizes simple, accurate and efficient writing of device identification, without manual intervention, supports sensorless distribution network, and improves the distribution network experience of smart devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119676797A_ABST
    Figure CN119676797A_ABST
Patent Text Reader

Abstract

The invention relates to an equipment identifier writing method and device, a storage medium and a program product. The method applied to a server comprises the following steps: in response to detection that a WIFI module of a target intelligent device establishes a wireless local area network connection with a routing device, obtaining a WIFI module identifier from the routing device; according to the WIFI module identifier and a pre-stored identifier mapping relationship, determining a target device identifier, the identifier mapping relationship being used for representing a corresponding relationship between the WIFI module identifier and the device identifier; and sending the target equipment identifier to the routing equipment, so that the routing equipment sends the target equipment identifier to the WIFI module, and the target intelligent equipment writes the target equipment identifier into a mainboard of the target intelligent equipment and the WIFI module. According to the technical scheme, simple, accurate and efficient writing of the equipment identifier can be realized; moreover, the equipment identifier is written into the WIFI module, so that the WIFI module can support non-inductive network distribution, and the network distribution experience of the intelligent equipment is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of smart device technology, and in particular to a method, device, storage medium and program product for writing a device identification. Background Art

[0002] With the development of smart device technology, the application of smart devices is becoming more and more extensive. Before a smart device leaves the factory, it is usually necessary to configure a unique identity for the smart device. This identity can be applied to a variety of scenarios. For example, in the commodity inspection scenario of a smart device, the identity needs to be used as an index to report relevant inspection data. Summary of the invention

[0003] In order to overcome the problems existing in the related art, the present disclosure provides a method, an apparatus, a storage medium and a program product for writing a device identifier.

[0004] According to a first aspect of an embodiment of the present disclosure, a method for writing a device identification is provided, which is applied to a server, and includes: in response to detecting that a WIFI module of a target smart device establishes a wireless local area network connection with a routing device, obtaining a WIFI module identification from the routing device; determining a target device identification according to the WIFI module identification and a pre-stored identification mapping relationship, wherein the identification mapping relationship is used to characterize a correspondence between a WIFI module identification and a device identification; and sending the target device identification to the routing device so that the routing device sends the target device identification to the WIFI module so that the target smart device writes the target device identification into a mainboard of the target smart device and the WIFI module.

[0005] Optionally, the target smart device is any smart device among multiple smart devices to be detected, and the method also includes: during the assembly stage of the multiple smart devices to be detected, obtaining identification information corresponding to the multiple smart devices to be detected, the identification information corresponding to each smart device to be detected includes a device identification and a WIFI module identification; storing the identification information corresponding to the multiple smart devices to be detected to obtain the pre-stored identification mapping relationship.

[0006] Optionally, obtaining the identification information respectively corresponding to the multiple smart devices to be detected includes: for each smart device to be detected among the multiple smart devices to be detected, scanning the first identification code on the WIFI module included in the smart device to be detected, and obtaining the WIFI module identification corresponding to the smart device to be detected; for each smart device to be detected among the multiple smart devices to be detected, scanning the second identification code set for the smart device to be detected, and obtaining the device identification corresponding to the smart device to be detected; determining the identification information respectively corresponding to the multiple smart devices to be detected according to the WIFI module identifications respectively corresponding to the multiple smart devices to be detected and the device identifications respectively corresponding to the multiple smart devices to be detected.

[0007] Optionally, the target smart device is any smart device among a plurality of smart devices to be detected, and the method further comprises: in a detection phase of the plurality of smart devices to be detected, detecting the wireless local area network connection status between the plurality of smart devices to be detected and the routing device.

[0008] Optionally, the routing device includes multiple routing devices located in the same wireless local area network, and the multiple routing devices are respectively set in different device detection areas. In response to detecting that the WIFI module of the target smart device establishes a wireless local area network connection with the routing device, and obtains the WIFI module identifier from the routing device, including: in response to detecting that the WIFI module of the target smart device establishes a wireless local area network connection with the target routing device, and obtains the WIFI module identifier from the target routing device, and the target routing device is set in the device detection area where the target smart device is located.

[0009] According to a second aspect of an embodiment of the present disclosure, a method for writing a device identification is provided, which is applied to a smart device, wherein the smart device includes a WIFI module and a main board, and the method includes: establishing a wireless local area network connection with a routing device through the WIFI module, so that a server obtains a WIFI module identification from the routing device, and determines a target device identification according to the WIFI module identification, and sends the target device identification to the routing device; receiving the target device identification sent by the routing device through the WIFI module; and writing the target device identification into the WIFI module and the main board.

[0010] Optionally, writing the target device identification into the WIFI module and the main board includes: storing the target device identification through the WIFI module and sending the target device identification to the main board; and storing the target device identification through the main board.

[0011] Optionally, the smart device is a smart device to be detected, and establishing a wireless LAN connection with a routing device through the WIFI module includes: in response to detecting that the smart device to be detected triggers a detection signal, establishing a wireless LAN connection with the routing device through the WIFI module.

[0012] Optionally, the detection signal is: an initial power-on signal, a key trigger signal, or an infrared remote control trigger signal.

[0013] Optionally, a first identification code is set on the WIFI module, and a second identification code is set on the smart device. The scanning information corresponding to the first identification code is the WIFI module identification, and the scanning information corresponding to the second identification code is the device identification.

[0014] According to a third aspect of an embodiment of the present disclosure, a device for writing a device identification is provided, which is applied to a server, and the device includes: an acquisition module, configured to acquire a WIFI module identification from a routing device in response to detecting that a WIFI module of a target smart device establishes a wireless local area network connection with the routing device; a determination module, configured to determine the target device identification according to the WIFI module identification and a pre-stored identification mapping relationship, wherein the identification mapping relationship is used to characterize the correspondence between the WIFI module identification and the device identification; a sending module, configured to send the target device identification to the routing device, so that the routing device sends the target device identification to the WIFI module, so that the target smart device writes the target device identification into the mainboard of the target smart device and the WIFI module.

[0015] According to a fourth aspect of an embodiment of the present disclosure, a device for writing a device identification is provided, which is applied to a smart device, wherein the smart device includes a WIFI module and a main board, and the device includes: a connection module, configured to establish a wireless local area network connection with a routing device through the WIFI module, so that a server obtains a WIFI module identification from the routing device, determines a target device identification according to the WIFI module identification, and sends the target device identification to the routing device; a receiving module, configured to receive the target device identification sent by the routing device through the WIFI module; and a writing module, configured to write the target device identification into the WIFI module and the main board.

[0016] According to the fifth aspect of an embodiment of the present disclosure, a device for writing a device identification is provided, comprising: a processor; a memory for storing processor executable instructions; wherein the processor is configured to: execute the executable instructions to implement the device identification writing method as described in the first aspect or the second aspect of the present disclosure.

[0017] According to a sixth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the program instructions are executed by a processor, the method for writing a device identification as described in the first aspect or the second aspect of the present disclosure is implemented.

[0018] According to a seventh aspect of an embodiment of the present disclosure, a computer program product is provided, including a computer program, which, when executed by a processor, implements the method for writing a device identification as described in the first aspect or the second aspect of the present disclosure.

[0019] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects: By configuring a WIFI module in a smart device, when the WIFI module establishes a wireless LAN connection with a routing device, the server can obtain the WIFI module identification, and based on the WIFI module identification and the pre-stored identification mapping relationship, the device identification of the smart device can be determined; the device identification is fed back to the WIFI module through the routing device, so that the smart device can write the device identification in the mainboard and WIFI module of the smart device. Therefore, the technical solution does not require manual intervention, and by establishing a communication link between the WIFI module configured by the smart device, the routing device and the server, the simple, accurate and efficient writing of the device identification is achieved; and, since the device identification is written in the WIFI module, the WIFI module can support non-sensing network configuration, improving the network configuration experience of the smart device.

[0020] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0022] Figure 1 It is a schematic diagram of an application scenario according to an exemplary embodiment.

[0023] Figure 2 The figure is a flow chart of a method for writing a device identification according to an exemplary embodiment.

[0024] Figure 3 The present invention is a schematic diagram of an application flow of writing a device identification according to an exemplary embodiment.

[0025] Figure 4 The figure is a flow chart of another method for writing a device identification according to an exemplary embodiment.

[0026] Figure 5The figure is a schematic diagram of a commodity inspection process according to an exemplary embodiment.

[0027] Figure 6 It is a schematic diagram of another commodity inspection process according to an exemplary embodiment.

[0028] Figure 7 The present invention is a block diagram of a device for writing a device identification according to an exemplary embodiment.

[0029] Figure 8 The figure is a block diagram of yet another apparatus for writing a device identification according to an exemplary embodiment.

[0030] Fig. 9 The invention is a block diagram of a smart device according to an exemplary embodiment.

[0031] Fig.10 The present invention is a block diagram of an apparatus for implementing a method for writing a device identification applied to a server according to an exemplary embodiment. DETAILED DESCRIPTION

[0032] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0033] It should be noted that all actions of acquiring signals, information or data in the present disclosure are carried out in compliance with the relevant data protection laws and policies of the country where the device is located and with the authorization given by the owner of the corresponding device.

[0034] With the development of smart device technology, the application of smart devices is becoming more and more extensive. Before a smart device leaves the factory, it is usually necessary to configure a unique identity for the smart device. This identity can be applied to a variety of scenarios. For example, in the commodity inspection scenario of a smart device, the identity needs to be used as an index to report relevant inspection data.

[0035] The unique identification may be a SN (Serial Number) code. As the unique identification of a device, the SN code can be used in a variety of application scenarios, such as product authorization, product testing, and product maintenance, where the product may be a smart device.

[0036] Regarding smart devices, they can be smart devices in different fields. For example, in the field of home appliances, smart devices can be home appliances such as air conditioners, refrigerators, and washing machines. In the field of electronic products, smart devices can be electronic devices such as computers, tablet computers, and televisions.

[0037] Taking home appliances as an example, smart networked home appliances are becoming increasingly popular. The networking of home appliances can not only enhance the user experience, but also assist home appliance manufacturers in after-sales and operation and maintenance management.

[0038] For each home appliance shipped out of the factory, unique identification information needs to be implanted. The factory can affix the SN code to the home appliance and also write the SN code information to the main control board (i.e., mainboard) of the device synchronously. In this way, after the home appliance is connected to the network, it can actively report its own SN code information. The corresponding management platform will record this unique SN information and associate it with the reported data of the home appliance, so that the SN code can be used as an index for the reported data.

[0039] Therefore, writing the SN code into home appliances is an important process link for home appliances.

[0040] In the related art, the SN is written into the mainboard of the smart device manually, or the SN is not supported to be written into the mainboard.

[0041] Taking air conditioners as an example, the writing of SN relies on manual operation, using an infrared barcode scanner to write into the air conditioner. This method requires manual reading of the screen SN to determine whether the SN writing is accurate, which has low accuracy and efficiency. In addition, this method does not support writing SN into the WIFI module, so it does not support non-sensing network configuration.

[0042] Taking washing machines and refrigerators as examples, it is impossible to write SN to the washing machine motherboard and WIFI module, and thus it does not support sensorless network configuration.

[0043] Based on this, considering the networking capability of smart devices, a WIFI module can be configured for smart devices to connect to the device management platform, which can enable the application to remotely control the smart device. Furthermore, the function of the WIFI module can also be used to write the SN to the motherboard and write the SN to the WIFI module, so that the WIFI module supports non-sensing network configuration.

[0044] Furthermore, in the embodiments of the present disclosure, by configuring a WIFI module in a smart device, when the WIFI module establishes a wireless LAN connection with a routing device, the server can obtain the WIFI module identification, and based on the WIFI module identification and a pre-stored identification mapping relationship, the device identification of the smart device can be determined; the device identification is fed back to the WIFI module through the routing device, so that the smart device can write the device identification in the mainboard and WIFI module of the smart device.

[0045] Therefore, this technical solution does not require human intervention, and achieves simple, accurate and efficient writing of device identification by establishing a communication link between the WIFI module, routing device and server configured by the smart device. Moreover, since the device identification is written in the WIFI module, the WIFI module can support seamless network configuration, thereby improving the network configuration experience of smart devices.

[0046] Furthermore, applying this technical solution to the field of home appliances can solve the problem that home appliances cannot write SN to the motherboard, or cannot accurately and efficiently write SN to the motherboard; it can also enable home appliances to support seamless network distribution and improve the network distribution experience of home appliances.

[0047] Furthermore, the written SN can be used in a variety of ways. For example, it can be applied to commodity inspection scenarios, equipment maintenance scenarios, equipment authorization scenarios, etc. In addition, the written SN can be integrated into the corresponding process, for example, into the WIFI connection process in the commodity inspection scenario.

[0048] Figure 1 is a schematic diagram of an application scenario according to an exemplary embodiment. Figure 1 As shown, the hardware involved in this application scenario includes: smart devices, routing devices and servers.

[0049] Among them, smart devices can be household appliances, electronic products, etc.; routing devices can be routers or other network devices.

[0050] Regarding the server, there may also be a corresponding front end, which can be implemented through software or applications. The front end can have interactive functions such as visualization, and the server acts as the back end to perform data processing.

[0051] For example, in a commodity inspection scenario, commodity inspection software can be configured, and the backend of the commodity inspection software can be Figure 1 The server side shown in the figure, the front end of the commodity inspection software is Figure 1 Not reflected in.

[0052] In this application scenario, after startup, the routing device and the server can maintain communication connection with each other. The server can detect the WIFI connection status of the routing device in real time. The routing device can report relevant information to the server, and the server can also send information to the routing device.

[0053] Figure 2 is a flow chart showing a method for writing a device identification according to an exemplary embodiment. Figure 2 As shown, the method can be applied to the server, and the method includes the following steps: Step S21, in response to detecting that the WIFI module of the target smart device establishes a wireless local area network connection with the routing device, obtaining a WIFI module identifier from the routing device.

[0054] Step S22, determining the target device identifier according to the WIFI module identifier and a pre-stored identifier mapping relationship, where the identifier mapping relationship is used to characterize the correspondence between the WIFI module identifier and the device identifier.

[0055] Step S23, sending the target device identification to the routing device, so that the routing device sends the target device identification to the WIFI module, so that the target smart device writes the target device identification into the mainboard and WIFI module of the target smart device.

[0056] In some embodiments, the target smart device may have different implementations according to different application scenarios. For example, in a commodity inspection scenario, the target smart device may be any device among multiple smart devices to be inspected. In an equipment maintenance scenario, the target smart device may be a faulty device.

[0057] In a scenario where the target smart device is any smart device among multiple smart devices to be detected, the method may further include: in a detection phase of multiple smart devices to be detected, detecting wireless local area network connection status between the multiple smart devices to be detected and the routing device.

[0058] In this implementation, in the commodity inspection scenario, the server can continuously detect the wireless LAN connection status between multiple smart devices to be inspected and the routing device after triggering the commodity inspection process to detect whether a wireless LAN connection is established between the target smart device and the routing device.

[0059] In some embodiments, the routing device may include multiple routing devices located in the same wireless local area network, and the multiple routing devices are respectively set in different device detection areas.

[0060] Accordingly, the smart device establishes a wireless LAN connection with the routing device within the device detection area where the smart device is located by default.

[0061] Regarding establishing a wireless LAN connection, it can be understood that after the smart device searches for the WIFI network provided by the routing device, it performs the WIFI network connection operation through the default account and password. After the WIFI network connection is successful, it is considered that the smart device and the routing device have established a wireless LAN connection.

[0062] Therefore, in the commodity inspection scenario, multiple routing devices can be configured to enhance the coverage of the wireless local area network, so that each smart device that needs to be inspected can establish a wireless local area network connection with the corresponding routing device, thereby realizing the identification writing of each smart device that needs to be inspected.

[0063] Therefore, as an optional implementation, step S21 includes: in response to detecting that the WIFI module of the target smart device establishes a wireless LAN connection with the target routing device, obtaining the WIFI module identifier from the target routing device, and the target routing device is set in the device detection area where the target smart device is located.

[0064] In this implementation, the target smart device establishes a wireless local area network connection with a target routing device in the device detection area, so that the server can obtain the WIFI module identification from the target routing device.

[0065] In some embodiments, the server may continuously detect the WIFI connection status of the routing device, and the routing device may reply to the server with the identifier of the WIFI module connected to the WIFI network, so that the server may obtain the WIFI module identifier.

[0066] Regarding the WIFI module identification, it can be MAC (Media Access Control Address, also known as LAN address) and DID (Decentralized Identity) and other information that can uniquely identify the WIFI module, which is not limited here. Among them, the MAC address can be used as the unique identification address of the WIFI module, and the DID address can be used as the identity information of the server to uniquely identify the WIFI module.

[0067] Furthermore, through the WIFI module identification, in step S22, the target device identification can be determined in combination with a pre-stored identification mapping relationship.

[0068] Regarding the target device identification, it can be the SN code that uniquely identifies the identity of the smart device introduced in the above embodiment, or other information that can uniquely identify the identity of the smart device, which is not limited here.

[0069] The pre-stored identification mapping relationship may be used to characterize the corresponding relationship between the WIFI module identification and the device identification.

[0070] In order to make the identification mapping relationship match the actual identification writing scenario, the configuration of the identification mapping relationship can be completed during the assembly stage of the smart device.

[0071] Therefore, as an optional implementation, in the commodity inspection scenario, the method also includes: during the assembly stage of multiple smart devices to be inspected, obtaining identification information corresponding to the multiple smart devices to be inspected, the identification information corresponding to each smart device to be inspected includes a device identification and a WIFI module identification; storing the identification information corresponding to the multiple smart devices to be inspected to obtain a pre-stored identification mapping relationship.

[0072] In this implementation, in a commodity inspection scenario, during the assembly phase of multiple smart devices to be inspected, identification information of each smart device to be inspected may be obtained, and the identification information may be stored as an identification mapping relationship.

[0073] In some embodiments, during the assembly stage, the WIFI module is installed on the whole machine, but is not covered, so the corresponding identification can be obtained.

[0074] In some embodiments, obtaining identification information respectively corresponding to multiple smart devices to be detected includes: for each smart device to be detected among the multiple smart devices to be detected, scanning a first identification code on a WIFI module included in the smart device to be detected to obtain a WIFI module identification corresponding to the smart device to be detected; for each smart device to be detected among the multiple smart devices to be detected, scanning a second identification code set for the smart device to be detected to obtain a device identification corresponding to the smart device to be detected; determining the identification information respectively corresponding to the multiple smart devices to be detected according to the WIFI module identifications respectively corresponding to the multiple smart devices to be detected and the device identifications respectively corresponding to the multiple smart devices to be detected.

[0075] In this embodiment, a first identification code may be set on the WIFI module of the smart device to be detected, and the WIFI module identification may be obtained by scanning the first identification code. Also, a second identification code may be set on the body of the smart device to be detected, and the device identification may be obtained by scanning the second identification.

[0076] In some embodiments, the first identification code and the second identification code may be in the form of a QR code, a barcode, etc., which is not limited here.

[0077] In some embodiments, the first identification code may be pasted on the WIFI module, the second identification code may be pasted on the body of the smart device, or configured at other feasible locations, which are not limited here.

[0078] In some embodiments, for each smart device to be detected, the WIFI module identification and the device identification can be obtained respectively by scanning, and the identification information corresponding to the smart device to be detected can be obtained by pairing and binding the WIFI module identification and the device identification corresponding to the same smart device.

[0079] In some embodiments, the server can also configure a front-end scanning device to scan the device to be detected in the assembly stage through the front-end scanning device to obtain two types of identification information. The front-end scanning device reports the two types of identification information to the server, and the server can perform pairing and binding.

[0080] Furthermore, by combining and storing the identification information corresponding to the plurality of smart devices to be detected, a preset identification mapping relationship can be obtained.

[0081] It can be understood that in the identification mapping relationship, one WIFI module identification corresponds to one device identification, and these WIFI module identifications and device identifications are unique.

[0082] In some embodiments, the server may store the identification mapping relationship in an MES (Manufacturing Execution System) system, and directly obtain it from the MES system when it is needed. Therefore, the server stores the mapping relationship by storing the mapping relationship in the MES system.

[0083] Furthermore, in step S22, a search may be performed in a pre-stored mapping relationship according to the WIFI module identifier to determine the target device identifier.

[0084] It can be understood that a WIFI module identifier identical to the WIFI module identifier is found in the pre-stored mapping relationship, and the device identifier corresponding to the identical WIFI module identifier is used as the target device identifier.

[0085] In some embodiments, if the same WIFI module identifier is not found in the pre-stored identifier mapping relationship, a prompt message indicating that the device identifier writing failed can be fed back, and the device identifier is temporarily not written to the motherboard of the smart device to avoid writing the wrong device identifier into the smart device.

[0086] Further, in step S23, the target device identification is sent to the routing device, the routing device can send the target device identification to the WIFI module, and the target smart device can write the target device identification into the mainboard and the WIFI module. The specific implementation method of writing the device identification into the target smart device will be introduced in the subsequent embodiments.

[0087] Figure 3is a schematic diagram of an application flow of writing a device identification according to an exemplary embodiment. Figure 3 As shown, in the commodity inspection scenario, it involves the product assembly stage and the whole machine inspection stage.

[0088] During the product assembly stage, the MAC / DID code of the WIFI module and the SN code of the entire machine can be stored in the MES system.

[0089] In the whole device detection stage, when the WIFI module establishes a WIFI connection with the routing device, the SN code is obtained from the MAC / DID / SN stored in the MES system based on the MAC / DID code. Then, the SN can be automatically written to the smart device.

[0090] For the MES system, data can be stored based on the mass production cycle and can be exported at any time. In addition, MES can realize data processing based on the senseless distribution network, that is, the scanned information can be stored without any user operation.

[0091] Figure 4 is a flowchart of another method for writing a device identification according to an exemplary embodiment. Figure 4 As shown, the method can be applied to a smart device, and the method comprises the following steps: Step S41, establishing a wireless local area network connection with the routing device through the WIFI module, so that the server obtains the WIFI module identification from the routing device, determines the target device identification according to the WIFI module identification, and sends the target device identification to the routing device.

[0092] Step S42: receiving the target device identification sent by the routing device through the WIFI module.

[0093] Step S43, writing the target device identification into the WIFI module and the mainboard.

[0094] In step S41, the smart device can establish a wireless local area network connection with the routing device through the WIFI module, so that the server can execute the method flow introduced in the above embodiment.

[0095] Furthermore, for the smart device, in step S42, the target device identifier sent by the routing device can be received through the WIFI module.

[0096] In some embodiments, the smart device can actively trigger the establishment of a wireless LAN connection with the routing device. For example, in a commodity inspection scenario, when the commodity inspection process (mode) is started, the smart device can trigger the establishment of a wireless LAN connection with the routing device.

[0097] Therefore, as an optional implementation, step S41 includes: in response to detecting that the smart device to be detected triggers a detection signal, establishing a wireless local area network connection with the routing device through the WIFI module.

[0098] In this embodiment, triggering the detection signal is regarded as starting the commodity inspection process. It is understandable that there are many ways to trigger the detection signal.

[0099] By way of example, the detection signal may be: a first power-on signal, a key trigger signal, or an infrared remote control trigger signal.

[0100] The first power-on signal may be a power-on signal triggered when the smart device is assembled and then powered on for the first time. The first power-on signal may be triggered by the user or remotely by a corresponding control device, which is not limited here. Taking household appliances as an example, a refrigerator may adopt the implementation method of first power-on triggering. If the refrigerator is not powered on for the first time, it may be combined with a button trigger.

[0101] The key trigger signal can be a trigger signal generated by the user operating a key. For example, a corresponding commodity inspection start key is set on the smart device. The user can generate a key trigger signal by long pressing the start key, thereby triggering the commodity inspection process. Taking home appliances as an example, a washing machine can adopt the implementation method of key trigger signal. For example, while triggering the setting key, press and hold the softener key for 2S, and the key trigger signal can be completed 30S after the machine is turned on.

[0102] The infrared remote control trigger signal may be a commodity inspection mode start signal initiated by an infrared remote control, which requires external infrared remote control equipment, and specific reference may be made to mature infrared remote control technology in the art. Taking household appliances as an example, an air conditioner may be triggered by an infrared remote control.

[0103] Furthermore, when any of the above possible trigger signals is received, it is deemed that the commodity inspection mode is started. Accordingly, the WIFI module can search for the WIFI network of the routing device, and connect to the WIFI network through the corresponding account and password configuration, thereby realizing the wireless LAN connection with the routing device.

[0104] In step S43, based on the received target device identification, the smart device may perform a write operation of the target device identification.

[0105] In some embodiments, step S43 may include: storing the target device identification through the WIFI module, and sending the target device identification to the mainboard; storing the target device identification through the mainboard.

[0106] In this implementation, the WIFI module stores the target device identification and synchronizes the target device identification to the mainboard. The mainboard stores the target device identification and completes the writing of the device identification.

[0107] In some embodiments, the target device identifier stored in the WIFI module can be used to implement subsequent seamless network configuration of the smart device, thereby improving the network configuration experience.

[0108] In some embodiments, it is also possible to detect whether the target device identification is successfully written into the WIFI module and the mainboard, and if it is detected that the writing is unsuccessful, then feedback is given indicating that the writing failed, and if it is detected that the writing is successful, then feedback is given indicating that the writing is successful.

[0109] In some embodiments, the smart device may also be connected to a display device, which may display information related to the smart device. For example, in a commodity inspection scenario, the display device may display information such as whether the SN code is written successfully, specific data of the commodity inspection, and the like.

[0110] Referring to the introduction of the aforementioned embodiment, it can be known that for a smart device, a first identification code can be set on the WIFI module, and a second identification code can be set on the smart device. The scanning information corresponding to the first identification code is the WIFI module identification, and the scanning information corresponding to the second identification code is the device identification.

[0111] Figure 5 is a schematic diagram of a commodity inspection process according to an exemplary embodiment. Figure 5 As shown in the figure, the commodity inspection process is applied to the inspection of household appliances such as air conditioners, refrigerators, and washing machines. The inspection process may include the following relevant steps: First, the product (i.e., home appliance) is triggered to enter the commodity inspection mode. Three different types of home appliances can have different commodity inspection mode triggering methods.

[0112] Among them, the washing machine can be triggered to enter the commodity inspection mode by a physical button, the air conditioner can be triggered to enter the commodity inspection mode by a remote control, and the refrigerator can be triggered to enter the commodity inspection mode by the first power-on. And if the refrigerator is not powered on for the first time, it needs to be triggered to enter the commodity inspection mode by a button.

[0113] These triggering methods can all trigger the module to enter commodity inspection mode by sending commands through the internal machine.

[0114] Then, the WIFI module automatically connects to the default configured routing device, and the commodity inspection software (i.e., the server) can automatically update the connected devices of the routing device.

[0115] Furthermore, the commodity inspection software performs a write SN operation for each household appliance connected to the routing device.

[0116] Furthermore, after writing the SN, the data collection and reporting process begins. Specifically, the home appliance sends the commodity inspection related data to the commodity inspection software, and the commodity inspection software further reports it to a related platform, such as the device management platform.

[0117] In addition, the results of some related processes in the entire commodity inspection process can also be fed back, including whether the WIFI connection fails, whether the SN writing fails, and whether the reverse SN writing fails.

[0118] Alternatively, other related commodity inspection processes may be further executed until the commodity inspection is completed.

[0119] It can be seen that the commodity inspection and testing process of household appliances has a process for verifying the connection to WiFi, and the WiFi channel can be used to implement the relevant data writing and detection reporting process. On the basis of the existing commodity inspection process, minor changes are made to meet new commodity inspection requirements, such as: testing the WiFi connection process, without major changes to the factory process. This solution can be applied to the inspection of air conditioners, refrigerators and washing machines manufacturers, and a set of solutions is adopted to facilitate replication, promotion and maintenance.

[0120] Figure 6 is a schematic diagram of another commodity inspection process according to an exemplary embodiment. Figure 6 As shown in the figure, the commodity inspection process involves the interaction between the whole machine (smart device), the routing device and the commodity inspection server.

[0121] First, the whole machine includes the electronic control mainboard and the WIFI module. The whole machine is powered on first, and then the module is powered on.

[0122] Then, based on the corresponding trigger signal, the commodity inspection mode can be started. After starting the commodity inspection mode, the module automatically connects to the default routing device. In addition, the module can tell the whole machine that the WIFI connection is successful. On the screen of the whole machine (which can be an external screen display or a screen display on the whole machine), the WIFI connection is successful. For the implementation of the trigger signal, refer to the above embodiment.

[0123] Correspondingly, on the service side, a MAC / DID / SN mapping relationship is pre-stored in the MES system, and the SN can be determined based on the mapping relationship and the module MAC / DID detected from the routing device.

[0124] Furthermore, the SN may be sent to a routing device, which in turn sends the SN to a WIFI module.

[0125] Next, the WIFI module stores the SN to support the senseless network configuration. In addition, the SN is synchronized to the mainboard so that the mainboard stores the SN and writes the mainboard SN.

[0126] Furthermore, after the writing is successful, the SN success may be displayed on the screen.

[0127] In addition, in the commodity inspection scenario, quality inspectors may also be involved. Quality inspectors can use the screen display to determine whether the entire machine is qualified. And according to the judgment results, different processes are executed, including offline processing and going to the next process link. Among them, the quality inspector can make a qualified judgment after the entire machine production line has been running for at least a certain period of time (for example, three minutes).

[0128] In addition, on the server side, after completing the SN writing process, log recording can also be performed. Specifically, the log can be stored in the MES system.

[0129] It can be seen that the technical solution of the embodiment of the present disclosure can realize simple, efficient and accurate writing of smart device identification in different application scenarios. In addition, the WIFI module can also support non-sensing network configuration, improving the network configuration experience of smart devices.

[0130] Figure 7 1 is a block diagram of a device for writing a device identifier according to an exemplary embodiment, and the device is applied to a server. Figure 7 , the device comprises: The acquisition module 701 is configured to acquire a WIFI module identifier from the routing device in response to detecting that the WIFI module of the target smart device establishes a wireless local area network connection with the routing device.

[0131] The determination module 702 is configured to determine the target device identifier according to the WIFI module identifier and a pre-stored identifier mapping relationship, where the identifier mapping relationship is used to represent the correspondence between the WIFI module identifier and the device identifier.

[0132] The sending module 703 is configured to send the target device identification to the routing device, so that the routing device sends the target device identification to the WIFI module, so that the target smart device writes the target device identification into the mainboard of the target smart device and the WIFI module.

[0133] Optionally, the acquisition module 701 is also configured to: during the assembly stage of the multiple smart devices to be detected, obtain the identification information corresponding to the multiple smart devices to be detected, and the identification information corresponding to each smart device to be detected includes a device identification and a WIFI module identification; the device also includes a storage module, which is configured to: store the identification information corresponding to the multiple smart devices to be detected, and obtain the pre-stored identification mapping relationship.

[0134] Optionally, the acquisition module 701 is also configured to: for each of the multiple smart devices to be detected, scan the first identification code on the WIFI module included in the smart device to be detected to obtain the WIFI module identification corresponding to the smart device to be detected; for each of the multiple smart devices to be detected, scan the second identification code set for the smart device to be detected to obtain the device identification corresponding to the smart device to be detected; determine the identification information corresponding to the multiple smart devices to be detected according to the WIFI module identifications corresponding to the multiple smart devices to be detected and the device identifications corresponding to the multiple smart devices to be detected.

[0135] Optionally, the apparatus further comprises a detection module configured to: during the detection phase of the plurality of intelligent devices to be detected, detect the wireless local area network connection status between the plurality of intelligent devices to be detected and the routing device.

[0136] Optionally, the acquisition module 701 is also configured to: in response to detecting that the WIFI module of the target smart device establishes a wireless LAN connection with the target routing device, obtain a WIFI module identifier from the target routing device, and the target routing device is set in the device detection area where the target smart device is located.

[0137] Figure 8 is a block diagram of another device for writing a device identification according to an exemplary embodiment. The device is applied to a smart device and includes: The connection module 801 is configured to establish a wireless local area network connection with the routing device through the WIFI module, so that the server obtains the WIFI module identifier from the routing device, determines the target device identifier based on the WIFI module identifier, and sends the target device identifier to the routing device.

[0138] The receiving module 802 is configured to receive the target device identifier sent by the routing device through the WIFI module.

[0139] The writing module 803 is configured to write the target device identification into the WIFI module and the mainboard.

[0140] Optionally, the writing module 803 is further configured to: store the target device identification through the WIFI module, and send the target device identification to the main board; store the target device identification through the main board.

[0141] Optionally, the connection module 801 is further configured to: in response to detecting that the smart device to be detected triggers a detection signal, establish a wireless local area network connection with the routing device through the WIFI module.

[0142] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0143] The present disclosure also provides a computer-readable storage medium on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the device identification writing method provided by the present disclosure are implemented.

[0144] Fig. 9 1 is a block diagram of a smart device 900 according to an exemplary embodiment. For example, the smart device 900 may be a household appliance or other electronic devices.

[0145] Reference Fig. 9 , the smart device 900 may include one or more of the following components: a first processing component 902 , a first memory 904 , a first power component 906 , a multimedia component 908 , an audio component 910 , a first input / output interface 912 , a sensor component 914 , and a communication component 916 .

[0146] The first processing component 902 generally controls the overall operation of the smart device 900, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The first processing component 902 may include one or more first processors 920 to execute instructions to complete all or part of the steps of the above-mentioned method for writing a device identification applied to a smart device. In addition, the first processing component 902 may include one or more modules to facilitate the interaction between the first processing component 902 and other components. For example, the first processing component 902 may include a multimedia module to facilitate the interaction between the multimedia component 908 and the first processing component 902.

[0147] The first memory 904 is configured to store various types of data to support operations on the smart device 900. Examples of such data include instructions for any application or method operating on the smart device 900, contact data, phone book data, messages, pictures, videos, etc. The first memory 904 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0148] The first power source component 906 provides power to various components of the smart device 900. The first power source component 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the smart device 900.

[0149] The multimedia component 908 includes a screen that provides an output interface between the smart device 900 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front camera and / or a rear camera. When the smart device 900 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0150] The audio component 910 is configured to output and / or input audio signals. For example, the audio component 910 includes a microphone (MIC), and when the smart device 900 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the first memory 904 or sent via the communication component 916. In some embodiments, the audio component 910 also includes a speaker for outputting audio signals.

[0151] The first input / output interface 912 provides an interface between the first processing component 902 and a peripheral interface module, which may be a keyboard, a click wheel, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0152] The sensor assembly 914 includes one or more sensors for providing various aspects of status assessment for the smart device 900. For example, the sensor assembly 914 can detect the open / closed state of the smart device 900, the relative positioning of components, such as the display and keypad of the smart device 900, and the sensor assembly 914 can also detect the position change of the smart device 900 or a component of the smart device 900, the presence or absence of user contact with the smart device 900, the orientation or acceleration / deceleration of the smart device 900, and the temperature change of the smart device 900. The sensor assembly 914 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 914 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0153] The communication component 916 is configured to facilitate wired or wireless communication between the smart device 900 and other devices. The smart device 900 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0154] In an exemplary embodiment, the smart device 900 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to execute the above-mentioned method for writing a device identification applied to a smart device.

[0155] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a first memory 904 including instructions, and the above instructions can be executed by the first processor 920 of the smart device 900 to complete the above-mentioned method for writing a device identification applied to the smart device. For example, the non-transitory computer-readable storage medium can be a ROM, a random access first memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0156] In another exemplary embodiment, a computer program product is further provided. The computer program product includes a computer program executable by a programmable device, and the computer program has a code portion for executing the above-mentioned method for writing a device identification when the computer program is executed by the programmable device.

[0157] Fig.10 1 is a block diagram of an apparatus 1000 for implementing a method for writing a device identifier applied to a server according to an exemplary embodiment. For example, the apparatus 1000 may be provided as a server. Fig.10 The apparatus 1000 includes a second processing component 1022, which further includes one or more second processors, and a memory resource represented by a second memory 1032 for storing instructions executable by the processing component 1022, such as an application. The application stored in the second memory 1032 may include one or more modules, each corresponding to a set of instructions. In addition, the second processing component 1022 is configured to execute instructions to perform the above-mentioned method for writing a device identifier applied to the server.

[0158] The device 1000 may further include a second power supply component 1026 configured to perform power management of the device 1000, a wired or wireless network interface 1050 configured to connect the device 1000 to a network, and a second input / output interface 1058. The device 1000 may operate based on an operating system stored in the memory 1032, such as Windows Server 2000. TM , MacOS X TM , Unix TM , Linux TM , FreeBSD TM or similar.

[0159] Those skilled in the art may also understand that the various illustrative logical blocks and steps listed in the embodiments of the present application may be implemented by electronic hardware, computer software, or a combination of the two. Whether such functions are implemented by hardware or software depends on the specific application and the design requirements of the entire system. Those skilled in the art may use various methods to implement the functions described for each specific application, but such implementation should not be understood as exceeding the scope of protection of the embodiments of the present application.

[0160] Although terms such as "first", "second" and "third" can be used herein to describe various components, parts, regions, layers or sections, these components, parts, regions, layers or sections are not limited to these terms. On the contrary, these terms are only used to distinguish one component, component, region, layer or section from another component, component, region, layer or section. Therefore, without departing from the teachings of each example, the first component, component, region, layer or section mentioned in the examples described herein may also be referred to as the second component, component, region, layer or section. In addition, the terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first" and "second" may expressly or implicitly include at least one of the features. In the description herein, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0161] Likewise, although the present disclosure has been shown and described with respect to one or more implementations, equivalent variations and modifications will occur to those skilled in the art after reading and understanding the specification and drawings. The present disclosure includes all such modifications and variations and is limited only by the scope of the claims. In particular, with respect to the various functions performed by the components (e.g., elements, resources, etc.) described above, unless otherwise indicated, the terms used to describe such components are intended to correspond to any component (functionally equivalent) that performs the specific functions of the described components, even if the structure is not equivalent to the disclosed structure. In addition, although specific features of the present disclosure may have been disclosed with respect to only one of several implementations, such features may be combined with one or more other features of other implementations as may be desired and beneficial to any given or specific application. In addition, with respect to "including", "having", "having", "having", or variations thereof used in a specific embodiment or claim, such terms are intended to be inclusive in a manner similar to the term "comprising".

[0162] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the appended claims.

[0163] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A method for writing a device identification, characterized in that: Applied to the server, the method includes: In response to detecting that the WIFI module of the target smart device establishes a wireless local area network connection with the routing device, obtaining a WIFI module identifier from the routing device; Determine the target device identification according to the WIFI module identification and a pre-stored identification mapping relationship, wherein the identification mapping relationship is used to characterize the correspondence between the WIFI module identification and the device identification; The target device identification is sent to the routing device, so that the routing device sends the target device identification to the WIFI module, so that the target smart device writes the target device identification into the mainboard of the target smart device and the WIFI module.

2. The method according to claim 1, characterized in that The target smart device is any smart device among a plurality of smart devices to be detected, and the method further includes: During the assembly stage of the plurality of smart devices to be detected, obtaining identification information corresponding to the plurality of smart devices to be detected, wherein the identification information corresponding to each smart device to be detected includes a device identification and a WIFI module identification; The identification information corresponding to the plurality of smart devices to be detected is stored respectively to obtain the pre-stored identification mapping relationship.

3. The method according to claim 2, characterized in that The obtaining of identification information respectively corresponding to the plurality of to-be-detected smart devices includes: For each of the multiple smart devices to be detected, scanning a first identification code on a WIFI module of the smart device to be detected to obtain a WIFI module identification corresponding to the smart device to be detected; For each of the multiple smart devices to be detected, scanning a second identification code set for the smart device to be detected to obtain a device identification corresponding to the smart device to be detected; According to the WIFI module identifiers respectively corresponding to the multiple smart devices to be detected and the device identifiers respectively corresponding to the multiple smart devices to be detected, the identification information respectively corresponding to the multiple smart devices to be detected is determined.

4. The method according to claim 1, characterized in that: The target smart device is any smart device among a plurality of smart devices to be detected, and the method further includes: During the detection phase of the multiple smart devices to be detected, the wireless local area network connection status between the multiple smart devices to be detected and the routing device is detected.

5. The method according to claim 4, characterized in that The routing device includes a plurality of routing devices located in the same wireless local area network, the plurality of routing devices are respectively arranged in different device detection areas, the WIFI module of the target smart device is detected to establish a wireless local area network connection with the routing device, and the WIFI module identifier is obtained from the routing device, including: In response to detecting that a WIFI module of a target smart device establishes a wireless local area network connection with a target routing device, a WIFI module identifier is obtained from the target routing device, and the target routing device is set in a device detection area where the target smart device is located.

6. A method for writing a device identification, characterized in that: Applied to a smart device, the smart device includes a WIFI module and a mainboard, and the method includes: Establishing a wireless local area network connection with a routing device through the WIFI module, so that the server obtains a WIFI module identifier from the routing device, determines a target device identifier according to the WIFI module identifier, and sends the target device identifier to the routing device; Receiving the target device identification sent by the routing device through the WIFI module; The target device identification is written into the WIFI module and the mainboard.

7. The method according to claim 6, characterized in that The step of writing the target device identifier into the WIFI module and the mainboard includes: The target device identification is stored by the WIFI module, and the target device identification is sent to the main board; The target device identification is stored by the main board.

8. The method according to claim 6, characterized in that The smart device is a smart device to be detected, and the wireless local area network connection is established with the routing device through the WIFI module, including: In response to detecting that the intelligent device to be detected triggers a detection signal, a wireless local area network connection is established with a routing device through the WIFI module.

9. The method according to claim 8, characterized in that The detection signal is: a first power-on signal, a key trigger signal or an infrared remote control trigger signal.

10. The method according to any one of claims 6 to 9, characterized in that: The WIFI module is provided with a first identification code, and the smart device is provided with a second identification code. The scanning information corresponding to the first identification code is the WIFI module identification, and the scanning information corresponding to the second identification code is the device identification.

11. A device for writing a device identification, characterized in that: Applied to the server, the device comprises: an acquisition module, configured to acquire a WIFI module identifier from the routing device in response to detecting that the WIFI module of the target smart device establishes a wireless local area network connection with the routing device; A determination module is configured to determine the target device identifier according to the WIFI module identifier and a pre-stored identifier mapping relationship, wherein the identifier mapping relationship is used to characterize the correspondence between the WIFI module identifier and the device identifier; The sending module is configured to send the target device identification to the routing device, so that the routing device sends the target device identification to the WIFI module, so that the target smart device writes the target device identification into the mainboard of the target smart device and the WIFI module.

12. A device for writing a device identification, characterized in that: Applied to a smart device, the smart device includes a WIFI module and a mainboard, and the device includes: A connection module is configured to establish a wireless local area network connection with a routing device through the WIFI module, so that the server obtains a WIFI module identifier from the routing device, determines a target device identifier based on the WIFI module identifier, and sends the target device identifier to the routing device; A receiving module, configured to receive the target device identifier sent by the routing device through the WIFI module; The writing module is configured to write the target device identification into the WIFI module and the mainboard.

13. A device for writing a device identification, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to: execute the executable instructions to implement the method for writing a device identification as described in any one of claims 1 to 10.

14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for writing a device identification as described in any one of claims 1 to 10 is implemented.

15. A computer program product, characterized in that It includes a computer program, which, when executed by a processor, implements the method for writing a device identification as described in any one of claims 1 to 10.