Information writing method and identity recognition method of shared mobile power supply

By writing encryption key data and interactive jump information into the near field communication tag of shared mobile power, contactless identity recognition and advertising delivery are achieved, and the high return failure rate and single function problems caused by metal contact staining are solved, and the success rate and functional diversity of shared mobile power are improved.

CN120343557APending Publication Date: 2025-07-18HANGZHOU XPOWER TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510376640.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-27
Publication Date
2025-07-18

AI Technical Summary

Technical Problem

The metal contacts of shared mobile power supply are easily contaminated and damaged, resulting in high return failure rate and single function, and the inability to effectively identify and provide diversified services.

Method used

Write encryption key data and interactive jump information in the near field communication tag of shared mobile power, realize contactless identity identification through near field communication, and pre-store the scenic spot advertisement delivery interface in the tag, and use NFC technology to disseminate information.

Benefits of technology

It reduces the return failure rate, expands the function of shared mobile power, provides scenic spot advertising services, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120343557A_ABST
    Figure CN120343557A_ABST
Patent Text Reader

Abstract

The invention relates to an information writing method and an identity recognition method of a shared mobile power supply. The information writing method of the shared mobile power supply comprises the following steps: when a near field communication tag of the shared mobile power supply is burnt, acquiring encrypted key data sent by a server and interactive jump information associated with an advertisement putting interface of a preset scenic spot based on connection with the server; analyzing the encrypted key data according to a first authentication password pre-distributed by the server to obtain target key data; the target secret key data and the interaction jump information are written into a near field communication label through a near field communication card reader, so that the shared mobile power supply transmits the interaction jump information to mobile equipment in a near field communication range, and a unique identifier of the shared mobile power supply is reported to a server; and the server binds the target secret key data with the unique identifier. The return failure rate of the shared mobile power supply can be reduced; and the shared mobile power supply can provide richer functions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communications, and in particular to an information writing method and an identity recognition method for a shared mobile power supply. Background Art

[0002] In order to address the problem of the battery power gap of mobile phones, the demand for shared mobile power supplies in life is increasing continuously. Due to the complexity of the usage scenarios of shared mobile power supplies, the metal contacts exposed outside the shared mobile power supplies are easily contaminated and damaged. Currently, when a shared mobile power supply is returned by a user, the shared charging cabinet often performs return recognition through the metal contacts of the shared mobile power supply. The contaminated metal contacts will cause the shared mobile power supply returned by the user to not be recognized by the shared charging cabinet, resulting in a relatively high return failure rate and reducing the user experience. In addition, currently, the shared mobile power supply can only charge the user's mobile phone, providing a relatively single function.

[0003] Regarding the problems in the related art that the relatively high return failure rate of shared mobile power supplies is caused by contaminated metal contacts and the functions of shared mobile power supplies are relatively single, no effective solution has been proposed yet. Summary of the Invention

[0004] In this embodiment, an information writing method and an identity recognition method for a shared mobile power supply are provided to solve the problems in the related art that the relatively high return failure rate of shared mobile power supplies is caused by contaminated metal contacts and the functions of shared mobile power supplies are relatively single.

[0005] In a first aspect, in this embodiment, an information writing method for a shared mobile power supply is provided, and the method includes:

[0006] When burning a near-field communication tag of a shared mobile power supply, based on the connection with a server, obtain the encrypted key data and interaction jump information sent by the server; the interaction jump information is associated with an advertisement placement interface of a preset scenic area;

[0007] According to a first authentication password pre-allocated by the server, parse the encrypted key data to obtain target key data;

[0008] Write the target key data and the interaction jump information into the near-field communication tag through a near-field communication card reader, so that the shared mobile power supply transmits the interaction jump information to a mobile device within the near-field communication range, and report the unique identifier of the shared mobile power supply to the server, so that the server binds the target key data with the unique identifier.

[0009] In some of these embodiments, the initial state after the interactive jump information is written is a read-only state; the target key data includes the plaintext key and the ciphertext key; the initial state of the plaintext key after being written is a read-only state; the initial state of the ciphertext key after being written is a state of being unreadable and unwritable.

[0010] In some of these embodiments, the near-field communication tag is pre-divided into a first storage area, a second storage area, and a third storage area; the first storage area is used to store the interactive jump information; the second storage area is used to store the plaintext key; the third storage area is used to store the ciphertext key.

[0011] In a second aspect, in this embodiment, an identity recognition method for a shared mobile power source is provided for a mobile power cabinet. The method includes:

[0012] When it is detected that there is an abnormality in the contact recognition of the target mobile power source, based on the connection with the server, obtain the second authentication password issued by the server; the target mobile power source is a shared mobile power source that is in the warehouse and waiting for identity recognition.

[0013] According to the second authentication password, verify the near-field communication tag in the target mobile power source, and after successful verification, obtain the target key data pre-written in the near-field communication tag; wherein, the target key data includes the plaintext key and the ciphertext key; after the ciphertext key is successfully verified by the second authentication password, it changes from an unreadable and unwritable state to a read-only state; interactive jump information is also pre-written in the near-field communication tag in the target mobile power source; the interactive jump information is associated with the advertisement placement interface of a preset scenic area.

[0014] Encrypt and send the target key data to the server for key matching, and obtain the locking instruction issued by the server after the key matching is successful; the server pre-binds the key data of the near-field communication tag in each shared mobile power source with the unique identifier of the corresponding shared mobile power source.

[0015] According to the locking instruction, perform an operation to lock the target mobile power source into the warehouse.

[0016] In some of these embodiments, the method further includes:

[0017] When it is detected that the target mobile power source returns to the warehouse, obtain the level state of the communication contact on the target mobile power source.

[0018] If the change in the level state of the communication contact cannot be obtained, confirm that there is an abnormality in the contact recognition of the target mobile power source.

[0019] In some of these embodiments, the method further includes:

[0020] If a change in the level state is obtained, it is determined whether the unique identifier of the target mobile power supply is read through the communication contact; if not, it is confirmed that there is an abnormality in the contact identification of the target mobile power supply.

[0021] In a third aspect, in this embodiment, a writing device for a near-field communication tag is provided, including a host computer, a near-field communication card reader, a base tooling, and a server; the host computer is communicatively connected to the server; wherein,

[0022] The near-field communication card reader is installed inside the base tooling, and the near-field communication card reader is used to read the data of the near-field communication tag in the shared mobile power supply placed on the base tooling;

[0023] The base tooling is used for serial communication with the communication contacts of the shared mobile power supply;

[0024] The server is used to generate the secret key data to be written for the near-field communication tag in the shared mobile power supply, and bind the secret key data with the unique identifier of the shared mobile power supply;

[0025] The host computer is used to execute the information writing method of the shared mobile power supply described in the first aspect above.

[0026] In a fourth aspect, in this embodiment, an identity recognition system for a shared mobile power supply is provided, including: a mobile power cabinet and a server; a near-field communication card reader is provided on the mobile power cabinet; the near-field communication card reader of the mobile power cabinet is communicatively connected to the server;

[0027] The server is used to receive the recognition request of the near-field communication card reader of the mobile power cabinet and send a second authentication password to the near-field communication card reader of the mobile power cabinet;

[0028] The mobile power cabinet is used to execute the identity recognition method of the shared mobile power supply described in the second aspect above.

[0029] In some of these embodiments, the server is further used to perform anomaly analysis on the target mobile power supply according to the historical device status information reported by the target mobile power supply when there is an abnormality in the contact identification of the target mobile power supply.

[0030] In a fifth aspect, in this embodiment, a storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, it implements the identity recognition method of the shared mobile power supply described in the second aspect above.

[0031] Compared with the related technologies, in this embodiment, a method for writing information of a shared mobile power supply and a method for identity recognition are provided. Among them, in the method for writing information of a shared mobile power supply, when burning the near-field communication tag of the shared mobile power supply, based on the connection with the server, encrypted key data and interactive jump information sent by the server are obtained; the interactive jump information is associated with the advertisement placement interface of a preset scenic area; according to the first authentication password pre-allocated by the server, the encrypted key data is parsed to obtain target key data; the target key data and the interactive jump information are written into the near-field communication tag through a near-field communication card reader, so that the shared mobile power supply transmits the interactive jump information to a mobile device within the near-field communication range, and reports the unique identifier of the shared mobile power supply to the server, so that the server binds the target key data with the unique identifier. It can set a near-field communication tag in the shared mobile power supply, write key data into the near-field communication tag, and bind the key data with the unique identifier of the shared mobile power supply, so that contactless identity recognition of the target mobile power supply can be achieved based on near-field communication when the shared mobile power supply is returned, so that the target mobile power supply can be successfully put into the warehouse and returned in case of poor contact of the metal contacts, reducing the return failure rate of the mobile power supply; and, through the interactive jump information written in the near-field communication tag, the shared mobile power supply can act as an information dissemination medium for the scenic area, providing the advertisement placement interface of the scenic area for users based on near-field communication, making the shared mobile power supply provide more abundant functions.

[0032] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more concise and understandable. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation of the present application. In the drawings:

[0034] Figure 1 is a block diagram of the hardware structure of the terminal of the method for writing information of the shared mobile power supply according to an embodiment of the present application;

[0035] Figure 2 is a flowchart of the method for writing information of the shared mobile power supply according to an embodiment of the present application;

[0036] Figure 3a is a schematic structural diagram of a mobile power supply based on an NFC tag according to an embodiment of the present application;

[0037] Figure 3b is a schematic connection diagram of a printed circuit board and a battery cell according to an embodiment of the present application;

[0038] Figure 4It is a flowchart of the identity recognition method of the shared mobile power supply according to an embodiment of the present application;

[0039] Figure 5 It is a schematic structural diagram of an NFC tag writing station according to an embodiment of the present application;

[0040] Figure 6 It is a flowchart of the identity recognition method of the mobile power supply according to some embodiments of the present application. Detailed implementation manners

[0041] For a clearer understanding of the purpose, technical solution, and advantages of the present application, the present application will be described and illustrated below in conjunction with the accompanying drawings and embodiments.

[0042] Unless otherwise defined, the technical terms or scientific terms involved in the present application shall have the general meaning understood by those with ordinary skills in the technical field to which the present application belongs. In the present application, words such as "a", "one", "a kind", "the", "these", etc. do not indicate a limitation in quantity, and they can be singular or plural. The terms "including", "comprising", "having" and any variants thereof involved in the present application are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or device including a series of steps or modules (units) is not limited to the listed steps or modules (units), but may include unlisted steps or modules (units), or may include other steps or modules (units) inherent in these processes, methods, products, or devices. The terms "connected", "coupled", etc. involved in the present application do not limit to physical or mechanical connections, but may include electrical connections, whether directly or indirectly connected. The "multiple" involved in the present application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" may represent: A exists alone, A and B exist simultaneously, and B exists alone. Usually, the character " / " indicates that the associated objects before and after are in an "or" relationship. The terms "first", "second", "third", etc. involved in the present application are only used to distinguish similar objects and do not represent a specific order for the objects.

[0043] The method embodiments provided in this embodiment can be executed on a terminal, a computer, or a similar computing device. For example, running on a terminal, Figure 1 It is a hardware structure block diagram of the terminal for the information writing method of the shared mobile power supply in this embodiment. As Figure 1 shown, the terminal may include one or more ( Figure 1Only one processor 102 and a memory 104 for storing data are shown. Among them, the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA. The above terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those of ordinary skill in the art can understand that Figure 1 The structure shown is only illustrative and does not limit the structure of the above terminal. For example, the terminal may further include more or fewer components than those shown Figure 1 in, or have a different configuration from that shown Figure 1 in.

[0044] The memory 104 can be used to store computer programs. For example, software programs and modules of application software, such as the computer program corresponding to the information writing method of the shared mobile power supply in this embodiment. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above method is implemented. The memory 104 may include a high-speed random access memory, and may further include a non-volatile memory, such as one or more magnetic storage devices, flash memories, or other non-volatile solid-state memories. In some instances, the memory 104 may further include a memory remotely set relative to the processor 102, and these remote memories can be connected to the terminal through a network. Examples of the above network include, but are not limited to, the Internet, an enterprise intranet, a local area network, a mobile communication network, and combinations thereof.

[0045] The transmission device 106 is used to receive or send data via a network. The above network includes a wireless network provided by the communication provider of the terminal. In one instance, the transmission device 106 includes a network adapter (abbreviated as NIC), which can be connected to other network devices through a base station and thus can communicate with the Internet. In one instance, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0046] In this embodiment, a method for writing information of a shared mobile power supply is provided. Figure 2 This is a flowchart of the method for writing information of the shared mobile power supply in this embodiment. As Figure 2 shown, the method for writing information of the shared mobile power supply includes:

[0047] Step S210, when burning the near-field communication tag of the shared mobile power supply, based on the connection with the server, obtain the encrypted key data and interaction jump information sent by the server; the interaction jump information is associated with the advertisement placement interface of a preset scenic area.

[0048] The above-mentioned server can specifically be a cloud server. A Near Field Communication (NFC) tag is set inside the shared mobile power supply. The NFC tag is specifically a wireless identification tag integrating NFC technology, which can be composed of a chip and an antenna, can store and transmit data, and is an electronic tag. Figure 3a FIG. Figure 3a is a schematic structural diagram of a shared mobile power supply 30 based on an NFC tag according to this embodiment. As Figure 3a shown, the shared mobile power supply 30 can specifically include a battery cell 31, a battery cell mylar sheet 32, a Printed Circuit Board Assembly (PCBA) 33, a Flexible Printed Circuit (FPC) lamp board 34, a power cord 35, a lower cover 36, an upper cover 37, an upper cover sponge 38, and an NFC tag 39.

[0049] Among them, the battery cell 31 stores electrical energy when the shared mobile power supply 30 is in the charging state, and serves as a power output terminal to provide power for the internal circuit and external load of the shared mobile power supply 30 when the mobile power supply 30 is in the discharging state. The surface of the battery cell 31 can be made of aluminum. The battery cell mylar sheet 32 is attached and installed on the lower shell of the shared mobile power supply 30 through the back glue at the bottom, and the battery cell 31 is attached to the upper surface of the battery cell mylar sheet 32. The attachment method of the battery cell 31 on the battery cell mylar sheet 32 can facilitate the subsequent maintenance of the shared mobile power supply 30 and the replacement of the battery cell 31.

[0050] Figure 3b FIG. Figure 3b is a schematic connection diagram of the printed circuit board 33 and the battery cell 31 according to this embodiment. As Figure 3b shown, the printed circuit board 33 can include a charge and discharge chip 331, an MCU chip 332, a lithium battery protection chip 333, a spring pin connector (POGOPIN) 334, and an FPC connector 335. The printed circuit board 33 is used to charge and discharge the battery cell 31 and provide multiple protections for the battery cell 31. At the same time, it can communicate with the mobile power cabinet through the spring pin connector 334. Each printed circuit board 33 will burn a unique serial number into the MCU chip 332 as the unique identifier of the mobile power supply when leaving the factory. The MCU chip 332 can achieve data communication with the spring pin connector 334. The FPC lamp board is connected to the FPC connector 335 on the printed circuit board 33 and is used to indicate the power and working status of the mobile power supply 30; the power cord is welded to the printed circuit board 33 and provides power for the load when the shared mobile power supply 30 discharges externally.

[0051] The lower cover 36 of the shared mobile power supply 30 is an appearance component. The lower cover 36 is provided with a wire clamping groove, and the power cord 35 will be clamped in the wire clamping groove of the lower cover 36. The upper cover 37 of the shared mobile power supply 30 is also an appearance component. The NFC tag 39 can be attached to the specified area on the reverse side of the upper cover 37 through an adhesive. The upper cover sponge 38 of the shared mobile power supply 30 is attached between the upper cover 37 and the battery cell 31 through an adhesive, providing a buffer space for the subsequent expansion of the battery cell 31. When the shared mobile power supply 30 leaves the factory, the NFC tag 39 will be written with specified interactive jump information and a unique secret key. After the writing is successful, neither the interactive jump information nor the secret key will be lost or illegally changed. The interactive jump information can specifically be text, a Uniform Resource Locator (URL for short), or an application program, which can be specifically set according to the requirements of the actual application scenario.

[0052] Specifically, the near-field communication tag in the shared mobile power supply can be burned when the shared mobile power supply leaves the factory. For example, after the lower shell and the upper cover of a shared mobile power supply are closed, the shared mobile power supply will be sent to the burning station of the NFC tag for information writing. The information writing of the near-field communication tag of the shared mobile power supply can be realized based on the NFC tag burning host computer software, which is set in the host computer. When specifically writing information, the NFC tag burning host computer software requests to connect to the cloud server for the first time. After the cloud server passes the verification of this request, it will allocate a first authentication password to the NFC tag burning host computer software. The first authentication password is used for the identity authentication of the NFC tag burning host computer software and the encryption and decryption of the data transmission information between the subsequent cloud server and the host computer. When starting to write the NFC tag, the cloud server encrypts and sends the encrypted secret key data to the NFC tag burning host computer software.

[0053] Step S220, parse the encrypted secret key data according to the first authentication password pre-allocated by the server to obtain the target secret key data.

[0054] Step S230, write the target secret key data and the interactive jump information into the near-field communication tag through the near-field communication card reader, so that the shared mobile power supply transmits the interactive jump information to the mobile device within the near-field communication range, and reports the unique identifier of the shared mobile power supply to the server, so that the server binds the target secret key data with the unique identifier.

[0055] After the NFC tag burning host computer software parses out the encrypted key data according to the first authentication password, it writes the parsed target key data into the specified storage address in the NFC tag through the near-field communication card reader. At the same time, the unique identifier (unique serial number) in the mobile power protection board PCBA is read out through the base tooling, and this unique identifier is reported to the server. The server binds this unique identifier to the target key data written in the NFC tag of the mobile power. Therefore, the database of the server stores the unique identifier and the target key data of the mobile power during production. When identifying the identity of the mobile power in the later stage, the server can confirm whether the shared mobile power meets the conditions for warehousing and return based on the matching of the target key data in the database. This embodiment realizes the key writing of the NFC tag of the target mobile power, so as to provide a non-contact identification method for the subsequent identity identification of the target mobile power.

[0056] In this embodiment, in addition to realizing the contactless identity identification of the mobile power based on NFC, the NFC technology can also be used to use the mobile power as a medium for information interaction with the user. Specifically, during the writing stage of the NFC tag of the mobile power, text, URL or application program associated with the advertisement placement of the scenic area can be written into the NFC tag, so that when the user uses the shared mobile device to touch the mobile power, an advertisement placement interface of the relevant scenic area can be provided for the user. Exemplarily, when a user is playing in a certain scenic area and rents a shared mobile power from the mobile power cabinet in the scenic area. The advertisement content related to the publicity and tour guide content of the scenic area can be stored in the NFC tag of the rented shared mobile power, so that the user can display the corresponding scenic area advertisement and publicity information on the mobile device by touching the NFC tag with the mobile device.

[0057] When information is exchanged, each data exchanged between NFC devices (such as NFC tags in mobile power supplies, mobile devices with NFC functions, etc.) will be encapsulated in a data structure NDEF Message, and an NDEF Message can contain multiple independent data units NFC Record, and the real interaction data is encapsulated in the NFC Record. In particular, an NDEF Message will be written into the storage block corresponding to the above-mentioned advertising content in the NFC tag of the shared mobile power supply, which may contain two NFC Records. The first NFC Record can be used to open the URL of the applet for the application of the user's mobile device. The URL can be pre-associated with the advertising delivery interface related to the scenic spot promotion, such as the introduction of a certain part of the scenic spot in the scenic spot. The second NFC Record is to open a specific application. Among them, the IOS device only recognizes the NFC Record corresponding to the first URL, and the Android device also needs to rely on the second NFC Record to specify the corresponding application for opening the applet. Writing two NFC Records can be compatible with both IOS and Android devices (in this case, the order of the two NFC Records cannot be reversed), and the advertising content written in the NFC tag can be set to read-only state.

[0058] In the related art, shared charging cabinets often use the metal contacts of shared mobile power supplies to identify the returned power supplies. The presence of contaminated metal contacts will cause the shared mobile power supplies returned by users to be unable to be identified by the shared charging cabinets, resulting in a high return failure rate and reducing the user experience. In addition, in the related art, shared mobile power supplies can only play a charging role, so the functions they can provide are relatively single.

[0059] This embodiment proposes a shared mobile power supply based on NFC tags through the above steps S210 to S230. By installing the NFC tag inside the shared mobile power supply and writing the key data into the NFC tag before leaving the factory, the shared mobile power supply can be identified based on NFC when it is returned, thereby solving the current problem that the shared mobile power supply cannot be returned due to poor contact of the metal contacts, and reducing the failure rate of returning the shared mobile power supply; in addition, this embodiment can also expand the function of the shared mobile power supply, while solving the problem of return identification caused by poor contact of the metal contacts of the shared mobile power supply, it can also enable the shared mobile power supply to achieve media functions such as publicity and interaction based on NFC technology, thereby improving the user experience when renting the mobile power supply. In some of the embodiments, in order to improve the user experience, in the process of interacting with the mobile device held by the user, the user turns on the NFC function of the mobile device, and when the NFC area of the mobile device touches the NFC tag of the shared mobile power supply, it can not directly jump to the advertising content, but pop up a selection window, and the user can choose whether to receive the advertising information.

[0060] Therefore, through the above steps S210 to S230, when the near-field communication tag of the shared mobile power supply is burned, based on the connection with the server, the encrypted key data and interactive jump information sent by the server are obtained; the interactive jump information is associated with the advertising delivery interface of the preset scenic spot; according to the first authentication password pre-assigned by the server, the encrypted key data is parsed to obtain the target key data; the target key data and interactive jump information are written into the near-field communication tag through the near-field communication card reader, so that the shared mobile power supply transmits the interactive jump information to the mobile device within the near-field communication range, and the unique identifier of the shared mobile power supply is reported to the server, so that the server binds the target key data and the unique identifier. It can realize contactless identification of the shared mobile power supply based on near-field communication when the shared mobile power supply is returned, so that the shared mobile power supply can be successfully returned to the warehouse when the metal contacts are in poor contact, reducing the return failure rate of the shared mobile power supply; and, through the interactive jump information written in the near-field communication tag, the shared mobile power supply can serve as an information dissemination medium for the scenic spot, and provide users with an advertising placement interface for the scenic spot based on near-field communication, so that the shared mobile power supply provides richer functions.

[0061] Among them, in one embodiment, the initial state of the interactive jump information after writing is a read-only state; the target key data includes key plaintext and key ciphertext; the initial state of the key plaintext after writing is a read-only state; the initial state of the key ciphertext after writing is a non-readable and non-writable state.

[0062] In this embodiment, to ensure the security of the content written in the NFC tag of the target mobile power supply, when the NFC tag is written at the factory, each block for data storage is encrypted, and the content in the NFC tag cannot be copied, and the content in each block cannot be modified. Before writing the pre-loaded data into the blank NFC tag, the host computer can set the access status of the written data to read-only. In particular, the initial state of the ciphertext of the secret key can be set to unreadable and unwritable. Only after the password verification between the card reader in the subsequent charging bin and the NFC tag passes, the ciphertext of the secret key in the NFC tag becomes read-only. After this configuration takes effect, once the writing action is executed, the content in the NFC tag cannot be modified. Since the initial state of the ciphertext of the secret key is unreadable and unwritable, it also ensures that the content in the NFC tag cannot be effectively copied.

[0063] In one embodiment, the near-field communication tag is pre-divided into a first storage area, a second storage area, and a third storage area; the first storage area is used to store interaction jump information; the second storage area is used to store the plaintext of the secret key; the third storage area is used to store the ciphertext of the secret key.

[0064] In this embodiment, the data blocks inside the NFC tag are divided into three areas to correspondingly store interaction jump information, plaintext of the secret key, and ciphertext of the secret key. Different areas are pre-assigned different storage addresses. Among them, the first storage area is used to store interaction jump information, such as the advertising content of the scenic area; the second storage area can be used to store the plaintext of the secret key; the third storage area is used to store the ciphertext of the secret key. Both the first storage area and the second storage area are read-only, and the third storage area is unreadable and unwritable.

[0065] In this embodiment, an identity recognition method for a shared mobile power supply is also provided, which is used for a mobile power cabinet. Figure 4 is the flowchart of the identity recognition method for the shared mobile power supply in this embodiment, as Figure 4 shown, and this process includes the following steps:

[0066] Step S410, when it is detected that there is an abnormality in the contact recognition of the target mobile power supply, based on the connection with the associated server, obtain the second authentication password issued by the server; the target mobile power supply is a shared mobile power supply waiting to be identified in the warehouse.

[0067] Among them, the target mobile power supply can specifically be a shared mobile power supply with an NFC tag set. When the user returns the rented target mobile power supply to the mobile power cabinet, the user can return the target mobile power supply into the charging compartment of the mobile power cabinet. Among them, a position sensor is set in the charging compartment. When the target mobile power supply is returned to the charging compartment, the corresponding position sensor is triggered, and the charging compartment will perform contact identification on the target mobile power supply to obtain the unique identifier of the target mobile power supply. Specifically, the charging compartment detects the level state of a certain communication pin of the POGOPIN of the target mobile power supply. If the level state changes, the charging compartment will wake up the target mobile power supply based on a 5V power supply and read the unique identifier of the target mobile power supply through the POGOPIN. If the unique identifier of the target mobile power supply is successfully read, it is confirmed that the contact identification is normal, and the read unique identifier is reported to the cloud server. The cloud server identifies the identity of the target mobile power supply through the unique identifier to realize the determination of the asset ownership of the target mobile power supply. If it is determined that the target mobile power supply is an asset belonging to the supplier of the mobile power cabinet, the cloud server can send an instruction to lock the target mobile power supply to the mobile power cabinet to end the rental order of the target mobile power supply.

[0068] If the unique identifier of the target mobile power supply cannot be successfully read through contact identification, it is confirmed that there is an abnormality in the contact identification of the target mobile power supply. At this time, non-contact identification can be achieved through NFC to read the unique identifier of the target mobile power supply. Specifically, NFC card readers can be set in each charging compartment of the mobile power cabinet. The NFC card reader in the charging compartment corresponding to the target mobile power supply can send an identification request to an associated server, such as the above-mentioned cloud server, in an encrypted manner. After receiving the request, the cloud server issues a second authentication password to the NFC card reader of the charging compartment in an encrypted manner.

[0069] Step S420: Verify the near-field communication tag in the target mobile power supply according to the second authentication password, and obtain the target secret key data pre-written in the near-field communication tag after the verification is successful; among them, the target secret key data includes the plaintext secret key and the ciphertext secret key; after the ciphertext secret key is successfully verified by the second authentication password, it changes from a non-readable and non-writable state to a read-only state; interaction jump information is also pre-written in the near-field communication tag in the target mobile power supply; the interaction jump information is associated with the advertisement placement interface of a preset scenic area.

[0070] The second authentication password is used to verify the password of the near-field communication tag in the target power bank to obtain the encrypted key ciphertext therein. Among them, the access control mechanism and memory protection function of the NFC tag itself can be relied on to perform access control on the target key data in the NFC tag. Only after the second authentication password is verified successfully, the encrypted key ciphertext in the NFC tag will change from the unreadable and unwritable state to the read-only state, so that the encrypted key ciphertext stored in the NFC tag can be read. Specifically, when the NFC reader in the charging compartment attempts to access the NFC tag of the target power bank, it needs to send the second authentication password to the NFC tag. The NFC tag verifies whether the received second authentication password matches the preset password. If so, the NFC tag will, according to the preset rules, change the access permission of the encrypted key ciphertext from the unreadable and unwritable state to the read-only state. In the read-only state, the NFC reader can read the data in the NFC tag, but cannot modify or write new data. The NFC tag can lock a specific block or the entire memory as the read-only state by setting the lock flag bit of the memory.

[0071] The NFC reader in the charging compartment verifies the second authentication password with the NFC tag of the target power bank. After the authentication is passed, the encrypted key ciphertext in the NFC tag changes from the initial unreadable and unwritable state to the read-only state. In addition, the plaintext key in the NFC tag is in the read-only state. In this way, the NFC reader can read the plaintext key and the encrypted key ciphertext in the NFC tag, so as to obtain the target key data containing the plaintext key and the encrypted key ciphertext.

[0072] In this step, the initial state of the encrypted key ciphertext is set to the unreadable and unwritable state, so that the reader in the charging compartment needs to apply for the second authentication password from the cloud server each time. After the password verification is passed, the ciphertext in the NFC tag can be read. In addition, both the second authentication password and the target key data are sent in an encrypted manner during the transmission process, and both the second authentication password and the target key data are generated by the cloud service through a preset encryption algorithm. The selection of the encryption algorithm can be made by those skilled in the art according to the requirements of the actual application scenario by selecting a suitable existing encryption algorithm. This embodiment does not make specific limitations on this.

[0073] Step S430, encrypt and send the target key data to the server for key matching, and obtain the lock instruction sent by the server after the key matching is successful.

[0074] After the NFC card reader in the charging compartment reads the target key data, the NFC card reader will encrypt and send the target key data to the cloud server. The cloud server will compare the plaintext key and the ciphertext key with a preset database. After the key matching passes, it will confirm that the target power bank meets the asset ownership conditions. At this time, the cloud server will send an instruction to lock the target power bank and end the rental order to the NFC card reader of the corresponding charging compartment.

[0075] Step S440: According to the locking instruction, perform an in-warehouse locking operation on the target power bank.

[0076] Based on the received locking instruction, the NFC card reader in the charging compartment performs an in-warehouse locking operation on the target power bank and ends the corresponding power bank rental order. Thus, the complete return and identification process of the target power bank is completed.

[0077] In this embodiment, in order to further improve the asset security of the target power bank, a multi-encryption mechanism is adopted for the NFC tag installed inside the target power bank. Only after both the plaintext key and the ciphertext key are verified to be qualified on the cloud server side, the locking operation on the target power bank is completed.

[0078] Through the above steps S410 to S440, when it is detected that there is an abnormality in the contact identification of the target power bank, based on the connection with the associated server, obtain the second authentication password issued by the server; the target power bank is a power bank waiting to be identified for return to the warehouse; according to the second authentication password, verify the near-field communication tag in the target power bank, and obtain the target key data pre-written in the near-field communication tag after the verification is successful; among them, the target key data includes the plaintext key and the ciphertext key; after the ciphertext key is verified successfully by the second authentication password, it changes from a non-readable and non-writable state to a read-only state; interactive jump information is also pre-written in the near-field communication tag in the target power bank; the interactive jump information is associated with the advertisement placement interface of a preset scenic area; encrypt and send the target key data to the server for key matching, and obtain the locking instruction issued by the server after the key matching is successful; according to the locking instruction, perform an in-warehouse locking operation on the target power bank. It can realize the contactless identification of the target power bank based on near-field communication, so that the target power bank can be successfully returned to the warehouse when the metal contacts are in poor contact, reducing the return failure rate of the power bank; through the interactive jump information pre-written in the near-field communication tag, the shared power bank can act as an information dissemination medium for the scenic area, providing the advertisement placement interface of the scenic area for users based on near-field communication, making the shared power bank provide more abundant functions.

[0079] Additionally, in one embodiment, the above method for identifying the identity of the power bank may specifically include:

[0080] When it is detected that the target mobile power supply is put into the warehouse, obtain the level status of the communication contact on the target mobile power supply; if the change in the level status of the communication contact cannot be obtained, it is confirmed that there is an abnormality in the contact identification of the target mobile power supply.

[0081] Among them, the communication contact on the target mobile power supply can specifically be the POGOPIN metal contact of the target mobile power supply. When the user returns the target mobile power supply to a certain charging compartment at the mobile power cabinet, the position sensor in the charging compartment is triggered, and the charging compartment will first detect the level status of the POGOPIN metal contact. If a change in the level status is detected, the target mobile power supply will be woken up, and the unique identifier of the target mobile power supply will be read through the POGOPIN metal contact, and the read unique identifier will be reported to the cloud server. The cloud server will identify the identity of the target mobile power supply through the unique identifier, and issue an instruction to lock the target mobile power supply after the identity identification is passed, thereby ending the rental order of the target mobile power supply. If the change in the level status cannot be read due to contamination or damage of the POGOPIN metal contact, it can be determined that there is an abnormality in the contact identification of the target mobile power supply.

[0082] In this embodiment, the level status of the POGOPIN metal contact of the target mobile power supply is preferentially obtained for contact identification, and non-contact identification is performed in a timely manner in the case of contact identification failure, so that the identity identification of the mobile power supply return process can be completed in multiple identification ways.

[0083] In some of these embodiments, the above method for identifying the identity of the mobile power supply may further include: if a change in the level status is obtained, determine whether the unique identifier of the target mobile power supply is read through the communication contact; if not, it is confirmed that there is an abnormality in the contact identification of the target mobile power supply.

[0084] In this embodiment, even if a change in the level status of the POGOPIN metal contact can be obtained, if the unique identifier of the target mobile power supply cannot be read through the POGOPOPIN metal contact, it is still confirmed that there is an abnormality in the contact identification of the target mobile power supply.

[0085] In this embodiment, a writing device for a near-field communication tag is further provided, which may specifically include a host computer, a near-field communication card reader, a base tooling, and a server; the host computer is communicatively connected to the server; among them,

[0086] The near - field communication (NFC) card reader is installed inside the base tooling. The NFC card reader is used to read the data of the NFC tag in the shared mobile power supply placed on the base tooling. The base tooling is used to perform serial communication with the communication contacts of the shared mobile power supply. The server is used to generate the secret key data to be written for the NFC tag in the shared mobile power supply and bind the secret key data with the unique identifier of the shared mobile power supply. The host computer is used to execute the information writing method of the shared mobile power supply provided in any of the above embodiments.

[0087] The host computer can specifically be the host computer used to burn the content of the NFC tag when the shared mobile power supply leaves the factory. Among them, an NFC tag writing station can be set to burn the content of the NFC tag of the shared mobile power supply. The writing device of the NFC tag can specifically be the NFC tag writing station when the shared mobile power supply leaves the factory. Figure 5 It is a schematic structural diagram of an NFC tag writing station 50 of this embodiment, as Figure 5 shown. The NFC tag writing station 50 specifically includes a host computer 51, an NFC tag burning host computer software 52, a card reader 53, a base tooling 54, a USB - to - serial communication cable 55, and a cloud server 56. Among them, the number of USB - to - serial communication cables 55 can be 2. The base tooling 54 can be a fixture or base used to test, calibrate, and assemble the shared mobile power supply, used to fix the shared mobile power supply and connect its input and output interfaces for detecting various functions of the shared mobile power supply and quality control. The host computer 51 can specifically be a computer mainframe. After the lower cover and the upper cover of the shared mobile power supply are closed, it will be sent to the NFC tag writing station for data writing.

[0088] The NFC tag burning host computer software 52 is installed in the host computer 51. The host computer 51 communicates with the cloud server 56 through the Internet. Two USB interfaces of the host computer 51 are respectively connected to the serial ports of the card reader 53 and the base tooling 54 through two USB - to - serial communication cables 55. The card reader 53 is installed inside the base tooling 54. The shared mobile power supply with an NFC tag attached is placed on the base tooling 54. The card reader 53 can read the content of the NFC tag in the shared mobile power supply. The base tooling 54 can perform serial communication with the shared mobile power supply through the POGOPIN metal contacts of the shared mobile power supply.

[0089] When specifically performing writing, the NFC tag burning host computer software 52 first requests to connect to the cloud server 56. After the cloud server 56 verifies the request and the verification passes, it will allocate a first authentication password to the NFC tag burning host computer software 52. This first authentication password is used for the identity authentication of the NFC tag burning host computer software 52 by the cloud server 56 and the encryption and decryption of the data transmission information between the cloud server 56 and the host computer 51 subsequently. When the NFC tag burning host computer software 52 starts to write the NFC tag, the cloud server 56 will randomly generate a plaintext key and a ciphertext key. The plaintext key can specifically be a unique string of 16 bytes, and the ciphertext key can also be a unique string of 16 bytes. The cloud server 56 encrypts and sends it to the NFC tag burning host computer software 52 through the Internet. The NFC tag burning host computer software 52 parses out the encrypted plaintext key and ciphertext key according to the first authentication password. Then, the parsed plaintext key is written to the specified storage address of the plaintext key, and the ciphertext key is written to the specified storage address of the ciphertext key. At the same time, the NFC tag burning host computer software 52 will read out the unique identifier (unique serial number) in the shared mobile power protection board PCBA through the base tooling 54 and report this unique identifier to the cloud server 56. The cloud server 56 binds this unique identifier with the plaintext key written in the NFC tag of the shared mobile power. So far, the database of the cloud server 56 stores the three-element information of the unique identifier, plaintext key, and ciphertext key of the shared mobile power during production. When performing identity recognition on the shared mobile power in the later stage, only when the plaintext key and the ciphertext key are consistent, the cloud server 56 will confirm that the shared mobile power meets the conditions for warehousing and return.

[0090] Additionally, in one embodiment, considering that the battery cell inside the mobile power is made of metal aluminum, in order to avoid the interference of metal on the NFC signal, an anti-metal interference material can be pasted on the surface of the NFC tag.

[0091] Figure 6 is a flowchart of the identity recognition method of the mobile power in some embodiments, as Figure 6 shown, the identity recognition method of the mobile power includes the following steps:

[0092] Step S601, determine the target mobile power to be returned by the user according to the signal of the position sensor; wherein, when the user returns the target mobile power into the charging compartment of the mobile power cabinet, the position sensor of the charging compartment will be triggered, so that the return behavior of the user can be detected.

[0093] Step S602, determine whether the communication pin level of the target mobile power changes; if so, execute Step S603; otherwise, execute Step S608.

[0094] Step S603, wake up the target mobile power supply and determine whether the unique identifier of the target mobile power supply can be read; if so, execute Step S604; otherwise, execute Step S608.

[0095] Step S604, report the unique identifier of the target mobile power supply to the cloud server.

[0096] Step S605, the cloud server verifies the identity information of the target mobile power supply according to the unique identifier.

[0097] Step S606, determine whether a lock command sent by the cloud server is received; if so, execute Step S607; otherwise, execute Step S613.

[0098] Step S607, lock the target mobile power supply and end the rental order of the target mobile power supply.

[0099] Step S608, request the cloud server to send down the second authentication password.

[0100] Step S609, according to the received second authentication password, perform password verification with the NFC tag of the target mobile power supply.

[0101] Step S610, after the password verification is successful, read the target secret key data in the NFC tag.

[0102] Step S611, encrypt and send the target secret key data to the cloud server.

[0103] Step S612, the cloud server verifies the target secret key data to confirm the identity information of the target mobile power supply; execute Step S606.

[0104] Step S613, do not perform locking processing and prompt that the target mobile power supply cannot be recognized.

[0105] The above Steps S601 to S613 can utilize the characteristics of high liquidity and high turnover rate of shared mobile power supplies to write the content of information interaction with users and the secret key data of shared mobile power supplies into the NFC tags of shared mobile power supplies. The written content in the NFC tags cannot be modified, so that while improving the recognition success rate of shared mobile power supplies, the role of advertising media and publicity media of shared mobile power supplies can be played. Bind the secret key data in the NFC tag with the unique identifier of the shared mobile power supply. In the case of poor contact of the POGOPIN metal contacts of the shared mobile power supply, users can still complete the return of the shared mobile power supply, improving the user experience; the NFC tag adopts a multi-encryption method, and the process of transmitting the secret key and the second authentication password is also encrypted, ensuring the security of shared mobile power supply assets.

[0106] In this embodiment, an identity recognition system for a shared mobile power supply is further provided. The identity recognition system may specifically include: a mobile power cabinet and a server; a near-field communication card reader is arranged on the mobile power cabinet; the near-field communication card reader of the mobile power cabinet is communicatively connected to the server; the server is configured to receive an identification request from the near-field communication card reader of the mobile power cabinet and send a second authentication password to the near-field communication card reader of the mobile power cabinet; the mobile power cabinet is configured to execute the identity recognition method for the shared mobile power supply provided in any of the foregoing embodiments. The server may be the cloud server in the foregoing embodiments.

[0107] Among them, in one embodiment, the server is further configured to, when there is an abnormality in the contact recognition of the target mobile power supply, perform abnormality analysis on the target mobile power supply according to the historical device status information reported by the target mobile power supply.

[0108] Specifically, since in the NFC tag burning process, the cloud server binds the unique identifier of the shared mobile power supply with the plaintext of the NFC tag key, and the shared mobile power supply reports the unique identifier together with device status information such as power, temperature, and sensor status to the cloud server during normal communication. Therefore, when it is confirmed that the POGOPIN metal contacts of the shared mobile power supply are in poor contact, the cloud server can determine the unique identifier of the shared mobile power supply through the key and mapping relationship of the NFC tag, and then perform data diagnosis on the shared mobile power supply through the historical device status information (historically reported power, temperature, sensor status, etc.) corresponding to the unique identifier to analyze its abnormality.

[0109] It should be noted that the specific examples in this embodiment may refer to the examples described in the foregoing embodiments and alternative embodiments, and will not be elaborated herein.

[0110] In addition, in combination with the identity recognition method for the shared mobile power supply provided in the foregoing embodiments, a storage medium may also be provided in this embodiment to implement it. A computer program is stored on the storage medium; when the computer program is executed by a processor, it implements any one of the identity recognition methods for the shared mobile power supply in the foregoing embodiments.

[0111] It should be understood that the specific embodiments described here are only used to explain this application, rather than to limit it. According to the embodiments provided in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

[0112] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0113] Obviously, the accompanying drawings are only some examples or embodiments of this application. For those of ordinary skill in the art, this application can also be applied to other similar situations based on these drawings without creative work. Additionally, it can be understood that although the work done during this development process may be complex and time-consuming, for those of ordinary skill in the art, certain design, manufacturing, or production changes based on the technical content disclosed in this application are only conventional technical means and should not be regarded as insufficient disclosure of this application.

[0114] The term "embodiment" in this application means that the specific features, structures, or characteristics described in connection with the embodiments can be included in at least one embodiment of this application. The phrase appears in various positions in the specification and does not necessarily mean the same embodiment, nor does it mean being independent or alternative to other embodiments and mutually exclusive. Those of ordinary skill in the art can clearly or implicitly understand that the embodiments described in this application can be combined with other embodiments without conflict.

[0115] The above-described embodiments merely represent several implementation manners of this application, and their descriptions are relatively specific and detailed, but should not be construed as limiting the scope of patent protection. It should be pointed out that for those of ordinary skill in the art, without departing from the concept of this application, several modifications and improvements can still be made, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be subject to the appended claims.

Claims

1. A method for writing information of a shared mobile power supply, characterized in that, The method includes: When burning the near-field communication tag of the shared mobile power supply, based on the connection with the server, obtain the encrypted key data and interaction jump information sent by the server; the interaction jump information is associated with the advertising placement interface of a preset scenic area; According to the first authentication password pre-allocated by the server, parse the encrypted key data to obtain the target key data; Write the target key data and the interaction jump information into the near-field communication tag through a near-field communication card reader, so that the shared mobile power supply transmits the interaction jump information to a mobile device within the near-field communication range, and report the unique identifier of the shared mobile power supply to the server, so that the server binds the target key data with the unique identifier.

2. The information writing method of the shared mobile power supply according to claim 1, wherein The initial state after the interaction jump information is written is a read-only state; the target key data includes a key plaintext and a key ciphertext; the initial state of the key plaintext after being written is a read-only state; the initial state of the key ciphertext after being written is a non-readable and non-writable state.

3. The information writing method of the shared mobile power supply according to claim 2, wherein The near-field communication tag is pre-divided into a first storage area, a second storage area, and a third storage area; the first storage area is used to store the interaction jump information; the second storage area is used to store the key plaintext; the third storage area is used to store the key ciphertext.

4. An identity recognition method for a shared mobile power supply, characterized in that, For a mobile power cabinet, the method includes: When detecting that there is an abnormality in the contact identification of the target mobile power supply, based on the connection with the server, obtain the second authentication password sent by the server; the target mobile power supply is a shared mobile power supply waiting to be identified in the warehouse; According to the second authentication password, verify the near-field communication tag in the target mobile power supply, and obtain the target key data pre-written in the near-field communication tag after the verification is successful; wherein, the target key data includes a key plaintext and a key ciphertext; after the key ciphertext is successfully verified by the second authentication password, it changes from a non-readable and non-writable state to a read-only state; the interaction jump information is also pre-written in the near-field communication tag in the target mobile power supply; the interaction jump information is associated with the advertising placement interface of a preset scenic area; Encrypt and send the target key data to the server for key matching, and obtain the locking instruction sent by the server after the key matching is successful; the server pre-binds the key data of the near-field communication tag in each shared mobile power supply with the unique identifier of the corresponding shared mobile power supply; According to the locking instruction, perform an in-warehouse locking operation on the target mobile power supply.

5. The identity recognition method of the shared mobile power supply according to claim 4, characterized in that, The method further includes: When detecting that the target mobile power supply returns to the warehouse, obtain the level state of the communication contact on the target mobile power supply; If the change in the level state of the communication contact cannot be obtained, confirm that there is an abnormality in the contact identification of the target mobile power supply.

6. The identity recognition method of the shared mobile power supply according to claim 5, characterized in that, The method further includes: If the change in the level state is obtained, determine whether the unique identifier of the target mobile power supply is read through the communication contact; if not, confirm that there is an abnormality in the contact identification of the target mobile power supply.

7. A writing device for a near field communication tag, characterized in that, It includes a host computer, a near field communication card reader, a base tooling, and a server; the host computer is communicatively connected to the server; wherein, the near field communication card reader is installed inside the base tooling, and the near field communication card reader is used to read the data of the near field communication tag in the shared mobile power supply placed on the base tooling; the base tooling is used for serial communication with the communication contact points of the shared mobile power supply; the server is used to generate the secret key data to be written for the near field communication tag in the shared mobile power supply, and bind the secret key data with the unique identifier of the shared mobile power supply; the host computer is used to execute the information writing method of the shared mobile power supply according to any one of claims 1 to 3.

8. An identity recognition system for a shared mobile power supply, characterized in that, It includes: a mobile power cabinet and a server; a near field communication card reader is provided on the mobile power cabinet; the near field communication card reader of the mobile power cabinet is communicatively connected to the server; the server is used to receive the identification request of the near field communication card reader of the mobile power cabinet, and send a second authentication password to the near field communication card reader of the mobile power cabinet; the mobile power cabinet is used to execute the identity identification method of the shared mobile power supply according to any one of claims 4 to 6.

9. The identity recognition system of the shared mobile power supply according to claim 8, wherein The server is further used to perform anomaly analysis on the target mobile power supply according to the historical device status information reported by the target mobile power supply when there is an anomaly in the contact identification of the target mobile power supply.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it realizes the steps of the identity identification method of the shared mobile power supply according to any one of claims 4 to 6.