A working method for an off-line state of a battery swap cabinet device

By introducing Bluetooth transmission and self-testing modules into the battery swapping cabinet, normal operation is achieved even under unstable or offline network conditions, solving the problem of the battery swapping cabinet being unable to operate due to network instability and improving operational stability.

CN119428300BActive Publication Date: 2025-10-24ZHIXING NEW ENERGY TECH (ANHUI) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411599392.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-11
Publication Date
2025-10-24
Estimated Expiration
2044-11-11

AI Technical Summary

Technical Problem

In cases of network instability or outage, existing battery swapping cabinets cannot establish communication with the cloud server, preventing users from performing battery swapping operations.

Method used

An offline communication module is used to connect the user interaction device and the battery swapping cabinet via Bluetooth. Combined with an automatic detection module and a command detection module, the battery swapping cabinet can perform self-detection and execute safe operation commands in offline mode.

Benefits of technology

Ensuring the normal operation of the battery swapping cabinet during network instability or outages improves operational stability and reduces site limitations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119428300B_ABST
    Figure CN119428300B_ABST
Patent Text Reader

Abstract

The application discloses a kind of battery replacement cabinet equipment offline state working method, including user interaction device and battery replacement cabinet;The battery replacement cabinet includes offline communication module, instruction detection module and automatic detection module;The battery replacement cabinet adopts offline communication module and establishes bluetooth transmission connection with user interaction device;The battery replacement cabinet adopts automatic detection module to carry out self-detection to several battery compartments in battery replacement cabinet, obtains the state of battery in several battery compartments;The user interaction device selects battery replacement behavior, and generates operation instruction data according to battery replacement behavior;The instruction detection module detects whether operation instruction data reaches integrity and safety, and the control module in battery replacement cabinet executes battery replacement operation according to operation instruction data if yes;Normal work can be realized when battery replacement cabinet is offline, improve the stability of battery replacement cabinet operation, reduce the restriction to battery replacement cabinet site.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of battery swap cabinets, in particular to a working method of an offline state of a battery swap cabinet equipment. BACKGROUND

[0002] The battery swap equipment for two-wheeled electric vehicles, also known as a battery swap cabinet or an intelligent cabinet, is a device for providing energy supplement services for two-wheeled electric vehicles. With the popularity of two-wheeled electric vehicles, the battery swap cabinet, as an energy supplement device for two-wheeled electric vehicles, is becoming one of the urban infrastructures. The working system of the battery swap cabinet mainly includes a cloud server and a battery swap cabinet. The two communicate with each other through a network, and the current operation of the battery swap cabinet requires the user to send an opening box request to the cloud server through a mobile phone, and then the server performs logical operation and issues relevant instructions to the battery swap cabinet. This link requires good network communication support. However, when the network is unstable and intermittent or long-term network interruption occurs, the battery swap cabinet cannot establish network communication with the cloud server, and the user cannot perform the battery swap operation. SUMMARY

[0003] The present application provides a working method of an offline state of a battery swap cabinet equipment, which adopts an offline working mode to establish a Bluetooth transmission connection when the network of the battery swap cabinet is unstable and intermittent or long-term network interruption occurs, so as to realize normal work of the battery swap cabinet in the offline state and improve the stability of the battery swap cabinet operation.

[0004] Technical scheme: In order to achieve the above-mentioned purpose, the working method of an offline state of a battery swap cabinet equipment provided by the present application includes a user interactive device and a battery swap cabinet. The battery swap cabinet includes an offline communication module, an instruction detection module and an automatic detection module. The battery swap cabinet adopts the offline communication module to establish a Bluetooth transmission connection with the user interactive device. The battery swap cabinet adopts the automatic detection module to perform self-detection on a plurality of battery compartments in the battery swap cabinet, and obtains the state of the batteries in the plurality of battery compartments. The user interactive device selects a battery swap behavior and generates operation instruction data according to the battery swap behavior. The instruction detection module detects whether the operation instruction data is complete and safe. If yes, the control module in the battery swap cabinet executes the battery swap operation according to the operation instruction data.

[0005] Further, it further includes a server. The user interactive device is in bidirectional transmission connection with the server, and the server is in signal transmission connection with the battery swap cabinet.

[0006] Further, the server is in bidirectional transmission connection with the battery swap cabinet. The method includes the following steps:

[0007] Step one, using the user interactive device to identify the current battery swap cabinet, selecting a battery swap behavior, and transmitting the battery swap behavior from the user interactive device to the server to generate operation instruction data;

[0008] Step two, the server judges whether the battery swap cabinet is in an offline state; when the battery swap cabinet is in an offline state, the server transmits operation instruction data to the user interactive device, and notifies the user interactive device to connect the battery swap cabinet by Bluetooth transmission; the user interactive device transmits the operation instruction data to the offline communication module in the battery swap cabinet through Bluetooth transmission connection; the offline communication module transmits the operation instruction data to the instruction detection module in the battery swap cabinet, and the instruction detection module detects whether the operation instruction data is complete and safe; if yes, the operation instruction is transmitted to the control module in the battery swap cabinet, otherwise, the operation instruction is not transmitted; when the battery swap cabinet is in an online state, the server directly transmits the operation instruction data to the network communication module in the battery swap cabinet, and transmits to the control module;

[0009] Step three, after the control module receives the operation instruction data, the automatic detection module is used to detect each battery compartment in the battery swap cabinet, to judge whether the battery swap cabinet meets the requirements of the operation instruction; if yes, the operation is performed according to the operation instruction, otherwise, the battery swap cabinet does not execute;

[0010] Step four, after the battery swap cabinet completes the operation instruction, when the battery swap cabinet is in an offline state, the operation instruction execution result is transmitted to the user interactive device, and then transmitted to the server by the user interactive device; when the battery swap cabinet is in an online state, the operation instruction execution result is transmitted to the server; the server verifies the operation instruction execution result and saves the data, and ends the operation.

[0011] Further, in step two, the battery swap cabinet includes a network communication module and an offline communication module; when the battery swap cabinet is in an online state, the control module in the battery swap cabinet sends working data to the server through the network communication module every T1 time, and the server sends normal working instructions to the battery swap cabinet after receiving the working data; when the server does not receive data from the battery swap cabinet for more than T2 time, it is determined that the battery swap cabinet is in an offline state; when the battery swap cabinet does not receive the normal working instruction sent by the server for more than T3 time, the battery swap cabinet switches the network communication module to the offline communication module;

[0012] When the battery swap cabinet is in an offline state, the battery swap cabinet uses the offline communication module for communication, and the control module sends working data to the server through the network communication module every T1 time; when the server receives the working data, it is determined that the battery swap cabinet is in an online state; when the battery swap cabinet receives the normal working instruction from the server, the battery swap cabinet switches the offline communication module to the network communication module.

[0013] Further, in the step two, the instruction detection module checks the header and the tail of the operation instruction to determine whether the instruction is a valid instruction, determines whether the operation instruction is complete according to whether the length bit value set by the instruction is consistent with the length of the valid instruction, calculates the password value of the operation instruction according to the data content of the operation instruction, and determines whether the operation instruction is safe according to whether the password value of the operation instruction is consistent with the password value set by the corresponding instruction.

[0014] Further, in the step two, when the operation instruction is a battery taking instruction, the control module controls the automatic detection module to detect whether the batteries in the battery compartments of the battery swap cabinet have full power values, and if yes, the battery taking operation is satisfied and the battery taking operation is performed; otherwise, the battery taking operation is not performed; when the battery swap cabinet satisfies the battery taking operation, if the battery compartment is opened for more than a set time T4 and it is still detected that there is a battery in the battery compartment, it is determined that the battery taking operation fails; otherwise, it is determined that the battery taking operation succeeds.

[0015] Further, when the operation instruction is a battery taking instruction, the control module controls the automatic detection module to detect whether the batteries in the battery compartments of the battery swap cabinet have full power values, and if yes, the battery taking operation is satisfied and the battery taking operation is performed; otherwise, the battery taking operation is not performed; when the battery swap cabinet satisfies the battery taking operation, if the battery compartment is opened for more than a set time T4 and it is still detected that there is a battery in the battery compartment, it is determined that the battery taking operation fails; otherwise, it is determined that the battery taking operation succeeds.

[0016] Further, when the operation instruction is a battery taking instruction, the control module controls the automatic detection module to detect whether the batteries in the battery compartments of the battery swap cabinet have full power values, and if yes, the battery taking operation is satisfied and the battery taking operation is performed; otherwise, the battery taking operation is not performed; when the battery swap cabinet satisfies the battery taking operation, if the battery compartment is opened for more than a set time T4 and it is still detected that there is a battery in the battery compartment, it is determined that the battery taking operation fails; otherwise, it is determined that the battery taking operation succeeds.

[0017] Further, the determination of whether the battery placed in the idle battery compartment is qualified is that the codes of the batteries in the battery swap cabinet all contain electronic codes, the control module controls the automatic detection module to collect and detect the electronic codes of the battery placed in the idle battery compartment, and determines whether the battery belongs to the type of the batteries in the battery cabinet according to the electronic number of the battery, and if yes, the battery is qualified, otherwise, the battery is unqualified.

[0018] Further, the server unidirectionally transmits data to the battery swap cabinet.

[0019] Beneficial effect: The present invention provides a working method for an offline state of a battery swap cabinet device, which connects a user interaction device and a battery swap cabinet through an offline communication module, and uses an instruction detection module to detect instructions sent by a server to the battery swap cabinet through the user interaction module. This can enable the normal operation of the battery swap cabinet when it is offline, improve the stability of the operation of the battery swap cabinet, and reduce restrictions on the site of the battery swap cabinet. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 This is the working block diagram of the battery swap cabinet equipment in offline state;

[0021] Figure 2 This is a schematic diagram of the working process of the battery swap cabinet equipment. DETAILED DESCRIPTION

[0022] The present invention will be further described below with reference to the accompanying drawings.

[0023] like Figure 1 As shown, 1. A working method of a battery swap cabinet device in an offline state, characterized in that: it includes a user interaction device 2 and a battery swap cabinet 3; the battery swap cabinet 3 includes an offline communication module 34, an instruction detection module 32 and an automatic detection module 35; the battery swap cabinet 3 adopts the offline communication module 34 to establish a Bluetooth transmission connection with the user interaction device 2; the battery swap cabinet 3 adopts the automatic detection module 35 to perform self-detection on several battery compartments in the battery swap cabinet 3 to obtain the status of the batteries in the several battery compartments; the user interaction device 2 selects the battery swap behavior, and generates operation instruction data based on the battery swap behavior; the instruction detection module 34 detects whether the operation instruction data reaches integrity and security; if so, the control module 31 in the battery swap cabinet 3 performs the battery swap operation according to the operation instruction data; otherwise, the control module 31 in the battery swap cabinet 3 does not perform the battery swap operation.

[0024] The user interaction device scans the QR code on the battery swap cabinet to determine the number of the battery swap cabinet. The user interaction device selects the battery swap behavior and generates the battery swap operation instruction data according to the battery swap behavior; the user interaction device transmits the operation instruction data to the offline communication module in the battery swap cabinet, and the offline communication module transmits the operation instruction data to the instruction detection module; the instruction detection module 34 detects whether the operation instruction data reaches integrity and security. If so, the instruction detection module 34 in the battery swap cabinet 3 transmits the operation instruction data to the control module 31, otherwise the instruction detection module 34 in the battery swap cabinet 3 does not send the operation instruction data to the control module 31; the control module controls the automatic detection module 35 to perform self-detection on several battery compartments in the battery swap cabinet 3 according to the operation instruction data. When it is determined that the battery compartments in the battery swap cabinet meet the requirements of the operation instruction data, the battery swap operation is performed according to the operation instruction data, otherwise the battery swap operation is not performed, and the user interaction device is notified that the battery swap operation cannot be performed.

[0025] Also include the server 1;The user interaction device 2 is bidirectionally transmitted with the server connection, the server 1 is signal transmission connection with the battery swap cabinet 3.The user interaction device 2 generally is the app loaded in smart phone, is the tool of user and battery swap cabinet interaction, includes user login and registration, two-dimensional code scanning, battery swap process control and other functions;The offline communication module 34 is the communication of bluetooth;Operation instruction data includes operation instruction and order information.

[0026] The server 1 is bidirectionally transmitted with the battery swap cabinet 3;Including the following steps:

[0027] Step one, the user interaction device 2 is used to identify the current battery swap cabinet 3, can be identified by scanning the two-dimensional code on the battery swap cabinet 3, the code of the battery swap cabinet 3, selects the battery swap behavior, and transmits the battery swap behavior from the user interaction device 2 to the server 1, generates operation instruction data;

[0028] Step two, the server 1 judges whether the battery swap cabinet 3 is in offline state, the battery swap cabinet 3 cannot receive the data of the server 1, and the server 1 cannot receive the data of the battery swap cabinet 3, then the battery swap cabinet 3 is determined to be in offline state;When the battery swap cabinet 3 is in offline state, the server 1 transmits operation instruction data to the user interaction device 2, and notifies the user interaction device 2 to use bluetooth transmission connection with the battery swap cabinet 3;The user interaction device 2 transmits operation instruction data to the offline communication module 34 in the battery swap cabinet 3 through bluetooth transmission connection;The offline communication module 34 transmits operation instruction data to the instruction detection module 32 in the battery swap cabinet, the instruction detection module 32 detects whether the operation instruction data reaches integrity and safety, yes, then the operation instruction is transmitted to the control module 31 in the battery swap cabinet 3, otherwise, the operation instruction is not transmitted;When the battery swap cabinet 3 is in online state, the server 1 directly transmits operation instruction data to the network communication module 33 in the battery swap cabinet 3, and transmits to the control module 31;

[0029] Step three, after the control module 31 receives the operation instruction data, the automatic detection module 35 is used to detect each battery compartment in the battery swap cabinet 3, to judge whether the battery swap cabinet 3 meets the demand of operation instruction, yes, then according to the operation instruction, otherwise, the battery swap cabinet 3 does not execute;

[0030] Step four, after the battery swap cabinet 3 completes the operation instruction, when the battery swap cabinet 3 is in offline state, the operation instruction execution result is transmitted to the user interaction device 2, which is transmitted to the server 1 by the user interaction device 2;When the battery swap cabinet 3 is in online state, the operation instruction execution result is transmitted to the server 1;The server 1 verifies the operation instruction execution result and saves the data, and ends the operation.

[0031] The step two, the battery swap cabinet 3 includes network communication module 33 and offline communication module 34; when the battery swap cabinet 3 is in an online state, the control module 31 in the battery swap cabinet 3 sends working data to the server 1 through the network communication module 33 every time interval T1, and the server 1 sends a normal working instruction to the battery swap cabinet 3 after receiving the working data; when the server 1 does not receive the data of the battery swap cabinet 3 for more than time T2, it is determined that the battery swap cabinet 3 is in an offline state; when the battery swap cabinet 3 does not receive the normal working instruction sent by the server 1 for more than time T3, the battery swap cabinet 3 switches the network communication module 33 to the offline communication module 32;

[0032] When the battery swap cabinet 3 is in an offline state, the battery swap cabinet 3 uses the offline communication module 34 to communicate, and the control module 31 sends working data to the server 1 through the network communication module 33 every time interval T1; when the server 1 receives the working data, it is determined that the battery swap cabinet 3 is in an online state; when the battery swap cabinet 3 receives the normal working instruction of the server 1, the battery swap cabinet 1 switches the offline communication module 34 to the network communication module 33.

[0033] In the step two, the instruction detection module 32 verifies the header and the tail of the operation instruction to determine whether the instruction is a valid instruction, determines whether the operation instruction is complete according to whether the value of the length bit set by the instruction is consistent with the length of the valid instruction, calculates the password value of the operation instruction according to the data content of the operation instruction, and determines whether the operation instruction is safe according to whether the password value of the operation instruction is consistent with the password value set by the corresponding instruction. The operation instruction is a 16-bit hexadecimal string starting with A55A and ending with 5AA5. If the characters at the beginning and the end of the instruction are different from the header A55A and the tail 5AA5, and the length of the string is inconsistent, it is an invalid instruction, otherwise it is a valid instruction. The instruction detection module 32 uses the CRC-16 / CCITT-FALSE check algorithm to calculate the 4-bit password string between the 5th and the 9th from the end of the received instruction string, and compares it with the four data from the 8th to the 5th from the end of the instruction. If they are consistent, the password check is safe, otherwise it is not safe.

[0034] The 5th to 10th bits of the operation instruction represent the instruction type; the string between the 5th bit to the 9th bit from the end of the instruction string is used to calculate the password string, and the password string contains data for identifying the instruction type, so the four bits from the 8th bit to the 5th bit from the end will also change according to the different instruction types to match the calculated password string. At the same time, the instruction detection module is provided with a secondary password value for verifying the battery taking, battery discharging and battery replacing; the instruction detection module 32 calculates the password string according to the battery taking operation instruction, and adds the calculated password string and the four bits from the 8th bit to the 5th bit from the end in order from front to back to obtain four groups of data corresponding to the battery taking, battery discharging and battery replacing; when the operation instruction is battery taking, the obtained four groups of data are compared with the secondary password value, and when only the first group of data is inconsistent with the corresponding number in the secondary password value, it is determined that the operation instruction is battery taking and the safety is reached; when the operation instruction is battery discharging, the obtained four groups of data are compared with the secondary password value, and when only the second group of data is inconsistent with the corresponding number in the secondary password value, it is determined that the operation instruction is battery taking and the safety is reached; when the operation instruction is battery replacing, the obtained four groups of data are compared with the secondary password value, and when only the third group of data is inconsistent with the corresponding number in the secondary password value, it is determined that the operation instruction is battery taking and the safety is reached; otherwise, it is determined that the instruction is incorrect.

[0035] The automatic detection module 35 can detect the equipment running state and various key parameters in real time, including whether there is a battery in each battery compartment in the battery swap cabinet 3, the battery capacity of the battery in the battery compartment, and the electronic code of the battery in the battery compartment. In step two, when the operation instruction is a battery taking instruction, the control module 31 controls the automatic detection module 35 to detect whether the batteries in the battery compartments of the battery swap cabinet 3 exist and have full capacity, and if so, the battery taking operation is satisfied and the battery taking operation is performed; otherwise, the battery taking operation is not performed; when the battery swap cabinet 3 satisfies the battery taking operation, if the battery compartment is opened for more than a set time T4 and it is still detected that there is a battery in the battery compartment, it is determined that the full battery opening fails; otherwise, it is determined that the full battery opening succeeds. The operation instruction execution result is transmitted to the user interactive device 2 through the offline communication module 34, and then transmitted to the server 1 by the user interactive device 2; whether the full battery opening fails or succeeds, an operation instruction execution result is generated, which is transmitted to the server 1 by the user interactive device 2, and the degree of completion of the operation instruction is verified by the server 1.

[0036] When the operation instruction is the battery discharging instruction, the control module 31 controls the automatic detection module 35 to detect whether there is an idle battery compartment in the battery swapping cabinet 3, and if yes, the battery discharging operation is performed; otherwise, the battery discharging operation is not performed. When the battery swapping cabinet 3 meets the battery discharging operation, if the time for opening the battery compartment exceeds the set time T4 and it is detected that there is still no battery in the battery compartment, it is determined that the battery discharging operation fails; otherwise, it is determined that the battery discharging operation succeeds. The operation instruction execution result is transmitted to the user interactive device 2 through the offline communication module 34, and then transmitted to the server 1 by the user interactive device 2. Whether the battery discharging operation fails or succeeds, the operation instruction execution result is generated, and the result is transmitted to the server 1 by the user interactive device 2, and the degree of completion of the operation instruction is verified by the server 1.

[0037] When the operation instruction is the battery discharging instruction, the control module 31 controls the automatic detection module 35 to detect whether there is an idle battery compartment in the battery swapping cabinet 3, and if yes, the battery discharging operation is performed; otherwise, the battery discharging operation is not performed. When the battery swapping cabinet 3 meets the battery discharging operation, if the time for opening the battery compartment exceeds the set time T4 and it is detected that there is still no battery in the battery compartment, it is determined that the battery discharging operation fails; otherwise, it is determined that the battery discharging operation succeeds. The operation instruction execution result is transmitted to the user interactive device 2 through the offline communication module 34, and then transmitted to the server 1 by the user interactive device 2. Whether the battery discharging operation fails or succeeds, the operation instruction execution result is generated, and the result is transmitted to the server 1 by the user interactive device 2, and the degree of completion of the operation instruction is verified by the server 1.

[0038] The judgment of whether the battery placed in the idle battery compartment is qualified is that the codes of the batteries in the battery swapping cabinet 3 all contain electronic codes, and the control module 31 controls the automatic detection module 35 to collect and detect the electronic codes of the batteries placed in the idle battery compartment. According to the electronic codes of the batteries, it is determined whether the batteries belong to the type of the batteries in the battery swapping cabinet 3, and if yes, the batteries are qualified; otherwise, the batteries are unqualified. The electronic codes of the batteries are transmitted to the automatic detection module in the battery swapping cabinet 3 through the connection between the connection end in the battery compartment and the battery.

[0039] Embodiment one

[0040] As Figure 2As shown, the process of user using the battery swap cabinet 3 includes: the user interactive device 2 scans the two-dimensional code on a certain battery swap cabinet 3, which can be scanning the two-dimensional code of the battery swap cabinet 3 by using the APP on the mobile phone, identifying the correct code of the battery swap cabinet, selecting the battery swap operation behavior such as taking the battery, putting the battery and swapping the battery; and assembling the code of the battery swap cabinet 3 and the battery swap operation behavior into a data packet and transmitting it to the cloud server 1 through https.

[0041] The server 1 receives the request of https sent by the user interactive device 2, analyzes the received data packet, obtains the number of the battery swap cabinet and the operation behavior that needs to be swapped, generates order information and operation instruction data to be transmitted to the battery swap cabinet 3 based on the basic data, and detects whether the battery swap cabinet 3 with the code is in an online state or an offline state.

[0042] If the battery swap cabinet 3 is in an online state, the battery swap cabinet 3 communicates by using the network communication module 33 in the battery swap cabinet 3; the server 1 directly transmits the generated order information and operation instruction data to the battery swap cabinet 3, the battery swap cabinet 3 receives the order information and operation instruction sent by the server tcp, starts to execute the required logic of the instruction, and the control module 31 in the battery swap cabinet 3 performs the corresponding battery swap operation according to the received order information and operation instruction.

[0043] If the battery swap cabinet 3 is in an offline state, the battery swap cabinet 3 communicates by using the offline communication module 34 in the battery swap cabinet 3; the server 1 transmits the generated order information and operation instruction data to the user interactive device 2, the user's mobile phone app receives the order information and operation instruction replied by the server https, and the battery swap cabinet 3 is in an offline state, notifies the user to open the Bluetooth function of the mobile phone, scans the battery swap cabinet through Bluetooth, and the user interactive device 2 transmits the order information and operation instruction data to the battery swap cabinet 3 and sends the order information and operation instruction; the battery swap cabinet 3 receives the order information and operation instruction sent by the mobile phone Bluetooth through the offline communication module; the instruction detection module 32 in the battery swap cabinet 3 detects whether the operation instruction is complete and safe; after being complete and safe, the control module 3 performs the corresponding battery swap operation according to the received order information and operation instruction.

[0044] The control module 31 in the battery swap cabinet 3 generates operation instruction execution results after completing the operation instruction. At this time, it is determined again whether the current battery swap cabinet is in an offline state, that is, whether the battery swap cabinet 3 is equipped with a Bluetooth offline communication module 34. If it is in an offline state, the operation instruction execution results are sent to the user's mobile phone app through the Bluetooth communication, that is, the offline communication module. After the user's mobile phone app receives the operation instruction execution results through Bluetooth, it sends the operation instruction execution results and related data such as user information to the server 1 through an https request. Otherwise, the battery swap cabinet 3 sends the operation instruction execution results and related data such as order numbers to the server through the network communication module. After the server 1 receives the https request data packet of the user's mobile phone app or the tcp data packet of the battery swap cabinet, it verifies the order information and the results of the battery swap cabinet 3 executing the operation instruction, records the operation record and the order information in the database, and returns an end command to the user's mobile phone app.

[0045] Embodiment two

[0046] The server 1 unidirectionally transmits data to the battery swap cabinet 3. At this time, the battery swap cabinet 3 cannot transmit data to the server 1, and the battery swap cabinet 3 can only receive data sent by the server 1. By reducing the cost of the battery swap cabinet 3 by reducing some unimportant modules in the battery swap cabinet 3, the data transmission module in the battery swap cabinet 3 can be reduced, and the operator module can be reduced in each battery swap cabinet 3 to reduce operating costs. At the same time, after detecting the battery state of several battery compartments in the battery swap cabinet 3, the algorithm or module for processing and executing operation instruction data is processed according to the battery state of the several battery compartments, so as to reduce the design and installation cost. By reducing the installation cost and operating cost, the capital cost of the battery swap cabinet company is reduced.

[0047] It includes identifying the current battery swap cabinet 3 by using the user interaction device 2, selecting the battery swap behavior, and transmitting the battery swap behavior from the user interaction device 2 to the server 1. The control module 31 in the battery swap cabinet 3 controls the automatic detection module 25 to collect the state data of each battery compartment of the current battery swap cabinet 3, and transmits the state data to the server 1 through the user interaction device 2. The server 1 generates operation instruction data for opening the battery compartment of the battery swap cabinet 3 that meets the battery swap behavior according to the battery swap behavior and the state data of each battery compartment of the battery swap cabinet 3. The server 1 transmits the operation instruction data to the user interaction device 2, and the user interaction device 2 transmits the operation instruction data to the offline communication module 34 in the battery swap cabinet 3 through Bluetooth. The offline communication module 34 transmits the operation instruction data to the instruction detection module 32. The instruction detection module 32 detects whether the operation instruction data meets the integrity and safety. If yes, the operation instruction is transmitted to the control module 31 in the battery swap cabinet 3. Otherwise, the operation instruction is not transmitted.

[0048] When the server 1 cannot transmit the operation instruction data to the battery swap cabinet 3 through the user interactive device 2, the reason why the server 1 cannot transmit the operation instruction data to the battery swap cabinet 3 through the user interactive device 2 is determined.

[0049] When the user interactive device 2 can receive the operation instruction data of the server 1, but cannot transmit the operation instruction data to the offline communication module 34 in the battery swap cabinet 3, it is determined that the reason is that the Bluetooth of the user interactive device 2 is disconnected. At this time, the user may disconnect the Bluetooth, or the user may have left the battery swap cabinet 3. At this time, the server 1 can transmit a warning signal to the battery swap cabinet 3, temporarily suspend opening the battery compartment in the battery swap cabinet 3, and remind the user to open the Bluetooth and establish a Bluetooth transmission connection with the battery swap cabinet 3 on the display device of the battery swap cabinet 3. Alternatively, the server 1 can send a notification to the user interactive device 2 to open the Bluetooth, so that the user opens the Bluetooth. The server 1 transmits the operation instruction data to the battery swap cabinet 3 through the user interactive device 2 is realized.

[0050] When the user immediately opens the Bluetooth, the offline communication module of the battery swap cabinet 3 establishes a Bluetooth transmission connection with the user interactive device 2, and the user interactive device 2 transmits the operation instruction data to the offline communication module 34 in the battery swap cabinet 3 by Bluetooth. The offline communication module 34 transmits the operation instruction data to the instruction detection module 32. The instruction detection module 32 detects whether the operation instruction data meets the integrity and safety. If yes, the operation instruction is transmitted to the control module 31 in the battery swap cabinet 3. The control module opens the corresponding battery compartment in the battery swap cabinet according to the operation instruction data, and performs the battery swap operation.

[0051] When the user does not open the Bluetooth within a period of time, or the user interactive device cannot be connected with the battery swap cabinet when the Bluetooth is opened, it is determined that the user does not need to open the battery compartment in the battery swap cabinet or the user has left the battery swap cabinet 3, and the battery compartment in the battery swap cabinet is not opened. The battery in the battery swap cabinet is protected, and loss does not occur.

[0052] When the user interactive device 2 cannot receive the operation instruction data of the server 1, it is determined that the reason is that the network data of the user interactive device 2 is disconnected. At this time, the user interactive device 2 of the user may be disconnected from the network data, the network may be undercharged, or the user interactive device 2 may be shut down, etc. At this time, the server 1 can transmit a warning signal to the battery swap cabinet 3, and temporarily suspend opening the battery compartment in the battery swap cabinet 3.

[0053] When the user opens the network data, at this time the battery replacement cabinet and the user interaction device establish a Bluetooth transmission connection, then the server 1 cannot transmit the operation instruction data to the battery replacement cabinet 3 through the user interaction device 2, the user interaction device 2 transmits the operation instruction data to the offline communication module 34 in the battery replacement cabinet 3 by Bluetooth, the offline communication module 34 transmits the operation instruction data to the instruction detection module 32, the instruction detection module 32 detects whether the operation instruction data reaches the integrity and safety, yes, then transmits the operation instruction to the control module 31 in the battery replacement cabinet 3, the control module opens the corresponding battery compartment in the battery replacement cabinet according to the operation instruction data, and executes the battery replacement operation;

[0054] When the user cannot open the network data, the server 1 sends a notification to the network communication module in the battery replacement cabinet 3 whether to continue to execute the operation instruction data, and displays on the display device of the battery replacement cabinet, the user clicks to determine to continue to execute the operation instruction data, and needs to input the number of the user interaction device into the display device in the battery replacement cabinet to confirm the identity of the user, the number of the user interaction device can be a mobile phone number, after confirming the identity of the user, the server directly transmits the operation instruction to the battery replacement cabinet, and the control module executes the battery replacement operation according to the operation instruction data, but at this time the server sends the operation instruction data to the battery replacement cabinet, records the code or IP of the user interaction device, and when the user opens the network data of the user interaction device, sends a notification to determine whether the user takes the battery, so as to ensure the safety of the battery in the battery replacement cabinet and avoid economic loss.

[0055] The above is only the description of the preferred embodiment of the application, and those skilled in the art can make some modifications and optimizations according to the above disclosure without departing from the above basic principles, and these modifications and optimizations should be regarded as the protection scope of the application.

Claims

1. A method for working in an offline state of a battery swap cabinet device, characterized in that: The application relates to a battery replacement system, which comprises a user interaction device and a battery replacement cabinet; the battery replacement cabinet comprises an offline communication module, an instruction detection module and an automatic detection module; the battery replacement cabinet adopts the offline communication module to establish a Bluetooth transmission connection with the user interaction device; the automatic detection module is used for self-detecting a plurality of battery compartments in the battery replacement cabinet to obtain the states of the batteries in the battery compartments; the user interaction device selects a battery replacement behavior and generates operation instruction data according to the battery replacement behavior; the instruction detection module detects whether the operation instruction data reaches integrity and safety; if yes, a control module in the battery replacement cabinet executes the battery replacement operation according to the operation instruction data; The application further relates to a server; the user interaction device is in bidirectional transmission connection with the server, and the server is in signal transmission connection with the battery replacement cabinet; The server is in bidirectional transmission connection with the battery replacement cabinet; the application comprises the following steps: Step one: a user interaction device is used to identify a current battery replacement cabinet, select a battery replacement behavior, and transmit the battery replacement behavior to a server from the user interaction device to generate operation instruction data; Step two: the server judges whether the battery replacement cabinet is in an offline state; when the battery replacement cabinet is in the offline state, the server transmits the operation instruction data to the user interaction device and informs the user interaction device to adopt Bluetooth transmission to connect the battery replacement cabinet; the user interaction device transmits the operation instruction data to the offline communication module in the battery replacement cabinet through the Bluetooth transmission; the offline communication module transmits the operation instruction data to the instruction detection module in the battery replacement cabinet; the instruction detection module detects whether the operation instruction data reaches integrity and safety; if yes, the operation instruction is transmitted to the control module in the battery replacement cabinet; if not, the operation instruction is not transmitted; when the battery replacement cabinet is in an online state, the server directly transmits the operation instruction data to the network communication module in the battery replacement cabinet and to the control module; Step three: after receiving the operation instruction data, the control module adopts the automatic detection module to detect each battery compartment in the battery replacement cabinet and judges whether the battery replacement cabinet meets the demand of the operation instruction; if yes, the operation instruction is executed; if not, the battery replacement cabinet is not executed; Step four: after the battery replacement cabinet completes the operation instruction, when the battery replacement cabinet is in the offline state, the operation instruction execution result is transmitted to the user interaction device and then to the server; when the battery replacement cabinet is in the online state, the operation instruction execution result is transmitted to the server; the server verifies the operation instruction execution result and saves the data, and the operation is ended; In the step two, the instruction detection module verifies the header and the tail of the operation instruction to judge whether the instruction is a valid instruction; whether the operation instruction reaches integrity is judged according to whether the value of the length bit set according to the instruction is consistent with the length of the valid instruction; the password value of the operation instruction is calculated according to the operation instruction data content; whether the operation instruction reaches safety is judged according to whether the password value of the operation instruction is consistent with the password value set according to the corresponding instruction; The operation instruction is a 16 hexadecimal string starting with A55A and ending with 5AA5; if the characters at the beginning and the end of the instruction are different from the header A55A and the tail 5AA5 and the length of the string is inconsistent, the instruction is an invalid instruction; otherwise, the instruction is a valid instruction. The instruction detection module uses a CRC-16 / CCITT-FALSE checking algorithm to calculate a 4-bit length password string from the string between the 5th and the 9th last bits of the received instruction string, and compares the 4-bit data from the 8th last bit to the 5th last bit of the operation instruction to determine whether they are consistent; if they are consistent, the password verification is safe, otherwise it is not safe; The 4-bit data from the 8th last bit to the 5th last bit is changed according to the type of the instruction to match the calculated password string; the instruction detection module is provided with a secondary password value for taking out the battery, putting in the battery and replacing the battery; the instruction detection module calculates the password string from the operation instruction for taking out the battery, and adds the calculated password string and the 4-bit data from the 8th last bit to the 5th last bit in sequence from front to back to obtain four groups of data corresponding to taking out the battery, putting in the battery and replacing the battery; When the operation instruction is for taking out the battery, the four groups of data are compared with the secondary password value, and if only the first group of data is inconsistent with the corresponding number in the secondary password value, it is determined that the operation instruction for taking out the battery is safe; when the operation instruction is for putting in the battery, the four groups of data are compared with the secondary password value, and if only the second group of data is inconsistent with the corresponding number in the secondary password value, it is determined that the operation instruction for putting in the battery is safe; when the operation instruction is for replacing the battery, the four groups of data are compared with the secondary password value, and if only the third group of data is inconsistent with the corresponding number in the secondary password value, it is determined that the operation instruction for replacing the battery is safe; otherwise, it is determined that the instruction is incorrect.

2. The offline working method of a battery swap cabinet device according to claim 1, characterized in that: In step two, the battery replacement cabinet includes a network communication module and an offline communication module; when the battery replacement cabinet is in an online state, the control module in the battery replacement cabinet sends working data to the server through the network communication module every T1 time, and the server sends a normal working instruction to the battery replacement cabinet after receiving the working data; if the server does not receive data from the battery replacement cabinet for more than T2 time, it is determined that the battery replacement cabinet is in an offline state; if the battery replacement cabinet does not receive the normal working instruction sent by the server for more than T3 time, the battery replacement cabinet switches the network communication module to the offline communication module; When the battery replacement cabinet is in an offline state, the battery replacement cabinet uses the offline communication module for communication, and the control module sends working data to the server through the network communication module every T1 time; when the server receives the working data, the server determines that the battery replacement cabinet is in an online state; when the battery replacement cabinet receives the normal working instruction from the server, the battery replacement cabinet switches the offline communication module to the network communication module. 3.The method of claim 1, wherein: In the second step, when the operation instruction is a battery taking instruction, the control module controls the automatic detection module to detect whether the batteries in the battery compartments of the battery swap station have full power values. If yes, the battery taking operation is satisfied and the battery taking operation is performed. If not, the battery taking operation is not performed. When the battery swap station satisfies the battery taking operation, if the battery compartment is opened for more than a set time T4 and a battery is still detected in the battery compartment, it is determined that the battery taking operation fails. Otherwise, it is determined that the battery taking operation succeeds.

4. The method of claim 1, wherein: When the operation instruction is a battery discharging instruction, the control module controls the automatic detection module to detect whether the battery compartments of the battery swap station have idle battery compartments. If yes, the battery discharging operation is satisfied and the battery discharging operation is performed. If not, the battery discharging operation is not performed. When the battery swap station satisfies the battery discharging operation, if the battery compartment is opened for more than a set time T4 and no battery is detected in the battery compartment, it is determined that the battery discharging operation fails. Otherwise, it is determined that the battery discharging operation succeeds.

5. The working method of the offline state of the battery swap cabinet device according to claim 4, characterized in that: When the operation instruction is a battery swapping instruction, the control module controls the automatic detection module to detect whether the battery compartments of the battery swap station have idle battery compartments and whether the batteries in the battery compartments have full power values. If yes, the battery swapping operation is satisfied and the battery swapping operation is performed. If not, the battery swapping operation is not performed. When the battery swap station satisfies the battery swapping operation, if the idle battery compartment is opened for more than a set time T4 and no battery is detected in the battery compartment, it is determined that the battery swapping operation fails. Otherwise, it is determined whether the battery placed in the idle battery compartment is qualified. If yes, the battery compartment of the battery with full power is opened. If the battery compartment is opened for more than a set time T4 and a battery is still detected in the battery compartment, it is determined that the battery swapping operation fails. Otherwise, it is determined that the battery swapping operation succeeds.

6. The working method of the offline state of the battery swap cabinet device according to claim 5, characterized in that: The control module controls the automatic detection module to collect and detect the electronic code of the battery placed in the idle battery compartment. According to the electronic code of the battery, it is determined whether the battery belongs to the type of the battery in the battery swap station. If yes, the battery is qualified. If not, the battery is unqualified.

7. The working method of the offline state of the battery swap cabinet device according to claim 1, characterized in that: The server unidirectionally transmits data to the battery swap station.

Citation Information

Patent Citations

  • Data transmission method and device, equipment and computer storage medium

    CN110647490A

  • Off-line battery replacement method and system of battery replacement cabinet, terminal and storage medium

    CN113232548A