Identification method of shared mobile power supply and shared charging cabinet
By setting up a double buffer zone and NFC antenna in the charging cabinet, combining server identification and plaintext information authentication keys, the problem of inaccurate identification of shared mobile power is solved, and accurate identification and stable communication of multiple shared mobile power supplies is achieved.
Patent Information
- Application Number
- CN202510376736.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-27
- Publication Date
- 2025-07-04
AI Technical Summary
In the prior art, the POGO PIN of a shared mobile power supply may be dirty or worn, resulting in identification errors, and multiple NFC tags cannot distinguish positions when sharing the same NFC antenna, resulting in the inability to accurately identify the shared mobile power supply.
In the charging cabinet, a near-field communication antenna is set at the top and bottom of each charging bin. The data is scanned and deduplicated using double buffers. Combined with server identification, the shared mobile power is accurately identified through NFC communication, and the identity verification is performed using a combination of plain text information and authentication keys.
When multiple shared mobile power supplies are returned at the same time, the respective shared mobile power supplies can be accurately identified, which improves communication stability and identification accuracy, reduces production costs, and improves user experience.
Smart Images

Figure CN120260182A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of mobile power identification, and particularly to an identification method for shared mobile power and a shared charging cabinet machine. Background Art
[0002] Shared mobile power can provide convenience for people's travel and alleviate the anxiety of mobile phone power consumption when going out. Currently, when a user finishes using a shared mobile power and returns it to the cabinet machine, the cabinet machine often obtains information such as the unique identifier (ID) and battery level of the returned shared mobile power by contacting the metal contacts (POGO PIN) of the shared mobile power and through the communication protocol with the shared mobile power.
[0003] Due to environmental impact, the POGO PIN of the shared mobile power may be dirty or worn, resulting in poor contact of the POGO PIN during return and incorrect identification, and the rental order of the shared mobile power cannot be ended in time. In addition, in Near Field Communication (NFC) technology, when multiple NFC tags share the same NFC antenna, two NFC tags will be within the magnetic field range of the same NFC antenna, making it impossible to distinguish the specific positions of the NFC tags. Thus, it is currently impossible to successfully use NFC technology to achieve the return identification of shared mobile power.
[0004] Regarding the problem in the related technology that accurate identification of shared mobile power cannot be achieved based on near field communication, no effective solution has been proposed yet. Summary of the Invention
[0005] In this embodiment, an identification method for shared mobile power and a shared charging cabinet machine are provided to solve the problem in the related technology that accurate identification of shared mobile power cannot be achieved based on near field communication.
[0006] In a first aspect, in this embodiment, an identification method for shared mobile power is provided for a near field communication card reader in a shared charging cabinet machine. The shared charging cabinet machine further includes a plurality of charging compartments and a plurality of near field communication antennas; wherein, under the arrangement of the near field communication antennas, the top and bottom of each of the charging compartments have a scanning function based on near field communication; each of the charging compartments is provided with a double buffer; the method includes:
[0007] Scanning near field communication tags at the top and bottom of all the charging compartments through the near field communication antennas, and storing the identification data in at least one target near field communication tag scanned into the corresponding double buffer; wherein, the target near field communication tag is a near field communication tag built in a newly stored shared mobile power;
[0008] Deduplicate the identification data in all the double buffers, and report the deduplicated identification data to the server to identify the near-field communication tags built in the newly warehoused shared mobile power supplies.
[0009] In some embodiments, the identification data is the plaintext information pre-written in the target near-field communication tag; deduplicating the identification data in all the double buffers and reporting the deduplicated identification data to the server to identify the near-field communication tags built in the newly warehoused shared mobile power supplies includes:
[0010] Report the deduplicated plaintext information to the server;
[0011] Obtain the information pair sent by the server based on the reported plaintext information; the information pair includes an authentication key and the plaintext information associated with the authentication key;
[0012] Based on the information pair, determine the authentication key associated with the read target near-field communication tag, and identify the newly warehoused shared mobile power supply according to the authentication key.
[0013] In some embodiments, based on the information pair, determining the authentication key associated with the read target near-field communication tag and identifying the newly warehoused shared mobile power supply according to the authentication key includes:
[0014] Determine the target near-field communication tag associated with the information pair according to the plaintext information in the information pair;
[0015] Determine the association relationship between the authentication key in the information pair and the target near-field communication tag according to the association relationship between the information pair and the target near-field communication tag.
[0016] In some embodiments, based on the information pair, determining the authentication key associated with the read target near-field communication tag and identifying the newly warehoused shared mobile power supply according to the authentication key includes:
[0017] Perform password authentication on the target near-field communication tag according to the authentication key associated with the target near-field communication tag to obtain the ciphertext information of the target near-field communication tag after the authentication is passed; the ciphertext information is in an unreadable and unwritable state before the authentication is passed;
[0018] Send the ciphertext information to the server so that the server identifies the newly warehoused shared mobile power supply based on the ciphertext information and ends the corresponding rental order after the identification is successful.
[0019] In some of these embodiments, a corresponding internal code of the shared mobile power source is pre-written in the target near-field communication tag; the internal code is associated with the metal contacts of the shared mobile power source.
[0020] In some of these embodiments, the method further includes:
[0021] When two of the target near-field communication tags are scanned simultaneously and the internal code is read through the metal contacts of one of the shared mobile power sources, the internal codes obtained through the two target near-field communication tags are respectively compared with the internal code read through the metal contacts, and the shared mobile power sources corresponding to the two charging compartments are determined according to the comparison result of the internal codes, so as to identify the shared mobile power sources respectively.
[0022] In some of these embodiments, when communicating with the target near-field communication tag in the charging compartment, the method further includes:
[0023] When the unique identifiers of multiple target near-field communication tags are read, one of the unique identifiers is selected from the multiple unique identifiers as the target identifier;
[0024] The target near-field communication tag corresponding to the target identifier is activated and communicated with.
[0025] In some of these embodiments, the data communication process with the target near-field communication tag includes:
[0026] When tag signals generated by multiple target near-field communication tags are received, the tag signals with signal intensities conforming to the corresponding signal levels are sequentially subjected to signal amplification processing according to a preset variety of signal levels, and the data in the corresponding target near-field communication tags are identified according to the signals after the signal amplification processing.
[0027] In some of these embodiments, the method further includes:
[0028] Eject the shared mobile power source with failed identification from the charging compartment.
[0029] In a second aspect, a shared charging cabinet is provided in this embodiment, including: a plurality of charging compartments, a plurality of near-field communication antennas, and a near-field communication card reader; wherein:
[0030] A near-field communication antenna is provided between every two of the charging compartments arranged closest to each other in a preset direction of the shared charging cabinet, and a near-field communication antenna is provided at the top and bottom of each charging compartment; the preset direction is perpendicular to the front facing direction when the shared mobile power source is inserted into the charging compartment;
[0031] The near - field communication antenna is used to transmit electromagnetic waves;
[0032] The near - field communication card reader is used to execute the identification method of the shared mobile power supply described in the first aspect above.
[0033] Compared with the related technology, in this embodiment, an identification method of a shared mobile power supply and a shared charging cabinet are provided. In the identification method of the shared mobile power supply, near - field communication tags are scanned on the top and bottom of all charging positions through a near - field communication antenna, and the identification data in at least one target near - field communication tag scanned is stored in a corresponding double buffer; wherein, the target near - field communication tag is a near - field communication tag built in the newly - warehoused shared mobile power supply; the identification data in all double buffers is de - duplicated, and the de - duplicated identification data is reported to the server to identify the near - field communication tag built in the newly - warehoused shared mobile power supply. It can identify different shared mobile power supplies based on NFC communication when multiple shared mobile power supplies with blocked POGO PINs are returned simultaneously, so as to successfully identify the shared mobile power supply accurately based on NFC communication.
[0034] 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. Description of the Drawings
[0035] The drawings described herein are used to provide a further understanding of the present application and form a part of the present application. The illustrative embodiments and descriptions thereof are used to explain the present application and do not constitute an improper limitation of the present application. In the drawings:
[0036] Figure 1 is the hardware structure block diagram of the terminal of the identification method of the shared mobile power supply in this embodiment;
[0037] Figure 2 is the flowchart of the identification method of the shared mobile power supply in this embodiment;
[0038] Figure 3 is the state diagram of an NFC tag in this embodiment;
[0039] Figure 4 is the flowchart of the clear - text information reading method for the charging cabinet in some embodiments;
[0040] Figure 5 is the flowchart of the cipher - text information reading method for the charging cabinet in some embodiments;
[0041] Figure 6 is the structural schematic diagram of the shared charging cabinet in this embodiment. Detailed Embodiments
[0042] To understand the purpose, technical solution and advantages of the present application more clearly, the present application will be described and illustrated below in conjunction with the accompanying drawings and embodiments.
[0043] 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", "an", "one kind", "the", "these" and the like do not indicate a limitation in quantity, and they can be singular or plural. The terms "including", "containing", "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" and the like involved in the present application do not limit to physical or mechanical connections, but may include electrical connections, whether direct or indirect. 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 can exist. For example, "A and / or B" can mean: A exists alone, A and B exist simultaneously, and B exists alone. Usually, the character " / " indicates that the objects associated before and after are an "or" relationship. The terms "first", "second", "third" and the like involved in the present application only distinguish similar objects and do not represent a specific sorting for the objects.
[0044] The method embodiment provided in this embodiment can be executed on a terminal, a computer or a similar computing device. For example, it runs on a terminal. Figure 1 is the hardware structure block diagram of the terminal of the identification method of the shared mobile power supply in this embodiment. As Figure 1 shown, the terminal may include one or more ( Figure 1 only one is shown in Figure 1 a) processor 102 and a memory 104 for storing data, wherein 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 in Figure 1 is only schematic and does not limit the structure of the above terminal. For example, the terminal may further include more or fewer components than those shown in
[0045] The memory 104 can be used to store computer programs, such as software programs and modules of application software, such as the computer program corresponding to the identification 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-mentioned method is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memories. In some instances, the memory 104 may further include a memory remotely disposed relative to the processor 102, and these remote memories may be connected to the terminal through a network. Examples of the above-mentioned network include but are not limited to the Internet, enterprise intranet, local area network, mobile communication network, and combinations thereof.
[0046] The transmission device 106 is used to receive or send data via a network. The above-mentioned network includes a wireless network provided by the communication provider of the terminal. In one instance, the transmission device 106 includes a network adapter (Network Interface Controller, abbreviated as NIC), which can be connected to other network devices through a base station and thus 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.
[0047] In this embodiment, an identification method for a shared mobile power supply is provided, which is used for a near-field communication card reader in a shared charging cabinet. The shared charging cabinet further includes a plurality of charging compartments and a plurality of near-field communication antennas; among them, under the arrangement of the near-field communication antennas, the top and bottom of each charging compartment have a scanning function based on near-field communication; a double buffer is set for each charging compartment. Figure 2 It is a flowchart of the identification method for the shared mobile power supply in this embodiment, as Figure 2 shown, and the process includes the following steps:
[0048] Step S210, scan the near-field communication tags at the top and bottom of all charging compartments through the near-field communication antennas, and store the identification data in at least one target near-field communication tag scanned into the corresponding double buffer; wherein, the target near-field communication tag is a near-field communication tag built in the newly-in-storage shared mobile power supply.
[0049] It can be understood that since the top and bottom of each charging compartment in the charging cabinet have an NFC scanning function, when the shared mobile power supply with an NFC tag set on one side is returned to the charging compartment, whether the shared mobile power supply is returned with the front side up or the front side down, it can perform NFC communication with the card reader in the charging cabinet, so as to realize the identification of the shared mobile power supply based on NFC communication.
[0050] An NFC tag can be set in a shared mobile power supply used in conjunction with a charging cabinet. The NFC tag can be set on one side. Due to the interference of the battery cells in the shared mobile power supply and the blockage of the circuit board, the NFC signal cannot penetrate the shared mobile power supply itself. If the side of the shared mobile power supply with the NFC tag is attached to the top of the charging compartment when it is returned, it will be detected based on the near-field communication function at the top of the charging compartment. If the side of the shared mobile power supply with the NFC tag is attached to the bottom of the shared compartment when it is returned, it will be detected based on the near-field communication function at the bottom of the charging compartment.
[0051] Furthermore, for the identification of shared mobile power supplies with NFC communication, a double buffer is set for each charging compartment. For example, for charging compartment 1, when performing NFC scans on the top and bottom of charging compartment A of this charging compartment based on the NFC antenna, there may be a situation where an NFC tag A is scanned from the top and an NFC tag B is scanned from the bottom. Therefore, the tag data of the scanned NFC tag A can be stored in buffer 1 of the double buffer of this charging compartment 1, and the tag data of the scanned NFC tag B can be stored in buffer 2 of the double buffer of this charging compartment 1. In addition, there may also be a situation where an NFC scan is performed on charging compartment A and only one NFC tag is scanned. In this case, the tag data of the scanned single NFC tag is stored in the corresponding double buffer.
[0052] In some of the embodiments, the NFC tag scans of each charging compartment can be started regularly to determine whether a shared mobile power supply has been returned to the charging compartment. In addition, in some embodiments, it can also be determined whether a shared mobile power supply has been returned to the charging compartment based on the linkage with other sensors in the charging compartment, such as the linkage of a pressure sensor and a photoelectric sensor, so as to start the NFC tag scan.
[0053] Step S220: Dedup the identification data in all the double buffers, and report the deduped identification data to the server to identify the near-field communication tags built in the newly entered shared mobile power supplies.
[0054] Among them, considering that there are multiple shared mobile power supplies returned simultaneously, and when the metal contacts (POGO PIN) of all the shared mobile power supplies returned simultaneously are dirty or worn and the communication with the charging compartment fails, in this case, it is impossible to directly associate the NFC tags scanned from each shared mobile power supply being returned with the specific charging compartment in principle. Because there may be a situation where two shared mobile power supplies share one NFC antenna, and the electromagnetic wave intensities of the two NFC tags from the NFC antenna are the same.
[0055] In this regard, in this step, based on the dual buffers set for a single charging bay, all scanned shared mobile power supplies are regarded as a whole, and only the total number of scanned NFC tags and the corresponding NFC tags at the corresponding antenna positions are calculated. For example, by periodically scanning the top and bottom of each charging bay, at most 2 NFC tags can be scanned for each charging bay, and then the readable data in the scanned NFC tags are written into the dual buffers of the corresponding charging bays.
[0056] For example, for charging bay 1 and charging bay 2, they share NFC antenna 2. Then the dual buffer scanned for charging bay 1 is NFC tag A and NFC tag B. The dual buffer scanned for charging bay 2 may be NFC tag B and NFC tag C. When deduplicating, the NFC tags scanned for charging bays 1 and 2 are NFC tag A, NFC tag B, and NFC tag C. If 6 shared mobile power supplies are returned at the same time, then after deduplicating the dual buffers corresponding to all charging bays of the entire cabinet, there will still be 6 NFC tags. The tag data corresponding to these 6 NFC tags can be reported to the server respectively to complete the subsequent identification of the shared mobile power supply, so as to end the corresponding rental order after successful identification.
[0057] During the actual return process of shared mobile power supplies with built-in NFC tags, there are two situations: POGO PIN is valid and POGO PIN is invalid. The situation where POGO PIN is invalid means that the POGO PIN is dirty, making the charging cabinet unable to communicate with the shared mobile power supply. Valid means that the charging cabinet communicates normally with the shared mobile power supply and can obtain the internal code of the shared mobile power supply. For the situation where POGO PIN is invalid, if there is only one shared mobile power supply returned alone at the same time, then when returning to this charging bay, only detecting a new NFC tag can succeed in identification. If there are multiple shared mobile power supplies and multiple charging bays returned at the same time, it is possible that the upper and lower charging bays share one NFC antenna for identification. At this time, if the shared mobile power supplies in the upper and lower charging bays are all facing the same side, it is the same as the situation of a single individual return, and the return identification can be carried out separately for different charging bays. If, when returning, the shared mobile power supplies in the upper and lower charging bays are facing in opposite directions, then the NFC tags of the two shared mobile power supplies facing in opposite directions will share one NFC antenna.
[0058] In this embodiment, in view of the situation where multiple NFC tags share one NFC antenna, a double buffer is set for each charging compartment, and communication is carried out with the server side in combination with the deduplication mechanism, successfully completing the problem of simultaneous return of multiple shared mobile power supplies based on NFC communication when the POGO PIN is invalid and multiple NFC tags share one NFC antenna. In particular, in some of these embodiments, the security protocol can also be updated and upgraded regularly, and a more secure encryption algorithm can be adopted to cope with the constantly evolving security threats.
[0059] On the one hand, by adding the NFC wireless communication method, this embodiment improves the communication stability between the charging cabinet and the shared mobile power supply, thereby enhancing the customer's usage experience and reducing the possible customer complaints. On the other hand, by optimizing the NFC identification process, this embodiment solves the positioning problem of multiple NFC tags sharing one NFC antenna, and can achieve the positioning problem that cannot be achieved when simultaneously returning multiple shared mobile power supplies with NFC tags without adding a double-sided label design for the power bank or adding more identification antennas. It can be realized that the shared mobile power supply can complete accurate identification by only carrying one NFC tag, and the production cost is reduced on the premise of ensuring the return identification of the shared mobile power supply based on NFC communication.
[0060] Therefore, through the above steps S210 to S220, the near-field communication tags at the top and bottom of all charging compartments are scanned through the near-field communication antenna, and the identification data in at least one target near-field communication tag scanned is stored in the corresponding double buffer; wherein, the target near-field communication tag is the near-field communication tag built in the newly-instored shared mobile power supply; the identification data in all double buffers is deduplicated, and the deduplicated identification data is reported to the server to identify the near-field communication tag built in the newly-instored shared mobile power supply. It can identify different shared mobile power supplies based on NFC communication in the case of simultaneous return of multiple shared mobile power supplies with blocked POGO PINs, so as to successfully identify the shared mobile power supply accurately based on NFC communication.
[0061] In one embodiment, the identification data is the plaintext information pre-written in the target near-field communication tag; the process of deduplicating the identification data in all double buffers and reporting the deduplicated identification data to the server to identify the near-field communication tag built in the newly-instored shared mobile power supply may specifically include:
[0062] Report the deduplicated plaintext information to the server; obtain the information pair sent by the server based on the reported plaintext information; the information pair includes an authentication key and the plaintext information associated with the authentication key; based on the information pair, determine the authentication key associated with the read target near-field communication tag, and identify the newly-instored shared mobile power supply according to the authentication key.
[0063] Among them, a publicly unique identifier associated with all information of the shared mobile power supply can be pre-written in the NFC tag of the shared mobile power supply as plaintext information. For example, in the NFC tag sector of the shared mobile power supply, a specified area is divided to store a unique public ID with a length of 16 bytes. This unique public ID can be associated with all information of the shared mobile power supply, and this unique public ID is the above-mentioned plaintext information. When the shared mobile power supply is returned to a certain charging compartment, the built-in NFC tag of it will be scanned. Based on NFC communication, the plaintext information written in the NFC tag built in the shared mobile power supply can be read by the NFC reader of the charging cabinet.
[0064] After that, the NFC reader de-duplicates the plaintext information read from all charging compartments, and then reports the de-duplicated plaintext information to the server (i.e., the cloud). After receiving the reported plaintext information, the server will, through data encryption, send an information pair associated with the plaintext information to the charging cabinet, including the plaintext information and the authentication key associated with the plaintext information. After receiving the above information pair, the NFC reader of the charging cabinet can determine the authentication key associated with each NFC tag from it to perform subsequent identification processes.
[0065] In this embodiment, a mobile power supply identification method that combines NFC communication with the transmission of plaintext information and authentication keys is implemented, so as to accurately identify the shared mobile power supply.
[0066] Among them, in one embodiment, based on the information pair, determining the authentication key associated with the read target near-field communication tag, and identifying the newly-instored shared mobile power supply according to the authentication key may specifically include:
[0067] According to the plaintext information in the information pair, determining the target near-field communication tag associated with the information pair; according to the association relationship between the information pair and the target near-field communication tag, determining the association relationship between the authentication key in the information pair and the target near-field communication tag.
[0068] The above authentication key can specifically be an authentication password pre-stored on the server side and associated with each shared mobile power supply one by one. Among them, the NFC tag chip has the function of F8213. When the NFC read / write chip FM17622 of the charging cabinet communicates with the NFC tag, for example, when reading the encrypted sector content of the tag, it needs to perform password / key authentication first. Only after the authentication is passed can the encrypted sector content be obtained. This authentication key is the password code required during authentication. Since the information pair contains both plaintext information and the authentication key, the plaintext information in the information pair can be matched with the plaintext information read from the target near-field communication tag. If the plaintext information of an information pair is the same as the plaintext information of a target near-field communication tag, then the information pair is associated with the target near-field communication tag, and further, the authentication key in the information pair is associated with the target near-field communication tag. Among them, FM17622 is the chip of the NFC reader / writer, and this chip can be carried inside the shared charging cabinet to achieve functions such as reading and writing, encryption and decryption authentication of NFC tags. F8213 is the NFC tag chip, which can implement functions such as encryption and decryption communication permissions for specified sector information.
[0069] This embodiment can realize the associated matching of the authentication keys of multiple simultaneously returned shared mobile power supplies, and then complete the subsequent identification process respectively based on the authentication keys associated with each of the multiple shared mobile power supplies.
[0070] In one embodiment, based on the information pair, determine the authentication key associated with the read target near-field communication tag, and identify the newly warehoused shared mobile power supply according to the authentication key. Specifically, it can include:
[0071] Perform password authentication on the target near-field communication tag according to the authentication key associated with the target near-field communication tag to obtain the ciphertext information of the target near-field communication tag after the authentication is passed; the ciphertext information is in an unreadable and unwritable state before the authentication is passed; send the ciphertext information to the server so that the server can identify the newly warehoused shared mobile power supply based on the ciphertext information and end the corresponding rental order after successful identification.
[0072] After determining the authentication key associated with the target near-field communication tag, key authentication can be performed based on this authentication key and the target near-field communication tag. After the authentication is passed, the ciphertext information in the encrypted sector of the target near-field communication tag can be read. Among them, this ciphertext information is specifically an encrypted ID with a length of 16 bytes stored in the designated area divided in the sector of the target near-field communication tag. It can only be read after the authentication based on the above authentication key is successful. After obtaining the ciphertext information, the ciphertext information can be sent to the server. After the server receives the ciphertext information and performs verification, if the verification passes, the identity identification of the shared mobile power supply is successful, and the rental order returned by the user will end immediately.
[0073] In this embodiment, a decryption and authentication process based on plaintext information, authentication keys, and ciphertext information is constructed, which can stably and securely implement the return operation of the shared mobile power bank by the user, and reduce the possibility of maliciously copying NFC tags. Because when the authentication key is not available, the ciphertext information in the NFC tag cannot be obtained, so ciphertext copying cannot be performed.
[0074] In addition, in one embodiment, the corresponding internal code of the shared mobile power bank is pre-written in the target near-field communication tag; the internal code is associated with the metal contacts of the shared mobile power bank.
[0075] Specifically, the internal code can be the unique ID written inside the control chip of the shared mobile power bank during production. Inside the target near-field communication tag, in addition to the above-mentioned plaintext information, the internal code of the shared mobile power bank can also be added to the sector. For example, during the lid-closing step of manufacturing the shared mobile power bank, the internal code can be written into the tag together during multi-code binding. Here, the multi-code binding can associate the internal code, the plaintext information of the target near-field communication tag, the ciphertext information, and the shell code of the shared mobile power bank (the unique ID printed on the shell of the shared mobile power bank). In this way, by reading the internal code of the target near-field communication tag, it can be compared with the internal code read by the POGO PIN. For the case where the upper and lower layers of the charging compartment use the same NFC antenna and the POGO PIN of the shared mobile power bank returned in one of the layers is not blocked, the target near-field communication tags corresponding to the shared mobile power banks in the two layers of the compartment can be determined based on the internal code read by the POGO PIN and the internal code read by the target near-field communication tag.
[0076] Among them, in one embodiment, the above-mentioned identification method of the shared mobile power bank may further include:
[0077] When two target near-field communication tags are scanned simultaneously and the internal code is read through the metal contacts of a shared mobile power bank, the internal codes obtained through the two target near-field communication tags are respectively compared with the internal code read through the metal contacts, and the shared mobile power banks corresponding to the two charging compartments are determined according to the comparison result of the internal codes, so as to identify the shared mobile power banks respectively.
[0078] That is, as long as one of the two target near-field communication tags scanned simultaneously corresponds to a shared mobile power bank whose metal contact POGO PIN is not blocked, the shared mobile power banks corresponding to the two charging compartments can be determined based on the internal code read from the target near-field communication tag and the internal code read through the POGO PIN, so as to identify the shared mobile power banks for the two charging compartments respectively.
[0079] In one embodiment, when communicating with a target near-field communication tag in a charging compartment, the above-mentioned identification method for the shared mobile power supply may further include:
[0080] When the unique identifiers of multiple target near-field communication tags are read, one unique identifier is selected from the multiple unique identifiers as the target identifier; the target near-field communication tag corresponding to the target identifier is activated and communicated with.
[0081] In this embodiment, the tag communication can be performed based on the secondary anti-collision algorithm of the NFC tag. When the NFC reader is searching for a card, it will first send a first-level anti-collision instruction. Multiple NFC tags will receive this instruction simultaneously and send the first few digits of the ID of the NFC tag. After the reader receives a certain number, it will put the received number into the first-level card selection instruction. At this time, one NFC tag number can be selected from the numbers sent by multiple NFC tags for secondary card selection. The second-level card selection instruction activates the selected NFC tag, and the unselected NFC tags enter the interrupt state. Through this secondary anti-collision detection algorithm, it can be ensured that each time the NFC is scanned, only one NFC tag is selected for activation and communication, and the other NFC tags will be in the idle state and not be activated. Then, another NFC tag is selected from the remaining unactivated NFC tags for activation and communication. During the communication process, operations such as reading plaintext information and authenticating the above-mentioned authentication key can be performed.
[0082] Figure 3 The state diagram of an NFC tag for this embodiment is as Figure 3As shown, the NFC tag has several states such as the initial state, idle state, interrupt state, ready state, active state, and authentication passed state. When the NFC tag senses the electromagnetic field, it can change from the initial state to the idle state. The NFC reader uses the wake-up instruction or card search instruction to make each scanned NFC tag enter the first stage of the ready state. The NFC reader sends the first-level anti-collision instruction to the NFC tags in the first stage of the ready state. Multiple NFC tags will receive this instruction simultaneously and send the first few digits of the ID of the NFC tag. After the reader receives a certain number, it will put the received number into the first-level card selection instruction. The NFC reader executes the second-level anti-collision instruction and selects one NFC tag to enter the second stage of the ready state. The selected NFC tag enters the active state based on the second-level card selection instruction, and the other unselected NFC tags enter the interrupt state. Then, send read / write instructions to the NFC tag in the active state for communication, such as sending a password authentication instruction for key authentication. After successful authentication, the NFC tag enters the authentication passed state. Among them, when the NFC tag in the active state or authentication passed state is interrupted, it will enter the interrupt state. The NFC tag in the interrupt state can enter the first stage of the ready state again based on the wake-up instruction. The NFC tag in the first stage of the ready state can also enter the active state based on the read manufacturer ID instruction.
[0083] Additionally, in one embodiment, the data communication process with the target near-field communication tag may include:
[0084] When receiving tag signals generated by multiple target near-field communication tags, perform signal amplification processing on the tag signals whose signal strengths conform to the corresponding signal levels in sequence according to multiple preset signal levels, and identify the data in the corresponding target near-field communication tags based on the signals after signal amplification processing.
[0085] Among them, when manufacturing a shared mobile power supply with an NFC tag built-in and a charging cabinet with an NFC reader, due to assembly errors or the characteristics of the NFC tag itself, when the charging cabinet emits electromagnetic waves at full power intensity, the NFC tag works through the induced current generated by the induced electromagnetic wave. However, due to distance errors or errors of the NFC tag itself, or affected by the capacitance and resistance errors of the NFC reader itself, there are some NFC tags that reply with stronger signals, while some NFC tags reply with weaker signals.
[0086] In view of this situation, in this embodiment, signal filtering values with three intensity combinations are set for the NFC reader / writer. For example, the minimum received signal range of the NFC reader / writer is set, and signals below the lower limit value of the minimum received signal range are regarded as clutter, while signals within the minimum received signal range are regarded as valid signals. Similarly, different amplifier gain levels can also be set for the amplifier circuit inside the NFC card reader. For example,
[0087] For a strong signal source: Set a low amplifier gain value, and the minimum signal value is a preset high threshold;
[0088] For a medium-strength signal source: Set a medium amplifier gain value, and the minimum signal value is a preset medium threshold;
[0089] For a low-strength signal source: Set the highest amplifier gain, and the minimum signal value is a preset low threshold.
[0090] Based on this setting, even weak signals at a relatively long distance can be amplified and received. When a single antenna scans the NFC tag, triple antenna gain value filtering can be performed. First, filter and amplify using the strong signal value, then filter and amplify using a lower-level medium threshold, and finally filter and amplify using a lower low threshold. In this way, it can be avoided that when scanning with a single signal value, some NFC tags cannot be scanned, while some NFC tags have an overly strong signal and are continuously scanned. This embodiment can improve the anti-interference ability for signals, ensure that multiple signals can also be scanned, has a process of dynamically switching from high to low, and can fully cover multiple scenarios. It can be understood that more levels or fewer levels of filtering and signal amplification can be set according to the requirements of the actual application scenario, and this embodiment does not make specific limitations in this regard.
[0091] Additionally, in one embodiment, the above method for identifying a shared mobile power supply may further include:
[0092] Eject the shared mobile power supply that fails to be identified from the charging compartment. That is, when the identity information of the shared mobile power supply being returned cannot be determined, the shared mobile power supply can be ejected from the charging compartment to avoid misidentification.
[0093] Figure 4 is a flowchart of a method for reading plaintext information for a charging cabinet in some embodiments. As Figure 4 shown, the method for reading plaintext information includes the following steps:
[0094] Step S401, the charging cabinet detects that the shared mobile power supply has been returned and locked. Among them, the shared mobile power supply is built-in with an NFC tag, and the plaintext information as the only public ID is pre-written in the NFC tag. The charging cabinet is provided with an NFC card reader and an NFC antenna.
[0095] Step S402: If the charging cabinet detects a failure in wired POGO PIN communication, start wireless NFC communication.
[0096] Step S403: The charging cabinet uses the NFC antennas at the top and bottom of the charging compartment to scan NFC tags, filters multiple NFC tags, and selects one NFC tag for activation communication.
[0097] Step S404: Determine whether plaintext information is obtained from the activated NFC tag; if so, execute Step S405; otherwise, execute Step S406.
[0098] Step S405: Send the plaintext information to the server.
[0099] Step S406: Eject the shared mobile power supply from the charging compartment to end the process.
[0100] The above Steps S401 to S406 can successfully obtain the plaintext information of the shared mobile power supply based on NFC communication, thereby providing basic data for identity recognition on the server side.
[0101] Figure 5 It is a flowchart of a method for reading ciphertext information for a charging cabinet in some embodiments. As Figure 5 shown, the method for reading ciphertext information includes the following steps:
[0102] Step S501: Obtain the corresponding plaintext and authentication key of the shared mobile power supply that needs to be decrypted sent by the server. Among them, the acquisition methods of these two pieces of information can refer to the above embodiments and will not be elaborated here.
[0103] Step S502: Obtain the plaintext information in the NFC tags scanned from the top and bottom of the charging compartment.
[0104] Step S503: Determine whether the plaintext information in Step S501 matches that in Step S502; if so, execute Step S504; otherwise, execute Step S507.
[0105] Step S504: Determine whether the key authentication is successfully completed based on the authentication key; if so, execute Step S505; otherwise, execute Step S507.
[0106] Step S505: Read the ciphertext information of the NFC tag.
[0107] Step S506: Report the ciphertext information to the server.
[0108] Step S507: Confirm that the authentication fails.
[0109] The above steps S501 to S507 can successfully establish the association between the authentication key and the shared mobile power supply based on plaintext matching, and then complete the key authentication to obtain the ciphertext information to complete the identity recognition of the shared mobile power supply on the server side.
[0110] In this embodiment, a shared charging cabinet is also provided. Figure 6 It is a schematic structural diagram of the shared charging cabinet 60 of this embodiment. As Figure 6 shown, the shared charging cabinet 60 includes a plurality of charging compartments (such as Figure 6 charging compartment 1 to charging compartment 6), a plurality of near-field communication antennas (such as Figure 6 near-field communication antenna 1 to near-field communication antenna 8), and a near-field communication card reader (not shown in the figure); where:
[0111] A near-field communication antenna is provided between every two adjacent charging compartments arranged in a preset direction in the shared charging cabinet 60, and a near-field communication antenna is provided at the top and bottom of each charging compartment; the preset direction is perpendicular to the front facing direction when the shared mobile power supply is inserted into the charging compartment; the near-field communication antenna is used to emit electromagnetic waves; the near-field communication card reader is used to execute the identification method of the shared mobile power supply provided in any of the above embodiments.
[0112] As Figure 6 shows, there are 6 charging compartments for shared mobile power supplies and the placement positions of 8 NFC antennas. In order to adapt to the function of returning the shared mobile power supply on both the front and back sides, a NFC antenna is provided between every two adjacent upper and lower charging compartments. For example, when a shared mobile power supply is returned to charging compartment 1, the near-field communication antenna 1 or near-field communication antenna 2 can detect the NFC tag to achieve wireless return (for example, when the NFC tag side of the shared mobile power supply faces up during return, it is detected by the near-field communication antenna 1, and when the NFC tag side of the shared mobile power supply faces down, it is detected by the near-field communication antenna 2).
[0113] It can be understood that Figure 6 only shows a possible arrangement form of a charging cabinet, and does not constitute a specific limitation on the arrangement method of the charging compartments and near-field communication antennas of the charging cabinet. For example, in addition to Figure 6 which gives the form of all charging compartments arranged horizontally, all the charging compartments can also be arranged vertically. The preset direction of the near-field communication antenna arrangement is relative to the incoming direction of the shared mobile power supply. For example, if the shared mobile power supply is horizontally inserted into the charging compartment based on the arrangement of the charging compartments (that is, Figure 6 shown), then the preset direction is the up-and-down arrangement perpendicular to the horizontal direction; if the shared mobile power supply is vertically inserted (for example, the charging compartment is rotated 90 degrees compared to Figure 6 ), then the preset direction is the direction perpendicular to the vertical direction.
[0114] It should also be noted that the NFC antenna is a near-field antenna with a limited magnetic field range. For example, for the near-field communication antenna 2 in Figure 6 , the corresponding detection range only includes the bottom of the charging bin 1 and the top part of the charging bin 2, and cannot penetrate the shared mobile power supply. The reason for this situation is the interference of the battery cells inside the shared mobile power supply and the blockage of the circuit board, and the signal cannot penetrate the shared mobile power supply itself. The near-field communication antenna 1 can only detect the top of the charging bin 1. Therefore, when returning the shared mobile power supply to the charging bin 1, no matter which side of the shared mobile power supply enters the bin, the near-field communication antenna 1 or the near-field communication antenna 2 can detect the NFC tag. In this way, the shared mobile power supply can be set with an NFC tag on only one side to achieve NFC communication. Combined with the identification method of the shared mobile power supply in the above embodiment, the multi-tag conflict problem of multiple NFC tags sharing one NFC antenna can be solved, so that accurate identification can be achieved when multiple shared mobile power supplies are returned based on NFC communication, and the return failure caused by poor contact of the POGO PIN can be avoided. By selecting the NFC near-field communication technology, stable and secure data communication can also be achieved, the device cost can be reduced, and the usage range can be expanded.
[0115] It should be noted that the specific examples in this embodiment can refer to the examples described in the above embodiment and the optional implementation manners, and will not be repeated in this embodiment.
[0116] 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 this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.
[0117] 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.
[0118] Obviously, the 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. In addition, 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, some design, manufacturing, or production changes made according to the technical content disclosed in this application are only conventional technical means and should not be regarded as insufficient disclosure of this application.
[0119] As used herein, the term "embodiment" means that the specific features, structures, or characteristics described in connection with the embodiments may be included in at least one embodiment of the present application. The phrase appears in various positions in the specification and does not necessarily mean the same embodiment, nor does it mean that it is 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 the present application can be combined with other embodiments without conflict.
[0120] The above-described embodiments merely represent several implementation manners of the present application. The description thereof is relatively specific and detailed, but it should not be construed as a limitation on the scope of patent protection. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.
Claims
1. A method for identifying a shared mobile power supply, characterized in that, A near-field communication card reader for a shared charging cabinet machine, the shared charging cabinet machine further comprising a plurality of charging compartments and a plurality of near-field communication antennas; wherein, under the arrangement of the near-field communication antennas, both the top and bottom of each of the charging compartments have a near-field communication scanning function; each of the charging compartments is provided with a double buffer; the method includes: Through the near-field communication antennas, perform near-field communication tag scanning on the tops and bottoms of all the charging compartments, and store the identification data in at least one target near-field communication tag scanned into the corresponding double buffer; wherein, the target near-field communication tag is a near-field communication tag built in a newly-instored shared mobile power supply. Deduplicate the identification data in all the double buffers, and report the deduplicated identification data to a server to identify the near-field communication tag built in the newly-instored shared mobile power supply.
2. The identification method of the shared mobile power supply according to claim 1, wherein The identification data is the plaintext information pre-written into the target near-field communication tag; deduplicating the identification data in all the double buffers and reporting the deduplicated identification data to a server to identify the near-field communication tag built in the newly-instored shared mobile power supply includes: Report the deduplicated plaintext information to the server. Obtain the information pair sent by the server based on the reported plaintext information; the information pair includes an authentication key and the plaintext information associated with the authentication key. Based on the information pair, determine the authentication key associated with the read target near-field communication tag, and identify the newly-instored shared mobile power supply according to the authentication key.
3. The identification method of the shared mobile power supply according to claim 2, characterized in that, Based on the information pair, determine the authentication key associated with the read target near-field communication tag, and identify the newly-instored shared mobile power supply according to the authentication key, includes: Determine the target near-field communication tag associated with the information pair according to the plaintext information in the information pair. Determine the association relationship between the authentication key in the information pair and the target near-field communication tag according to the association relationship between the information pair and the target near-field communication tag.
4. The identification method of the shared mobile power supply according to claim 2 or 3, characterized in that, Based on the information pair, determine the authentication key associated with the read target near-field communication tag, and identify the newly-instored shared mobile power supply according to the authentication key, includes: Perform password authentication on the target near-field communication tag according to the authentication key associated with the target near-field communication tag to obtain the ciphertext information of the target near-field communication tag after the authentication is passed; the ciphertext information is in an unreadable and unwritable state before the authentication is passed. Send the ciphertext information to the server so that the server identifies the newly-instored shared mobile power supply based on the ciphertext information and ends the corresponding rental order after the identification is successful.
5. The identification method of the shared mobile power supply according to claim 1, wherein, The corresponding shared mobile power supply internal code is pre-written into the target near-field communication tag; the internal code is associated with the metal contacts of the shared mobile power supply.
6. The identification method of the shared mobile power supply according to claim 5, characterized in that The method further includes: When two of the target NFC tags are scanned simultaneously and the internal code is read through the metal contacts of one of the shared mobile power supplies, the internal codes obtained through the two target NFC tags are respectively compared with the internal code read through the metal contacts, and the shared mobile power supplies corresponding to the two charging compartments are determined according to the comparison result of the internal codes, so as to identify the shared mobile power supplies respectively.
7. The identification method of the shared mobile power supply according to claim 1, characterized in that When communicating with the target NFC tag in the charging compartment, the method further includes: When the unique identifiers of multiple target NFC tags are read, one of the unique identifiers is selected from the multiple unique identifiers as the target identifier; Activate and communicate with the target NFC tag corresponding to the target identifier.
8. The identification method of the shared mobile power supply according to claim 1, wherein The data communication process with the target NFC tag includes: When receiving the tag signals generated by multiple target NFC tags, the tag signals with signal intensities conforming to the corresponding signal levels are sequentially subjected to signal amplification processing according to multiple preset signal levels, and the data in the corresponding target NFC tag is identified according to the signals after the signal amplification processing.
9. The identification method of the shared mobile power supply according to claim 1, characterized in that The method further includes: Eject the shared mobile power supply with an identification failure from the charging compartment.
10. A shared charging cabinet machine, characterized in that, It includes: Multiple charging compartments, multiple NFC antennas and an NFC card reader; wherein: An NFC antenna is arranged between every two of the charging compartments that are closest to each other in a preset direction, and an NFC antenna is provided at the top and bottom of each charging compartment; the preset direction is perpendicular to the front facing direction when the shared mobile power supply is inserted into the charging compartment; The NFC antenna is used to emit electromagnetic waves; The NFC card reader is used to execute the identification method of the shared mobile power supply according to any one of claims 1 to 9.
Citation Information
Patent Citations
Anti-fake method and system of radio frequency identification
CN103065168A
Mobile power supply charging module and renting equipment
CN110544969A
Vehicle returning method, device and equipment based on encryption label and storage medium
CN117079385A
Storage device
CN208819312U
Information management system
JP2016219957A
Cited By
Shared power bank system integrating near field communication and store linkage marketing functions
CN122472867A