CN110223417B - Electric vehicle information recording method and device, handheld device and storage medium - Google Patents

Electric vehicle information recording method and device, handheld device and storage medium Download PDF

Info

Publication number
CN110223417B
CN110223417B CN201910511734.9A CN201910511734A CN110223417B CN 110223417 B CN110223417 B CN 110223417B CN 201910511734 A CN201910511734 A CN 201910511734A CN 110223417 B CN110223417 B CN 110223417B
Authority
CN
China
Prior art keywords
data
electric vehicle
module
file
information recording
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201910511734.9A
Other languages
Chinese (zh)
Other versions
CN110223417A (en
Inventor
胡依林
汤涛
徐佳伟
廖晋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Niudian Information Technology Co ltd
Original Assignee
Beijing Niudian Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Niudian Information Technology Co ltd filed Critical Beijing Niudian Information Technology Co ltd
Priority to CN201910511734.9A priority Critical patent/CN110223417B/en
Publication of CN110223417A publication Critical patent/CN110223417A/en
Application granted granted Critical
Publication of CN110223417B publication Critical patent/CN110223417B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C5/00Registering or indicating the working of vehicles
    • G07C5/08Registering or indicating performance data other than driving, working, idle, or waiting time, with or without registering driving, working, idle or waiting time
    • G07C5/0841Registering performance data

Abstract

The invention discloses an electric vehicle information recording method, an electric vehicle information recording device, handheld equipment and a storage medium, wherein the method comprises the following steps: receiving an information recording instruction triggered by a user, acquiring at least one piece of data transmitted inside the electric vehicle from a bus of the electric vehicle, and storing the at least one piece of data and the time when the data is acquired in a first file. On the one hand, the information of the electric vehicle can be recorded according to the operation of the user by adopting the mode of triggering the information recording by the user, compared with the mode of always acquiring the information, the data volume of the storage is reduced, the storage cost is reduced, on the other hand, the time for acquiring the data is also stored in the first file, the data is convenient to analyze subsequently, and the user experience is improved.

Description

Electric vehicle information recording method and device, handheld device and storage medium
Technical Field
The embodiment of the invention relates to the field of electric vehicles, in particular to an electric vehicle information recording method and device, handheld equipment and a storage medium.
Background
With the development of the automobile industry, the holding amount of electric vehicles such as electric bicycles and electric motorcycles is increasing. During the use and development of these electric vehicles, it is necessary to record communication data between the respective modules inside the electric vehicles.
At present, in patent application publication No. CN2864823Y, there are disclosed: the vehicle data recorder takes a 32-bit ARM microcontroller as a core, collects and receives vehicle information through a CAN bus, and stores vehicle state data through an expansion off-chip large-capacity flash memory.
However, in the above implementation, as long as the vehicle data recorder is connected to the vehicle, the vehicle information is collected all the time, which results in a large amount of data of the vehicle information to be recorded and a high storage cost.
Disclosure of Invention
The invention provides an electric vehicle information recording method, an electric vehicle information recording device, handheld equipment and a storage medium, and aims to solve the technical problems of large data volume and high storage cost in the existing electric vehicle information recording process.
In a first aspect, an embodiment of the present invention provides an electric vehicle information recording method, including:
receiving an information recording instruction triggered by a user;
acquiring at least one piece of data transmitted inside an electric vehicle from a bus of the electric vehicle;
and storing at least one piece of data and the time when the data is acquired in a first file.
In a second aspect, an embodiment of the present invention provides an electric vehicle information recording apparatus, including:
the receiving module is used for receiving an information recording instruction triggered by a user;
the acquisition module is used for acquiring at least one piece of data transmitted inside an electric vehicle from a bus of the electric vehicle;
and the storage module is used for storing at least one piece of data and the time when the data are acquired in a first file.
In a third aspect, an embodiment of the present invention further provides a handheld device, where the handheld device includes:
one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the electric vehicle information recording method as provided in the first aspect.
In a fourth aspect, embodiments of the present invention also provide a computer-readable storage medium, on which a computer program is stored, which when executed by a processor, implements the electric vehicle information recording method as provided in the first aspect.
The embodiment of the invention provides an electric vehicle information recording method, an electric vehicle information recording device, handheld equipment and a storage medium, wherein the method comprises the following steps: receiving an information recording instruction triggered by a user, acquiring at least one piece of data transmitted inside the electric vehicle from a bus of the electric vehicle, and storing the at least one piece of data and the time when the data is acquired in a first file. On the one hand, the information of the electric vehicle can be recorded according to the operation of the user by adopting the mode of triggering the information recording by the user, compared with the mode of always acquiring the information, the data volume of the storage is reduced, the storage cost is reduced, on the other hand, the time for acquiring the data is also stored in the first file, the data is convenient to analyze subsequently, and the user experience is improved.
Drawings
Fig. 1 is a schematic flowchart of a first embodiment of an electric vehicle information recording method according to the present invention;
FIG. 2A is a schematic diagram of a user interface in the embodiment of FIG. 1;
FIG. 2B is a schematic view of another user interface in the embodiment shown in FIG. 1;
FIG. 3 is a diagram illustrating data in a first file in the embodiment shown in FIG. 1;
FIG. 4 is a flowchart illustrating a second embodiment of an electric vehicle information recording method according to the present invention;
FIG. 5 is a schematic view of a user interface in the embodiment of FIG. 4;
FIG. 6A is a diagram illustrating data in a second file according to the embodiment shown in FIG. 4;
FIG. 6B is a diagram illustrating data in a second file according to another embodiment shown in FIG. 4;
FIG. 7 is a flowchart illustrating a third embodiment of a method for recording information of an electric vehicle according to the present invention;
FIG. 8 is a schematic illustration of a user interface in the embodiment of FIG. 7;
FIG. 9 is a schematic structural diagram of a first embodiment of an information recording apparatus for an electric vehicle according to the present invention;
FIG. 10 is a schematic structural diagram of a second embodiment of an information recording apparatus for an electric vehicle according to the present invention;
fig. 11 is a schematic structural view of a third embodiment of an electric vehicle information recording apparatus according to the present invention;
fig. 12 is a schematic structural diagram of a handheld device provided by the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Fig. 1 is a schematic flowchart of a first embodiment of an electric vehicle information recording method according to the present invention. The embodiment is suitable for a scene of recording interactive data among various modules of the electric vehicle. The present embodiment may be performed by an electric vehicle information recording apparatus, which may be implemented by software and/or hardware, and which may be integrated in a handheld device. As shown in fig. 1, the electric vehicle information recording method provided by the present embodiment includes the steps of:
step 101: and receiving an information recording instruction triggered by a user.
Specifically, the electric vehicle in the present embodiment may be an electric vehicle such as an electric bicycle, an electric motorcycle, or an electric automobile. The user in this embodiment may be a developer of the electric vehicle, an after-market person, a service person, a factory manufacturer, or a consumer of the electric vehicle. The electric vehicle information recording device or the handheld device in this embodiment may be connected to a communication interface of the electric vehicle, such as a 485 interface, through a data line. Of course, the electric vehicle information recording apparatus or the handheld device may also be connected to the electric vehicle through other methods, such as a wireless communication method, which is not limited in this embodiment.
Alternatively, the user may trigger the information recording instruction through a key or a touch screen of the electric vehicle information recording device or the handheld device. FIG. 2A is a diagram of a user interface in the embodiment shown in FIG. 1. As shown in fig. 2A, a user may trigger an information recording instruction through a user interface 201 on a touch screen of an electric vehicle information recording apparatus or a handheld device. In fig. 2A, the user may click on an icon "Comm _ log" representing information recording to trigger an information recording instruction for information recording on the electric vehicle.
In one implementation, after receiving a trigger action of a user, the electric vehicle information recording apparatus or the handheld device may highlight an icon of the information recording on the display screen. In another implementation manner, a hollow dot is arranged below each icon on a display screen of the electric vehicle information recording device or the handheld device, when the touch screen cannot be operated, a user can trigger the touch screen through a physical key, and after receiving a trigger action of the user, the hollow dot below the icon for information recording can be changed into a solid dot.
Step 102: at least one piece of data transmitted inside the electric vehicle is acquired from a bus of the electric vehicle.
Specifically, the data transmitted inside the electric vehicle in the present embodiment refers to data mutually transmitted between the internal modules of the electric vehicle. The internal module may be a Battery Management System (BMS) of the electric vehicle, an Electronic Control Unit (ECU), a Light Control Unit (LCU), a display module, a lock Control, a dual-switch Controller, a fast charger, or a vector Controller (FOC). The lock control is a module on the electric vehicle for leasing, and can be used for realizing the functions of locking a faucet lock, unlocking the faucet lock, opening a cushion lock, opening a trunk lock, unlocking the trunk lock and the like. The double-cutting controller can be used for supplying power to the whole vehicle after output power supplies of the two batteries are connected in parallel. The display module of the electric vehicle may be an instrument of the electric vehicle.
During the running process of the electric vehicle, communication can be carried out between BMS and ECU, between LCU and ECU, between instrument and ECU, between lock control and ECU, between double-switch controller and ECU, between quick-charging charger and ECU, and between FOC and ECU. For example, the ECU acquires battery level information from the BMS, and then sends the battery level information to the meter for display, and in the process, data interaction exists between the ECU and the BMS and between the ECU and the meter.
A piece of data in this embodiment refers to data contained in one data packet that a sender sends to a receiver in one transmission process. The data packet in this embodiment refers to a data packet encapsulated according to a predetermined communication protocol.
Data transmitted between the internal modules of the electric vehicle is transmitted through the bus of the electric vehicle. Optionally, the bus of the electric vehicle in this embodiment is a 485 bus.
In the using process, the developing process or the troubleshooting process of the electric vehicle, in some scenarios, for example, in order to verify whether the underlying code of a certain module operates normally, data transmitted inside the electric vehicle needs to be acquired. The user may trigger an information recording instruction. After receiving the information recording command, the electric vehicle information recording device or the handheld device acquires data transmitted inside the electric vehicle from a bus of the electric vehicle.
The electric vehicle information recording device or the handheld device can monitor the electric vehicle bus in real time, and when data are transmitted on the bus, the data are acquired.
Step 103: at least one piece of data and the time when the data is acquired are stored in a first file.
Specifically, the time when the data is acquired in the present embodiment refers to the time when the electric vehicle information recording apparatus or the handheld device acquires the data. The electric vehicle information recording apparatus or the hand-held device can acquire the time from its internal clock circuit. The time when the data is acquired is stored to facilitate subsequent analysis of the data.
When a plurality of pieces of data are acquired, each piece of data has corresponding acquisition time, and the plurality of pieces of data and the corresponding acquisition time are stored in a first file.
The first file in this embodiment may be a text file in the format of txt. The name of the first file may be named after the power-on time of the electric vehicle information recording device or the handheld device closest to the message record. For example, after 4.1 days of booting, information recording is performed, and the name of the first file may be 0401_00. txt. Where 00 denotes the number of the first file.
The first file may be located in an internal memory of the electric vehicle information recording apparatus or the handheld device, or may be located in a memory Card of the electric vehicle information recording apparatus or the handheld device, for example, a Trans-flash Card (TF Card).
Alternatively, storing data and the time when the data is acquired in the first File may be achieved by performing an OpenFile operation, a Write File operation, and a CloseFile operation.
In one implementation manner, when a first file is located in a TF card, in order to avoid attenuation of the life of the TF card caused by frequent reading and writing of the TF card, when the data amount of at least one piece of data is smaller than a preset data amount threshold, the at least one piece of data and corresponding time when the data is acquired are cached, and when the data amount of the cached data is greater than or equal to the data amount threshold, the cached data and the corresponding time are stored in the first file. And the loss of the TF card is reduced in a batch writing mode.
When the data and the time when the data is received are stored in the first file, the number of bytes written in the first file may be displayed on the screen of the electric vehicle information recording apparatus or the handheld device. FIG. 2B is a schematic diagram of another user interface in the embodiment shown in FIG. 1. As shown in FIG. 2B, the number of bytes written to the first file is displayed on the user interface 202.
Optionally, when the first file is a txt format file, the first file may be browsed through Notepads software or notepad software under a Windows system. The present embodiment does not limit the software that opens the first file. FIG. 3 is a diagram illustrating data in a first file in the embodiment shown in FIG. 1. As shown in fig. 3, a plurality of pieces of data are recorded in the first file with time as a division. In a piece of data "60135183F 2950852", 601 denotes the start of data, 35183F denotes actual data contained in the piece of data, 29 denotes that the sender of the data is an ECU, 50 denotes that the receiver of the data is a BMS, and 852 denotes the end of the piece of data.
Optionally, the electric vehicle information recording device or the handheld device may further send the first file to the cloud server for backup storage.
In this embodiment, after receiving the recording ending instruction triggered by the user, the data acquisition on the electric vehicle bus may be stopped.
The following describes the process of the electric vehicle information recording method provided in the present embodiment with a specific example: in order to verify whether the underlying software of the electric vehicle can run effectively, an electric vehicle research and development worker may first connect the electric vehicle information recording device or the handheld device related in this embodiment to a communication interface of the electric vehicle; then, the research personnel trigger an information recording instruction; after receiving the information recording command, the electric vehicle information recording apparatus or the handheld device executes step 102 and step 103, and stores at least one piece of data transmitted by the electric vehicle content and the time when the data is acquired. Subsequently, the research and development personnel open the first file and determine whether the bottom layer software is effectively operated according to the data and the time when the data is acquired.
The embodiment provides an electric vehicle information recording method, which comprises the following steps: receiving an information recording instruction triggered by a user, acquiring at least one piece of data transmitted inside the electric vehicle from a bus of the electric vehicle, and storing the at least one piece of data and the time when the data is acquired in a first file. On the one hand, the information of the electric vehicle can be recorded according to the operation of the user by adopting the mode of triggering the information recording by the user, compared with the mode of always acquiring the information, the data volume of the storage is reduced, the storage cost is reduced, on the other hand, the time for acquiring the data is also stored in the first file, the data is convenient to analyze subsequently, and the user experience is improved.
Fig. 4 is a flowchart illustrating a second embodiment of an electric vehicle information recording method according to the present invention. The present embodiment will explain other steps of the information recording method for an electric vehicle in detail on the basis of the alternatives given in the first embodiment. As shown in fig. 4, the electric vehicle information recording method provided by the present embodiment includes the steps of:
step 401: and receiving an information recording instruction triggered by a user.
Step 402: at least one piece of data transmitted inside the electric vehicle is acquired from a bus of the electric vehicle.
Step 403: at least one piece of data and the time when the data is acquired are stored in a first file.
The implementation processes and technical principles of step 401 and step 101, step 402 and step 102, and step 403 and step 103 are similar, and are not described herein again.
Step 404: and determining the sending direction of the data according to a preset communication protocol for each piece of data.
The sending direction indicates that the data is sent by an ECU of the electric vehicle, or the data is received by the ECU.
Specifically, the preset communication protocol specifies the position of the identifier of the data sender and the position of the identifier of the data receiver. The electric vehicle information recording device or the handheld device can determine whether the data is sent to the ECU or sent by the ECU according to the specific identification at the positions: when the identification of the data sender is the identification corresponding to the ECU, determining the data as the data sent by the ECU; and when the identification of the data receiving party is the identification corresponding to the ECU, determining the data as the data received by the ECU.
Step 405: and when the data is determined to be the data received by the ECU, determining a sending module of the data according to the communication protocol.
Specifically, when the data is determined to be the data received by the ECU, the sending module of the data is determined according to the specific identifier of the position where the identifier of the data sending party is located. The sending module in this embodiment may be a BMS, an LCU, a display module, a lock, a double-switch controller, a fast charger, or a FOC.
Step 406: and converting the data into the operation information of the sending module according to a preset conversion protocol.
Specifically, the acquired data is abstract data. In order to facilitate understanding of the user, data conversion into avatar data is required.
In this embodiment, the conversion protocol set in advance specifies the actual significance of the value of the actual data bit in the data. According to the conversion protocol, the electric vehicle information recording device or the handheld device can convert abstract data into vivid and easily understood operation information of the sending module.
Step 407: and storing the operation information and the time when the data is acquired in a second file corresponding to the sending module.
Specifically, in this embodiment, each sending module corresponds to one or more second files. For example, when multiple pieces of data are acquired, assuming that the senders of the data are respectively BMS, LCU, and FOC, the BMS corresponds to one or more second files, the LCU corresponds to one or more second files, and the FOC also corresponds to one or more second files. These second files may be distinguished by different names. For example, the second file corresponding to the BMS may have BMS _00.txt as a name, the LCU may have LCU _00.txt as a name, and the FOC may have FOC _00.txt as a name. In which 00 denotes a serial number.
Similarly to step 103, in the present embodiment, the operation information and the time when the data is acquired are stored in the second file. The specific storage manner may be to store one piece of operation information and the corresponding time as the same line of data.
FIG. 6A is a diagram illustrating data in a second file according to the embodiment shown in FIG. 4. As shown in fig. 6A, which illustrates one implementation of the data in the second file when the sending module is a BMS. Wherein each row of data corresponds to one piece of operation information. For example, the stored data of one line "17: 03: 31: total _ Vlt:0682C _ Cur:0000Dc _ Cur _ RT:0000SOC _ RT:90Bat _ Sta _ RT:0000DC _ F1_ T _ RT:0170Tp1_ RT:18Tp2_ RT:19Tp3_ RT:18Tp4_ RT:20Tp5_ RT:19 "respectively represent the following meanings: 17:03:31 is the time when the data is acquired by the electric vehicle information recording apparatus or the handheld device, total _ Vlt:0682 indicates that the battery voltage is 68.2V, C _ Cur:0000 indicates that the charging current is 0A, Dc _ Cur _ RT:0000 indicates that the discharging current is 0A, SOC _ RT:90 indicates that the amount of electricity still remains 90%, Bat _ Sta _ RT:0000 indicates the state value of the BMS, and DC _ F1_ T _ RT:0170Tp1_ RT:18Tp2_ RT:19Tp3_ RT:18Tp4_ RT:20Tp5_ RT:19 indicates the values of 5 temperature sensors inside the battery, respectively.
FIG. 6B is a diagram illustrating data in another second file according to the embodiment shown in FIG. 4. As shown in fig. 6B, which illustrates one implementation of the data in the second file when the sending module is a meter. For example, one row of data after storage, "H1 _ time:15:18:33Car _ time:15:19Status:0134Gear:01Speed:00Mileage:00000000C _ cur:00Dc _ ur:00Bat _ soc:90Ful _ C _ t:0170Error _ code: 0065" represents the meanings: h1_ time:15:18:33 is the time when the data is acquired by the electric vehicle information recording device or the handheld device, Car _ time:15:19 represents the time when the data is sent out by the transmission module in the electric vehicle, Status:0134 represents that the state value of the meter is 0134, Gear:01 represents that the Gear position of the electric vehicle is 1, Speed represents the Speed of the electric vehicle, Mileage represents the distance that the electric vehicle has traveled, C _ cur represents the charging current, Dc _ ur represents the discharging current, Bat _ soc represents the remaining capacity, Ful _ C _ t represents the charging time, and Error _ code represents the fault code.
In one implementation, when the acquired data includes a fault code, the fault code may be stored. The fault code in the embodiment refers to a fault code which is sent to the display module of the electric vehicle by the ECU and needs to be displayed by the display module. After the display module displays the fault code, the user can know which kind of fault occurs in the electric vehicle at present from the screen of the display module. When the display module is a meter, the screen of the display module may be a dashboard. In this implementation manner, the electric vehicle information recording method provided by the present embodiment further includes steps 408 to 410.
Step 408: and when the data is determined to be the data sent by the ECU, determining a receiving module of the data according to the communication protocol.
Step 409: and when the receiving module of the data is determined to be the display module of the electric vehicle, determining whether the fault code to be displayed by the display module is included in the data.
Step 410: and when the fault code is determined to be included in the data, storing the data, the fault code and the time when the data is acquired in a third file.
Specifically, in steps 408-410, if it is determined that the data is the data transmitted by the ECU, the receiving module of the data is the display module of the electric vehicle, and the fault code is included in the data, the fault code, and the corresponding time are stored in the third file. The fault code can be used as a reference basis for later-period maintenance of the electric vehicle, so that the fault code is stored in the third file, and the accuracy and the maintenance efficiency of follow-up troubleshooting of the electric vehicle can be improved.
Alternatively, the second file and the third file may both be located on the memory card. Similar to the embodiment, in the embodiment, when data is written in the second file and the third file, the data can be written in a batch manner, so as to reduce the wear of the memory card.
Optionally, in order to improve the user experience and realize visualization, in this embodiment, the data amount of the data written in the first file, the data amount of the data written in the second file, and the data amount of the data written in the third file may be respectively displayed on a screen of the electric vehicle information recording apparatus or the handheld device. FIG. 5 is a schematic diagram of a user interface in the embodiment shown in FIG. 4. As shown in fig. 5, the user interface 501 displays that the data amount of data written in the first file is 9871 bytes, the data amount of data written in the second file corresponding to the BMS is 4206 bytes, the data amount of data written in the second file corresponding to the meter is 3001 bytes, and the data amount of data written in the third file is 477 bytes, respectively.
Further, based on the foregoing implementation manner, in order to save the electric power of the electric vehicle information recording apparatus or the handheld device, the embodiment further includes: if the triggering operation of the user is not received after the preset time period, controlling the screen to be turned off; and after the screen is extinguished, if the operation of the user on a preset key is received, controlling the screen to be lightened.
The method for recording information of an electric vehicle provided by the embodiment further comprises the following steps: the method comprises the steps of determining the sending direction of data according to a preset communication protocol for each piece of data, determining a sending module of the data according to the communication protocol when the data are determined to be data received by an ECU, converting the data into operation information of the sending module according to a preset conversion protocol, storing the operation information and the time when the data are obtained in a second file corresponding to the sending module, determining a receiving module of the data according to the communication protocol when the data are determined to be data sent by the ECU, determining whether the data comprise fault codes to be displayed by the display module when the receiving module of the data are determined to be the display module of the electric vehicle, and storing the data, the fault codes and the time when the data are obtained in a third file when the data comprise the fault codes. On the one hand, the data recorded in the second file is visual running information, and subsequent analysis and use of a user are facilitated, on the other hand, the fault code is recorded in the third file and can be used as a reference basis for later-stage maintenance of the electric vehicle, and therefore the accuracy rate of troubleshooting and the maintenance efficiency are improved.
Fig. 7 is a schematic flowchart of a third embodiment of an electric vehicle information recording method according to the present invention. The present embodiment will explain other steps of the information recording method for an electric vehicle in detail on the basis of the alternatives given in the first embodiment. As shown in fig. 7, the electric vehicle information recording method provided by the present embodiment includes the steps of:
step 701: and receiving an information recording instruction triggered by a user.
Step 702: and acquiring data transmitted inside the electric vehicle from a bus of the electric vehicle.
Step 703: and storing the data and the time when the data is acquired in a first file.
The implementation processes and technical principles of step 701 and step 101, step 702 and step 102, and step 403 and step 703 are similar, and are not described herein again.
Step 704: and counting a plurality of pieces of data received within a preset time period.
Specifically, in this embodiment, a plurality of pieces of data acquired within a preset time period may be analyzed.
Step 705: and respectively determining the number of data packets interacted between each module in the electric vehicle and the ECU according to the sending directions of the plurality of pieces of data, and displaying the data packets.
Step 706: and respectively determining the reply success rate of each module to the ECU according to the number of data packets interacted between each module in the electric vehicle and the ECU, and displaying the reply success rate.
Specifically, in step 705, the electric vehicle information recording apparatus or the handheld device may determine the number of pieces of data transmitted to the ECU by each module after determining the transmitting side of the pieces of data, and the number of pieces of data returned to each module by the ECU, respectively.
The electric vehicle information recording apparatus or the handheld device stores in advance a conversion relationship between the number of pieces of data and the number of packets, for example, one piece of data corresponds to one packet. And respectively determining the number of data packets interacted between each module in the electric vehicle and the ECU according to the number of data sent to the ECU by each module and the number of data replied to each module by the ECU. The number of data packets that each module interacts with the ECU in this implementation includes: the number of packets that each module sends to the ECU, and the number of packets that the ECU sends to each module.
More specifically, the electric vehicle information recording apparatus or the handheld device may determine: the number of data packets sent by the ECU to the instrument and the number of data packets replied by the instrument to the ECU; the number of data packets sent by the ECU to the LCU, and the number of data packets replied to the ECU by the LCU; the number of data packets sent by the ECU to the BMS, and the number of data packets replied by the BMS to the ECU; the number of packets that the ECU sends to the FOC, and the number of packets that the FOC replies to the ECU.
In step 706, the success rate of the module for the ECU may be determined according to the number M of packets sent by the ECU to a certain module and the number N of packets returned by the module to the ECU. Alternatively, the reply success rate may be defined as N divided by M.
In this embodiment, the number of these packets and the success rate of reply may be displayed on the screen of the electric vehicle information recording apparatus or the handheld device. FIG. 8 is a schematic diagram of a user interface in the embodiment shown in FIG. 7. As shown in fig. 8, the number of packets that each module interacts with the ECU and the corresponding success rate of replies are shown in the user interface 801.
Further, in order to improve the accuracy of the determined reply success rate, in this embodiment, the following steps are further included after step 704: determining a rule according to a predetermined check value, and determining the check value of the data after transmission according to the values of other bits of each piece of data except the check bit; and if the check value after the data is transmitted is consistent with the check value in the check bit of the data, taking the data as valid data and determining a plurality of valid data. Correspondingly, step 705 specifically includes: and respectively determining the number of data packets interacted between each module in the electric vehicle and the ECU according to the sending directions of the plurality of effective data.
In the implementation mode, transmitted data are checked, only correct data are transmitted to serve as valid data, and the number of data packets of interaction between each module in the electric vehicle and the ECU is determined, so that the accuracy of the determined number of the data packets is improved, and the accuracy of the determined reply success rate is improved.
The method for recording information of an electric vehicle provided by the embodiment further comprises the following steps: counting a plurality of pieces of data received in a preset time period, respectively determining the number of data packets interacted between each module in the electric vehicle and the ECU according to the sending direction of the plurality of pieces of data, and displaying, and respectively determining the reply success rate of each module to the ECU according to the number of the data packets interacted between each module in the electric vehicle and the ECU, and displaying. The number of data packets interacting between each module in the electric vehicle and the ECU and the reply success rate of each module to the ECU are visualized, so that a user can know the operation process of the electric vehicle conveniently, and the user experience is further improved.
Fig. 9 is a schematic structural diagram of a first embodiment of an electric vehicle information recording apparatus according to the present invention. As shown in fig. 9, the present embodiment provides an electric vehicle information recording apparatus including: a receiving module 91, an obtaining module 92 and a storing module 93.
The receiving module 91 is configured to receive an information recording instruction triggered by a user.
The obtaining module 92 is configured to obtain at least one piece of data transmitted inside the electric vehicle from a bus of the electric vehicle.
The storage module 93 is configured to store at least one piece of data and time when the data is acquired in a first file.
Optionally, in terms of storing the data and the time when the data is acquired in the first file, the storage module 93 is specifically configured to: when the data volume of at least one piece of data is smaller than a preset data volume threshold value, caching the at least one piece of data and corresponding time; when the data amount of the cached data is greater than or equal to the data amount threshold, the cached data and the corresponding time are stored in the first file.
The electric vehicle information recording device provided by the embodiment of the invention can execute the electric vehicle information recording method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Fig. 10 is a schematic structural diagram of a second embodiment of an electric vehicle information recording apparatus according to the present invention. The present embodiment describes in detail other modules of the electric vehicle information recording apparatus on the basis of the first embodiment of the electric vehicle information recording apparatus. As shown in fig. 10, the electric vehicle information recording apparatus provided by the present embodiment further includes: a determination module 94 and a conversion module 95.
And a determining module 94, configured to determine, for each piece of data, a sending direction of the data according to a preset communication protocol.
The sending direction indicates that the data is sent by an ECU of the electric vehicle, or the data is received by the ECU.
The determining module 94 is further configured to determine a sending module of the data according to the communication protocol when the data is determined to be the data received by the ECU.
A conversion module 95, configured to convert the data into the operation information of the sending module according to a preset conversion protocol.
The storage module 93 is further configured to store the operation information and the time when the data is acquired in a second file corresponding to the sending module.
Further, the determining module 94 is further configured to determine a receiving module of the data according to the communication protocol when the data is determined to be the data sent by the ECU.
The determining module 94 is further configured to determine whether the data includes a fault code to be displayed by the display module when the receiving module of the data is determined to be the display module of the electric vehicle.
The storage module 93 is further configured to store the data, the fault code, and the time when the data is acquired in a third file when it is determined that the data includes the fault code.
Optionally, in this embodiment, the first file, the second file, and the third file are located on the memory card.
Optionally, the electric vehicle information recording apparatus provided by this embodiment further includes a display module for displaying on the screen the data amount of the data written in the first file, the data amount of the data written in the second file, and the data amount of the data written in the third file, respectively. Furthermore, the electric vehicle information recording device further comprises a control module, which is used for controlling the screen to be turned off if the triggering operation of the user is not received after the preset time period, and controlling the screen to be turned on if the operation of the user on the preset key is received after the screen is turned off.
The electric vehicle information recording device provided by the embodiment of the invention can execute the electric vehicle information recording method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Fig. 11 is a schematic structural diagram of a third embodiment of an electric vehicle information recording apparatus according to the present invention. In this embodiment, a detailed description is given of other modules of the electric vehicle information recording apparatus based on the second embodiment of the electric vehicle information recording apparatus. As shown in fig. 11, the electric vehicle information recording apparatus provided by the present embodiment further includes: a statistics module 96 and a display module 97.
And the counting module is used for counting a plurality of pieces of data received within a preset time period.
The determining module 94 is further configured to determine the number of data packets that each module in the electric vehicle interacts with the ECU according to the sending direction of the plurality of pieces of data.
The determining module 94 is further configured to determine the success rate of each module in the electric vehicle for the ECU according to the number of data packets that each module interacts with the ECU.
The display module 97 is also used for displaying the number of data packets that each module interacts with the ECU and the success rate of each module in replying to the ECU.
Optionally, the determining module 94 is further configured to determine a rule according to a predetermined check value, and determine a check value after transmission of each piece of data according to values of other bits except the check bit. The determining module 94 is further configured to determine a plurality of pieces of valid data by using the data as valid data if the transmitted check value of the data is consistent with the check value in the check bits of the data. In this implementation, in terms of determining the number of data packets that each module in the electric vehicle interacts with the ECU according to the sending direction of the pieces of data, the determining module 94 is specifically configured to: and respectively determining the number of data packets interacted between each module in the electric vehicle and the ECU according to the sending directions of the plurality of pieces of effective data.
The electric vehicle information recording device provided by the embodiment of the invention can execute the electric vehicle information recording method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Fig. 12 is a schematic structural diagram of a handheld device provided by the present invention. As shown in fig. 12, the handheld device includes a processor 70 and a memory 71. The number of the processors 70 in the handheld device may be one or more, and one processor 70 is taken as an example in fig. 12; the processor 70 and memory 71 of the handheld device may be connected by a bus or other means, as exemplified by the bus connection in fig. 12.
The memory 71, as a computer-readable storage medium, may be used to store software programs, computer-executable programs, and modules, such as program instructions and modules corresponding to the electric vehicle information recording method in the embodiment of the present invention (for example, the receiving module 91, the obtaining module 92, and the storage module 93 in the electric vehicle information recording apparatus). The processor 70 executes various functional applications and data processing of the handheld device by executing software programs, instructions and modules stored in the memory 71, that is, implements the above-described electric vehicle information recording method.
The memory 71 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the handheld device, and the like. Further, the memory 71 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the memory 71 may further include memory located remotely from the processor 70, which may be connected to the handheld device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The present invention also provides a storage medium containing computer-executable instructions which, when executed by a computer processor, are operable to perform a method of recording information for an electric vehicle, the method comprising:
receiving an information recording instruction triggered by a user;
acquiring at least one piece of data transmitted inside an electric vehicle from a bus of the electric vehicle;
and storing at least one piece of data and the time when the data is acquired in a first file.
Of course, the storage medium containing the computer-executable instructions provided by the embodiments of the present invention is not limited to the method operations described above, and may also perform related operations in the electric vehicle information recording method provided by any embodiments of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) or a handheld device to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the electric vehicle information recording apparatus, the units and modules included in the embodiment are merely divided according to the functional logic, but are not limited to the above division as long as the corresponding functions can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. An electric vehicle information recording method characterized by comprising:
receiving an information recording instruction triggered by a user;
acquiring at least one piece of data transmitted inside an electric vehicle from a bus of the electric vehicle;
storing at least one piece of data and the time when the data is acquired in a first file;
for each piece of data, determining the sending direction of the data according to a preset communication protocol; wherein the sending direction indicates that the data is data sent by an Electronic Control Unit (ECU) of the electric vehicle, or the data is data received by the ECU;
when the data are determined to be the data received by the ECU, determining a sending module of the data according to the communication protocol;
converting the data into the operation information of the sending module according to a preset conversion protocol;
storing the operation information and the time when the data is acquired in a second file corresponding to the sending module;
when the data are determined to be the data sent by the ECU, determining a receiving module of the data according to the communication protocol;
when the receiving module of the data is determined to be a display module of the electric vehicle, determining whether a fault code to be displayed by the display module is included in the data;
and when the data is determined to comprise the fault code, storing the data, the fault code and the time when the data is acquired in a third file.
2. The method of claim 1, wherein the first file, the second file, and the third file are located on a memory card.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
displaying the data amount of the data written in the first file, the data amount of the data written in the second file, and the data amount of the data written in the third file on a screen, respectively.
4. The method according to claim 3, wherein after the displaying on the screen the amount of data written in the first file, the amount of data written in the second file, and the amount of data written in the third file, respectively, the method further comprises:
if the triggering operation of the user is not received after a preset time period, controlling the screen to be turned off;
and after the screen is extinguished, if the operation of the user on a preset key is received, controlling the screen to be lightened.
5. The method according to any one of claims 1-2, wherein storing the data and the time at which the data was obtained in a first file comprises:
when the data volume of the at least one piece of data is smaller than a preset data volume threshold value, caching the at least one piece of data and corresponding time;
when the data volume of the cached data is greater than or equal to the data volume threshold, storing the cached data and the corresponding time in the first file.
6. The method according to any one of claims 1-2, wherein after said obtaining at least one piece of data transmitted from inside the electric vehicle on a bus of the electric vehicle, the method further comprises:
counting a plurality of pieces of data received within a preset time period;
respectively determining the number of data packets interacted between each module in the electric vehicle and the ECU according to the sending directions of the plurality of pieces of data, and displaying the data packets;
and respectively determining the reply success rate of each module to the ECU according to the number of data packets interacted between each module in the electric vehicle and the ECU, and displaying the reply success rate.
7. The method of claim 6, wherein after counting the plurality of pieces of data received within the preset time period, the method further comprises:
determining a rule according to a predetermined check value, and determining the check value of the data after transmission according to the values of other bits of each piece of data except the check bit;
if the transmitted check value of the data is consistent with the check value in the check bit of the data, the data is used as valid data, and a plurality of pieces of valid data are determined;
correspondingly, the determining the number of data packets interacted between each module in the electric vehicle and the ECU according to the sending direction of the plurality of pieces of data respectively comprises the following steps:
and respectively determining the number of data packets interacted between each module in the electric vehicle and the ECU according to the sending directions of the plurality of pieces of effective data.
8. An electric vehicle information recording apparatus, characterized by comprising:
the receiving module is used for receiving an information recording instruction triggered by a user;
the acquisition module is used for acquiring at least one piece of data transmitted inside an electric vehicle from a bus of the electric vehicle;
the storage module is used for storing at least one piece of data and the time when the data are acquired in a first file;
further comprising: a determining module and a converting module;
the determining module is used for determining the sending direction of each piece of data according to a preset communication protocol; the sending direction indicates that the data is sent by an ECU of the electric vehicle, or the data is received by the ECU;
the determining module is also used for determining a sending module of the data according to the communication protocol when the data is determined to be the data received by the ECU;
the conversion module is used for converting the data into the operation information of the sending module according to a preset conversion protocol;
the storage module is further used for storing the operation information and the time when the data are acquired in a second file corresponding to the sending module;
the determining module is also used for determining a receiving module of the data according to the communication protocol when the data is determined to be the data sent by the ECU;
the determining module is further used for determining whether the data comprises a fault code to be displayed by the display module when the receiving module of the data is determined to be the display module of the electric vehicle;
and the storage module is further used for storing the data, the fault code and the time when the data is acquired in a third file when the fault code is determined to be included in the data.
9. A handheld device, characterized in that the handheld device comprises:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the electric vehicle information recording method of any one of claims 1-7.
10. A computer-readable storage medium on which a computer program is stored, characterized in that the program, when executed by a processor, implements an electric vehicle information recording method according to any one of claims 1 to 7.
CN201910511734.9A 2019-06-13 2019-06-13 Electric vehicle information recording method and device, handheld device and storage medium Expired - Fee Related CN110223417B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910511734.9A CN110223417B (en) 2019-06-13 2019-06-13 Electric vehicle information recording method and device, handheld device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910511734.9A CN110223417B (en) 2019-06-13 2019-06-13 Electric vehicle information recording method and device, handheld device and storage medium

Publications (2)

Publication Number Publication Date
CN110223417A CN110223417A (en) 2019-09-10
CN110223417B true CN110223417B (en) 2022-02-01

Family

ID=67816863

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910511734.9A Expired - Fee Related CN110223417B (en) 2019-06-13 2019-06-13 Electric vehicle information recording method and device, handheld device and storage medium

Country Status (1)

Country Link
CN (1) CN110223417B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111796185B (en) * 2020-06-16 2022-11-08 合肥力高动力科技有限公司 Lithium iron phosphate battery SOC-OCV calibration method based on T-S type fuzzy algorithm
CN111781917A (en) * 2020-07-03 2020-10-16 华人运通(江苏)技术有限公司 Fault data processing method, domain controller and automobile

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101488239A (en) * 2008-01-17 2009-07-22 通用汽车环球科技运作公司 Electronic control module integrated diagnostic flight recorder methods and systems
CN102346926A (en) * 2010-07-30 2012-02-08 双龙自动车株式会社 Computer readable media recording vehicle maintenance program
CN202331594U (en) * 2011-12-14 2012-07-11 北京普莱德新能源电池科技有限公司 Electric automobile CAN (controller area network) bus data recorder
CN103280004A (en) * 2013-06-05 2013-09-04 南车资阳机车有限公司 Data recording apparatus for shunting locomotive and realization method thereof
CN106254350A (en) * 2016-08-08 2016-12-21 陈树铭 A kind of black box subsystem based on both-way communication navigation system and implementation method
CN207523612U (en) * 2017-10-10 2018-06-22 郑州宇通客车股份有限公司 Automobile data recorder and vehicle-mounted ECU information interaction system and vehicle
CN109032517A (en) * 2018-07-19 2018-12-18 广东浪潮大数据研究有限公司 A kind of method, apparatus and computer readable storage medium of data rule
CN109600670A (en) * 2018-11-22 2019-04-09 深圳市同行者科技有限公司 The multimedia way to play for time of car networking, storage medium and terminal based on big data

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3638255B2 (en) * 2001-03-26 2005-04-13 富士通テン株式会社 Communication simulation apparatus and method
CN204392434U (en) * 2014-12-31 2015-06-10 浙江吉利汽车研究院有限公司 A kind of cam device possessing driving record function
CN105374086A (en) * 2015-12-30 2016-03-02 戴姆勒股份公司 Event data recording method
US10243732B1 (en) * 2018-06-27 2019-03-26 Karamba Security Cryptographic key management for end-to-end communication security

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101488239A (en) * 2008-01-17 2009-07-22 通用汽车环球科技运作公司 Electronic control module integrated diagnostic flight recorder methods and systems
CN102346926A (en) * 2010-07-30 2012-02-08 双龙自动车株式会社 Computer readable media recording vehicle maintenance program
CN202331594U (en) * 2011-12-14 2012-07-11 北京普莱德新能源电池科技有限公司 Electric automobile CAN (controller area network) bus data recorder
CN103280004A (en) * 2013-06-05 2013-09-04 南车资阳机车有限公司 Data recording apparatus for shunting locomotive and realization method thereof
CN106254350A (en) * 2016-08-08 2016-12-21 陈树铭 A kind of black box subsystem based on both-way communication navigation system and implementation method
CN207523612U (en) * 2017-10-10 2018-06-22 郑州宇通客车股份有限公司 Automobile data recorder and vehicle-mounted ECU information interaction system and vehicle
CN109032517A (en) * 2018-07-19 2018-12-18 广东浪潮大数据研究有限公司 A kind of method, apparatus and computer readable storage medium of data rule
CN109600670A (en) * 2018-11-22 2019-04-09 深圳市同行者科技有限公司 The multimedia way to play for time of car networking, storage medium and terminal based on big data

Also Published As

Publication number Publication date
CN110223417A (en) 2019-09-10

Similar Documents

Publication Publication Date Title
CN107608337B (en) Automobile remote diagnosis method and device, mobile terminal, electronic equipment and server
CN104914849A (en) Fault recording device and method
CN202870269U (en) On-line monitoring system for power battery of electric automobile
CN110223417B (en) Electric vehicle information recording method and device, handheld device and storage medium
CN105425783B (en) Processing method, system, controller and the host computer of real vehicle data
CN105895973A (en) Power management in electric vehicles
CN103345243A (en) Method and device for brushing vehicle electronic control unit program
EP3866122B1 (en) Abnormal data collecting method, apparatus, storage medium and product for automatic parking
CN110196727A (en) Electric vehicle Oftware updating method, device, handheld device and storage medium
CN113259933B (en) Key updating method, gateway, control device, electronic equipment and medium
CN110750790B (en) CAN bus vulnerability detection method and device, terminal equipment and medium
Frassinelli et al. I know where you parked last summer: Automated reverse engineering and privacy analysis of modern cars
EP4102776A1 (en) Log acquisition method and apparatus, terminal, server, and computer readable storage medium
CN108237994A (en) Log information processing method, log information processing unit and micro-control unit MCU
KR20220070511A (en) Computer-implemented methods, software programs and systems for providing vehicle service and triggering a payment process for vehicle service.
CN109525641A (en) A kind of vehicle mounted communication module method and computer-readable medium
CN107003913A (en) Selfreparing charging device
CN205507526U (en) Processing system , controller and host computer of real vehicle data
US11815870B2 (en) Carrying out calculation methods with a control unit of a transportation vehicle
CN204598000U (en) A kind of automobile-used gateway controller
CN111880510A (en) New energy automobile data acquisition and transmission method and equipment
JP2003318996A (en) Communication device for vehicle
CN109286689B (en) Information sending method and device and vehicle-mounted man-vehicle interaction terminal
CN116647589A (en) Vehicle diagnosis communication method, device, equipment and medium
CN111917692A (en) Fuzzy test method, device, equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20220201

CF01 Termination of patent right due to non-payment of annual fee