Data processing method, platform, device and medium for shared power bank rental service
By receiving and analyzing the hexadecimal parameter information of the shared power bank, generating binary data and displaying it on the display interface, the problem of low efficiency in research and development, debugging and testing of shared power bank is solved, simplifying the data analysis process and improving efficiency.
Patent Information
- Application Number
- CN202210437622.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-25
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-04-25
AI Technical Summary
The research and development, debugging and testing of shared power banks are inefficient, and the existing technology has failed to effectively solve the problem of high data analysis time consumption.
Provide a data processing method for shared power bank rental services. By receiving and analyzing hexadecimal parameter information, generating binary parameter data, and displaying it on the display interface, supporting various display methods such as graphics, graphics, charts, and curve charts. Save developers time to parse.
It improves the research and development, debugging and testing efficiency of shared power banks, facilitates developers to observe and discover problems, and simplifies the data analysis process.
Smart Images

Figure CN115016684B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of data processing for shared power bank rental services, and in particular to a data processing method, platform, device and medium for shared power bank rental services. Background Art
[0002] Shared power banks are often used to charge various electronic products. In order to adapt to market demand, shared power banks need to be continuously developed and upgraded.
[0003] At present, in the process of developing shared power banks, when it is necessary to read or write parameter data (such as software version, current, and voltage, etc.) in the shared power bank, the manually edited parameter information acquisition instruction is usually sent to the shared power bank through the serial port debugging assistant. Further, the shared power bank will return the corresponding parameter information according to the sent parameter information acquisition instruction, and display it in the form of a hexadecimal string on the interface of the serial port debugging assistant. After seeing the parameter information, the developer needs to parse the parameter information of the hexadecimal string into its own value according to the format in the software protocol, so as to facilitate the developer to view the corresponding parameter data. Further, the developer understands the current status of the shared power bank based on the parsed parameter data, and further debugs and updates the shared power bank according to the current status.
[0004] As the functions of shared power banks gradually increase, more and more data need to be transmitted. Parsing the transmitted data using the above method will consume a lot of time of developers, resulting in low efficiency in the research and development, debugging and testing of shared power banks.
[0005] Currently, no effective solution has been proposed to address the low efficiency of research and development, debugging and testing of shared power banks in related technologies. Summary of the invention
[0006] In this embodiment, a data processing method, platform, device and medium for a shared power bank rental service are provided to solve the problem of low efficiency in the research and development, debugging and testing of shared power banks in related technologies.
[0007] In the first aspect, a data processing method for a shared power bank rental service is provided in this embodiment, including:
[0008] Receive parameter information sent by the shared power bank, wherein the data format of the parameter information is hexadecimal;
[0009] Parsing the parameter information to generate parameter data corresponding to the parameter information, wherein the data format of the parameter data is binary;
[0010] The parameter data is displayed on a display interface.
[0011] In some of the embodiments, displaying the parameter data on a display interface includes:
[0012] According to a preset display mode, the correspondence between the parameter data and the parameter information receiving time is displayed on the display interface, wherein the preset display mode includes at least one of a graphic, a chart, a curve chart, a line chart and a bar chart.
[0013] In some of the embodiments, displaying the parameter data on a display interface includes:
[0014] determining a parameter category of the parameter data;
[0015] The parameter data is displayed on the display interface according to the display color set by the parameter category.
[0016] In some of the embodiments, after displaying the parameter data on the display interface, the method further includes:
[0017] Get the user's data saving instructions;
[0018] In response to the data saving instruction, the parameter data is saved.
[0019] In some of the embodiments, after displaying the parameter data on the display interface, the method further includes:
[0020] Acquire a configuration file based on the parameter data;
[0021] Parsing the configuration file to obtain configuration information, wherein the configuration information includes at least one of software version information, device type, hardware solution, checksum, and firmware size;
[0022] The configuration information is sent to the shared power bank so that the shared power bank is updated according to the configuration information.
[0023] In some of the embodiments, after displaying the parameter data on the display interface, the method further includes:
[0024] receiving a debugging parameter set by a user based on the parameter data, wherein the debugging parameter includes at least one of an operating mode, a voltage range, and a current;
[0025] The debugging parameters are sent to the shared power bank, so that the shared power bank performs parameter debugging according to the debugging parameters.
[0026] In some of the embodiments, before receiving the parameter information sent by the shared power bank, the method further includes:
[0027] Responding to the instruction configuration information set by the user, wherein the instruction configuration information includes the instruction type, instruction sending time and instruction sending mode;
[0028] A parameter information acquisition instruction is sent to the shared power bank according to the instruction configuration information, and the parameter information acquisition instruction is used to obtain the parameter information.
[0029] In a second aspect, in this embodiment, a data processing platform for a shared rental service is provided, including:
[0030] A receiving module, used to receive parameter information sent by a shared power bank, wherein the data format of the parameter information is hexadecimal;
[0031] A parsing module, used to parse the parameter information and generate parameter data corresponding to the parameter information, wherein the data format of the parameter data is binary;
[0032] The display module is used to display the parameter data on a display interface.
[0033] In some embodiments, the display interface includes: a first display area, a second display area, and a third display area.
[0034] The first display area is used to display instruction configuration information, wherein the instruction configuration information includes instruction type, instruction sending time and instruction sending mode, and the instruction configuration information is used to generate a parameter information acquisition instruction, and the parameter information acquisition instruction is used to obtain the parameter information from the shared power bank;
[0035] The second display area is used to display the parameter value corresponding to the parameter data;
[0036] The third display area includes a first tab and a second tab, the first tab is used to respond to the user's first option instruction and display the parameter value of at least one specified parameter data within a preset time period, the specified parameter data is determined from multiple preset parameter data according to the user's display instruction, and the parameter data includes the preset parameter data, and the second tab is used to respond to the user's second option instruction and display the original information transmitted between the data processing platform of the shared rental service and the shared power bank.
[0037] In some of the embodiments, the first display area includes a plurality of instruction type tabs, each instruction type tab is used to respond to the user's instruction type setting instruction and display instruction type setting information, and the instruction type setting information is used to generate the instruction configuration information according to the user's settings.
[0038] In some embodiments, the parameter data includes configuration parameter data, the configuration parameter data is used to obtain a configuration file, and the second display area includes:
[0039] The configuration parameter display area is used to display the configuration parameter data.
[0040] In some embodiments, the third display area includes a first sub-display area and a second sub-display area.
[0041] The first sub-display area is used to display the plurality of preset parameter data and the display color corresponding to each preset parameter data;
[0042] The second sub-display area is used to display the parameter value of each designated parameter data within a preset time period according to the display color of each designated parameter data.
[0043] In a third aspect, an electronic device is provided in this embodiment, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the data processing method for the shared power bank rental service described in the first aspect above is implemented.
[0044] In a fourth aspect, a storage medium is provided in this embodiment, on which a computer program is stored, and when the program is executed by a processor, the data processing method for the shared power bank rental service described in the first aspect above is implemented.
[0045] Compared with the related art, the data processing method, platform, device and medium for a shared power bank rental service provided in this embodiment parses the parameter information sent by the shared power bank to generate parameter data corresponding to the parameter information, wherein the data format of the parameter information is hexadecimal and the data format of the parameter data is binary data, thereby parsing the hexadecimal parameter information into binary data that can be directly recognized by developers, saving developers time in parsing the parameter information, and further displaying the parameter data on a display interface, enabling developers to conveniently and quickly observe and discover problems in the shared power bank through the parameter data displayed on the display interface, further improving the efficiency of research and development, debugging and testing of the shared power bank.
[0046] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0048] Figure 1 It is a hardware structure block diagram of a terminal of a data processing method for a shared power bank rental service provided in an embodiment of the present application.
[0049] Figure 2 It is a flow chart of a data processing method for a shared power bank rental service provided in an embodiment of the present application.
[0050] Figure 3 It is a schematic diagram of a connection method between a shared power bank and a host computer provided in an embodiment of the present application.
[0051] Figure 4 This is a schematic diagram of a parameter data display method provided in an embodiment of the present application.
[0052] Figure 5 It is a schematic diagram of an instruction configuration information display interface provided in an embodiment of the present application.
[0053] Figure 6 This is a schematic diagram of a transmission protocol display interface provided in an embodiment of the present application.
[0054] Figure 7 It is a schematic diagram of a software lock test display interface provided in an embodiment of the present application.
[0055] Figure 8 It is a structural block diagram of a data processing platform for a shared rental service provided in an embodiment of the present application.
[0056] Fig. 9 It is a schematic diagram of a display interface provided in an embodiment of the present application.
[0057] Fig.10 This is a schematic diagram of a third display area provided in an embodiment of the present application.
[0058] Fig.11 This is a schematic diagram of a configuration parameter display area provided in an embodiment of the present application. DETAILED DESCRIPTION
[0059] In order to more clearly understand the purpose, technical solutions and advantages of the present application, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments.
[0060] Unless otherwise defined, the technical terms or scientific terms involved in this application shall have the general meaning understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the", "these" and the like in this application do not represent quantitative restrictions, and they can be singular or plural. The terms "include", "comprise", "have" and any variants thereof involved in this application are intended to cover non-exclusive inclusions; for example, a process, method and system, product or device comprising a series of steps or modules (units) is not limited to the listed steps or modules (units), but may include unlisted steps or modules (units), or may include other steps or modules (units) inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether directly or indirectly. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, "A and / or B" can mean: A exists alone, A and B exist at the same time, and B exists alone. Usually, the character " / " indicates that the objects associated with each other are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.
[0061] The method embodiment provided in this embodiment can be executed in a terminal, a computer or a similar computing device. Figure 1 This is a hardware structure block diagram of a terminal of a data processing method for a shared power bank rental service provided in an embodiment of the present application. Figure 1 As shown, the terminal may include one or more ( Figure 1 Only one is shown in the figure) processor 102 and memory 104 for storing data, wherein processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA. The above terminal may also include a transmission device 106 and an input and output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.
[0062] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the data processing method of the shared power bank rental service in this embodiment. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, implementing the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0063] The transmission device 106 is used to receive or send data via a network. The above network includes a wireless network provided by the communication provider of the terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet wirelessly.
[0064] As the functions of electronic products continue to increase, shared power banks also need to be constantly debugged and updated. At present, in the process of developing shared power banks, when it is necessary to read or write parameter data (such as software version, current, and voltage, etc.) in the shared power bank, the manually edited parameter information acquisition instruction is usually sent to the shared power bank through the serial port debugging assistant. Further, the shared power bank will return the corresponding parameter information according to the parameter information acquisition instruction sent, and display it in the form of a hexadecimal string on the interface of the serial port debugging assistant. After seeing the parameter information, the developer needs to parse the parameter information of the hexadecimal string into its own value according to the format in the software protocol, so as to facilitate the developer to view the corresponding parameter data. Further, the developer can understand the current status of the shared power bank based on the parsed parameter data, and further debug and update the shared power bank based on the current status.
[0065] As the functions of shared power banks gradually increase, more and more data need to be transmitted. Parsing the transmitted data using the above method will consume a lot of time of developers, resulting in low efficiency in the research and development, debugging and testing of shared power banks.
[0066] Therefore, the present application provides a data processing method, platform, device and medium for a shared power bank rental service to solve the problem of low efficiency in the research and development, debugging and testing of shared power banks in related technologies.
[0067] In this embodiment, a data processing method for a shared power bank rental service is provided. The executor of the method may be an electronic device. Optionally, the electronic device may be a server or a terminal device, but the present application is not limited thereto.
[0068] Figure 2 is a flow chart of a data processing method for a shared power bank rental service provided in an embodiment of the present application. Figure 2 As shown, the process includes the following steps:
[0069] Step S201, receiving parameter information sent by the shared power bank.
[0070] The data format of the parameter information is hexadecimal.
[0071] For example, during the development and testing of the shared power bank, the shared power bank is connected to a host computer, and the shared power bank is developed and tested through the host computer. Figure 3 Schematic diagram of a connection method between a shared power bank and a host computer provided in an embodiment of the present application, such as Figure 3 As shown, the shared power bank 301 is connected to the serial port conversion tool 302. Specifically, the serial port conversion tool 302 can be a USB to serial port tool, and the connection method with the shared power bank 301 can be a physical connector (Pogopin), which transmits transistor-transistor logic level (TTL level). The serial port conversion tool 302 can convert the UART format data into the USB protocol commonly used by the host computer. Further, the serial port conversion tool 302 is connected to the host computer 303, so that data transmission between the shared power bank 301 and the host computer 303 can be realized.
[0072] Furthermore, during the development and testing of the shared power bank, the shared power bank sends parameter data to the host computer, and the electronic device in the host computer receives the parameter information sent by the shared power bank, wherein the parameter information received by the host computer is hexadecimal data.
[0073] Step S202: parse the parameter information to generate parameter data corresponding to the parameter information.
[0074] Exemplarily, according to a preset transmission protocol, the acquired hexadecimal parameter information is parsed into corresponding parameter data, wherein the data format of the parameter data is binary.
[0075] It should be noted that this application only takes the data format of parameter data as binary as an example. In actual applications, the data format of parameter data can also be decimal, octal, or other formats. The data format of parameter data can be set according to user needs and only needs to be able to be directly read by developers. There is no restriction here.
[0076] Step S203, displaying the parameter data on the display interface.
[0077] Furthermore, the parameter data is displayed on a display interface of the host computer.
[0078] In the above implementation process, the hexadecimal parameter information transmitted from the shared power bank to the host computer is parsed to obtain the corresponding binary parameter data, thereby eliminating the need for developers to parse the information into manually readable data according to the protocol in the software, thereby saving a lot of time for developers. Furthermore, the parameter data is displayed on the display interface, which enables developers to intuitively observe the parameter information in the shared power bank, facilitates the discovery of problems in the shared power bank, and further debugs and updates the shared power bank based on the parameter data of the shared power bank.
[0079] In some of the embodiments, displaying parameter data on a display interface may also include: displaying the correspondence between the parameter data and the parameter information receiving time on the display interface according to a preset display method, wherein the preset display method includes at least one of a curve graph, a line graph, and a bar graph.
[0080] Exemplarily, the parameter data may include at least one of the voltage, current, remaining power, temperature, and number of cycles of the shared power bank. The correspondence between the parameter data and the time of receiving the parameter information may be displayed on the display interface in at least one of the following display methods: graphics, charts, curve graphs, line graphs, and bar graphs.
[0081] In the above implementation process, the correspondence between the parameter data and the parameter information receiving time is displayed on the display interface through a preset display method, which can facilitate developers to view the changing relationship between the parameter data and time in the shared power bank through the display interface, and the changing trend of the parameter data and time can be intuitively reflected through the curve chart, the turning point of the parameter data changing over time can be clearly determined through the line chart, and the size of the parameter data at different time points can be intuitively reflected through the bar chart, so that problems with the shared power bank can be easily and quickly discovered, and the shared power bank can be efficiently debugged and updated.
[0082] In some of the embodiments, displaying the parameter data on the display interface may further include the following steps:
[0083] Step 1: Determine the parameter category of the parameter data.
[0084] Exemplarily, the parameter data may include the voltage, current, serial number, Hall, temperature, version, software lock, remaining power, health status, communication quality, number of cycles and other parameter data of the shared power bank. Developers can configure the discharge power and write the serial number to the power bank based on the parameter data. They can also perform IAP program burning and upgrading on the fourth-generation power bank that supports the In Application Programming (IAP) function. Each type of parameter data corresponds to a parameter category.
[0085] Step 2: Display the parameter data on the display interface according to the display color set by the parameter category.
[0086] Exemplarily, a display color is set corresponding to each parameter category, for example, the display color of voltage is red, the display color of current is orange, the display color of remaining power is yellow, the display color of temperature is green, the display color of communication quality is blue, and the display color of number of cycles is purple. The corresponding parameter data and the change relationship over time are further displayed on the display interface according to the display color of each parameter category.
[0087] Exemplarily, multiple preset parameter data are determined from the above parameter data, that is, the parameter data includes preset parameter data. Specifically, the preset parameter data may include voltage, current, remaining power, temperature, communication quality and number of cycles. According to the user's display instructions, specified parameter data are determined from the multiple preset parameter data, and further according to the user's operation, the parameter value of the specified parameter data within a preset time period is displayed.
[0088] Figure 4 This is a schematic diagram of a parameter data display method provided in an embodiment of the present application. Figure 4 As shown, the user checked the check box corresponding to the voltage on the display interface, that is, the user's display instruction is used to determine the voltage from the preset parameter data, and use the voltage as the specified parameter data. Further, the user can click the "Start" button on the display interface. Further, a red curve chart of the voltage change of the shared power bank over time is displayed in the coordinate system of the display interface. Further, if the user clicks the "Clear" button on the display interface, all curve data will be cleared, which is convenient for re-recording and constructing the curve.
[0089] It should be noted that in the embodiments of the present application, only voltage is used as an example for illustration as the designated parameter data. In actual applications, one or more of voltage, current, remaining power, temperature, communication quality and number of cycles can be used as designated parameter data at the same time and displayed in different colors in the coordinate system of the display interface, but the present application is not limited to this.
[0090] In the above implementation process, the parameter data are distinguished and displayed on the display interface through the colors corresponding to the categories of the parameter data, which can facilitate developers to distinguish various types of parameter data, thereby improving the efficiency of developers in debugging shared power banks.
[0091] In some of the embodiments, after the parameter data is displayed on the display interface, the following steps may also be included:
[0092] Step 1: Get the user's data saving instruction.
[0093] Exemplarily, specifically, a save button may also be provided on the display interface. If the user wants to save parameter data, the user may click the save button, that is, send a data save instruction through the display interface, and the electronic device responds to the user's data save instruction.
[0094] Step 2: In response to the data saving instruction, the parameter data is saved.
[0095] Furthermore, after receiving the data saving instruction from the user, the electronic device saves the parameter data and may also save a curve graph corresponding to the parameter data.
[0096] It should be noted that the users in the embodiments of the present application may be developers or other personnel, and there is no limitation here.
[0097] In the above implementation process, the parameter data is saved according to the user's data saving instruction, so that the developer can subsequently analyze and record the data of the shared power bank according to the saved parameter data.
[0098] In some of the embodiments, after the parameter data is displayed on the display interface, the following steps may also be included:
[0099] Step 1: Get the configuration file based on the parameter data.
[0100] Exemplarily, if a user needs to update and upgrade a shared power bank, a configuration file corresponding to the shared power bank is obtained based on the parameter data.
[0101] Specifically, the parameter data may include configuration parameter data, and the configuration file is obtained from the database according to the value corresponding to the configuration parameter data set by the user on the display interface.
[0102] It should be noted that the configuration file may be sent to the database by the user or may be pre-stored, and there is no limitation here.
[0103] Step 2: Parse the configuration file to obtain configuration information, wherein the configuration information includes at least one of software version information, device type, hardware solution, checksum, and firmware size.
[0104] Exemplarily, the configuration file may be an upgrade package for a shared power bank, and the configuration file is parsed to obtain configuration information, wherein the configuration information includes at least one of software version information, device type, hardware solution, checksum, and firmware size in the upgrade package.
[0105] Step 3: Send the configuration information to the shared power bank so that the shared power bank is updated according to the configuration information.
[0106] Furthermore, the parsed configuration information is compared with the parameter data. If the configuration information is different from the parameter data, the configuration information is sent to the shared power bank so that the shared power bank is updated and upgraded according to the configuration information.
[0107] In the above implementation process, the configuration information is obtained by parsing the acquired configuration file, and further, the configuration information is sent to the shared power bank, so that the shared power bank can be updated and upgraded according to the configuration information.
[0108] In some of the embodiments, after the parameter data is displayed on the display interface, the following steps may also be included:
[0109] Step 1: receiving a debugging parameter set by a user based on parameter data, wherein the debugging parameter includes at least one of an operating mode, a voltage range, and a current.
[0110] Exemplarily, if the user needs to adjust the parameters of the shared power bank, the user can debug the parameter icon or name on the display interface and set the corresponding debugging parameters, where the debugging parameters may include at least one of the shared power bank's operating mode, voltage range, current, charging safety specifications (JEITA specifications), PD, DC frequency, and insertion detection.
[0111] It should be noted that the debugging parameters can be all parameters in the charging and discharging process of the shared power bank. This application only uses some of the above-mentioned debugging parameters as examples.
[0112] Step 2: Send the debugging parameters to the shared power bank so that the shared power bank can perform parameter debugging according to the debugging parameters.
[0113] Furthermore, the debugging parameters are sent to the shared power bank, so that the shared power bank performs parameter debugging according to the debugging parameters, thereby realizing the adjustment of the shared power bank parameters.
[0114] In the above implementation process, the user can set the corresponding debugging parameters on the display interface, so as to conveniently and quickly debug the parameters of the shared power bank, thereby improving the efficiency of the user's adjustment of the shared power bank parameters.
[0115] In some of the embodiments, before receiving the parameter information sent by the shared power bank, the following steps may also be included:
[0116] Step 1: Respond to the instruction configuration information set by the user, wherein the instruction configuration information includes the instruction type, instruction sending time and instruction sending mode.
[0117] Exemplarily, the instruction configuration information display interface may include multiple instruction type tabs. When the user needs to set the corresponding instruction type, the corresponding instruction type tab is selected. The instruction type tab further responds to the user's instruction type setting instruction and displays the corresponding instruction type setting information in the instruction type tab. The user can set the instruction type according to the instruction type setting information and generate instruction configuration information. The electronic device further responds to the instruction configuration information set by the user.
[0118] As an example, Figure 5 is a schematic diagram of a command configuration information display interface provided by an embodiment of the present application, such as Figure 5 The displayed interface includes three command type tabs: "Serial Port Connection", "Transmission Protocol" and "Software Lock Test". Figure 5In the command type tab, the user selects the "Serial Port Connection" command type tab. Further, the command type tab responds to the user's command type setting command and displays the command type setting information under "Serial Port Connection". The user can set the command type setting information to generate the command configuration information of "Serial Port Connection". Specifically, the serial port set by the user in the command type setting information is: "COM3|USB Serial Port Device (COM3)", and the serial port communication interval is set to: 0.5s, that is, when the command is automatically sent in a loop, a command is sent to the shared power bank every 0.5 seconds. The "Refresh" button can be used to refresh the serial port list set by the user, so as to update the list when the hardware serial port is updated. The "Close Serial Port" button is used to close the selected serial port to establish a connection. When the user clicks "Close Serial Port", the button will switch to "Open Serial Port" to open the selected serial port to establish a connection. In addition, the instruction type setting information also includes: "Other parameters: 8, 2, N", "Number of packets sent / received: 7877 / 7405", "Accuracy / frame rate (FPS): 94.008% / 2" and "MCU status: online" and other information.
[0119] like Figure 6 As shown, Figure 6 is a schematic diagram of a transmission protocol display interface provided by an embodiment of the present application. Figure 6 In the figure, the user selects the instruction type tab of "Transfer Protocol". Further, the instruction type tab responds to the user's instruction type setting instruction and displays the instruction type setting information under "Transfer Protocol". The user can set the instruction type setting information to generate the instruction configuration information of "Transfer Protocol". Specifically, the user selects "Manual Send". Further, the user can manually click any one of the instruction buttons of "Query Power Bank Status: AO", "Open Software Lock: BO 4F", "Close Software Lock: CO 3F", "Clear Power Bank Disassembly Mark: DO 2F", "Query Battery Cell Mark: EO 1F", "4th Generation TerTx_PBRx", "4th Generation Open Software Lock", "4th Generation Close Software Lock" and "4th Generation Clear Power Bank Disassembly Mark". The user can send an instruction with each click of each instruction button. After receiving the instruction, the shared power bank will execute the corresponding instruction and return the corresponding data.
[0120] like Figure 7 As shown, Figure 7 is a schematic diagram of a software lock test display interface provided by an embodiment of the present application. Figure 7In the dialog box, the user selects the instruction type tab of "Software Lock Test". Further, the instruction type tab responds to the user's instruction type setting instruction and displays the instruction type setting information under "Software Lock Test". The user can set the instruction type setting information to generate the instruction configuration information of "Software Lock Test". Specifically, the user can set the required number of tests. After further clicking the "Start Software Lock Test" button, the software lock test will start automatically, and the current number of tests, the number of software lock abnormalities, the number of software lock abnormalities, and the number of power bank sn abnormalities will be displayed on the interface. When the user clicks the "Reset Numbers" button, all values on the interface will be cleared and reset.
[0121] For example, if a user needs to obtain parameter data in a shared power bank, the user can set the command configuration information through the display interface. Further, the electronic device responds to the command configuration information set by the user, and the command configuration information includes the command type, command sending time, and command sending mode. The command sending time can be sent every 2 seconds, every 3 seconds, or at other times, without limitation. The sending mode can include manual sending and automatic sending.
[0122] Step 2: Send a parameter information acquisition instruction to the shared power bank according to the instruction configuration information. The parameter information acquisition instruction is used to obtain parameter information.
[0123] Further, the electronic device sends a parameter information acquisition instruction to the shared power bank according to the instruction configuration information set by the user. Further, the shared power bank can return parameter data of the power status according to the parameter information acquisition instruction.
[0124] In the above implementation process, users set the command configuration information in the command setting interface, so that users can complete the configuration of the command intuitively and quickly without manually editing the command configuration information, further saving users a lot of operation time, thereby improving the development efficiency of shared power banks.
[0125] In the above implementation process, the parameter information sent by the shared power bank is parsed to generate parameter data corresponding to the parameter information, wherein the data format of the parameter data is binary data, thereby saving the developer's time in parsing the parameter information. The parameter data is further displayed on the display interface, which enables the developer to conveniently and quickly observe and discover problems in the shared power bank through the parameter data displayed on the display interface, thereby further improving the efficiency of the research and development, debugging and testing of the shared power bank.
[0126] It should be noted that the steps shown in the above process or the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0127] In this embodiment, a data processing platform for a shared rental service is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and will not be repeated hereafter. The terms "module", "unit", "subunit", etc. used below may be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0128] Figure 8 is a structural block diagram of a data processing platform for a shared rental service provided in an embodiment of the present application, such as Figure 8 As shown, the device comprises:
[0129] The receiving module 801 is used to receive parameter information sent by the shared power bank, wherein the data format of the parameter information is hexadecimal;
[0130] The parsing module 802 is used to parse the parameter information and generate parameter data corresponding to the parameter information, wherein the data format of the parameter data is binary;
[0131] The display module 803 is used to display the parameter data on the display interface.
[0132] In some of the embodiments, the display interface includes: a first display area, a second display area and a third display area, the first display area is used to display instruction configuration information, wherein the instruction configuration information includes instruction type, instruction sending time and instruction sending mode, the instruction configuration information is used to generate a parameter information acquisition instruction, and the parameter information acquisition instruction is used to obtain parameter information from a shared power bank;
[0133] The second display area is used to display the parameter value corresponding to the parameter data;
[0134] The third display area includes a first tab and a second tab. The first tab is used to respond to the user's first option instruction and display the parameter value of at least one specified parameter data within a preset time period. The specified parameter data is determined from multiple preset parameter data according to the user's display instruction. The parameter data includes preset parameter data. The second tab is used to respond to the user's second option instruction and display the original information transmitted between the data processing platform of the shared rental service and the shared power bank.
[0135] like Fig. 9 As shown, Fig. 9 is a schematic diagram of a display interface provided in an embodiment of the present application, Fig. 9 The display interface shown includes a first display area, a second display area and a third display area, wherein the first display area displays instruction configuration information; the second display area is used to display parameter values corresponding to parameter data, Fig. 9 The second display area shows the parameter values corresponding to "Serial Number", "Bao Algebra", "Hall", "Voltage", "Temperature", "Number of Cycles", "Software Lock", "Version", "Remaining Power", "Health Status", "Communication Quality" and "Discharge Power".
[0136] It should be noted that the second display area can also set multiple tabs and display corresponding parameter data under each tab. For example, it can be set in the "debugging parameters" tab, and when the user clicks the "debugging parameters" tab, the corresponding debugging parameters are displayed.
[0137] As an embodiment, the shared power bank can be debugged using any of the following chips: Zhirong SW62XX chip, Nanxin SC200X (fast charging protocol chip), Saiweiwei CW2218 (coulomb counter) and SC8933 (power management chip). The display interface in the "Debugging Parameters" tab may include a "read-only area" and a "readable and writable area". The "read-only area" may display the battery voltage, VBUS voltage, battery temperature, motherboard temperature, battery current, VBUS current, system status, system abnormality, Type-C indication, temperature alarm, full mark, input The user can input parameter data such as overvoltage flag, battery overvoltage flag, VBUS short circuit flag, etc., and can also use the check box area and / or drop-down list area as a "readable and writable area". The user can set the working mode, voltage range, current, fast charging mode, JEITA specification, PD, DCDC frequency, insertion detection, short circuit detection time, FB path, charging and discharging at the same time, charge and discharge mode, gate drive control, line loss compensation, stop charging threshold, IBUS current limit value, VBUS voltage, overvoltage / undervoltage protection and other debugging parameters in this area, so that the development process can get twice the result with half the effort. Other debugging parameters can also be added according to user needs, and there is no restriction here.
[0138] For example, Fig.10 As shown, Fig.10 : is a schematic diagram of a third display area provided in an embodiment of the present application. The third display area includes a first tab: a "curve" tab and a second tab: a "Log" tab. When a user clicks on the first tab "curve", the first tab responds to the user's first option instruction and further displays the following Figure 4 When the user clicks the second tab "Curve", the second tab responds to the user's second option instruction and displays the following Fig.10 The original information transmitted between the data processing platform of the shared rental service and the shared power bank shown in FIG. Fig.10 In the figure, Rx_Hex represents the hexadecimal data received by the data processing platform of the shared rental service from the shared power bank, and Tx_Hex represents the hexadecimal data sent by the data processing platform of the shared rental service to the shared power bank.
[0139] In some of the embodiments, the first display area includes multiple instruction type tabs, each instruction type tab is used to respond to the user's instruction type setting instruction and display instruction type setting information, and the instruction type setting information is used to generate instruction configuration information according to the user's settings.
[0140] Exemplarily, the first display area may be as described above. Figure 5 , Figure 6 as well as Figure 7 Any one of the display areas, the first display area includes three instruction type tabs, each instruction type tab is used to respond to the user's instruction type setting instruction, and display the instruction type setting information corresponding to the instruction type tab, the instruction type setting information is used to generate instruction configuration information according to the user's settings.
[0141] In some of the embodiments, the parameter data includes configuration parameter data, the configuration parameter data is used to obtain a configuration file, and the second display area includes:
[0142] Configuration parameter display area, used to display configuration parameter data.
[0143] As an embodiment, the second display area may further include a configuration parameter display area for displaying configuration parameter data, where the configuration parameter data is used to obtain a configuration file.
[0144] For example, Fig.11 As shown, Fig.11 This is a schematic diagram of a configuration parameter data display area provided in an embodiment of the present application. Fig.11 The configuration parameter data display interface displays the burning file, modification time and other configuration parameter data. When the user sets the corresponding burning file on the display interface and clicks the "Open" button, the electronic device obtains the corresponding burning file from the database. The burning file is the configuration file. Further, the electronic device parses the configuration file to obtain the modification time, software version information, device type, hardware solution, checksum and firmware size of the burning file, and displays it on the interface.
[0145] In some embodiments, the third display area includes a first sub-display area and a second sub-display area.
[0146] The first sub-display area is used to display a plurality of preset parameter data and a display color corresponding to each preset parameter data;
[0147] The second sub-display area is used to display the parameter value of each designated parameter data within a preset time period according to the display color of each designated parameter data.
[0148] For example, in Figure 4 The area in which multiple preset parameter data such as voltage, current, remaining power, temperature, communication quality and number of cycles are displayed is the first sub-display area. Furthermore, the corresponding display color ( Figure 4 not shown), Figure 4 The display area of the middle coordinate image can be the second display area. The user selects voltage as the specified parameter data in the first display area. If the display color of the voltage is red, further, the parameter value corresponding to the voltage within the preset time period is displayed in the form of a red curve in the second display area, wherein the horizontal axis in the coordinate system represents time and the vertical axis represents the corresponding parameter value.
[0149] It should be noted that the preset time period can be 10 minutes ago, 5 minutes ago, or 5 minutes later. If the parameter value after the current time needs to be displayed, the second sub-display area will display the parameter value corresponding to the parameter data in real time until the time node is reached.
[0150] In some of the embodiments, the display module 803 is specifically used for:
[0151] According to a preset display mode, the correspondence between the parameter data and the parameter information receiving time is displayed on the display interface, wherein the preset display mode includes at least one of a graphic, a chart, a curve chart, a line chart and a bar chart.
[0152] In some of the embodiments, the display module 803 is specifically used for:
[0153] Determine parameter category of parameter data;
[0154] The parameter data is displayed on the display interface according to the display color set by the parameter category.
[0155] In some of the embodiments, the display module 803 is further used to:
[0156] Get the user's data saving instructions;
[0157] In response to the data saving instruction, the parameter data is saved.
[0158] In some of the embodiments, the display module 803 is further used to:
[0159] Get configuration files based on parameter data;
[0160] Parsing the configuration file to obtain configuration information, wherein the configuration information includes at least one of software version information, device type, hardware solution, checksum, and firmware size;
[0161] The configuration information is sent to the shared power bank so that the shared power bank is updated according to the configuration information.
[0162] In some of the embodiments, the display module 803 is further used to:
[0163] receiving a debugging parameter set by a user based on parameter data, wherein the debugging parameter includes at least one of an operating mode, a voltage range, and a current;
[0164] The debugging parameters are sent to the shared power bank so that the shared power bank can perform parameter debugging according to the debugging parameters.
[0165] In some of the embodiments, the receiving module 801 is further configured to:
[0166] Responding to the instruction configuration information set by the user, wherein the instruction configuration information includes the instruction type, instruction sending time and instruction sending mode;
[0167] A parameter information acquisition instruction is sent to the shared power bank according to the instruction configuration information, and the parameter information acquisition instruction is used to obtain parameter information.
[0168] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. For modules implemented by hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.
[0169] In this embodiment, an electronic device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0170] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0171] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0172] S1, receiving parameter information sent by the shared power bank.
[0173] S2, parsing the parameter information to generate parameter data corresponding to the parameter information, wherein the data format of the parameter data is binary.
[0174] S3, displaying the parameter data on the display interface.
[0175] It should be noted that the specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementation modes, and will not be repeated in this embodiment.
[0176] In addition, in combination with the data processing method of the shared power bank provided in the above embodiment, a storage medium can also be provided in this embodiment to implement the method. The storage medium stores a computer program; when the computer program is executed by the processor, any of the data processing methods of the shared power bank in the above embodiment is implemented.
[0177] It should be understood that the specific embodiments described herein are only used to explain the application, rather than to limit it. Based on the embodiments provided in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the protection scope of this application.
[0178] Obviously, the drawings are only some examples or embodiments of the present application. For ordinary technicians in the field, the present application can also be applied to other similar situations based on these drawings without creative work. In addition, it is understandable that although the work done in this development process may be complicated and lengthy, for ordinary technicians in the field, certain changes in design, manufacturing or production based on the technical content disclosed in this application are only conventional technical means and should not be regarded as insufficient content disclosed in this application.
[0179] The term "embodiment" in this application refers to a specific feature, structure or characteristic described in conjunction with the embodiment that can be included in at least one embodiment of the present application. The appearance of this phrase in various locations in the specification does not necessarily mean the same embodiment, nor does it mean that it is mutually exclusive with other embodiments and is independent or optional. It is clearly or implicitly understood by those of ordinary skill in the art that the embodiments described in this application can be combined with other embodiments without conflict.
[0180] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of patent protection. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the scope of protection of the present application. Therefore, the scope of protection of the present application shall be subject to the attached claims.
Claims
1. A data processing method for a shared power bank rental service, characterized in that: include: Receive parameter information sent by the shared power bank, wherein the data format of the parameter information is hexadecimal; Parsing the parameter information to generate parameter data corresponding to the parameter information, wherein the data format of the parameter data is binary; Displaying the parameter data on a display interface; The display interface includes: a first display area, a second display area and a third display area. The first display area is used to display instruction configuration information, wherein the instruction configuration information includes instruction type, instruction sending time and instruction sending mode, and the instruction configuration information is used to generate a parameter information acquisition instruction, and the parameter information acquisition instruction is used to obtain the parameter information from the shared power bank; The second display area is used to display the parameter value corresponding to the parameter data; The third display area includes a first tab and a second tab, the first tab is used to respond to the user's first option instruction and display the parameter value of at least one specified parameter data within a preset time period, the specified parameter data is determined from multiple preset parameter data according to the user's display instruction, and the parameter data includes the preset parameter data, and the second tab is used to respond to the user's second option instruction and display the original information transmitted between the data processing platform of the shared rental service and the shared power bank.
2. The data processing method for shared power bank rental service according to claim 1, characterized in that: The displaying of the parameter data on the display interface includes: According to a preset display mode, the correspondence between the parameter data and the parameter information receiving time is displayed on the display interface, wherein the preset display mode includes at least one of a graphic, a chart, a curve chart, a line chart and a bar chart.
3. The data processing method for the shared power bank rental service according to claim 1 or 2, characterized in that: The displaying of the parameter data on the display interface includes: determining a parameter category of the parameter data; The parameter data is displayed on the display interface according to the display color set by the parameter category.
4. The data processing method for shared power bank rental service according to claim 1, characterized in that: After displaying the parameter data on the display interface, the method further includes: Get the user's data saving instructions; In response to the data saving instruction, the parameter data is saved.
5. The data processing method for shared power bank rental service according to claim 1, characterized in that: After displaying the parameter data on the display interface, the method further includes: Acquire a configuration file based on the parameter data; Parsing the configuration file to obtain configuration information, wherein the configuration information includes at least one of software version information, device type, hardware solution, checksum, and firmware size; The configuration information is sent to the shared power bank so that the shared power bank is updated according to the configuration information.
6. The data processing method for shared power bank rental service according to claim 1, characterized in that: After displaying the parameter data on the display interface, the method further includes: receiving a debugging parameter set by a user based on the parameter data, wherein the debugging parameter includes at least one of an operating mode, a voltage range, and a current; The debugging parameters are sent to the shared power bank, so that the shared power bank performs parameter debugging according to the debugging parameters.
7. The data processing method for shared power bank rental service according to claim 1, characterized in that: Before receiving the parameter information sent by the shared power bank, the method further includes: Responding to the instruction configuration information set by the user, wherein the instruction configuration information includes the instruction type, instruction sending time and instruction sending mode; A parameter information acquisition instruction is sent to the shared power bank according to the instruction configuration information, and the parameter information acquisition instruction is used to obtain the parameter information.
8. A data processing platform for shared rental services, characterized in that: include: A receiving module, used to receive parameter information sent by a shared power bank, wherein the data format of the parameter information is hexadecimal; A parsing module, used to parse the parameter information and generate parameter data corresponding to the parameter information, wherein the data format of the parameter data is binary; A display module, used to display the parameter data on a display interface; The display interface includes: a first display area, a second display area and a third display area, The first display area is used to display instruction configuration information, wherein the instruction configuration information includes instruction type, instruction sending time and instruction sending mode, and the instruction configuration information is used to generate a parameter information acquisition instruction, and the parameter information acquisition instruction is used to obtain the parameter information from the shared power bank; The second display area is used to display the parameter value corresponding to the parameter data; The third display area includes a first tab and a second tab, the first tab is used to respond to the user's first option instruction and display the parameter value of at least one specified parameter data within a preset time period, the specified parameter data is determined from multiple preset parameter data according to the user's display instruction, and the parameter data includes the preset parameter data, and the second tab is used to respond to the user's second option instruction and display the original information transmitted between the data processing platform of the shared rental service and the shared power bank.
9. The data processing platform for shared rental services according to claim 8, characterized in that: The first display area includes a plurality of instruction type tabs, each of which is used to respond to an instruction type setting instruction of a user and display instruction type setting information, wherein the instruction type setting information is used to generate the instruction configuration information according to the user's setting.
10. The data processing platform for shared rental services according to claim 8 or 9, characterized in that: The parameter data includes configuration parameter data, and the configuration parameter data is used to obtain a configuration file. The second display area includes: The configuration parameter display area is used to display the configuration parameter data.
11. The data processing platform for shared rental services according to claim 10, characterized in that: The third display area includes a first sub-display area and a second sub-display area, The first sub-display area is used to display the plurality of preset parameter data and the display color corresponding to each preset parameter data; The second sub-display area is used to display the parameter value of each designated parameter data within a preset time period according to the display color of each designated parameter data.
12. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to execute the data processing method for the shared power bank rental service according to any one of claims 1 to 7.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the data processing method for the shared power bank rental service described in any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Monitoring method, system and device for chip manufacturing equipment
CN111258276A
Memory parameter adjustment method and device, equipment and medium
CN114281538A
