Shared charging cabinet Bluetooth borrowing and returning system and shared power bank borrowing and returning method
By introducing Bluetooth communication protocol, dynamic token verification and AES-CBC encryption into shared charging cabinets, the business interruption caused by network instability is solved, and the reliability and security of power bank borrowing and repayment operations when Wi-Fi or cellular network is disabled is achieved, reducing hardware complexity and operation and maintenance costs.
Patent Information
- Application Number
- CN202510410846.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-02
- Publication Date
- 2025-07-04
AI Technical Summary
When the Wi-Fi or cellular network is unstable or disabled, the existing shared charging cabinet cannot complete the pop-up and return of the power bank, resulting in interruption of business functions.
The Bluetooth communication protocol is used as the backup communication method, combining dynamic token verification, AES-CBC encryption protocol and reconnection and retransmission mechanism to realize the borrowing and return operation of the power bank; and the operation reliability and security are ensured through the hook treasure machine device and the warehouse status detection module.
The power bank borrowing and repayment operation can be completed when the network is unstable, reducing the risk of business stagnation, ensuring the confidentiality and integrity of data transmission, improving operational fluency and security, and reducing hardware complexity and operation and maintenance costs.
Smart Images

Figure CN120260184A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of shared charging, and specifically, to a Bluetooth borrowing and returning system for a shared charging cabinet machine and a method for borrowing and returning a shared power bank. Background Art
[0002] For the cloud-based power bank borrowing service implemented by the shared charging cabinet machine, it is basically completed based on Wi-Fi or cellular network. The communication module of the cabinet machine integrates Wi-Fi or cellular functions. The cloud application software controls the cabinet machine to perform the power bank ejection service and uploads the power bank information for the return service based on protocols such as TCP / UDP / SMS.
[0003] The prior art has deficiencies: when Wi-Fi and cellular networks become unstable or disabled due to external factors, the cabinet machine cannot complete the ejection and return services of the power bank, resulting in the interruption of the cabinet machine service function.
[0004] The Bluetooth channel provides a third communication method option in addition to Wi-Fi and cellular networks, and can be used as an alternative method to continue to complete the ejection and return services.
[0005] Patent application document CN116071870A discloses a charging cabinet machine interaction method, a charging cabinet machine, and a storage medium. Among them, the charging cabinet machine interaction method is applied to a first charging cabinet machine and includes: sending a request message, where the request message is used to request to establish a communication connection with the cloud; receiving a request result, where the request result is forwarded by a target charging cabinet machine, the target charging cabinet machine is communicatively connected to the cloud, and the target charging cabinet machine can forward the request message to the cloud and obtain the request result from the cloud. However, this patent cannot completely solve the existing technical problems and cannot meet the requirements of the present invention. Summary of the Invention
[0006] Aiming at the defects in the prior art, the purpose of the present invention is to provide a Bluetooth borrowing and returning system for a shared charging cabinet machine and a method for borrowing and returning a shared power bank.
[0007] According to the Bluetooth borrowing and returning system for a shared charging cabinet machine provided by the present invention, it includes:
[0008] A shared charging cabinet machine that supports the Bluetooth communication protocol, and the cabinet machine defaults to turn on the Bluetooth slave mode after being powered on and continuously performs Bluetooth broadcasting;
[0009] A user-side mini-program for providing an entrance for borrowing and returning a power bank and switching to the Bluetooth communication channel when detecting that the cabinet machine network is offline;
[0010] A dynamic token verification module for generating a dynamic token through a custom random key algorithm before the Bluetooth connection is established to complete the two-way authentication between the cabinet machine and the user side;
[0011] The encryption communication module uses the AES-CBC encryption protocol to encrypt the business instructions transmitted on the Bluetooth channel and completes the key exchange based on the one-machine-one-secret strategy;
[0012] The reconnection and retransmission module is used to automatically trigger the reconnection mechanism when the Bluetooth signal is interrupted, and to retransmit the command according to the preset retransmission times and time intervals when data transmission fails.
[0013] Preferably, the dynamic token verification module further includes:
[0014] Whitelist screening mechanism: the user-side applet is only allowed to establish a connection with Bluetooth signals in the pre-stored whitelist;
[0015] Blacklist management function automatically adds devices that fail authentication continuously to the blacklist and prohibits subsequent connection attempts.
[0016] Preferably, the encryption communication module further comprises:
[0017] Unique ID identification mechanism, assigning a unique ID to each data packet and attaching a timestamp, ensuring the uniqueness and integrity of instructions through timing verification;
[0018] Response feedback mechanism: after receiving the command, the cabinet needs to return a confirmation response. If no response is received, the reconnection and retransmission module will be triggered.
[0019] Preferably, the shared charging cabinet also includes:
[0020] The warehouse status detection module is used to report the occupancy status of the power bank warehouse in real time through the Bluetooth channel;
[0021] The hook mechanism device physically locks the returned power bank until it detects that it is in the correct position of the compartment, and feedbacks the completion signal of the compartment through the sensor.
[0022] Preferably, the user-side applet further implements:
[0023] Multi-user blocking strategy: when the current user occupies the Bluetooth channel, other users need to wait for the connection to be released before initiating a request;
[0024] Offline order processing function automatically synchronizes the borrowing and returning records completed under the Bluetooth channel to the cloud server after the network is restored.
[0025] Preferably, the hook mechanism device specifically includes:
[0026] Electromagnetic lock mechanism, used to trigger the lock when the power bank is inserted into the compartment;
[0027] Infrared sensor detects whether the power bank is fully inserted and communicates with the cabinet mainboard.
[0028] Preferably, the rules of the reconnection and retransmission module are as follows:
[0029] The reconnection attempt interval does not exceed 3 seconds, and the maximum number of reconnection attempts is 5 times;
[0030] The instruction retransmission interval is 1 second, and the maximum number of retransmission attempts is 3 times. After exceeding, it is marked as a service failure.
[0031] Preferably, the system further includes:
[0032] A low-power Bluetooth adaptation module that switches to the low-power mode when there is no service operation and wakes up when a user-side request is detected;
[0033] A Bluetooth signal strength detection unit that automatically selects the cabinet with the optimal signal strength for connection.
[0034] According to the shared power bank borrowing and returning method of the shared charging cabinet Bluetooth borrowing and returning system provided by the present invention, it includes the following steps:
[0035] Step 1: The user scans the QR code of the cabinet through the mini program to initiate a borrowing and returning request, and the system detects the network status and switches to the Bluetooth channel;
[0036] Step 2: After establishing a Bluetooth connection, the cabinet and the user side exchange dynamic tokens to complete two-way verification;
[0037] Step 3: The encrypted instruction is sent to the cabinet to execute the operation of ejecting the power bank or reading the status of the storage port, and the execution result is fed back in real time;
[0038] Step 4: When returning, confirm the status of the power bank entering the warehouse through the hook device of the power bank to complete the offline order closed-loop.
[0039] Preferably, the method further includes: during the Bluetooth connection process, the user side displays the Bluetooth signal strength of the cabinet and the connection stability prompt in real time;
[0040] If the Bluetooth process times out or fails, it automatically switches to the cellular network to attempt to complete the service, and pushes an exception handling guide to the user.
[0041] Compared with the prior art, the present invention has the following beneficial effects:
[0042] (1) By using the Bluetooth communication protocol as a backup communication channel, when Wi-Fi or the cellular network is offline or unstable, the lending and returning operations of the power bank can still be completed, significantly reducing the risk of service stagnation caused by network interruption;
[0043] (2) Adopt a dynamic token verification mechanism and the AES-CBC encryption protocol to ensure the confidentiality of instructions during the Bluetooth communication process, prevent unauthorized access and data tampering; through a unique ID identification, timestamp verification, and response feedback mechanism, ensure the timing and integrity of instruction transmission, and avoid duplicate operations or data loss;
[0044] (3) Combine the hook mechanism of the treasure box with the bin opening state detection module to physically lock the power bank and provide real-time feedback on the in-bin state, avoiding service anomalies caused by misoperations or incomplete retractions; the infrared sensor accurately detects the position of the power bank to ensure the reliability of the return process;
[0045] (4) The user-side mini-program automatically switches to the Bluetooth channel when the network is offline, without manual intervention and with high operation fluency; the multi-user blocking strategy and Bluetooth signal strength detection function prioritize ensuring the stability of the current user's connection and reduce operation conflicts;
[0046] (5) The reconnection and retransmission module supports an automatic retry mechanism (such as a reconnection interval ≤ 3 seconds and an instruction retransmission ≤ 3 times) to effectively handle short-term Bluetooth signal interruptions or interference problems; the low-power Bluetooth adaptation module reduces power consumption when idle and extends the standby time of the cabinet machine;
[0047] (6) The Bluetooth protocol, as a common wireless communication standard, is compatible with a variety of mobile terminal devices, reducing the user's usage threshold; it supports the offline order synchronization function and automatically uploads data to the cloud after the network is restored, facilitating subsequent business management and data analysis;
[0048] (7) Bluetooth communication does not rely on external network infrastructure (such as SIM cards or routers), reducing hardware complexity and operation and maintenance costs; the blacklist management function automatically blocks malicious devices and reduces the security maintenance pressure. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] By reading the detailed description of the non-restrictive embodiments with reference to the following drawings, other features, objectives, and advantages of the present invention will become more apparent:
[0050] Figure 1 It is the schematic diagram of the Bluetooth borrowing and returning of the power bank by the cabinet machine;
[0051] Figure 2 It is the business flow chart of the Bluetooth borrowing and returning of the power bank by the cabinet machine. DETAILED DESCRIPTION OF THE INVENTION
[0052] The present invention will be described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but do not limit the present invention in any form. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present invention, several changes and improvements can still be made. These all fall within the protection scope of the present invention.
[0053] Example 1
[0054] The present invention provides a method for borrowing and returning a shared power bank of a shared charging cabinet machine Bluetooth borrowing and returning system, including:
[0055] Step 1: The cabinet machine is powered on and starts up, and Bluetooth broadcasting is performed.
[0056] Step 2: The user operates the small program to scan the code for renting. When renting, the user's mobile phone Bluetooth permission is obtained. When the cabinet machine network is offline, borrowing and returning can be performed through the Bluetooth channel.
[0057] This solution supports a shared charging cabinet machine that supports the Bluetooth protocol, and the borrowing and returning of the shared power bank can be completed through the Bluetooth channel.
[0058] After the Bluetooth function of the cabinet machine is powered on, the slave mode is defaultly turned on and Bluetooth broadcasting is performed. When the user is willing to scan the code for renting, the system will start the Bluetooth process after detecting that the cabinet machine is offline, and remind the user to obtain the Bluetooth usage permission of the user's mobile phone. After the user confirms the authorization, enter the Bluetooth connection process. First, the small program will scan the nearby Bluetooth signals and filter the whitelist signals determined by the system, and then initiate a Bluetooth connection. During the connection process, the mobile phone and the cabinet machine will interact to verify the dynamic token. The dynamic token is generated by a custom random key algorithm. When the identities of both parties are confirmed, the connection is successfully established, otherwise the connection fails and is added to the blacklist. After the connection is established, if the Bluetooth signal is unstable or other situations cause the connection to be disconnected, both ends have a reconnection mechanism to ensure that the reconnection can be completed instantly. Once the Bluetooth connection between the cabinet machine and the mobile phone is established, during the business process time period, if other users want to use the Bluetooth channel, they need to wait until the previous user releases the Bluetooth connection. Here, a blocking waiting strategy is adopted.
[0059] Further, after the user completes other processes of placing an order to borrow the power bank and finally clicks to lend out the power bank, the application system will send the power bank ejection instruction to the cabinet machine through the Bluetooth channel. The communication method between the cabinet machine and the mobile phone has AES CBC encrypted messages to ensure the confidentiality and integrity of the messages. The key has been exchanged in the pre-process of the cabinet machine startup, and the strategy of one machine one key is ensured. Each packet of data has an acknowledgment mechanism. If no acknowledgment is received, retransmission will be performed. The retransmission strategy is that retransmission will be performed if no acknowledgment is received within a regular time. The number of retransmission times is defined according to the business situation. The retransmitted messages are distinguished by a unique ID.
[0060] Furthermore, after the cabinet machine receives the message, it executes the business to perform operations such as power bank ejection or reading, and reports the power bank ejection result message after ejecting the power bank. All messages are timestamp-checked according to the unique ID and the instruction timing sequence to ensure the timing and uniqueness of the data.
[0061] Furthermore, after the user returns the power bank to the cabinet machine and the cabinet machine is offline and unable to complete the order, when the user scans the code for return and the mini-program recognizes that the cabinet machine supports Bluetooth, it will attempt to connect. After the connection is established, the system issues a command to read the information of the storage slot of the cabinet machine. After recognizing the return of the power bank, the user's order is completed. During this process, to confirm that the power bank has been properly stored in the slot, the hook of the cabinet machine hooks the power bank, ensuring that the power bank is in the correct position at the storage slot.
[0062] The above process completes the business process of lending and returning power banks via the Bluetooth communication protocol when the cabinet machine is offline.
[0063] Such as Figure 1 Figure [0000133] is the schematic diagram of borrowing and returning power banks via the cabinet machine's Bluetooth. By connecting the mobile phone's Bluetooth to the cabinet machine's Bluetooth, after a successful connection, the cabinet machine is controlled via a custom business protocol to eject the power bank and obtain the information of the storage slot of the cabinet machine.
[0064] Such as Figure 2 Figure [0000136] is the business flow diagram of borrowing and returning power banks via the cabinet machine's Bluetooth. By the user operating the mobile phone mini-program, the connection between the mobile phone's Bluetooth and the cabinet machine's Bluetooth is realized. After the connection, the intelligent platform issues an eject power bank command via the Bluetooth channel to complete the eject power bank service. An instruction to obtain the information of the storage slot is issued to complete the return service.
[0065] Embodiment 2
[0066] The present invention provides a shared charging cabinet machine Bluetooth borrowing and returning system, including:
[0067] A shared charging cabinet machine that supports the Bluetooth communication protocol. After being powered on, the cabinet machine defaults to the Bluetooth slave mode and continuously broadcasts Bluetooth signals.
[0068] A user-side mini-program for providing an entrance for borrowing and returning power banks and switching to the Bluetooth communication channel when detecting that the cabinet machine's network is offline.
[0069] A dynamic token verification module for generating a dynamic token via a custom random key algorithm before the Bluetooth connection is established to complete the two-way authentication between the cabinet machine and the user side.
[0070] An encrypted communication module that encrypts the service instructions transmitted via the Bluetooth channel using the AES-CBC encryption protocol and completes the key exchange based on the one-device-one-key strategy.
[0071] A reconnection and retransmission module for automatically triggering the reconnection mechanism when the Bluetooth signal is interrupted and retransmitting the instructions according to the preset number of retransmissions and time intervals when the data transmission fails.
[0072] The dynamic token verification module also includes: a whitelist screening mechanism, where the user-side applet is only allowed to establish a connection with Bluetooth signals in a pre-stored whitelist; a blacklist management function, which automatically adds devices that fail continuous verification to the blacklist and prohibits subsequent connection attempts.
[0073] The encryption communication module further includes: a unique ID identification mechanism, which assigns a unique ID to each packet of data and attaches a timestamp, ensuring the uniqueness and integrity of the instruction through timing verification; a response feedback mechanism, the cabinet must return a confirmation response after receiving the instruction, and if no response is received, the reconnection and retransmission module is triggered.
[0074] The shared charging cabinet also includes: a compartment status detection module, which is used to report the occupancy status of the power bank compartment in real time through the Bluetooth channel; a hook device for physically locking the returned power bank until it is detected to be in the correct compartment position, and feedback the warehouse entry completion signal through the sensor.
[0075] The user-side applet further implements: a multi-user blocking strategy, when the current user occupies the Bluetooth channel, other users need to wait for the connection to be released before initiating a request; an offline order processing function, which automatically synchronizes the borrowing and returning records completed under the Bluetooth channel to the cloud server after the network is restored.
[0076] The power bank hook device specifically includes: an electromagnetic lock mechanism, which is used to trigger locking when the power bank is inserted into the compartment; an infrared sensor, which detects whether the power bank is fully inserted and communicates with the cabinet mainboard.
[0077] The rules of the reconnection and retransmission module are: the reconnection attempt interval does not exceed 3 seconds, and the maximum number of reconnections is 5 times; the instruction retransmission interval is 1 second, and the maximum number of retransmissions is 3 times. After exceeding this limit, the service is marked as failed.
[0078] The system also includes: a low-power Bluetooth adapter module, which switches to a low-power mode when there is no business operation and wakes up when a user request is detected; a Bluetooth signal strength detection unit, which automatically selects a cabinet with the best signal strength for connection.
[0079] Those skilled in the art know that, in addition to implementing the system, device and its various modules provided by the present invention in a purely computer-readable program code, it is entirely possible to implement the same program in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers and embedded microcontrollers by logically programming the method steps. Therefore, the system, device and its various modules provided by the present invention can be considered as a hardware component, and the modules included therein for implementing various programs can also be considered as structures within the hardware component; the modules for implementing various functions can also be considered as both software programs for implementing the method and structures within the hardware component.
[0080] The specific embodiments of the present invention have been described above. It should be understood that the present invention is not limited to the above specific embodiments, and those skilled in the art can make various changes or modifications within the scope of the claims, which does not affect the essence of the present invention. Without conflict, the embodiments of the present application and the features in the embodiments can be combined with each other arbitrarily.
Claims
1. A Bluetooth borrowing and returning system for a shared charging cabinet machine, characterized in that, include: A shared charging cabinet that supports the Bluetooth communication protocol. After being powered on, the cabinet turns on the Bluetooth slave mode by default and continuously broadcasts Bluetooth. The user-side applet is used to provide an entry for borrowing and returning power banks, and switch to the Bluetooth communication channel when it detects that the cabinet network is offline; Dynamic token verification module, used to generate a dynamic token through a custom random key algorithm before establishing a Bluetooth connection, to complete two-way identity authentication between the cabinet and the user end; The encryption communication module uses the AES-CBC encryption protocol to encrypt the business instructions transmitted on the Bluetooth channel and completes the key exchange based on the one-machine-one-secret strategy; The reconnection and retransmission module is used to automatically trigger the reconnection mechanism when the Bluetooth signal is interrupted, and to retransmit the command according to the preset retransmission times and time intervals when data transmission fails.
2. The Bluetooth borrowing and returning system of the shared charging cabinet machine according to claim 1, wherein The dynamic token verification module also includes: Whitelist screening mechanism: the user-side applet is only allowed to establish a connection with Bluetooth signals in the pre-stored whitelist; Blacklist management function automatically adds devices that fail authentication continuously to the blacklist and prohibits subsequent connection attempts.
3. The Bluetooth borrowing and returning system of the shared charging cabinet machine according to claim 1, wherein, The encryption communication module further comprises: Unique ID identification mechanism, assigning a unique ID to each data packet and attaching a timestamp, ensuring the uniqueness and integrity of instructions through timing verification; Response feedback mechanism: after receiving the command, the cabinet needs to return a confirmation response. If no response is received, the reconnection and retransmission module will be triggered.
4. The Bluetooth borrowing and returning system of the shared charging cabinet machine according to claim 1, characterized in that The shared charging cabinet also includes: The warehouse status detection module is used to report the occupancy status of the power bank warehouse in real time through the Bluetooth channel; The hook mechanism device physically locks the returned power bank until it detects that it is in the correct position of the compartment, and feedbacks the completion signal of the compartment through the sensor.
5. The Bluetooth borrowing and returning system of the shared charging cabinet machine according to claim 1, wherein The user-side applet further implements: Multi-user blocking strategy: when the current user occupies the Bluetooth channel, other users need to wait for the connection to be released before initiating a request; Offline order processing function automatically synchronizes the borrowing and returning records completed under the Bluetooth channel to the cloud server after the network is restored.
6. The Bluetooth borrowing and returning system of the shared charging cabinet machine according to claim 4, characterized in that, The hook mechanism device specifically comprises: Electromagnetic lock mechanism, used to trigger the lock when the power bank is inserted into the compartment; Infrared sensor detects whether the power bank is fully inserted and communicates with the cabinet mainboard.
7. The Bluetooth borrowing and returning system of the shared charging cabinet machine according to claim 1, wherein, The rules of the reconnection and retransmission module are: The interval between reconnection attempts is no more than 3 seconds, and the maximum number of reconnections is 5; The command retransmission interval is 1 second, and the maximum number of retransmissions is 3 times. If exceeded, the service is marked as failed.
8. The Bluetooth borrowing and returning system of the shared charging cabinet machine according to claim 1, characterized in that, The system further comprises: The low-power Bluetooth adapter module switches to low-power mode when there is no business operation, and wakes up when a user request is detected; The Bluetooth signal strength detection unit automatically selects the cabinet with the best signal strength for connection.
9. A method for borrowing and returning shared power banks based on the shared charging cabinet Bluetooth borrowing and returning system according to any one of claims 1-8, characterized in that, The following steps are involved: Step 1: The user initiates a borrowing or returning request by scanning the QR code of the cabinet through the mini program. The system detects the network status and switches to the Bluetooth channel. Step 2: After establishing the Bluetooth connection, the cabinet and the user end exchange dynamic tokens to complete two-way verification; Step 3: The encrypted command is sent to the cabinet to execute the operation of launching treasure or reading the warehouse status, and the execution result is fed back in real time; Step 4: When returning the power bank, the power bank’s storage status is confirmed through the hook mechanism device to complete the offline order closed loop.
10. The method for borrowing and returning a shared power bank according to claim 9, wherein The method further includes: during the Bluetooth connection process, the user terminal displays the Bluetooth signal strength of the cabinet and the connection stability prompt in real time; If the Bluetooth process times out or fails, it automatically switches to the cellular network to attempt to complete the service and pushes an exception handling guide to the user.
Citation Information
Patent Citations
Charging cabinet interaction method, charging cabinet and storage medium
CN116071870A
Desktop type sharing charge pal equipment and charging method thereof
CN107612067A
Multi-communication-mode charging and battery replacing cabinet control system
CN111885565A
Data transmission method in Bluetooth battery replacement and battery replacement system
CN112383882A
Battery replacement cabinet and server double-offline battery replacement method and battery replacement system
CN114630307A