Authentication method, device and equipment based on NFC (Near Field Communication) tag and storage medium

Through the NFC tag authentication method, the problem of low anti-counterfeiting certification of smart toilets is solved, efficient and reliable certification and cross-stock inspection are achieved, installation and use process is simplified, and the interests of users and manufacturers are protected.

CN119312827APending Publication Date: 2025-01-14JOMOO KITCHEN & BATHROOM
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411335447.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-24
Publication Date
2025-01-14

AI Technical Summary

Technical Problem

The anti-counterfeiting certification efficiency and reliability of smart toilets have insufficient efficiency and reliability, which has led to the proliferation of counterfeit and shoddy products, affecting the interests of consumers and brands. At the same time, the installation and use process is complex and needs to be convenient.

Method used

Using an NFC tag-based authentication method, authentication information is obtained through embedded applications and short-range wireless communication, including anti-counterfeiting codes and target sales areas, certification is carried out, and certification results are obtained to ensure the authenticity and legality of the product.

Benefits of technology

It improves the certification efficiency and reliability of smart toilets, protects the legitimate rights and interests of users and manufacturers, simplifies the installation and use process, prevents goods from being scattered, and provides appropriate functions and accessories recommendations based on the sales area.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119312827A_ABST
    Figure CN119312827A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses an authentication method and device based on an NFC tag, equipment and a storage medium. The method is applied to the intelligent closestool and comprises the following steps: starting an embedded application corresponding to the intelligent closestool in a preset host application; authentication information is acquired through the embedded application and a near field communication (NFC) tag; wherein the NFC label is arranged on the intelligent closestool; the authentication information comprises an anti-counterfeiting code and a target sales area of the intelligent closestool; in the embedded application, the intelligent closestool is authenticated based on the anti-counterfeiting code and / or the target sales area, and an authentication result is obtained; wherein the authentication result is authentication success or authentication failure. According to the NFC tag-based authentication method provided by the embodiment of the invention, the authentication of the intelligent closestool is realized through the embedded application and the NFC tag arranged on the intelligent closestool, and the efficiency and the reliability of the authentication of the intelligent closestool can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of smart home technology, and in particular to an authentication method, device, equipment and storage medium based on NFC tags. Background Art

[0002] With the rapid development of the Internet of Things and smart home technologies, smart toilets, as an important product in the bathroom field, are gradually entering more homes. Smart toilets usually have functions such as automatic flushing, seat heating, and drying, providing users with a comfortable toilet experience. However, with the growth of market demand, counterfeit and shoddy products have also appeared, affecting the rights and interests of consumers and the interests of brand owners. Therefore, anti-counterfeiting certification of smart toilets is particularly important. At the same time, the installation and use of smart toilets also require a more convenient way to meet user needs. Summary of the invention

[0003] The embodiments of the present invention provide an authentication method, device, equipment and storage medium based on NFC tags, which can improve the efficiency and reliability of smart toilet authentication.

[0004] In a first aspect, an embodiment of the present invention provides an authentication method based on an NFC tag, the method being applied to a smart toilet, the method comprising:

[0005] Start the embedded application corresponding to the smart toilet in the preset host application;

[0006] Acquire authentication information through the embedded application and the NFC tag; wherein the NFC tag is set on the smart toilet; the authentication information includes the anti-counterfeiting code and the target sales area of ​​the smart toilet;

[0007] In the embedded application, the smart toilet is authenticated based on the anti-counterfeiting code and / or the target sales area to obtain an authentication result; wherein the authentication result is authentication passed or authentication failed.

[0008] In a second aspect, an embodiment of the present invention further provides an authentication device based on an NFC tag, which is applied to a smart toilet, and the device includes:

[0009] An embedded application startup module, used to start the embedded application corresponding to the smart toilet in a preset host application;

[0010] An authentication information acquisition module, used to acquire authentication information through the embedded application and a near-field wireless communication NFC tag; wherein the NFC tag is set on the smart toilet; the authentication information includes an anti-counterfeiting code and a target sales area of ​​the smart toilet;

[0011] The authentication result acquisition module is used to authenticate the smart toilet in the embedded application based on the anti-counterfeiting code and / or the target sales area to obtain an authentication result; wherein the authentication result is authentication passed or authentication failed.

[0012] In a third aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:

[0013] at least one processor; and

[0014] a memory communicatively connected to the at least one processor; wherein,

[0015] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the NFC tag-based authentication method described in the embodiment of the present invention.

[0016] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the NFC tag-based authentication method described in the embodiment of the present invention when executed.

[0017] The embodiment of the present invention discloses an authentication method, device, equipment and storage medium based on NFC tags. The method is applied to a smart toilet, and the method includes: starting an embedded application corresponding to the smart toilet in a preset host application; obtaining authentication information through an embedded application and a near-field wireless communication NFC tag; wherein the NFC tag is set on the smart toilet; the authentication information includes an anti-counterfeiting code and a target sales area of ​​the smart toilet; in the embedded application, the smart toilet is authenticated based on the anti-counterfeiting code and / or the target sales area to obtain an authentication result; wherein the authentication result is authentication passed and authentication failed. The authentication method based on NFC tags provided in the embodiment of the present invention realizes authentication of smart toilets through embedded applications and NFC tags set on smart toilets, which can improve the efficiency and reliability of smart toilet authentication, thereby ensuring the legitimate rights and interests of users and toilet manufacturers. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 is a flow chart of an authentication method based on an NFC tag in Embodiment 1 of the present invention;

[0019] Figure 2 is a flow chart of an authentication method based on an NFC tag in Embodiment 1 of the present invention;

[0020] Figure 3 It is a structural diagram of an authentication device based on an NFC tag in Embodiment 2 of the present invention;

[0021] Figure 4 It is a structural schematic diagram of an electronic device in Embodiment 3 of the present invention. DETAILED DESCRIPTION

[0022] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0023] Embodiment 1

[0024] Figure 1 This is a flowchart of an NFC tag-based authentication method provided in the first embodiment of the present invention. This embodiment is applicable to the case of security authentication of a smart toilet. The method can be executed by an NFC tag-based authentication device, which can be implemented in the form of software and / or hardware. Optionally, it can be implemented by an electronic device, which can be a mobile terminal, PC or server. The electronic device supports NFC function. Figure 1 As shown, the specific steps include:

[0025] S110, starting the embedded application corresponding to the smart toilet in the preset host application.

[0026] Among them, the preset host application provides an operating environment, namely, a host environment, for the embedded application, so that the embedded application can use the application program interface (API) and functions provided by the preset host application to complete specific tasks. That is, the host environment provides the resources and capabilities required for the operation of the embedded application. The relationship between the preset host application and the embedded application can be compared to a parasitic relationship, where the preset host application is equivalent to the parasitic subject, and the embedded application is the "parasite" parasitic on it. The embedded application can also be called a mini-program.

[0027] In this embodiment, the embedded application corresponding to the smart toilet may be a small program for implementing the authentication function of the smart toilet, and the preset host application is a pre-selected application that can provide a host environment.

[0028] Specifically, the method of starting the embedded application corresponding to the smart toilet in the preset host application can be: reading the embedded application address in the NFC tag; starting the embedded application corresponding to the smart toilet in the preset host application based on the embedded program address; or, in response to the startup operation of the cut-in application triggered by the user in the preset host application, starting the embedded application corresponding to the smart toilet.

[0029] Among them, a Near Field Communication (NFC) tag is set on the smart toilet, and is burned and pasted on the smart toilet by the manufacturer of the smart toilet before the smart toilet leaves the factory.

[0030] The electronic device in this implementation supports the NFC function. When the electronic device is close to the NFC tag on the smart toilet, the electronic device and the NFC tag establish a data connection through electromagnetic induction. The electronic device can read the embedded application address in the NFC tag, and then start the embedded application corresponding to the smart toilet in the preset host application based on the embedded application address.

[0031] Optionally, the user can start the embedded application corresponding to the smart toilet by actively triggering it. The specific process is: the user searches for the embedded application corresponding to the smart toilet in the preset host program, and then starts the searched embedded application of the smart toilet by clicking on it.

[0032] In this embodiment, after the user purchases a new smart toilet, the smart toilet needs to be authenticated before the first use of the smart toilet. At this time, the embedded application needs to be started in the preset host application to complete the authentication of the smart toilet through the embedded application.

[0033] S120, obtaining authentication information through the embedded application and the NFC tag.

[0034] Among them, the NFC tag is set on the smart toilet; the authentication information includes the anti-counterfeiting code and the target sales area of ​​the smart toilet.

[0035] In this embodiment, the method of obtaining the authentication information through the embedded application and the near-field wireless communication NFC tag may be: directly obtaining the authentication information through the embedded application and the near-field wireless communication NFC tag or indirectly obtaining the authentication information.

[0036] Specifically, the method of obtaining authentication information through embedded applications and NFC tags can be: based on the embedded application, read the anti-counterfeiting code in the NFC tag and the target sales area of ​​the smart toilet; or, based on the embedded application, read the anti-counterfeiting code in the NFC tag and the unique identification code of the smart toilet; based on the unique identification code of the smart toilet, request the target sales area of ​​the smart toilet from the server.

[0037] In one embodiment, the manufacturer of the smart toilet burns the anti-counterfeiting code and the target sales area into the NFC tag. When the electronic device with the embedded application started is close to the NFC tag, the anti-counterfeiting code in the NFC tag and the target sales area of ​​the smart toilet can be read. In another embodiment, the manufacturer of the smart toilet burns the anti-counterfeiting code and the unique identification code of the smart toilet into the NFC tag. When the electronic device with the embedded application started is close to the NFC tag, the anti-counterfeiting code and the unique identification code of the smart toilet can be read in the NFC tag. The electronic device generates sales area request information carrying the unique identification code of the toilet through the embedded application, and sends the sales area request information to the server, so that the server returns the sales area of ​​the smart toilet to the electronic device according to the sales area request information.

[0038] S130, in the embedded application, authenticating the smart toilet based on the anti-counterfeiting code and / or the target sales area to obtain an authentication result.

[0039] The authentication result is authentication passed or authentication failed. In this embodiment, the smart toilet can be authenticated based on the anti-counterfeiting code, that is, the authenticity of the smart toilet can be identified. The smart toilet can be verified based on the target sales area, that is, whether the smart toilet flows into the non-target sales area.

[0040] Specifically, in an embedded application, the smart toilet is authenticated based on the anti-counterfeiting code and the target sales area, and the process of obtaining the authentication result can be: sending the anti-counterfeiting code to the server through the embedded application, so that the server verifies the anti-counterfeiting code; receiving the anti-counterfeiting code verification result returned by the server; if the anti-counterfeiting code verification result is verification passed, obtaining the user's current geographical location; comparing the geographical location with the target sales area to obtain a comparison result; and determining the authentication result of the smart toilet based on the comparison result.

[0041] In this embodiment, the electronic device sends the anti-counterfeiting code to the server through the embedded application, so that the server searches the database for an anti-counterfeiting code that matches the anti-counterfeiting code. If the anti-counterfeiting code is found, the anti-counterfeiting verification of the smart toilet is passed, indicating that the smart toilet is authentic; if the anti-counterfeiting code is not found, the anti-counterfeiting verification of the smart toilet fails, indicating that the smart toilet is a fake, and the authentication result of the smart toilet is authentication failure.

[0042] Optionally, while verifying the anti-counterfeiting code, the server also obtains the verification times of the anti-counterfeiting code, and returns the verification times to the electronic device for display so that the user can view them.

[0043] When the anti-counterfeiting verification of the smart toilet is passed, the user's current geographical location is obtained through the positioning module in the electronic device, and the geographical location is compared with the read target sales area, so as to determine the authentication result of the smart toilet based on the comparison result.

[0044] Specifically, the method of determining the authentication result of the smart toilet based on the comparison result can be: if the comparison result is that the geographical location matches the target sales area, the authentication result of the smart toilet is authentication passed; if the comparison result is that the geographical location does not match the target sales area, the authentication result of the smart toilet is authentication failed.

[0045] In this application scenario, the water quality and / or water pressure in different regions are different. The filtration effect, dirt residue, etc. of the toilet will cause the service life, data push, function recommendation, etc. to be different in different regions. Therefore, toilets in different regions generally have different parameter requirements, and the target sales areas corresponding to smart toilets with different parameters will also be different. In this embodiment, the smart toilet is verified based on the target sales area to recommend a more suitable toilet to the user based on the actual sales area, or the system can recommend more suitable function parameters to the user, or the service life of the accessories can be more accurately judged for different water qualities, so as to improve the user experience and to a certain extent improve the service life of the smart toilet.

[0046] In this embodiment, if the comparison result is that the geographical location matches the target sales area, it indicates that the smart toilet has not flowed into the non-target sales area, that is, no cross-selling has occurred, and the authentication result of the smart toilet is authentication passed. If the comparison result is that the geographical location does not match the target sales area, it indicates that the smart toilet has flowed into the non-target sales area, that is, cross-selling has occurred, and the authentication result of the smart toilet is authentication failed.

[0047] Optionally, after obtaining the authentication result, the following steps are also included: if the authentication result is passed, the smart toilet is activated; if the authentication result is failed, the information that the comparison result is that the geographical location does not match the target sales area is sent to the server, so that the server determines the activation policy based on the comparison result; the activation policy returned by the server is received, and if the activation policy is to allow activation, the smart toilet is activated.

[0048] In this embodiment, after the smart toilet is authenticated, a prompt message "Do you want to activate the smart toilet" will pop up in the embedded application. If the user chooses not to activate the smart toilet, the user cannot use the smart toilet normally; if the user chooses to activate the smart toilet, the smart toilet is activated through the embedded application.

[0049] Specifically, the process of activating the smart toilet may be: establishing a wireless communication connection with the smart toilet; receiving an activation instruction input by a user, and sending the activation instruction to the smart toilet, so that the smart toilet performs an activation operation based on the activation instruction.

[0050] Among them, the wireless communication connection can be a Bluetooth connection. In this embodiment, the electronic device establishes a wireless communication connection with the smart toilet, and the user inputs an activation instruction through the embedded application. The electronic device sends the activation instruction to the smart toilet, so that the smart toilet performs an activation operation based on the activation instruction to remove the remote control code matching restrictions and function restrictions of the smart toilet. At the same time, the electronic device sends the activation information (such as the activation time) to the server for recording. In this embodiment, the smart toilet can be used normally only after activation, which can prevent the misuse of unactivated products and improve the safety of product use.

[0051] In this embodiment, if the smart toilet authentication fails, the information indicating that the comparison result is that the geographical location does not match the target sales area is sent to the server through the embedded application, so that the server determines the activation policy based on the comparison result and the preset business rules; the server sends the activation policy to the electronic device, and if the activation policy is to allow activation, the smart toilet is activated; if the activation policy is to refuse activation, the user is prohibited from performing the activation operation on the smart toilet through the embedded application.

[0052] In this embodiment, the smart toilet needs to go through the following process from purchase to use: anti-counterfeiting verification, channeling verification and activation. If the smart toilet has been activated, there is no need to perform anti-counterfeiting verification and channeling verification.

[0053] Optionally, after starting the embedded application in the preset host application, the following steps are also included: determining whether the smart toilet is activated; if the smart toilet has been activated, displaying the user information bound to the smart toilet; determining whether the user information matches the current user information; if the user information does not match the current user information, generating a prompt message to prompt the current user to unbind the smart toilet from the user information; when the smart toilet and the user information are unbound, binding the smart toilet to the current user information.

[0054] The user information may be a user account of a preset host application where the embedded application is located. In this embodiment, after the embedded application is started in the preset host application, the unique identification code of the smart toilet in the NFC tag is first read, and then the unique identification code of the smart toilet is used to determine whether the smart toilet has been activated. If the smart toilet has not been activated, steps S120-S130 are executed; if the smart toilet has been activated, a prompt message "activated" and user information bound to the smart toilet are displayed, and it is determined whether the user information matches the current user information; if the two do not match, a prompt message is generated to prompt the current user to contact the previous user to unbind the smart toilet; when the smart toilet and the user information are unbound, the smart toilet is bound to the current user information.

[0055] Based on the above embodiments, Figure 2 is a flow chart of an authentication method based on NFC tags in this embodiment, such as Figure 2 As shown, the method comprises the following steps:

[0056] S201, approaching the NFC tag on the smart toilet to read the embedded application address in the NFC tag, and starting the embedded application corresponding to the smart toilet in the preset host application based on the embedded program address.

[0057] S202, reading the anti-counterfeiting code in the NFC tag and the target sales area of ​​the smart toilet.

[0058] S203, judging whether the smart toilet is authentic according to the anti-counterfeiting code, if it is authentic, executing S204, if it is not authentic, executing S206.

[0059] S204, obtaining the user's current geographic location, and determining whether the current geographic location matches the target sales area of ​​the smart toilet, if so, executing S205, if not, executing S207.

[0060] S205, establishing a wireless communication connection with the smart toilet, receiving an activation instruction input by the user, and sending the activation instruction to the smart toilet, so that the smart toilet performs an activation operation based on the activation instruction.

[0061] S206, generating a prompt message to indicate that the smart toilet is not genuine.

[0062] S207, sending information that the current geographical location does not match the target sales area of ​​the smart toilet to the server, so that the server determines an activation strategy.

[0063] S208, receiving the activation policy returned by the server, and if the activation measurement indicates that activation is allowed, executing S205.

[0064] The technical solution of this embodiment is to start the embedded application corresponding to the smart toilet in the preset host application; obtain authentication information through the embedded application and the near-field wireless communication NFC tag; wherein the NFC tag is set on the smart toilet; the authentication information includes the anti-counterfeiting code and the target sales area of ​​the smart toilet; in the embedded application, the smart toilet is authenticated based on the anti-counterfeiting code and / or the target sales area to obtain the authentication result; wherein the authentication result is authentication passed or authentication failed. The authentication method based on the NFC tag provided in the embodiment of the present invention realizes the authentication of the smart toilet through the embedded application and the NFC tag set on the smart toilet, which can improve the efficiency and reliability of the authentication of the smart toilet, thereby ensuring the legitimate rights and interests of users and toilet manufacturers.

[0065] Embodiment 2

[0066] Figure 3 Schematic diagram of a structure of an NFC tag-based authentication device provided in Embodiment 2 of the present invention, which is applied to a smart toilet, such as Figure 3 As shown, the device comprises:

[0067] The embedded application startup module 310 is used to start the embedded application corresponding to the smart toilet in the preset host application;

[0068] The authentication information acquisition module 320 is used to acquire authentication information through an embedded application and a near-field wireless communication NFC tag; wherein the NFC tag is set on the smart toilet; the authentication information includes an anti-counterfeiting code and a target sales area of ​​the smart toilet;

[0069] The authentication result acquisition module 330 is used to authenticate the smart toilet based on the anti-counterfeiting code and / or the target sales area in the embedded application to obtain the authentication result; wherein the authentication result is authentication passed or authentication failed.

[0070] Optionally, the authentication information acquisition module 320 is further used to:

[0071] Read the security code in the NFC tag and the target sales area of ​​the smart toilet based on the embedded application; or

[0072] Read the anti-counterfeiting code and unique identification code of the smart toilet in the NFC tag based on the embedded application;

[0073] Request the server for the target sales area of ​​the smart toilet based on the unique identification code of the smart toilet.

[0074] Optionally, the authentication result acquisition module 330 is further used to:

[0075] The anti-counterfeiting code is sent to the server through the embedded application, so that the server verifies the anti-counterfeiting code;

[0076] Receive the anti-counterfeiting code verification result returned by the server;

[0077] If the security code verification result is verified, the user's current geographic location is obtained;

[0078] Compare the geographical location with the target sales area to obtain a comparison result;

[0079] The authentication result of the smart toilet is determined based on the comparison result.

[0080] Optionally, the authentication result acquisition module 330 is further used to:

[0081] If the comparison result shows that the geographical location matches the target sales area, the authentication result of the smart toilet is passed;

[0082] If the comparison result shows that the geographical location does not match the target sales area, the authentication result of the smart toilet is failure.

[0083] Optionally, it also includes: an activation module for:

[0084] If the authentication result is passed, the smart toilet is activated;

[0085] If the authentication result is not passed, the information that the comparison result is that the geographical location does not match the target sales area is sent to the server, so that the server determines the activation strategy based on the comparison result;

[0086] The activation policy returned by the server is received. If the activation policy allows activation, the smart toilet is activated.

[0087] Optionally, the activation module is also used to:

[0088] Establishing wireless communication connection with the smart toilet;

[0089] An activation instruction input by a user is received, and the activation instruction is sent to the smart toilet, so that the smart toilet performs an activation operation based on the activation instruction.

[0090] Optionally, the embedded application startup module 310 is further used for:

[0091] Read the embedded application address in the NFC tag;

[0092] Based on the embedded program address, start the embedded application corresponding to the smart toilet in the preset host application; or,

[0093] In response to a start-up operation of a cut-in application triggered by a user in a preset host application, an embedded application corresponding to the smart toilet is started.

[0094] Optionally, it also includes: a binding switching module, used to:

[0095] Determine whether the smart toilet is activated;

[0096] If the smart toilet has been activated, the user information bound to the smart toilet will be displayed;

[0097] Determine whether the user information matches the current user information;

[0098] If the user information does not match the current user information, a prompt message is generated to prompt the current user to unbind the smart toilet from the user information;

[0099] When the smart toilet is unbound from the user information, the smart toilet is bound to the current user information.

[0100] The above device can execute the methods provided by all the above embodiments of the present invention, and has the corresponding functional modules and beneficial effects of executing the above methods. For technical details not described in detail in this embodiment, please refer to the methods provided by all the above embodiments of the present invention.

[0101] Embodiment 3

[0102] Figure 4 A schematic diagram of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, the connections and relationships between the components, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0103] like Figure 4 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0104] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0105] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as an authentication method based on an NFC tag.

[0106] In some embodiments, the NFC tag-based authentication method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the NFC tag-based authentication method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the NFC tag-based authentication method in any other appropriate manner (e.g., by means of firmware).

[0107] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0108] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0109] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0110] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0111] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0112] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0113] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0114] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. An authentication method based on NFC tag, characterized in that: The method is applied to a smart toilet, and the method comprises: Start the embedded application corresponding to the smart toilet in the preset host application; Acquire authentication information through the embedded application and the NFC tag; wherein the NFC tag is set on the smart toilet; the authentication information includes the anti-counterfeiting code and the target sales area of ​​the smart toilet; In the embedded application, the smart toilet is authenticated based on the anti-counterfeiting code and / or the target sales area to obtain an authentication result; wherein the authentication result is authentication passed or authentication failed.

2. The method according to claim 1, characterized in that Obtain authentication information through the embedded application and the NFC tag, including: Reading the anti-counterfeiting code in the NFC tag and the target sales area of ​​the smart toilet based on the embedded application; or Read the anti-counterfeiting code and the unique identification code of the smart toilet in the NFC tag based on the embedded application; A target sales area of ​​the smart toilet is requested from a server based on the unique identification code of the smart toilet.

3. The method according to claim 1, characterized in that In the embedded application, the smart toilet is authenticated based on the anti-counterfeiting code and the target sales area to obtain an authentication result, including: Sending the anti-counterfeiting code to a server through the embedded application, so that the server verifies the anti-counterfeiting code; Receiving the anti-counterfeiting code verification result returned by the server; If the anti-counterfeiting code verification result is verification passed, obtaining the user's current geographical location; Comparing the geographical location with the target sales area to obtain a comparison result; The authentication result of the smart toilet is determined based on the comparison result.

4. The method according to claim 3, characterized in that Determining the authentication result of the smart toilet based on the comparison result includes: If the comparison result is that the geographical location matches the target sales area, the authentication result of the smart toilet is authentication passed; If the comparison result is that the geographical location does not match the target sales area, the authentication result of the smart toilet is authentication failure.

5. The method according to claim 4, characterized in that After obtaining the certification results, it also includes: If the authentication result is passed, activating the smart toilet; If the authentication result is not passed, sending information indicating that the comparison result indicates that the geographical location does not match the target sales area to the server, so that the server determines an activation strategy based on the comparison result; The activation policy returned by the server is received, and if the activation policy allows activation, the smart toilet is activated.

6. The method according to claim 5, characterized in that Activating the smart toilet includes: Establishing a wireless communication connection with the smart toilet; An activation instruction input by a user is received, and the activation instruction is sent to the smart toilet, so that the smart toilet performs an activation operation based on the activation instruction.

7. The method according to claim 1, characterized in that Starting the embedded application corresponding to the smart toilet in the preset host application includes: Reading the embedded application address in the NFC tag; Based on the embedded program address, start the embedded application corresponding to the smart toilet in the preset host application; or, In response to a start-up operation of a cut-in application triggered by a user in a preset host application, an embedded application corresponding to the smart toilet is started.

8. The method according to claim 1, characterized in that After launching the embedded application in the preset host application, it also includes: Determining whether the smart toilet is activated; If the smart toilet has been activated, user information bound to the smart toilet is displayed; Determining whether the user information matches the current user information; If the user information does not match the current user information, a prompt message is generated to prompt the current user to unbind the smart toilet from the user information; When the smart toilet is unbound from the user information, the smart toilet is bound to the current user information.

9. An authentication device based on an NFC tag, characterized in that: Applied to smart toilets, the device includes: An embedded application startup module, used to start the embedded application corresponding to the smart toilet in a preset host application; An authentication information acquisition module, used to acquire authentication information through the embedded application and a near-field wireless communication NFC tag; wherein the NFC tag is set on the smart toilet; the authentication information includes an anti-counterfeiting code and a target sales area of ​​the smart toilet; The authentication result acquisition module is used to authenticate the smart toilet in the embedded application based on the anti-counterfeiting code and / or the target sales area to obtain an authentication result; wherein the authentication result is authentication passed or authentication failed.

10. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the NFC tag-based authentication method according to any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the NFC tag-based authentication method according to any one of claims 1 to 8 when executed.

Citation Information

Cited By

  • Quality assurance control method and quality assurance control system for bathroom equipment

    CN121217499A