Data acquisition method and system of portable power supply

By using Bluetooth connections between the device and the mobile terminal, and MQTT connections between the mobile terminal and the platform, data transmission is performed through an intermediate layer, which solves the problem of difficult maintenance on the APP side and enables rapid access to portable power supplies and stable data acquisition.

CN121619332APending Publication Date: 2026-03-06CONTEMPORARY NEBULA TECH ENERGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511580193.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2022-11-23
Publication Date
2026-03-06

AI Technical Summary

Technical Problem

In existing technologies, the APP needs to maintain data protocols for both the device and the platform separately, which makes device access difficult and maintenance tasks heavy.

Method used

The device establishes a Bluetooth connection with the mobile device, and the mobile device establishes an MQTT connection with the platform. Data transmission is handled by the middle layer, and the data protocol is determined and maintained by the device and the platform. The APP does not need to be updated.

Benefits of technology

It enables rapid device access and data collection, reduces the maintenance tasks on the APP, and ensures the stability and effectiveness of data communication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121619332A_ABST
    Figure CN121619332A_ABST
Patent Text Reader

Abstract

The invention discloses a data acquisition method and system for a portable power supply, and the method comprises the steps: receiving a Bluetooth connection request of a mobile terminal through an equipment terminal, and building Bluetooth connection with the mobile terminal; the equipment end sends authentication information, testament information and subscription themes to the mobile end through Bluetooth connection, and the mobile end establishes MQTT connection with the platform end according to the authentication information and the testament information and subscribes the themes; the device end sends a published message and an MQTT message to the platform end through Bluetooth connection with the mobile end and MQTT connection between the mobile end and the platform end, and receives subscription information issued by the platform end; bluetooth communication is established between an equipment end and a mobile end, the mobile end is only used as a middle layer to send a message issued by the equipment end to a platform end through MQTT, receives a message issued by the platform end and transparently transmits the message to the equipment end, data acquisition of the portable power supply is realized, a data protocol is determined and maintained by the equipment end and the platform end, the maintenance task of an APP end is reduced, and the maintenance efficiency of the portable power supply is improved. And rapid access of the equipment is realized.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This case is a divisional application of the patent application filed on November 23, 2022, with application number 202211470667.9 and titled "A Data Acquisition Method and System for a Portable Power Supply". Technical Field

[0002] This invention relates to the field of electrical equipment data acquisition technology, and in particular to a data acquisition method and system for a portable power supply. Background Technology

[0003] With societal development, outdoor power consumption scenarios will increase, making portable power supplies the optimal choice for these activities. Manufacturers need to collect data on portable power supply usage in various scenarios to analyze the data and improve products, providing a better user experience. The current workflow involves the device transmitting data to the app (mobile application), which then transmits it to the platform. When a device connects, the app needs to maintain two sets of data protocols: one between the app and the device, and another between the app and the platform. When other types of devices need to connect, new data protocols must be maintained, making app maintenance difficult and hindering rapid device connection. Summary of the Invention

[0004] The technical problem to be solved by the present invention is to provide a data acquisition method and system for portable power supplies, which reduces the maintenance tasks of mobile devices and enables devices to connect and acquire data more quickly.

[0005] To solve the above-mentioned technical problems, the technical solution adopted by the present invention is as follows: A data acquisition method for a portable power supply includes the following steps: S1. The device receives the Bluetooth connection request from the mobile device and establishes a Bluetooth connection with the mobile device. S2. The device sends authentication information, will information, and subscribed topics to the mobile terminal via Bluetooth connection. The mobile terminal establishes an MQTT connection with the platform based on the authentication information and the will information, and subscribes to topics. S3. The device sends publish messages and MQTT messages to the platform via Bluetooth connection with the mobile terminal and MQTT connection between the mobile terminal and the platform terminal, and receives subscription information from the platform terminal. Step S1 specifically involves: the device receiving a Bluetooth connection request from the mobile device, establishing a Bluetooth connection with the mobile device, and the mobile device subscribing to the Bluetooth feature values ​​of the device; the subscribed Bluetooth features include read features and write features, and the mobile device listens for read features; the mobile device obtains the device status in real time by listening for read features, displays it on the screen, and uploads it to the platform via MQTT; the platform sends instructions to the mobile device via MQTT, and the mobile device writes the instructions sent by the platform by writing feature values.

[0006] To solve the above-mentioned technical problems, another technical solution adopted by the present invention is as follows: A portable power supply data acquisition system includes a device terminal, a mobile terminal, and a platform terminal. The device terminal includes a first processor, a first memory, and a computer program stored in the first memory and executable on the first processor. The mobile terminal includes a second processor, a second memory, and a computer program stored in the second memory and executable on the second processor. When the first processor executes the first computer program, it performs the following steps: S1. Receive the Bluetooth connection request from the mobile device and establish a Bluetooth connection with the mobile device; S2. Send authentication information, will information, and subscribed topics to the mobile device via Bluetooth connection; S3. Through Bluetooth connection with the mobile terminal and MQTT connection between the mobile terminal and the platform, send publish messages and MQTT messages to the platform and receive subscription information from the platform. When the second processor executes the second computer program, it performs the following steps: S2. Establish an MQTT connection with the platform based on the authentication information and the will information, and subscribe to topics; When the first processor executes the first computer program, step S1 includes: Receive Bluetooth connection requests from mobile devices and establish Bluetooth connections with them; When the second processor executes the second computer program, step S1 includes: The mobile device subscribes to the Bluetooth signature values ​​of the device. The subscribed Bluetooth features include read features and write features. The mobile device listens for and reads the features. The mobile device obtains the device status in real time by listening for and reading the features, displays it on the screen, and uploads it to the platform via MQTT. The platform sends commands to the mobile device via MQTT, and the mobile device writes the commands sent by the platform by writing the feature values.

[0007] The beneficial effects of this invention are as follows: The portable power bank data acquisition method and system of this invention establishes Bluetooth communication between the device and a mobile terminal. The mobile terminal establishes an MQTT message with the platform based on the authentication and will messages provided by the device. It acts only as an intermediary layer, sending messages published by the device to the platform via MQTT and receiving messages from the platform and transmitting them back to the device via Bluetooth. In this way, data acquisition of the portable power bank is performed. The data protocol is determined and maintained by the device and the platform, eliminating the need for the APP to update the data protocol, thus reducing the maintenance workload of the APP and enabling rapid device access. Simultaneously, after establishing a Bluetooth communication connection with the device, the mobile terminal subscribes to its Bluetooth signature value, ensuring that the mobile terminal is promptly notified of changes in the device's Bluetooth signature value, thereby guaranteeing effective and stable data communication. Attached Figure Description

[0008] Figure 1 This is a flowchart of a data acquisition method for a portable power supply according to an embodiment of the present invention; Figure 2 This is a structural diagram of a portable power supply data acquisition system according to an embodiment of the present invention; Figure 3 This is a timing diagram illustrating the communication connection steps of a data acquisition method for a portable power supply according to an embodiment of the present invention. Figure 4 This is a schematic timing diagram of some data communication steps of a data acquisition method for a portable power supply according to an embodiment of the present invention; Label Explanation: 1. A data acquisition system for a portable power supply; 2. Device end; 3. First processor; 4. First memory; 5. Mobile end; 6. Second processor; 7. Second memory; 8. Platform end. Detailed Implementation

[0009] To explain in detail the technical content, objectives, and effects of the present invention, the following description is provided in conjunction with the embodiments and accompanying drawings.

[0010] Please refer to Figure 1 as well as Figure 3 and Figure 4 A data acquisition method for a portable power supply, comprising the following steps: S1. The device receives the Bluetooth connection request from the mobile device and establishes a Bluetooth connection with the mobile device. S2. The device sends authentication information, will information, and subscribed topics to the mobile terminal via Bluetooth connection. The mobile terminal establishes an MQTT connection with the platform based on the authentication information and the will information, and subscribes to topics. S3. The device sends the first message to the mobile terminal via Bluetooth connection, and the mobile terminal pushes the first message to the platform terminal via MQTT, and receives the second message sent by the platform terminal and transmits it to the device terminal.

[0011] As can be seen from the above description, the beneficial effects of the present invention are as follows: The portable power supply data acquisition method and system of the present invention establishes Bluetooth communication between the device and the mobile terminal. The mobile terminal establishes MQTT messages with the platform based on the authentication message and will message provided by the device. It only acts as an intermediary layer to send messages published by the device to the platform via MQTT, and to receive messages sent by the platform and transmit them to the device via Bluetooth. The data protocol is determined and maintained by the device and the platform. The APP does not need to update the data protocol, which reduces the maintenance task of the APP and enables rapid device access.

[0012] Furthermore, step S3 is followed by the following step: The mobile device requests WiFi information from the device, receives the response message from the device, and displays it. The mobile device sends a WiFi information setting request to the device to configure the WiFi information on the device. The device updates the WiFi information according to the WiFi setting request and returns the update result to the mobile device.

[0013] As described above, in scenarios with WiFi available, the above steps are used to configure the device for network connectivity.

[0014] Furthermore, the preset Bluetooth communication format between the device and the mobile terminal is as follows: Frame header, instruction ID, data length, data, CRC checksum, and frame trailer; The frame header is 2 bytes, the instruction ID is 1 byte, the data length is 2 bytes, the CRC checksum is 2 bytes, and the frame tail is 1 byte.

[0015] As described above, the Bluetooth communication between the device and the mobile device has a preset communication format, which includes a CRC checksum, enabling both devices to verify the validity of the information.

[0016] Further, step S1 specifically includes: The device receives a Bluetooth connection request from the mobile device, establishes a Bluetooth connection with the mobile device, and the mobile device subscribes to the Bluetooth feature values ​​of the device.

[0017] As described above, after establishing a Bluetooth communication connection with the device, the mobile terminal subscribes to its Bluetooth feature values. This ensures that the mobile terminal is promptly notified of changes in the device's Bluetooth feature values, thereby guaranteeing effective and stable data communication. The subscribed Bluetooth features include read and write features. The mobile terminal listens for and reads these features to obtain the device's status in real time, displays it on the screen, and uploads it to the platform via MQTT. The platform sends commands to the mobile terminal via MQTT, and the mobile terminal writes these commands to the platform using the write feature values.

[0018] Further, step S3 includes the following steps: S31. The device sends a publishing message to the mobile terminal via Bluetooth connection. The mobile terminal stores and displays the publishing message and transmits the publishing message to the platform terminal via MQTT connection. S32. The mobile terminal receives the response message returned by the platform through the MQTT connection and transmits it to the device terminal. S33. The mobile terminal receives the subscription message sent by the platform through the MQTT connection, and transmits the subscription message to the device through the Bluetooth connection. S34. The device performs an operation based on the subscribed message, packages an MQTT message, and sends it to the mobile terminal via Bluetooth. The mobile terminal then transmits the message to the platform via MQTT.

[0019] As described above, the device and platform communicate with each other through Bluetooth connection between the device and the mobile terminal, and MQTT connection between the mobile terminal and the platform.

[0020] Please refer to Figure 2 A portable power supply data acquisition system includes a device terminal, a mobile terminal, and a platform terminal. The device terminal includes a first processor, a first memory, and a computer program stored in the first memory and executable on the first processor. The mobile terminal includes a second processor, a second memory, and a computer program stored in the second memory and executable on the second processor. When the first processor executes the first computer program, it performs the following steps: S1. Receive the Bluetooth connection request from the mobile device and establish a Bluetooth connection with the mobile device; S2. Send authentication information, will information, and subscribed topics to the mobile device via Bluetooth connection; S3. Through Bluetooth connection with the mobile terminal and MQTT connection between the mobile terminal and the platform, send publish messages and MQTT messages to the platform and receive subscription information from the platform. When the second processor executes the second computer program, it performs the following steps: S2. Establish an MQTT connection with the platform based on the authentication information and the will information, and subscribe to topics.

[0021] As can be seen from the above description, the beneficial effects of the present invention are as follows: The portable power supply data acquisition method and system of the present invention establishes Bluetooth communication between the device and the mobile terminal. The mobile terminal establishes MQTT messages with the platform based on the authentication message and will message provided by the device. It only acts as an intermediary layer to send messages published by the device to the platform via MQTT, and to receive messages sent by the platform and transmit them to the device via Bluetooth. The data protocol is determined and maintained by the device and the platform. The APP does not need to update the data protocol, which reduces the maintenance task of the APP and enables rapid device access.

[0022] Furthermore, when the second processor executes the second computer program, step S3 is followed by the following step: Request WiFi information from the device, receive the response message from the device and display it; Send a WiFi information setting request to the device to configure the WiFi information on the device. When the first processor executes the first computer program, the process after step S3 further includes the following steps: Based on the WiFi settings request, update the WiFi information and return the update result to the mobile device.

[0023] As described above, in scenarios with WiFi available, the above steps are used to configure the device for network connectivity.

[0024] Furthermore, the preset Bluetooth communication format between the device and the mobile terminal is as follows: Frame header, instruction ID, data length, data, CRC checksum, and frame trailer; The frame header is 2 bytes, the instruction ID is 1 byte, the data length is 2 bytes, the CRC checksum is 2 bytes, and the frame tail is 1 byte.

[0025] As described above, the Bluetooth communication between the device and the mobile device has a preset communication format, which includes a CRC checksum, enabling both devices to verify the validity of the information.

[0026] Further, when the first processor executes the first computer program, step S1 includes: Receive Bluetooth connection requests from mobile devices and establish Bluetooth connections with them; When the second processor executes the second computer program, step S1 includes: The mobile device subscribes to the Bluetooth signature of the device.

[0027] As described above, after establishing a Bluetooth communication connection with the device, the mobile terminal subscribes to its Bluetooth feature values. This ensures that the mobile terminal is promptly notified of changes in the device's Bluetooth feature values, thereby guaranteeing effective and stable data communication. The subscribed Bluetooth features include read and write features. The mobile terminal listens for and reads these features to obtain the device's status in real time, displays it on the screen, and uploads it to the platform via MQTT. The platform sends commands to the mobile terminal via MQTT, and the mobile terminal writes these commands to the platform using the write feature values.

[0028] Further, when the first processor executes the first computer program, step S3 includes the following steps: S31. Send a publishing message to the mobile terminal via Bluetooth connection. The mobile terminal stores and displays the publishing message and transmits the publishing message to the platform terminal via MQTT connection. S34. Perform the operation according to the subscribed message, and package the MQTT message and send it to the mobile terminal via Bluetooth connection. The mobile terminal then transmits the message to the platform via MQTT connection. When the second processor executes the second computer program, step S3 includes the following steps: S32. Receive the response message returned by the platform through the MQTT connection and pass it through to the device. S33. Receive subscription messages sent by the platform via MQTT connection, and transmit the subscription messages to the device via Bluetooth connection.

[0029] As described above, the device and platform communicate with each other through Bluetooth connection between the device and the mobile terminal, and MQTT connection between the mobile terminal and the platform.

[0030] The present invention provides a data acquisition method and system for portable power supplies, applicable to scenarios where manufacturers collect data on the use of portable power supplies in different situations via mobile devices.

[0031] Please refer to Figure 1 , Figure 3 and Figure 4 Embodiment 1 of the present invention is as follows: A data acquisition method for a portable power supply includes the following steps: S1. The device receives a Bluetooth connection request from the mobile device and establishes a Bluetooth connection with the mobile device; step S1 specifically includes: The device receives a Bluetooth connection request from the mobile device, establishes a Bluetooth connection with the mobile device, and the mobile device subscribes to the Bluetooth feature values ​​of the device.

[0032] The preset Bluetooth communication format between the device and the mobile terminal is as follows: Frame header, instruction ID, data length, data, CRC checksum, and frame trailer; The frame header is 2 bytes, the instruction ID is 1 byte, the data length is 2 bytes, the CRC checksum is 2 bytes, and the frame tail is 1 byte.

[0033] In this embodiment, the APP (mobile terminal) and the device transmit data via Bluetooth packet segmentation. To prevent packet loss and abnormal data, the message format is agreed upon as shown in Table 1 below: Table 1

[0034] Receiving a message with a header of 0xA5A5 indicates the start of a data frame, and receiving a message with a tail of 0xAA indicates the end of a data frame. The integrity of the data is then verified by a CRC algorithm.

[0035] In this embodiment, the device side refers to the portable power supply, and the platform side refers to the equipment of the manufacturer.

[0036] S2. The device sends authentication information, will information, and subscribed topics to the mobile terminal via Bluetooth connection. The mobile terminal establishes an MQTT connection with the platform based on the authentication information and the will information, and subscribes to topics.

[0037] In this embodiment, the device transmits the username, password, clientId, and will message to the app via Bluetooth. After receiving the signal from the device initiating an MQTT connection, the app uses the username, password, clientId, and will message to connect to the platform via MQTT. The device informs the app of the topics required for communication with the platform, including topics for the app to send messages to the platform and topics the app needs to subscribe to. These topics are maintained by both the device and the platform for communication between the app and the platform.

[0038] S3. The device sends publish messages and MQTT messages to the platform via Bluetooth connection with the mobile terminal and MQTT connection between the mobile terminal and the platform terminal, and receives subscription information from the platform terminal. Step S3 includes the following steps: S31. The device sends a publishing message to the mobile terminal via Bluetooth connection. The mobile terminal stores and displays the publishing message and transmits the publishing message to the platform terminal via MQTT connection. S32. The mobile terminal receives the response message returned by the platform through the MQTT connection and transmits it to the device terminal. S33. The mobile terminal receives the subscription message sent by the platform through the MQTT connection, and transmits the subscription message to the device through the Bluetooth connection. S34. The device performs an operation based on the subscribed message, packages an MQTT message, and sends it to the mobile terminal via Bluetooth. The mobile terminal then transmits the message to the platform via MQTT.

[0039] In this embodiment, it can be referred to Figure 3 and Figure 4 The device sends information to the app, which then sends information to the platform via an MQTT connection using a designated message topic. The app, through its subscribed topics, receives information from the platform via MQTT and then transmits it to the device via Bluetooth, enabling the platform to control the device.

[0040] In this embodiment, all the messages in the above steps are sent in a question-and-answer format. For example, after the APP receives a message from the device, it will send a response message to the device to inform it that it has received the message. If the device does not receive a response message within a certain period of time, it will send the message to the APP again, repeating this process three times.

[0041] When data collection for portable power supplies is required, the above communication methods can be used for interactive data collection.

[0042] Please refer to Figure 4 Embodiment two of the present invention is as follows: A data acquisition method for a portable power supply, differing from Embodiment 1, in that, after step S3, it further includes the following step: The mobile app requests WiFi information from the device, receives the response message from the device, and displays it. The mobile device sends a WiFi information setting request to the device to configure the WiFi information on the device. The device updates the WiFi information according to the WiFi setting request and returns the update result to the mobile device.

[0043] Please refer to Figure 2 Embodiment 3 of the present invention is as follows: A data acquisition system for a portable power supply includes a device terminal, a mobile terminal, and a platform terminal. The device terminal includes a first processor, a first memory, and a computer program stored in the first memory and executable on the first processor. The mobile terminal includes a second processor, a second memory, and a computer program stored in the second memory and executable on the second processor. When the first processor executes the first computer program, and when the second processor executes the second computer program, they jointly implement the steps in the data acquisition method for a portable power supply according to Embodiment 1 or 2 above.

[0044] In summary, the portable power bank data acquisition method and system provided by this invention establishes Bluetooth communication between the device and the mobile terminal. The mobile terminal establishes an MQTT message with the platform based on the authentication message and will message provided by the device, and acts only as an intermediary layer to send messages published by the device to the platform via MQTT, and to receive messages sent by the platform and transmit them to the device via Bluetooth. In this way, data acquisition of the portable power bank is performed. The data protocol is determined and maintained by the device and the platform, and the APP does not need to update the data protocol, which reduces the maintenance task of the APP and enables rapid device access.

[0045] The above description is merely an embodiment of the present invention and does not limit the patent scope of the present invention. Any equivalent modifications made based on the content of the present invention specification and drawings, or direct or indirect applications in related technical fields, are similarly included within the patent protection scope of the present invention.

Claims

1. A data acquisition method for a portable power source, characterized by, The method comprises the steps of: S1, the device end receives the Bluetooth connection request of the mobile end, and establishes Bluetooth connection with the mobile end; S2, the device end sends authentication information, will information and subscription topic to the mobile end through Bluetooth connection, and the mobile end establishes MQTT connection with the platform end according to the authentication information and the will information, and subscribes to the topic; S3, the device end sends the publishing message and MQTT message to the platform end through Bluetooth connection with the mobile end and MQTT connection between the mobile end and the platform end, and receives the subscription information issued by the platform end; The step S1 is specifically that the device end receives the Bluetooth connection request of the mobile end, establishes Bluetooth connection with the mobile end, and the mobile end subscribes to the Bluetooth characteristic value of the device end; The subscribed Bluetooth characteristic includes reading characteristic and writing characteristic, and the mobile end listens to the reading characteristic; The mobile end obtains the state of the device by listening to the reading characteristic, displays it on the screen and uploads it to the platform through MQTT; The platform issues instructions to the mobile end through MQTT, and the mobile end writes the instructions issued by the platform through the writing characteristic value.

2. The data collection method of claim 1, wherein, The step S3 further comprises the steps of: The mobile end requests the device end to read WiFi information, receives the response message of the device end and displays it; The mobile end sends WiFi information setting request to the device end, sets the WiFi information of the device end, the device end updates the WiFi information according to the WiFi setting request, and returns the update result to the mobile end.

3. The data collection method of claim 1, wherein, The preset Bluetooth communication format of the device end and the mobile end is: Frame header, instruction ID, data length, data, CRC check code and frame tail; Among them, the frame header is 2 bytes, the instruction ID is 1 byte, the data length is 2 bytes, the CRC check code is 2 bytes, and the frame tail is 1 byte.

4. The data collection method of claim 1, wherein, The step S3 comprises the steps of: S31, the device end sends the publishing message to the mobile end through Bluetooth connection, the mobile end stores and displays the publishing message, and transmits the publishing message to the platform end through MQTT connection; S32, the mobile end receives the response message returned by the platform end through MQTT connection, and transmits it to the device end; S33, the mobile end receives the subscription message issued by the platform end through MQTT connection, and transmits the subscription message to the device end through Bluetooth connection; S34, the device end executes operation according to the subscription message, packs MQTT message and sends it to the mobile end through Bluetooth connection, and the mobile end transmits it to the platform end through MQTT connection.

5. A data acquisition system for a portable power source, comprising a device end, a mobile end and a platform end, the device end comprising a first processor, a first memory and a computer program stored in the first memory and executable on the first processor, the mobile end comprising a second processor, a second memory and a computer program stored in the second memory and executable on the second processor, characterized in that, The first processor implements the following steps when executing the first computer program: S1, receiving the Bluetooth connection request of the mobile end, and establishing Bluetooth connection with the mobile end; S2, sending authentication information, will information and subscription topic to the mobile end through Bluetooth connection; S3, sending the publishing message and MQTT message to the platform end through Bluetooth connection with the mobile end and MQTT connection between the mobile end and the platform end, and receiving the subscription information issued by the platform end; The second processor implements the following steps when executing the second computer program: S2, establishing MQTT connection with the platform end according to the authentication information and the will information, and subscribing to the topic; The step S1 includes when the first processor executes the first computer program: Receiving a Bluetooth connection request of the mobile terminal and establishing a Bluetooth connection with the mobile terminal; The step S1 includes when the second processor executes the second computer program: The mobile terminal subscribes to the Bluetooth characteristic value of the device terminal; The subscribed Bluetooth characteristic includes a read characteristic and a write characteristic, and the mobile terminal listens to the read characteristic; the mobile terminal acquires the state of the device by listening to the read characteristic, displays it on the screen, and uploads it to the platform through MQTT; the platform issues an instruction to the mobile terminal through MQTT, and the mobile terminal writes the instruction issued by the platform through the write characteristic value.

6. The data acquisition system of a portable power supply of claim 5, wherein, The second processor executes the second computer program after step S3, and further includes steps of: Requesting the device terminal to read WiFi information, receiving a response message of the device terminal and displaying it; Sending a WiFi information setting request to the device terminal and setting the WiFi information of the device terminal; The first processor executes the first computer program after step S3, and further includes steps of: Updating the WiFi information according to the WiFi setting request and returning an update result to the mobile terminal.

7. The data acquisition system of a portable power supply of claim 5, wherein, The preset Bluetooth communication format of the device terminal and the mobile terminal is: Frame header, instruction ID, data length, data, CRC check code and frame tail; Wherein, the frame header is 2 bytes, the instruction ID is 1 byte, the data length is 2 bytes, the CRC check code is 2 bytes, and the frame tail is 1 byte.

8. The data acquisition system of a portable power supply of claim 5, wherein, The step S3 includes when the first processor executes the first computer program: S31, sending a publish message to the mobile terminal through the Bluetooth connection, and the mobile terminal stores and displays the publish message and transmits the publish message to the platform terminal through the MQTT connection; S34, performing an operation according to the subscription message, packaging an MQTT message, and sending it to the mobile terminal through the Bluetooth connection, and the mobile terminal transmits it to the platform terminal through the MQTT connection; The step S3 includes when the second processor executes the second computer program: S32, receiving a response message returned by the platform terminal through the MQTT connection and transmitting it to the device terminal; S33, receiving a subscription message issued by the platform terminal through the MQTT connection and transmitting it to the device terminal through the Bluetooth connection.