A fault information recording and reporting method of a vehicle-mounted charging pile
By using a fault snapshot recording and reporting method for on-board charging piles, the problem of low efficiency in fault diagnosis of charging pile equipment has been solved, achieving the effects of remote rapid location and reduced maintenance costs.
Patent Information
- Application Number
- CN202311360163.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-20
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-10-20
AI Technical Summary
Charging pile equipment is installed in a scattered manner and the technical standards are not mature, resulting in low fault diagnosis efficiency, high maintenance costs, and difficulty in achieving rapid and efficient fault location and resolution through remote monitoring.
The method of recording and reporting faults using vehicle-mounted charging piles is adopted. Faults are monitored through a snapshot memory structure, sensor data is stored using a two-dimensional read array, and the data is sent to the server for analysis via remote communication.
It reduces the maintenance cost of charging pile equipment, enables rapid and efficient fault location and remote diagnosis, and reduces the impact of frequent communication and snapshot data transmission.
Abstract
Description
Technical Field
[0001] This invention relates to the field of charging pile technology, and in particular to a method for recording and reporting fault snapshots of vehicle-mounted charging piles. Background Technology
[0002] With strong national support for the development of new energy electric vehicles, charging pile equipment for electric vehicles has also developed rapidly. Because charging pile equipment is connected to high-voltage electricity, and the installation environment varies greatly, while ensuring the safety of the equipment during operation, it is necessary to monitor multiple sensor input signals in real time. In case of any abnormality, the charging pile equipment will activate protection mechanisms and issue safety warnings. Once an abnormality occurs in the charging pile equipment, technicians need to analyze the situation, quickly locate the problem, and confirm the equipment's operational status.
[0003] However, because charging pile equipment is installed all over the country, and many of its technologies are not yet standardized and mature, numerous problems arise. Sending technicians to the site is inefficient and costly once equipment malfunctions. Meanwhile, charging piles are also developing towards intelligent systems, using cloud servers for unified operation and management, such as remote control and charging payment services. Therefore, is it possible to use the data collected from the charging pile equipment in the backend to diagnose and analyze the equipment status, quickly and efficiently locating and resolving problems? Summary of the Invention
[0004] This invention provides a method for recording and reporting fault snapshots of vehicle-mounted charging piles, which can reduce the maintenance cost of charging pile equipment and address the shortcomings of existing technologies.
[0005] A method for recording and reporting fault information of an on-board charging pile, characterized in that:
[0006] After the charging pile equipment system is started and running, the faults corresponding to the operation cycle are monitored.
[0007] A snapshot memory structure type is defined, with members including fault number, reporting count, and reporting latency; and a snapshot reporting array is defined using the snapshot memory structure.
[0008] The two-dimensional read array is used to cyclically store data collected by multiple sensors. The horizontal coordinate of the two-dimensional read array is represented by the current read sequence number in time, and the vertical coordinate of the two-dimensional read data is represented by the sensor channel number. Data from all sensor channels is read and stored in the corresponding two-dimensional read array address.
[0009] The reporting and sending array is used to store the data to be sent. The data to be sent includes the fault number, sensor data code, reporting time, and sensor data. Multiple bytes of the reporting and sending array are sequentially assigned the current fault number, sensor data code, and reporting time. Then, the sensor data in the two-dimensional reading array is obtained. The corresponding bits of the sensor data code are judged in turn. If the judgment is successful, the data in the corresponding two-dimensional reading array is assigned to the corresponding reporting and sending array address.
[0010] The snapshot record array is configured for each fault according to the fault sequence number, including the corresponding sensor channel sequence number and fault record data type for each fault; and according to the fault record data type configuration, the temporary value of the recorded fault is assigned to the address of the snapshot record array with the sensor channel sequence number; at the same time, this snapshot array data is written to the local EEPROM for storage according to the specified format.
[0011] The above-mentioned data in the reporting array is sent to the server via remote communication;
[0012] The server queries and analyzes the snapshot data reported by the corresponding charging pile.
[0013] Furthermore, the data from all sensor channels is read and stored in the corresponding two-dimensional read array address; the horizontal coordinate number is the current read sequence number, which remains unchanged in one data read, and the vertical coordinate number is the sensor channel number. In one data read, the vertical coordinate number starts from 0 and goes up to less than the maximum number of sensor channels. The data of the sequence numbers of all sensor channels are read and stored in the corresponding two-dimensional read array.
[0014] The current read sequence number starts from 0. After each read is completed, the current read sequence number is incremented by 1. If the current read sequence number is greater than or equal to the maximum snapshot memory time count, then the current read sequence number is 0.
[0015] Furthermore, the sensor data encoding uses each bit to indicate whether the sensor channel data needs to be sent. Each bit being 1 indicates that the sensor data for this channel needs to be sent, and each bit being 0 indicates that the sensor data for this channel does not need to be sent. Bit 0 indicates whether sensor channel 0 needs to be sent. Each bit corresponds to one sensor channel.
[0016] Furthermore, the first byte of the transmit array is assigned the current fault number, followed by 3 bytes of sensor data encoding, and then 4 bytes of system time. The data from the sensor in the two-dimensional read array is then obtained. The horizontal coordinate number is the current read number, and the vertical coordinate number starts from channel 0 and goes up to less than the maximum number of sensor channels. The corresponding bit of the sensor data encoding is checked to see if it is 1. If it is 1, the data in the corresponding two-dimensional read array is assigned to the corresponding transmit array address.
[0017] Furthermore, a snapshot reporting array is defined using a snapshot memory structure, with the array length being half the number of faults;
[0018] When a fault reporting sequence number is set, the system first searches the snapshot reporting array. The sequence number starts from 0 and is less than the array length. It checks whether the fault sequence number in each array is equal to the requested fault reporting sequence number. If no requested fault reporting sequence number is found, it means that the current snapshot reporting array does not record the requested fault reporting sequence number. In this case, it needs to continue searching for an invalid fault sequence number in the snapshot reporting array. After finding an invalid fault sequence number, the system sets the fault sequence number in the current snapshot reporting array to the requested fault reporting sequence number, sets the fault reporting count in the current snapshot reporting array to 1, sets the fault reporting delay time in the current snapshot reporting array to the maximum delay threshold, and sets the current reporting sending status to the sending status.
[0019] If a snapshot is requested to be reported, and the fault number already exists, it will be searched in the snapshot reporting array. The number starts from 0 and is less than the array length. The fault number in each snapshot reporting array is read to see if it is equal to the requested fault number. If the requested fault number is found, it means that there is a record of the requested fault number in the current snapshot reporting array. If the number of reports in the current snapshot reporting array is less than or equal to the maximum number of fault reports, and the fault reporting delay time in the current snapshot reporting array is equal to 0, then the fault reporting count in the current snapshot reporting array is incremented by 1, the fault reporting delay time in the current snapshot reporting array is set to the maximum delay threshold, and the current reporting sending status is set to the sending status.
[0020] If the number of reports in the current snapshot reporting array is greater than the maximum number of fault reports, or if the fault reporting delay time in the current snapshot reporting array is not equal to 0, then the fault reporting sequence number is set to invalid.
[0021] Furthermore, the reported data is sent to the server via remote communication, and the reporting count is incremented by 1. If the reporting count is greater than or equal to the maximum snapshot reporting count, the reporting count is set to 0, the current reporting status is set to idle, and the reported request fault number is set to invalid. The maximum snapshot reporting count is equal to twice the maximum snapshot memory time count.
[0022] Furthermore, a snapshot record array is defined, with an array length equal to the maximum number of sensor channels. Each fault is configured according to its fault number, including the corresponding sensor channel number and fault record data type. The fault record data type is configured to take the maximum value, minimum value, or latest value. The temporary fault value is recorded as data from a two-dimensional read array, and the temporary fault value is assigned to the address of the snapshot record array with the sensor channel number as its sequence number. At the same time, this snapshot data is written to the EEPROM for permanent storage according to the specified format.
[0023] Furthermore, if the requested fault number is not invalid, the sensor channel number and fault record data type corresponding to this fault can be retrieved according to the configuration.
[0024] If the fault record data type is configured to take the maximum value, the horizontal coordinate index of the two-dimensional read array starts from 0 and goes up to the number of times it is less than the maximum snapshot memory time. The vertical coordinate index is the corresponding sensor channel index. The vertical coordinate index remains unchanged. First, the data with the horizontal coordinate index of 0 is read and assigned to the temporary fault record value. Then, the data of all subsequent indexes in the two-dimensional read array is read. During the reading, a judgment is made. If the data of the two-dimensional read array is greater than the temporary fault record value, then the temporary fault record value is equal to the data of the two-dimensional read array, so that the temporary fault record value is the maximum value of the corresponding sensor record data.
[0025] If the fault record data type is configured to take the minimum value, the horizontal coordinate index of the two-dimensional read array starts from 0 and goes up to the number of times it is less than the maximum snapshot memory time. The vertical coordinate index is the corresponding sensor channel index. The vertical coordinate index remains unchanged. First, the data with the horizontal coordinate index of 0 is read and assigned to the temporary fault record value. Then, the data of all subsequent indexes in the two-dimensional read array is read. During the reading, a judgment is made. If the data of the two-dimensional read array is less than the temporary fault record value, then the temporary fault record value is equal to the data of the two-dimensional read array. This makes the temporary fault record value the minimum value of the corresponding sensor record data.
[0026] If the fault record data type is configured to retrieve the latest value, the vertical coordinate sequence number of the two-dimensional read array is the corresponding sensor channel sequence number, and the horizontal coordinate sequence number is (current read sequence number + maximum snapshot memory time count - 1)% maximum snapshot memory time count; the recorded temporary fault value is equal to the two-dimensional read array data.
[0027] In all the above cases, the temporary fault value needs to be assigned to the address of the snapshot record array with the sensor channel number. At the same time, this snapshot data will be written to the EEPROM for permanent storage according to the specified format.
[0028] Furthermore, the data collected by the sensor is ultimately in the range of one byte, requiring conversion of the raw data.
[0029] Furthermore, in the step of monitoring faults corresponding to the operation cycle:
[0030] S101, Define the operation cycle according to the operating environment of the system detecting multiple sensor devices, and detect in real time when the system enters normal operation mode or trigger detection according to the signal; if the configured operation cycle is the normal operation mode operation cycle, proceed to step S102.
[0031] S102, Check the operating conditions of multiple operation cycles. If the corresponding operating conditions are met and the corresponding operation cycle has not started, proceed to step S103; if the corresponding operating conditions are met and the corresponding operation cycle has started, proceed to step S104; if the corresponding operating conditions are not met and the corresponding operation cycle has not ended, proceed to step S105; otherwise, proceed to step S107.
[0032] S103, Set the state of this operation cycle to start, update the state of each fault corresponding to the operation cycle, set the test incomplete state of each fault to 1 and the test failure state within the operation cycle to 0, and proceed to step S107.
[0033] S104, monitor the faults corresponding to this operation cycle, perform effective calculations on the collected data, and then confirm whether the corresponding sensor is faulty based on whether there are problems with the valid values; if the fault is configured to require reporting a snapshot, and the fault sequence number is not equal to the current reported fault sequence number, then request to report a snapshot to the server, and set the requested reported fault sequence number to the fault sequence number; if the fault is configured to require recording a snapshot, then request to record a snapshot locally, and set the requested recorded fault sequence number to the fault sequence number; if there is no fault, then set the test failure status of the corresponding fault to 0, set the test incomplete status of the corresponding fault to 0, and proceed to step S107;
[0034] S105, Set the status of this operation cycle to end, and then judge all the fault statuses corresponding to this operation cycle. If the test incomplete status of the corresponding fault is 0, and the test failure status within the operation cycle of the corresponding fault is 0, then perform aging processing on the corresponding fault and proceed to step S106; otherwise, proceed to step S107.
[0035] S106, Determine if the aging timer is equal to the lockout threshold. If it is, do nothing and retain the fault status. If it is not equal to the lockout threshold, increment the corresponding fault aging timer by 1, then determine if the aging timer is greater than or equal to the aging recovery threshold. If the aging timer is greater than or equal to the aging recovery threshold, and the fault supports aging recovery, clear all states of the corresponding fault to 0. If the aging timer is greater than or equal to the aging recovery threshold, and the fault does not support aging recovery, set the aging timer to the lockout threshold. Proceed to step S107.
[0036] S107, End.
[0037] The beneficial effects of this invention are as follows: In the method of this invention, since the local storage space of the charging pile equipment is limited, when the charging pile equipment malfunctions, the charging pile equipment will locally record snapshot data of individual sensors related to the fault, which facilitates problem analysis when the equipment is returned to the factory and reduces the maintenance cost of the charging pile equipment. At the same time, the charging pile equipment will report data collected by multiple sensors of the charging pile for a period of time to the server, which facilitates remote problem analysis. In order to avoid frequent sending of snapshot data from affecting the normal communication of the charging pile and increasing traffic, this method also considers limiting the frequency of sending and classifying and encoding snapshot information for different faults. Detailed Implementation
[0038] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below in conjunction with specific embodiments. Obviously, the described embodiments are only a part of the embodiments of this invention, and not all of them. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this invention.
[0039] 1. After the charging pile equipment system starts up and runs, it will first check whether the operation cycle has started. Only when the operation cycle has started will the corresponding faults be detected and handled. Since different fault inspection environments are different, different fault types may correspond to different operation cycles, which mainly include the following steps:
[0040] S101, Define the operation cycle based on the operating environment of the system's multiple sensor devices. Generally, most detections are performed in real-time once the system enters normal operating mode, while some detections are triggered by special signals. Multiple operation cycles can be defined in the charging pile system, each with its own start and end conditions. For example, a normal operating mode operation cycle begins when the system enters normal mode and ends when the system enters standby mode. Configure an operation cycle for each fault; multiple faults may share a single operation cycle. Faults are categorized based on their inspection conditions. For example, a temperature sensor can be detected in real-time during normal system operation, and its configured operation cycle is the normal operating mode operation cycle. Proceed to step S102;
[0041] S102, Check the operating conditions of multiple operation cycles. If the corresponding operating conditions are met and the corresponding operation cycle has not started, proceed to step S103; if the corresponding operating conditions are met and the corresponding operation cycle has started, proceed to step S104; if the corresponding operating conditions are not met and the corresponding operation cycle has not ended, proceed to step S105; otherwise, proceed to step S107.
[0042] S103, Set the state of this operation cycle to start, update the state of each fault corresponding to the operation cycle, and set the test incomplete state of each fault to 1 and the test failed state within the operation cycle to 0. Proceed to step S107;
[0043] S104, monitor the faults corresponding to this operation cycle, perform effective calculations on the collected data, and confirm whether the corresponding sensor is faulty based on whether the valid values are problematic. If a fault is found, set the test failure status of the corresponding fault to 1, set the test failure status within the operation cycle to 1, and then perform filtering for a certain period of time. If the test failure status remains at 1 for the specified time, set the corresponding fault status to confirmed fault status. If this fault is configured to require snapshot reporting, and the fault sequence number is not equal to the currently reported fault sequence number, then request to report a snapshot to the server (see step 2), and set the requested reported fault sequence number to the fault sequence number. If this fault is configured to require snapshot recording, then request to record a snapshot locally (see step 6), and set the requested recorded fault sequence number to the fault sequence number. If there is no fault, set the test failure status of the corresponding fault to 0. Set the test incomplete status of the corresponding fault to 0, and proceed to step (a7).
[0044] S105, set the status of this operation cycle to end, and then judge all the fault statuses corresponding to this operation cycle. If the test incomplete status of the corresponding fault is 0 (indicating that the test is completed), and the test failure status within the operation cycle of the corresponding fault is 0, then perform aging processing on the corresponding fault and proceed to step S106; otherwise, proceed to step S107.
[0045] S106, determine if the aging timer is equal to the lockout threshold (e.g., 0xee). If it is equal to the lockout threshold, do nothing and retain the fault state. If it is not equal to the lockout threshold, increment the corresponding fault aging timer by 1, then determine if the aging timer is greater than or equal to the aging recovery threshold (e.g., 0x10). If the aging timer is greater than or equal to the aging recovery threshold, and this fault supports aging recovery, clear all states of the corresponding fault to 0. If the aging timer is greater than or equal to the aging recovery threshold, and this fault does not support aging recovery, set the aging timer to the lockout threshold. Proceed to step S107.
[0046] S107, End.
[0047] It is worth noting that each fault is assigned a sequence number, starting from 1 and incrementing sequentially. Additionally, each fault is configured to determine whether a local snapshot needs to be recorded and whether the snapshot needs to be reported to the server when the fault occurs.
[0048] 2. Define a snapshot memory structure type, whose members include fault number, reporting count, and reporting latency. To save memory, define a snapshot reporting array using the snapshot memory structure. The array length is half the number of faults. For example, if there are 40 faults, the snapshot reporting array length is 20. This avoids allocating a snapshot memory for each fault, saving space. Furthermore, generally, not all faults will occur in the system, and some faults that do not affect charging do not need to be reported in snapshots.
[0049] When a request to report a fault sequence number is set, the system first searches the snapshot reporting array, starting with a sequence number less than 0 and the array length. It checks if the fault sequence number in each array equals the request to report a fault sequence number. If no request to report a fault sequence number is found, it means the current snapshot reporting array does not record one, and an invalid (unused) fault sequence number is searched. The system continues searching the snapshot reporting array, again starting with a sequence number less than 0 and the array length, checking if the fault sequence number in each array equals an invalid fault sequence number. If an invalid fault sequence number is found, the system sets the current snapshot reporting array's fault sequence number to the request to report a fault sequence number, sets the current snapshot reporting array's fault reporting count to 1, sets the current snapshot reporting array's fault reporting delay time to the maximum delay threshold (e.g., the maximum delay threshold is 1 hour's count), sets the current reporting status to "sending," sets the reporting count to 0, and sets the 1-second period timer to 0.
[0050] If a snapshot report is requested and the fault number already exists, it will be searched in the snapshot report array, starting from 0 and less than the array length. Each snapshot report array's fault number will be checked against the requested fault number. If a requested fault number is found, it means there is a record of it in the current snapshot report array. If the number of reports in the current snapshot report array is less than or equal to the maximum number of fault reports, and the fault report delay time in the current snapshot report array is 0, then the fault report count in the current snapshot report array is incremented by 1, the fault report delay time in the current snapshot report array is set to the maximum delay threshold (e.g., the maximum delay threshold is the number of times a 1-hour timer is used), the current report sending status is set to "sending," the report sending count is set to 0, and the 1-second period timer is set to 0. If the number of reports in the current snapshot report array is greater than the maximum number of fault reports, or the fault report delay time in the current snapshot report array is not equal to 0, then the requested fault number is set to "invalid."
[0051] 3. To reduce system load and stagger task execution, a 1-second cycle timer is defined, starting from 0 and incrementing by 1 each cycle. When the 1-second cycle timer reaches 1 second, it is set to 0. When the 1-second cycle timer reaches 100 milliseconds, all sensor channel acquisition data is read (see step 4). When the 1-second cycle timer reaches 200 milliseconds, if the current reporting status is "transmitting," reporting data needs to be sent (see step 5). When the 1-second cycle timer reaches 500 milliseconds, a query is performed in the snapshot reporting array, starting from 0 and less than the array length. The fault reporting delay time in each snapshot reporting array is checked to see if it is greater than 0. If it is, the fault reporting delay time in the current snapshot reporting array is decremented by 1.
[0052] 4. Define a two-dimensional read array to cyclically store data collected from multiple sensors. The horizontal coordinate of the two-dimensional read array is represented by the current read sequence number, and the vertical coordinate is represented by the sensor channel number. At any given time point, the horizontal coordinate of the two-dimensional read array is the current read sequence number, and each sensor channel corresponds to one vertical coordinate number. Sensor channels are assigned a number starting from 0. The maximum value of the horizontal coordinate number is the maximum snapshot memory count. For example, if a maximum of 10 seconds of snapshot data is retained, and data is read once per second, then the maximum snapshot memory count is 10. The maximum value of the vertical axis number represents the maximum number of sensor channels. For example: 0 represents the L1 phase voltage channel of the power grid, 1 represents the L1 phase current channel of the power grid, 2 represents the power grid frequency, 3 represents the relay 1 status channel, 4 represents the relay power supply channel, 5 represents the PE voltage channel, 6 represents the CP voltage channel, 7 represents the CP duty cycle channel, 8 represents the temperature 1 channel, 9 represents the temperature 2 channel, 10 represents the temperature 3 channel, 11 represents the temperature 4 channel, 12 represents the L2 phase voltage channel of the power grid, 13 represents the L2 phase current channel of the power grid, 14 represents the L3 phase voltage channel of the power grid, 15 represents the L3 phase current channel of the power grid, 16 represents the relay 2 status channel, and 17 represents the relay 3 status channel. Therefore, there are a total of 18 channels, and the maximum number of sensor channels is 18.
[0053] Data from all sensor channels is read and stored in the corresponding two-dimensional read array address. The horizontal coordinate number is the current read sequence number, which remains unchanged during a single data read. The vertical coordinate number is the sensor channel number, which starts from 0 and increases to less than the maximum number of sensor channels during a single data read. After reading the data from all sensor channels, the sequence numbers are stored in the corresponding two-dimensional read array.
[0054] The current read sequence number starts from 0. After each read is completed, the current read sequence number is incremented by 1, that is, the current read sequence number = the current read sequence number + 1. If the current read sequence number is greater than or equal to the maximum snapshot memory time count, then the current read sequence number is 0.
[0055] 5. Define a reporting array to store the data to be sent. The reported data includes the fault number (one byte), sensor data code (three bytes), reporting time (four bytes), and sensor data (not fixed). The sensor data code uses each bit to indicate whether data from a sensor channel needs to be sent. A bit of 1 indicates that data from that channel needs to be sent, and a bit of 0 indicates that data from that channel does not need to be sent. Bit 0 indicates whether sensor channel 0 needs to send data. Each bit corresponds to one sensor channel, and bit 17 represents sensor channel 17. A maximum of 18 bits can be used. Additionally, the sensor data code corresponding to each reported fault needs to be configured and defined as required.
[0056] When the 1-second cycle timer value is 200 milliseconds and the current reporting status is in the sending state, it is necessary to send the reporting data.
[0057] The first byte of the transmit array is assigned the current fault number, followed by three bytes of sensor data encoding, and then four bytes of system time. Next, the sensor data from the two-dimensional read array is retrieved. The horizontal coordinate number is the current read number, and the vertical coordinate number starts from channel 0 and goes up to a value less than the maximum number of sensor channels. The corresponding bit of the sensor data encoding is checked for 1. If it is 1, the corresponding data in the two-dimensional read array is assigned to the corresponding transmit array address. For example, when temperature sensor 1 experiences an over-temperature fault, voltage, current, and temperature data need to be reported. The data is as follows: current fault number is 19, sensor data encoding is configured as binary data 0b001010111100000011, system time data is 0x61CF374D (Beijing time: January 1, 2022, 1:01:01 AM), grid L1 phase voltage data, grid L1 phase current data, temperature 1 data, temperature 2 data, temperature 3 data, temperature 4 data, grid L2 phase current data, and grid L3 phase current data.
[0058] The reported data array is sent to the server via remote communication, and the reporting count is incremented by 1 (i.e., reporting count = reporting count + 1). If the reporting count is greater than or equal to the maximum snapshot reporting count, the reporting count is set to 0, the current reporting status is set to idle, and the reported request fault number is set to invalid. The maximum snapshot reporting count is equal to twice the maximum snapshot memory time. For example, if the maximum snapshot memory time is 10 seconds, the data sent will be the data from the 10 seconds before and after the fault occurred. If the maximum snapshot memory time is 10, then the maximum snapshot reporting count is 20.
[0059] It is worth noting that when a fault occurs, the horizontal coordinate index of the two-dimensional array is the current read sequence number. The data corresponding to this sequence number is the oldest data in the historical memory. When the next 100 milliseconds have elapsed, new data will be read to overwrite the data corresponding to this read sequence number. After the reading is completed, the current read sequence number will be incremented by 1. When 300 milliseconds have elapsed, the current sequence number is the data to be sent (the oldest data in the current historical memory).
[0060] 6. Define a snapshot record array, with an array length equal to the maximum number of sensor channels, e.g., a maximum number of sensor channels of 18. When a sensor malfunctions, the fault data collected by the sensor will be recorded locally for easy analysis of problems with the prototype after-sales service.
[0061] Each fault is configured based on its fault sequence number, including the corresponding sensor channel number and the fault record data type. The fault record data type includes options for retrieving the maximum value, minimum value, and latest value. For example, if a fault record data type is configured to retrieve the maximum value, then when a fault occurs, the maximum value will be retrieved from all data recorded for that channel in the two-dimensional read array. If a fault record data type is configured to retrieve the minimum value, then when a fault occurs, the minimum value will be retrieved from all data recorded for that channel in the two-dimensional read array. If a fault record data type is configured to retrieve the latest value, then when a fault occurs, the data that was just recorded will be retrieved from the two-dimensional read array.
[0062] If the requested fault number is not invalid, the sensor channel number and fault record data type corresponding to this fault can be retrieved according to the configuration.
[0063] If the fault record data type is configured to take the maximum value, the horizontal coordinate index of the two-dimensional read array starts from 0 and goes up to the number of times it is less than the maximum snapshot memory time. The vertical coordinate index is the corresponding sensor channel index. The vertical coordinate index remains unchanged. First, the data with the horizontal coordinate index of 0 is read and assigned to the temporary fault record value. Then, the data of the two-dimensional read array of all subsequent indexes is read. During the reading, a judgment is made. If the data of the two-dimensional read array is greater than the temporary fault record value, then the temporary fault record value is equal to the data of the two-dimensional read array.
[0064] If the fault record data type is configured to take the minimum value, the horizontal coordinate index of the two-dimensional read array starts from 0 and goes up to the number of times it is less than the maximum snapshot memory time. The vertical coordinate index is the corresponding sensor channel index. The vertical coordinate index remains unchanged. First, the data with the horizontal coordinate index of 0 is read and assigned to the temporary fault record value. Then, the data of the two-dimensional read array of all subsequent indexes is read. During the reading, a judgment is made. If the data of the two-dimensional read array is less than the temporary fault record value, then the temporary fault record value is equal to the data of the two-dimensional read array.
[0065] If the fault record data type is configured to retrieve the latest value, the vertical coordinate sequence number of the two-dimensional read array is the corresponding sensor channel sequence number, and the horizontal coordinate sequence number is calculated as (current read sequence number + maximum snapshot memory time count - 1) % maximum snapshot memory time count (i.e., taking the remainder of the formula). The recorded temporary fault value is equal to the data in the two-dimensional read array.
[0066] In all three scenarios above, the temporary fault value needs to be assigned to the address of the snapshot recording array with the sensor channel number as the index. Simultaneously, this snapshot data will be written to the EEPROM for permanent storage according to a specified format. The recorded data includes: fault number (one byte), recording time (4 bytes), and single sensor snapshot data (one byte).
[0067] In the EEPROM, a maximum number of records is defined based on the number of bytes (6 bytes) of each snapshot record. The record number starts from 0, and is incremented by 1 for each record. If the record number is greater than or equal to the maximum number of records, the record number is set to 0. The maximum number of records is configurable, such as 100 records.
[0068] Set the request log fault number to an invalid value.
[0069] It is worth noting that the formula for calculating the horizontal coordinate sequence number, which obtains the previous sequence number of the current read sequence number, needs to prevent overflow. For example, if the current read sequence number is 0, subtracting 1 will cause an overflow.
[0070] 7. The data collected by the above sensors is ultimately in the range of one byte. The raw data needs to be converted, primarily the voltage and temperature data of the power grid. The power grid voltage data range is [50V, 300V]. When it is greater than 300V, it is directly set to 300V; when it is less than 50V, it is directly set to 50V. Then, offset the voltage data by 50V, which is the effective voltage value minus 50V, to obtain the snapshot voltage value, with a range of [0, 250]. The temperature sensor data range is [-50°, 200°]. An offset of 50°, which is the effective temperature value plus 50°, is the snapshot temperature value, with a range of [0, 250].
[0071] 8. If a charging station malfunctions during use, and the malfunction is configured to support snapshot reporting, the corresponding snapshot data reported by the charging station can be queried from the server immediately for analysis and quick problem resolution. If the problem cannot be resolved, the faulty prototype can be returned to the factory, and the recorded snapshot data can be read and analyzed using a host computer tool.
[0072] The above description is merely an embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principle of the present invention should be included within the scope of the claims of the present invention.
Claims
1. A method for recording and reporting fault information of an on-board charging pile, characterized in that: After the charging pile equipment system is started and running, the faults corresponding to the operation cycle are monitored. A snapshot memory structure type is defined, with members including fault number, reporting count, and reporting latency; and a snapshot reporting array is defined using the snapshot memory structure. The two-dimensional read array is used to cyclically store data collected by multiple sensors. The horizontal coordinate of the two-dimensional read array is represented by the current read sequence number in time, and the vertical coordinate of the two-dimensional read data is represented by the sensor channel number. Data from all sensor channels is read and stored in the corresponding two-dimensional read array address. The reporting and sending array is used to store the data to be sent. The data to be sent includes the fault number, sensor data code, reporting time, and sensor data. Multiple bytes of the reporting and sending array are sequentially assigned the current fault number, sensor data code, and reporting time. Then, the sensor data in the two-dimensional reading array is obtained. The corresponding bits of the sensor data code are judged in turn. If the judgment is successful, the data in the corresponding two-dimensional reading array is assigned to the corresponding reporting and sending array address. The snapshot record array is configured for each fault according to the fault number, including the corresponding sensor channel number and fault record data type for each fault; Based on the fault record data type configuration, the temporary fault value is assigned to the address of the snapshot record array with the sensor channel number; at the same time, this snapshot array data is written to the local EEPROM for storage according to the specified format. The above-mentioned data in the reporting array is sent to the server via remote communication; The server queries and analyzes the snapshot data reported by the corresponding charging pile.
2. The method for recording and reporting fault information of an on-board charging pile according to claim 1, characterized in that... : The data from all sensor channels is read and stored in the corresponding two-dimensional read array address. The horizontal coordinate number is the current read sequence number, which remains unchanged in one data read. The vertical coordinate number is the sensor channel number. In one data read, the vertical coordinate number starts from 0 and goes up to less than the maximum number of sensor channels. The data of the sequence numbers of all sensor channels are read and stored in the corresponding two-dimensional read array. The current read sequence number starts from 0. After each read is completed, the current read sequence number is incremented by 1. If the current read sequence number is greater than or equal to the maximum snapshot memory time count, then the current read sequence number is 0.
3. The method for recording and reporting fault information of an on-board charging pile according to claim 1, characterized in that: Sensor data encoding uses each bit to indicate whether the data for the corresponding sensor channel needs to be sent. Each bit being 1 indicates that the sensor data for this channel needs to be sent, and each bit being 0 indicates that the sensor data for this channel does not need to be sent. Bit 0 indicates whether sensor channel 0 needs to be sent. Each bit corresponds to one sensor channel.
4. The method for recording and reporting fault information of an on-board charging pile according to claim 1, characterized in that: The first byte of the transmit array is assigned the current fault number, the next 3 bytes are assigned the sensor data code, and the next 4 bytes are assigned the system time. Then, the data of the sensor in the two-dimensional read array is obtained. The horizontal coordinate number is the current read number, and the vertical coordinate number starts from channel 0 and goes up to less than the maximum number of sensor channels. The corresponding bit of the sensor data code is checked to see if it is 1. If it is 1, the data in the corresponding two-dimensional read array is assigned to the corresponding transmit array address.
5. The method for recording and reporting fault information of an on-board charging pile according to claim 1, characterized in that... Define a snapshot reporting array using a snapshot memory structure. The length of the array is half the number of faults. When a fault reporting sequence number is set, the system first searches the snapshot reporting array. The sequence number starts from 0 and is less than the array length. It checks whether the fault sequence number in each array is equal to the requested fault reporting sequence number. If no requested fault reporting sequence number is found, it means that the current snapshot reporting array does not record the requested fault reporting sequence number. In this case, it needs to continue searching for an invalid fault sequence number in the snapshot reporting array. After finding an invalid fault sequence number, the system sets the fault sequence number in the current snapshot reporting array to the requested fault reporting sequence number, sets the fault reporting count in the current snapshot reporting array to 1, sets the fault reporting delay time in the current snapshot reporting array to the maximum delay threshold, and sets the current reporting sending status to the sending status. If a snapshot is requested to be reported, and the fault number already exists, it will be searched in the snapshot reporting array. The number starts from 0 and is less than the array length. The fault number in each snapshot reporting array is read to see if it is equal to the requested fault number. If the requested fault number is found, it means that there is a record of the requested fault number in the current snapshot reporting array. If the number of reports in the current snapshot reporting array is less than or equal to the maximum number of fault reports, and the fault reporting delay time in the current snapshot reporting array is equal to 0, then the fault reporting count in the current snapshot reporting array is incremented by 1, the fault reporting delay time in the current snapshot reporting array is set to the maximum delay threshold, and the current reporting sending status is set to the sending status. If the number of reports in the current snapshot reporting array is greater than the maximum number of fault reports, or if the fault reporting delay time in the current snapshot reporting array is not equal to 0, then the fault reporting sequence number is set to invalid.
6. The method for recording and reporting fault information of an on-board charging pile according to claim 1, characterized in that... Send the reported data to the server via remote communication, and increment the reporting count by 1. If the reporting count is greater than or equal to the maximum snapshot reporting count, set the reporting count to 0, set the current reporting status to idle, and set the reported request fault number to invalid. The maximum snapshot reporting count is equal to twice the maximum snapshot memory time count.
7. The method for recording and reporting fault information of an on-board charging pile according to claim 1, characterized in that... Define a snapshot record array with a length equal to the maximum number of sensor channels. Configure each fault according to its fault number, including the corresponding sensor channel number and fault record data type. The fault record data type includes maximum value, minimum value, and latest value. Based on the configuration of the maximum value, minimum value, and latest value fault record data type, record the temporary fault value as data from a two-dimensional read array and assign it to the address of the snapshot record array with the sensor channel number. At the same time, write this snapshot data to EEPROM for permanent storage according to the specified format.
8. A method for recording and reporting fault information of an on-board charging pile according to claim 7, characterized in that... : If the requested fault number is not invalid, the sensor channel number and fault record data type corresponding to this fault can be retrieved according to the configuration. If the fault record data type is configured to take the maximum value, the horizontal coordinate index of the two-dimensional read array starts from 0 and goes up to the number of times it is less than the maximum snapshot memory time. The vertical coordinate index is the corresponding sensor channel index. The vertical coordinate index remains unchanged. First, the data with the horizontal coordinate index of 0 is read and assigned to the temporary fault record value. Then, the data of the two-dimensional read array of all subsequent indexes is read. During the reading, a judgment is made. If the data of the two-dimensional read array is greater than the temporary fault record value, then the temporary fault record value is equal to the data of the two-dimensional read array, so that the temporary fault record value is the maximum value of the corresponding sensor record data. If the fault record data type is configured to take the minimum value, the horizontal coordinate index of the two-dimensional read array starts from 0 and goes up to the number of times it is less than the maximum snapshot memory time. The vertical coordinate index is the corresponding sensor channel index. The vertical coordinate index remains unchanged. First, the data with the horizontal coordinate index of 0 is read and assigned to the temporary fault record value. Then, the data of all subsequent indexes in the two-dimensional read array is read. During the reading, a judgment is made. If the data of the two-dimensional read array is less than the temporary fault record value, then the temporary fault record value is equal to the data of the two-dimensional read array, so that the temporary fault record value is the minimum value of the corresponding sensor record data. If the fault record data type is configured to retrieve the latest value, the vertical coordinate sequence number of the two-dimensional read array is the corresponding sensor channel sequence number, and the horizontal coordinate sequence number is (current read sequence number + maximum snapshot memory time count - 1)% maximum snapshot memory time count; the recorded fault temporary value is equal to the two-dimensional read array data; In all the above cases, the temporary fault value needs to be assigned to the address of the snapshot record array with the sensor channel number. At the same time, this snapshot data will be written to the EEPROM for permanent storage according to the specified format.
9. A method for recording and reporting fault information of an on-board charging pile according to claim 1, characterized in that... : The data collected by the sensors is ultimately in the range of one byte, and the raw data needs to be converted.
10. A method for recording and reporting fault information of an on-board charging pile according to claim 1, characterized in that... : Among the steps for monitoring faults corresponding to the operation cycle: S101, Define the operation cycle according to the operating environment of the system detecting multiple sensor devices, and detect in real time when the system enters normal operation mode or trigger detection according to the signal; if the configured operation cycle is the normal operation mode operation cycle, proceed to step S102. S102, The operating conditions of multiple operation cycles are detected. If the corresponding operating conditions are met and the corresponding operation cycle has not started, proceed to step S103; if the corresponding operating conditions are met and the corresponding operation cycle has started, proceed to step S104; if the corresponding operating conditions are not met and the corresponding operation cycle has not ended, proceed to step S105. Otherwise, proceed to step S107; S103, Set the state of this operation cycle to start, update the state of each fault corresponding to the operation cycle, set the test incomplete state of each fault to 1 and the test failure state within the operation cycle to 0, and proceed to step S107. S104, monitor the faults corresponding to this operation cycle, perform effective calculations on the collected data, and then confirm whether the corresponding sensor is faulty based on whether there are problems with the effective values; If the fault is configured to require snapshot reporting, and the fault sequence number is not equal to the current reported fault sequence number, then a snapshot report is requested to be sent to the server, and the requested reported fault sequence number is set to the fault sequence number. If the fault is configured to require snapshot recording, then a snapshot is requested to be recorded locally, and the requested recorded fault sequence number is set to the fault sequence number. If there is no fault, set the test failure status of the corresponding fault to 0, set the test incomplete status of the corresponding fault to 0, and proceed to step S107. S105, set the status of this operation cycle to end, and then judge all the fault statuses corresponding to this operation cycle. If the test incomplete status of the corresponding fault is 0, and the test failure status within the operation cycle of the corresponding fault is 0, then perform aging processing on the corresponding fault and proceed to step S106. Otherwise, proceed to step S107; S106. Determine if the aging timer is equal to the lockout threshold. If it is equal to the lockout threshold, do not process and retain the fault status. If it is not equal to the lockout threshold, increment the corresponding fault aging timer by 1, and then determine if the aging timer is greater than or equal to the aging recovery threshold. If the aging timer is greater than or equal to the aging recovery threshold and the fault supports aging recovery, clear all states of the corresponding fault to 0. If the aging timer is greater than or equal to the aging recovery threshold and the fault does not support aging recovery, set the aging timer to equal the lockout threshold and proceed to step S107. S107, End.
Citation Information
Patent Citations
Sensor data reporting method, device and system
CN106603357A
Charging pile recommendation method, device and system and storage medium
CN114516278A
