Fault information sending method and device and vehicle
By using data protocol encapsulation and wireless transmission of fault information in electric vehicles, the problem of instruments being unable to effectively display and wirelessly output fault information has been solved, and wireless communication connection and fault information display of target computer equipment have been realized.
Patent Information
- Application Number
- CN202310585044.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-22
- Publication Date
- 2026-02-10
- Estimated Expiration
- 2043-05-22
AI Technical Summary
In the prior art, the instruments of electric vehicles cannot effectively display fault information to help users identify faults, and cannot output fault information wirelessly.
The instrument panel determines the fault information of the vehicle components based on the first data protocol, encapsulates it using the second data protocol, and sends it to the wireless device. Finally, the wireless device sends the information to the target computer device, realizing wireless communication connection and fault information display.
It enables users to receive effective display assistance and outputs fault information of electric vehicles wirelessly, ensuring that the target computer equipment can correctly parse and display fault codes and solutions.
Smart Images

Figure CN116580473B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic technology, and more specifically, to a method, apparatus, and vehicle for transmitting fault information. Background Technology
[0002] Many people are now accustomed to using electric bicycles, electric-assisted bicycles and other electric vehicles as their choice for short-distance travel. However, electric vehicles may experience minor malfunctions, which can lead to safety hazards.
[0003] In related technologies, people can determine whether an electric vehicle is malfunctioning and identify the type of malfunction by observing the vehicle's body or using testing tools. Additionally, some electric vehicles equipped with instruments and buttons allow users to trigger the buttons to activate a corresponding processing unit that determines whether a malfunction exists and displays the malfunction type on the vehicle's instrument panel.
[0004] However, because the instruments on electric vehicles can only display relatively simple information, the solutions in related technologies have the problem of failing to provide users with effective display assistance and being unable to output or display fault information of electric vehicles wirelessly. Summary of the Invention
[0005] The purpose of this application is to provide a fault information transmission method, device, and vehicle that can provide users with effective display assistance and output fault information of electric vehicles wirelessly.
[0006] The embodiments of this application are implemented as follows:
[0007] A first aspect of this application provides a method for transmitting fault information, the method comprising:
[0008] When the diagnostic function is enabled, the instrument device determines the fault information of at least one component in the vehicle based on a first data protocol, determines the information to be encapsulated according to a second data protocol and the fault information, encapsulates the information to be encapsulated based on the first data protocol and the second data protocol, and sends the encapsulated information to the wireless device, wherein the fault information is used to indicate the fault type of the component.
[0009] The wireless device parses the encapsulated information based on the first data protocol and sends the parsed information to be sent to the target computer device based on the second data protocol. The target computer device is used to parse, store, and display the information to be sent.
[0010] Optionally, determining the information to be encapsulated based on the second data protocol and the fault information includes:
[0011] The fault information is parsed, converted into a first fault code that matches the second data protocol, and the first fault code is used as the information to be encapsulated.
[0012] Optionally, the step of encapsulating the information to be encapsulated based on the first data protocol and the second data protocol, and sending the encapsulated information to the wireless device, includes:
[0013] The information to be encapsulated is encapsulated into an inner data packet based on the second data protocol;
[0014] The inner data packet is encapsulated into an outer data packet based on the first data protocol, and the outer data packet is sent to the wireless device as the encapsulated information.
[0015] The wireless device parses the encapsulated information based on the first data protocol and sends the parsed information to be transmitted to the target computer device based on the second data protocol, including:
[0016] The wireless device parses the outer data packet based on the first data protocol to obtain the inner data packet, and uses the inner data packet as the information to be sent;
[0017] The inner data packet is sent to the target computer device based on the second data protocol.
[0018] Optionally, the vehicle further includes a controller;
[0019] The instrument device determines fault information of at least one component in the vehicle based on a first data protocol, including:
[0020] The instrument device receives a second fault code sent by the controller based on the first data protocol. The second fault code is generated by the controller when it detects a fault in a component of the vehicle.
[0021] The instrument displays the second fault code;
[0022] The instrument device parses the second fault code based on the first data protocol to determine the fault information of the component.
[0023] Optionally, the method further includes:
[0024] Without enabling the diagnostic function, the instrument displays the second fault code.
[0025] Optionally, the method further includes:
[0026] If the instrument is paired with the target computer device, and the instrument receives a fault information acquisition instruction sent by the target computer device through the wireless device, then the diagnostic function is activated.
[0027] Alternatively, if the instrument is paired with the target computer device and the instrument receives a second fault code, the diagnostic function is activated.
[0028] Alternatively, the instrument may activate the diagnostic function in response to a diagnostic activation command input via an input device.
[0029] Optionally, the method further includes:
[0030] The instrument sends pairing parameters to the wireless device and controls the wireless device to broadcast pairing data packets;
[0031] The wireless device receives a data acquisition request sent by the target computer device and forwards the data acquisition request to the instrument device;
[0032] The instrument generates device data according to the data acquisition request, and sends the device data to the target computer device through the wireless device;
[0033] The instrument device receives a pairing request sent by the target computer device through the wireless device, and establishes a pairing connection between the instrument device, the wireless device, and the target computer device according to the pairing request.
[0034] A second aspect of this application provides a fault information transmitting device, the device comprising:
[0035] The determination module is used to determine the fault information of at least one component in the vehicle through the instrument device based on a first data protocol when the diagnostic function is enabled, determine the information to be encapsulated according to a second data protocol and the fault information, encapsulate the information to be encapsulated based on the first data protocol and the second data protocol, and send the encapsulated information to the wireless device, wherein the fault information is used to indicate the fault type of the component.
[0036] The parsing and sending module is used to parse the encapsulated information based on the first data protocol through the wireless device, and send the parsed information to be sent to the target computer device based on the second data protocol. The target computer device is used to parse, store and display the information to be sent.
[0037] A third aspect of this application provides a vehicle, the vehicle including an instrument panel, a wireless device, a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the fault information transmission method described in the first aspect above.
[0038] A fourth aspect of this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the fault information transmission method described in the first aspect.
[0039] The beneficial effects of the embodiments of this application include:
[0040] This application provides a fault information transmission method. When the diagnostic function is enabled, an instrument device determines fault information of at least one component in the vehicle based on a first data protocol, determines information to be encapsulated based on a second data protocol and the fault information, encapsulates the information to be encapsulated based on the first and second data protocols, and transmits the encapsulated information to a wireless device. The wireless device parses the encapsulated information based on the first data protocol and transmits the parsed information to be transmitted to a target computer device based on the second data protocol.
[0041] As can be seen from the above, since the wireless device and the instrument can be connected via a bus or serial port, data can be transmitted between them. The wireless device can then send the information to be transmitted to the target computer device based on the second data protocol, meaning a communication connection can be established between the wireless device and the target computer device. This allows the instrument device to indirectly establish a wireless communication connection with the target computer device through the wireless device.
[0042] Since the fault information can indicate the fault type and condition of various components in the vehicle, and the information to be encapsulated is determined based on the second data protocol and the fault information, while the encapsulated information is obtained by encapsulating the information to be encapsulated based on the first data protocol and the second data protocol, both the information to be encapsulated and the encapsulated information can accurately indicate the fault information. Furthermore, the information to be transmitted is obtained by the wireless device parsing the encapsulated information.
[0043] Therefore, after the information to be sent is sent to the target computer device, the target computer device can parse the information to be sent based on the second data protocol to obtain the corresponding fault codes and fault information, and display the fault information of each component of the vehicle and the fault resolution method on the display interface of the target computer device.
[0044] In this way, it can provide users with effective display assistance and output electric vehicle fault information wirelessly. Attached Figure Description
[0045] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0046] Figure 1 A schematic diagram of the structure of a vehicle provided in an embodiment of this application;
[0047] Figure 2 A flowchart illustrating the first fault information transmission method provided in this application embodiment;
[0048] Figure 3 A flowchart illustrating the second fault information transmission method provided in this application embodiment;
[0049] Figure 4 A flowchart illustrating the third fault information transmission method provided in this application embodiment;
[0050] Figure 5 A flowchart illustrating the fourth fault information transmission method provided in this application embodiment;
[0051] Figure 6 A flowchart illustrating the fifth fault information transmission method provided in this application embodiment;
[0052] Figure 7 A flowchart illustrating the sixth fault information transmission method provided in this application embodiment;
[0053] Figure 8 This is a schematic diagram of the structure of a fault information sending device provided in an embodiment of this application;
[0054] Figure 9 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation
[0055] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. The components of the embodiments of this application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.
[0056] Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0057] It should be noted that similar labels and letters in the following figures indicate similar items. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.
[0058] In the description of this application, it should be noted that the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0059] In the description of this application, it should also be noted that, unless otherwise expressly specified and limited, the terms "set up," "install," "connect," and "link" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in this application based on the specific circumstances.
[0060] In related technologies, people can determine whether an electric vehicle has malfunctioned and identify the type of malfunction by observing the vehicle's body or using certain testing tools. Additionally, some electric vehicles equipped with instruments and buttons can have the user trigger the buttons to activate a corresponding processing unit that determines whether a malfunction exists and displays the malfunction type on the vehicle's instrument panel.
[0061] However, because the instruments on electric vehicles can only display relatively simple information, the solutions in related technologies have the problem of failing to provide users with effective display assistance and being unable to output or display fault information of electric vehicles wirelessly.
[0062] To address this, this application provides a fault information transmission method. When the diagnostic function is enabled, the instrument device determines fault information of at least one component in the vehicle based on a first data protocol. It then determines information to be encapsulated based on a second data protocol and the fault information. This encapsulated information is then encapsulated based on both the first and second data protocols, and the encapsulated information is transmitted to the wireless device. The wireless device then parses the encapsulated information based on the first data protocol and transmits the parsed information to a target computer device based on the second data protocol. This method effectively provides users with display assistance and wirelessly outputs fault information of electric vehicles.
[0063] This application uses a fault information transmission method applied in a vehicle as an example for illustration. However, it does not imply that this application embodiment can only be applied to transmitting fault information in vehicles.
[0064] Figure 1 This is a structural schematic diagram of a vehicle provided in an embodiment of this application. See also... Figure 1 , Figure 1 The image shows vehicle L, which includes an instrument panel A and a wireless device B.
[0065] In addition, vehicle L also includes controller C.
[0066] Instrument device A and wireless device B can communicate via a bus or serial port. Instrument device A and controller C also communicate via a bus or serial port.
[0067] Among them, the instrument device A is used for the user to perform trigger operations to input corresponding control commands, obtain vehicle L's fault information from the controller C and display vehicle L's fault information, send vehicle L's fault information to the wireless device B, receive and parse the data or information sent by the wireless device B, and determine and execute corresponding actions according to the control command and / or the data sent by the wireless device B. This application embodiment does not limit this.
[0068] Wireless device B can be used to receive and broadcast data or information sent by instrument device A, receive data or information sent by any other possible computer device, and send data or information sent by computer device to instrument device A.
[0069] The computer device can be any terminal device or server with processing capabilities, and this application embodiment does not limit it.
[0070] Optionally, the wireless device B may be a Bluetooth module, a Wi-Fi module, or an infrared module. The wireless device B may also include a processing unit with specific processing and communication functions. This application embodiment does not limit this.
[0071] Optionally, the controller C is used to monitor the working status of each component in the vehicle L, determine whether each component has failed based on its working status, and generate a fault code for any component if any component fails and send the corresponding fault code to the instrument unit A.
[0072] See also Figure 1 The instrument device A may also include a microcontroller unit (MCU), a power supply unit d, an input unit r, a display unit s, and a communication unit x.
[0073] The power supply unit d, input unit r, display unit s, and communication unit x are respectively connected to the MCU. The communication unit x is connected to the wireless device B via a serial port or bus, and the communication unit x is connected to the control C via a serial port or bus.
[0074] The input unit r can be a button or a controllable touch screen for user to trigger operations. The input unit r is used to convert the user's input operation into a corresponding electrical signal and output it to the MCU.
[0075] The power supply unit d can supply power to the input unit r, display unit s, communication unit x and the MCU in vehicle L.
[0076] The MCU can acquire and output the status information of vehicle L, send the corresponding data or information to the communication unit x or the display unit s, receive and parse the data or information sent by the communication unit x, and determine and execute the corresponding actions according to the control command and / or the data sent by the communication unit x.
[0077] The communication unit x can forward the data or information sent by the MCU to the wireless device B, and receive the data or information sent by the wireless device B and forward it to the MCU.
[0078] The communication unit x can also receive fault codes from various components in vehicle L sent by controller B, and send the fault codes to the MCU.
[0079] Upon receiving the fault code, the MCU can send it to the display unit s for display. Alternatively, it can send the fault code to the wireless device B, which in turn sends it to the corresponding computer device for displaying the fault codes and / or fault information of various components of vehicle L.
[0080] The display unit s can display fault information or fault codes of various components in vehicle L under the control of the MCU, and can also display various status information of vehicle L, such as remaining battery power and real-time vehicle speed.
[0081] Alternatively, vehicle L may also include devices such as memory and processor.
[0082] The memory and processor in vehicle L can be located independently of instrument panel A and wireless device B, or they can be located in instrument panel A and / or wireless device B.
[0083] Specifically, the memory stores a computer program that can run on the processor. The processor executes the computer program to implement the corresponding methods and steps.
[0084] The processor can be the MCU in the instrument device A or the processing unit in the wireless device B. This application embodiment does not limit this.
[0085] In addition, the components in vehicle L may include battery system, power system, electronic system, display system, various buses, cruise control system, various sensors, lighting equipment, vehicle throttle, speakers, braking system and other equipment, and this application embodiment does not limit them.
[0086] The fault information sending method provided in the embodiments of this application will be explained in detail below.
[0087] Figure 2 A flowchart illustrating a fault information transmission method provided in this application is shown. This method can be applied to the processor in the aforementioned vehicle L. See also... Figure 2 This application provides a method for sending fault information, including:
[0088] Step 1001: When the diagnostic function is enabled, the instrument device determines the fault information of at least one component in the vehicle based on the first data protocol, determines the information to be encapsulated according to the second data protocol and the fault information, encapsulates the information to be encapsulated based on the first data protocol and the second data protocol, and sends the encapsulated information to the wireless device.
[0089] Optionally, the instrument device may be the instrument device A described above, the vehicle may be the vehicle L described above, and the wireless device may be the wireless device B described above.
[0090] This diagnostic function is used to indicate whether the fault information needs to be sent to a computer device that is directly or indirectly connected to the instrument.
[0091] Generally, enabling this diagnostic function indicates that the fault information needs to be sent to the corresponding computer device. Disabling this diagnostic function indicates that it is not necessary to send the fault information to the corresponding computer device.
[0092] Optionally, the first data protocol can be a bus communication protocol or a serial communication protocol. The bus communication protocol includes the CAN protocol, and the serial communication protocol includes the UART protocol or the USART protocol. The specific protocol can be set according to actual needs, and this application embodiment does not limit it.
[0093] For example, if the controller and the instrument are connected via a serial port, then the first data protocol is a serial communication protocol.
[0094] Optionally, the fault information is used to indicate the type of fault in the component. Alternatively, the fault information may be obtained based on the controller's monitoring of the fault conditions of various components in the vehicle; this embodiment of the application does not limit this.
[0095] For example, the fault information can specifically indicate which component in the vehicle has experienced what type of fault. For instance, the fault information could indicate a fault in the motor Hall sensor, a fault in the battery's discharge or charging capacity, or a fault in the controller's overheating capability, etc. This application embodiment does not limit this to such cases.
[0096] Optionally, the second data protocol can be a Bluetooth communication protocol, an infrared communication protocol, or a Wi-Fi communication protocol. Specifically, the appropriate communication protocol can be selected as the second data protocol according to the type of wireless device.
[0097] Additionally, the information to be encapsulated can refer to information that the instrument needs to send to other devices or equipment. This information can be generated based on the fault information, and it can also satisfy the second data protocol.
[0098] That is, the information to be encapsulated can be information that satisfies the second data protocol, generated based on the fault information. Therefore, the information to be encapsulated can indicate the fault information, or in other words, the information to be encapsulated is a different manifestation of the fault information.
[0099] Optionally, the encapsulated information may refer to data obtained by encapsulating the information to be encapsulated twice, first using the second data protocol and then using the first data protocol.
[0100] It is worth noting that, since the wireless device and the instrument device are also connected via a bus or serial port, the instrument device can also send the encapsulated information to the wireless device through the communication unit in the instrument device based on the first data protocol.
[0101] It is worth noting that since the fault information can indicate the fault type and condition of each component in the vehicle, and the information to be packaged is determined based on the second data protocol and the fault information, the information to be packaged can accurately indicate the fault information.
[0102] This ensures that the instrument and the wireless device can communicate correctly, and that the wireless device can accurately identify and process the encapsulated information after receiving it.
[0103] Step 1002: The wireless device parses the encapsulated information based on the first data protocol and sends the parsed information to be sent to the target computer device based on the second data protocol.
[0104] Optionally, the information to be sent may refer to the data content of the encapsulated information. The information to be sent may indicate the fault type and fault condition of various components in the vehicle.
[0105] One possible approach is that the information to be sent could refer to a data packet obtained after parsing the encapsulated information based on the first data protocol.
[0106] The target computer device can be any possible terminal device or server. For example, the target computer device can specifically be a terminal device that has established a wireless communication connection or successfully paired with the wireless device and / or the instrument device.
[0107] Optionally, the target computer device is used to parse, store, and display the information to be sent. Specifically, the information to be sent can be parsed according to the second data protocol to extract the fault code indicated by the information to be sent.
[0108] The target computer device can also store corresponding fault codes, upload them to the cloud, and parse their meanings. It can then display specific fault information and troubleshooting methods for each component of the vehicle on its interface. This application does not limit this aspect.
[0109] It is worth noting that the wireless device and the target computer device communicate wirelessly, therefore the parsed information to be transmitted needs to be sent to the target computer device based on the second data protocol. This ensures that the target computer device can correctly receive, identify, and process the information to be transmitted, thereby ensuring correct communication between the wireless device and the target computer device. Furthermore, since the wireless device and the instrument can be connected via a bus or serial port, the instrument can indirectly establish a wireless communication connection with the target computer device through the wireless device.
[0110] In this embodiment, with the diagnostic function enabled, the instrument device determines fault information of at least one component in the vehicle based on a first data protocol, determines information to be encapsulated based on a second data protocol and the fault information, encapsulates the information to be encapsulated based on the first and second data protocols, and sends the encapsulated information to the wireless device. The wireless device parses the encapsulated information based on the first data protocol and sends the parsed information to be transmitted to the target computer device based on the second data protocol.
[0111] As can be seen from the above, since the wireless device and the instrument can be connected via a bus or serial port, data can be transmitted between them. The wireless device can then send the information to be transmitted to the target computer device based on the second data protocol, meaning a communication connection can be established between the wireless device and the target computer device. This allows the instrument device to indirectly establish a wireless communication connection with the target computer device through the wireless device.
[0112] Since the fault information can indicate the fault type and condition of various components in the vehicle, and the information to be encapsulated is determined based on the second data protocol and the fault information, while the encapsulated information is obtained by encapsulating the information to be encapsulated based on the first data protocol and the second data protocol, both the information to be encapsulated and the encapsulated information can accurately indicate the fault information. Furthermore, the information to be transmitted is obtained by the wireless device parsing the encapsulated information.
[0113] Therefore, after the information to be sent is sent to the target computer device, the target computer device can parse the information to be sent based on the second data protocol to obtain the corresponding fault codes and fault information, and display the fault information of each component of the vehicle and the fault resolution method on the display interface of the target computer device.
[0114] In this way, it can provide users with effective display assistance and output electric vehicle fault information wirelessly.
[0115] In one possible implementation, the information to be encapsulated is determined based on the second data protocol and the fault information, including:
[0116] The fault information is parsed, converted into a first fault code that matches the second data protocol, and then used as the information to be encapsulated.
[0117] Optionally, the first fault code may refer to a code that can be recognized, parsed, and processed by the application program in the target computer device.
[0118] The first fault code is used to indicate the fault information.
[0119] It is worth noting that after the first fault code is used as the information to be encapsulated, it indicates that the first fault code needs to be encapsulated based on the first data protocol and the second data protocol, and the encapsulated information is the encapsulated first fault code.
[0120] In one possible implementation, see [link to relevant documentation]. Figure 3 Encapsulating the information to be encapsulated based on the first data protocol and the second data protocol, and sending the encapsulated information to the wireless device, including:
[0121] Step 1003: Based on the second data protocol, the information to be encapsulated is encapsulated into an inner data packet.
[0122] Optionally, the inner data packet is a data packet obtained by the instrument device packaging the data to be sent to the wireless device or the target computer device based on the second data protocol.
[0123] Step 1004: Based on the first data protocol, the inner data packet is encapsulated into an outer data packet, and the outer data packet is sent to the wireless device as the encapsulated information.
[0124] It is worth noting that since the instrument and the wireless device are connected via a bus or serial port, the inner data packet needs to be encapsulated into an outer data packet that conforms to the first data protocol. This is to ensure that the wireless device can accurately identify and parse the outer data packet after receiving it, and thus correctly parse the outer data packet to obtain the data to be transmitted.
[0125] One possible approach, see Figure 4 The wireless device parses the encapsulated information based on the first data protocol and sends the parsed information to the target computer device based on the second data protocol, including:
[0126] Step 1005: The wireless device parses the outer data packet based on the first data protocol to obtain the inner data packet, and uses the inner data packet as the information to be sent.
[0127] For example, if the first data protocol is the CAN bus protocol, then the format of the outer data packet is the CAN bus protocol format, specifically "start bit + source address + destination address + control command + index value + data + check bit + end bit".
[0128] The datagram consists of several parts: The start bit (0x01) indicates the beginning of the data packet; the source address indicates the sender; the destination address indicates the receiver; control commands include read and write commands (0x01 and 0x00 respectively); the parity bit verifies the data packet's integrity using a BCC (Browser-Coordination) checksum, validating all data from the start bit to the parity bit; and the end bit (0x02) indicates the end of the data packet. The index values include the index and sub-indexes, allowing for quick identification of data within the index list. The data represents the specific content to be transmitted, i.e., the inner data packet.
[0129] Optionally, the index list includes fault types and diagnostic types. Fault types include fault codes, which indicate potential faults in various drive components. Diagnostic types include diagnostic commands and diagnostic device information. See the table below for details:
[0130]
[0131]
[0132] The index information for fault types is: index 0x12, sub-index 0x02. The index information for diagnostic instructions in diagnostic types is: index 0x1F, sub-index 0x08. The index for diagnostic device information is 0xD0, sub-index 0x00.
[0133] Moreover, the wireless device can determine whether it is necessary to parse the data content in the outer data packet based on the header information in the outer data packet other than "data", that is, whether it is necessary to parse the inner data packet from the outer data packet.
[0134] Step 1006: Send the inner data packet to the target computer device based on the second data protocol.
[0135] For example, if the second data protocol is the Bluetooth protocol, then the format of the inner data packet is the Bluetooth protocol format, specifically "frame header + frame type + command code + data length + data content + checksum". For example, the frame header can be 0x50, and the frame type can be 0x44.
[0136] Moreover, the wireless device can determine whether it is necessary to parse the data content in the inner data packet based on the instruction code in the inner data packet, that is, whether it is necessary to extract the data content of the inner data packet from the inner data packet.
[0137] In addition, the wireless device can also determine whether it is necessary to send the parsed inner data packet to the target computer device based on the instruction code in the inner data packet.
[0138] For example, if the instruction code of the inner data packet is "0x1A", this instruction code indicates that the instrument needs to send the inner data packet to the target computer device, and the wireless device does not need to parse the data content of the inner data packet. The data format in this inner data packet can be shown in the following table:
[0139]
[0140] As can be seen, the data content of this inner data packet may include the Bluetooth address of the target computer device and the transparent data. The transparent data represents the data that needs to be sent to the target computer device. When there are multiple target computer devices, data packets need to be sent separately according to the Bluetooth addresses of different target computer devices.
[0141] For example, when the instrument needs to send the data content "00 00 00 01 00 00 00 01 80 01 05 01 0502 0040 C2" (that is, the inner data packet encapsulated based on the Bluetooth protocol) to the mobile terminal with Bluetooth address 48 1C E17C 8D D2, the instrument will send "50 45 1A 17D2 8D 7C E1 1C 48 0000 00 01 00 00 00 01 80 01 05 0105 02 00 40 C2 8E" (that is, the outer data packet) to the wireless device. After receiving the data, the wireless device can determine the data content (i.e., the inner data packet) that needs to be parsed based on the header information of the outer data packet excluding the "data". Then, it can sequentially determine the frame header 0x50 and frame type 0x45 of the inner data packet. Based on the instruction code 0x1A, it can determine that the data content of the inner data packet does not need to be parsed. In this case, the wireless device only needs to broadcast a data packet with the data "00 00 00 01 00 00 00 01 80 01 0501 05 02 00 40 C2".
[0142] For example, when the instrument needs to send a data packet of "AB BA 10D0 00 1A 1B 1D 00 00 00 00 0000 00 0000 11 11 53 85" (which is the inner data packet encapsulated based on the Bluetooth protocol) to a tablet computer terminal with Bluetooth address 521C E1 7C 8D D2, the instrument will send "50 45 1A1A D2 8D 7CE1 1C 52AB BA 10D0 00 1A 1B1D 00 00 00 00 00 00 00 00 00 11 11 53 85 82" (which is the outer data packet) to the wireless device. After receiving the data, the wireless device determines the data content (i.e., the inner data packet) that needs to be parsed based on the header information of the outer data packet excluding the "data". It then sequentially checks the frame header 0x50 and frame type 0x45 of the inner data packet. Based on the instruction code 0x1A, it determines that the data content of the inner data packet does not need to be parsed. In this case, the wireless device only broadcasts the data packet with the format "AB BA 0E 1A 1B1D 00 00 00 00 00 00 00 00 00 11 11 49 52".
[0143] Furthermore, it's important to understand that, since a wireless communication connection is required between the target computer device and the instrument cluster, it's essential to ensure that the information ultimately sent to the target computer device can be parsed, recognized, and processed by it. The second data protocol is the wireless communication protocol supported by both the wireless device and the target computer device. Therefore, by encapsulating the information to be packaged into an inner data packet based on this second data protocol, it can be ensured that after the target computer device receives the information to be transmitted from the wireless device, it can correctly read the corresponding first fault code from the information to be transmitted, so that the specific fault information and troubleshooting methods for each component of the vehicle can be displayed on the target computer device's interface.
[0144] In this way, it can provide users with effective display assistance and output electric vehicle fault information wirelessly.
[0145] In one possible implementation, see [link to relevant documentation]. Figure 5 The instrument panel determines fault information for at least one component in the vehicle based on a first data protocol, including:
[0146] Step 1007: The instrument receives the second fault code sent by the controller based on the first data protocol.
[0147] Optionally, the second fault code is generated by the controller when it detects a fault in a component of the vehicle. The second fault code can be a code that the instrument cluster can recognize, parse, and process.
[0148] This second fault code can be used to indicate the fault condition and type of fault in various components of the vehicle.
[0149] For example, if the first data protocol is a CAN bus protocol, the controller can package the second fault code into a CAN bus protocol format based on the first data protocol and then send it to the instrument device. If the first data protocol is a UART serial port protocol, the controller can package the second fault code into a UART serial port protocol format based on the first data protocol and then send it to the instrument device.
[0150] This ensures that the instrument can correctly parse the second fault code when it receives data sent by the controller.
[0151] Step 1008: The instrument displays the second fault code.
[0152] In this way, the instrument panel can display the fault type and condition of each component in the vehicle, allowing users to directly understand the vehicle's status by viewing the instrument panel.
[0153] Step 1009: The instrument device parses the second fault code based on the first data protocol to determine the fault information of the component.
[0154] In this way, the instrument device can accurately determine the fault information indicating the fault condition and fault type of each component in the vehicle based on the second fault code, so that the first fault code can be generated as the information to be encapsulated based on the fault information and the second data protocol.
[0155] One possible approach, the method also includes:
[0156] Without enabling the diagnostic function, the instrument displays this second fault code.
[0157] It is worth noting that since this diagnostic function is not enabled, it indicates that there is no need to send the fault information to the corresponding computer device. Therefore, the second fault code can be directly displayed on the instrument panel for the user to view.
[0158] Since the aforementioned vehicle only needs to send fault information of its components to the target computer device when the diagnostic function is enabled, it is necessary to accurately determine whether the vehicle's diagnostic function is enabled. One possible implementation method is also provided for this purpose.
[0159] Specifically, the fault information sending method provided in this application embodiment can enable the diagnostic function in the following ways:
[0160] The first method: If the instrument is paired with the target computer device, and the instrument receives a fault information acquisition instruction sent by the target computer device through the wireless device, then the diagnostic function is enabled.
[0161] Optionally, the fault information acquisition instruction may be an instruction input by the user on the target computer device to control the instrument to send the fault information to the target computer device.
[0162] The fault information acquisition command can also instruct the instrument panel to acquire fault information for which component of the vehicle. In this case, after receiving the fault information acquisition command, the instrument panel can also control the controller to monitor a specific component and send the second fault code corresponding to that specific component to the instrument panel. This application embodiment does not limit this aspect.
[0163] It is worth noting that pairing the instrument with the target computer device can mean that the instrument indirectly establishes a wireless communication connection with the target computer device through the wireless device. Specifically, the instrument can be paired with the target computer device in any possible way, and this application embodiment does not limit this.
[0164] The second method: If the instrument is paired with the target computer device and the instrument receives the second fault code, then the diagnostic function is enabled.
[0165] It is worth noting that since this second fault code can be used to indicate the fault condition and type of various components in the vehicle, if the controller sends this second fault code to the instrument panel, it indicates that a component in the vehicle has malfunctioned. Therefore, the instrument panel can actively activate the diagnostic function to send the corresponding fault information to the target computer device for display on the target computer device for user viewing. This achieves the effect of providing effective display assistance to the user and wirelessly outputting fault information of the electric vehicle.
[0166] The third method: If a diagnostic enable command is input via the input device, the instrument device enables the diagnostic function.
[0167] Alternatively, the input device may be the input device r described above.
[0168] The diagnostic activation command can be input by the user through the input device to control the instrument to activate the diagnostic function.
[0169] In this way, the user can directly operate the instrument to enable the diagnostic function.
[0170] It is worth noting that this diagnostic function can be enabled through the above-mentioned methods and any other possible means, thus ensuring the flexibility of enabling the diagnostic function and the practicality of the fault information transmission method.
[0171] Understandably, if there are no multiple ways to enable the diagnostic function, it indicates that the vehicle's diagnostic function is not enabled, and there is no need to send the fault information to the corresponding computer equipment.
[0172] In addition, the various ways to enable this diagnostic function provided above can be executed before step 1001, or before or after any possible step, such as before or after step 1007.
[0173] In another possible way, the diagnostic function can also be turned off in any other possible way, and this application embodiment does not limit this.
[0174] In addition, if the vehicle disables the diagnostic function after performing any of the above steps, the second fault code can be displayed directly on the instrument panel, and subsequent steps can be stopped. This application embodiment does not limit this.
[0175] In one possible implementation, see [link to relevant documentation]. Figure 6 The method also includes:
[0176] Step 1010: The instrument sends the pairing parameters to the wireless device and controls the wireless device to broadcast the pairing data packet.
[0177] Optionally, the pairing parameter is used to indicate parameters that configure the pairing name of the wireless device and the content of the pairing data packet.
[0178] The pairing data packet can refer to a data packet sent out by the wireless device. This pairing data packet can be a Bluetooth packet, a Wi-Fi packet, an infrared packet, etc., specifically determined by the type of wireless device; this application embodiment does not limit this.
[0179] Step 1011: The wireless device receives the data acquisition request sent by the target computer device and forwards the data acquisition request to the instrument device.
[0180] Optionally, the data acquisition request is an instruction for the instrument to send a request for data verification to the target computer device via the wireless device.
[0181] Step 1012: The instrument generates device data based on the data acquisition request and sends the device data to the target computer device via the wireless device.
[0182] The device data is used to tag the instrument. The target computer device is used to identify the device data to determine whether the instrument can be paired with the target computer device.
[0183] The device data can be in any form, and the target computer device can identify the device data in any possible way; this application embodiment does not limit this.
[0184] Step 1013: The instrument device receives a pairing request sent by the target computer device through the wireless device, and establishes a pairing connection between the instrument device, the wireless device and the target computer device according to the pairing request.
[0185] Optionally, the pairing request refers to a request generated by the target computer device to enable the instrument device to confirm pairing when the target computer device identifies the device data and determines whether the instrument device can be paired with the target computer device.
[0186] In this way, the wireless device can forward corresponding pairing data and requests between the target computer device and the instrument device, enabling them to complete pairing. Furthermore, when the target computer device and the instrument device are paired, a wireless communication connection can be indirectly established between them via the wireless device.
[0187] Therefore, it can be ensured that the instrument device can correctly execute steps 1001, 1002, and any other steps mentioned above, that is, that the instrument device can send the vehicle's fault information to the target computer device for display. In this way, it can provide effective display assistance to the user and output electric vehicle fault information wirelessly.
[0188] Figure 7 This is an interactive schematic diagram of a communication control method provided in an embodiment of this application. From Figure 7 It can be seen that vehicle L includes instrument device A, wireless device B, and controller C, and wireless device B is communicatively connected to target computer device D.
[0189] Assume the instrument is already paired with the target computer device. See also Figure 7 The instrument device transmits fault information sent by the controller to the target computer device via the wireless device, specifically including:
[0190] Step 2001: The controller sends the second fault code to the instrument device based on the first data protocol.
[0191] Step 2002: The instrument displays the second fault code and parses the second fault code based on the first data protocol to determine the fault information of the component.
[0192] Step 2003: The instrument parses the fault information, converts the fault information into a first fault code that matches the second data protocol, and uses the first fault code as the information to be encapsulated.
[0193] Step 2004: The instrument device encapsulates the information to be encapsulated into an inner data packet based on the second data protocol, and encapsulates the inner data packet into an outer data packet based on the first data protocol.
[0194] Step 2005: The instrument device sends the outer data packet as the encapsulated information to the wireless device.
[0195] Step 2006: The wireless device parses the outer data packet based on the first data protocol to obtain the inner data packet, and uses the inner data packet as the information to be sent.
[0196] Step 2007: The wireless device sends the inner data packet to the target computer device based on the second data protocol.
[0197] Step 2008: The target computer device stores the corresponding fault code, uploads the corresponding fault code to the cloud, and parses the information to be sent based on the second data protocol to obtain the corresponding fault code and fault information.
[0198] Step 2009: The target computer device searches for solutions to the fault information through the network or database, and displays the fault information and solutions for each component of the vehicle on the display interface of the target computer device.
[0199] In this way, it can provide users with effective display assistance and output electric vehicle fault information wirelessly.
[0200] The following describes the apparatus, device, and computer-readable storage medium used to implement the fault information transmission method provided in this application. The specific implementation process and technical effects are described above and will not be repeated below.
[0201] Figure 8 This is a schematic diagram of the structure of a fault information sending device provided in an embodiment of this application. See also... Figure 8 The device includes:
[0202] The determination module 301 is used to determine the fault information of at least one component in the vehicle through the instrument device based on the first data protocol when the diagnostic function is enabled, determine the information to be encapsulated according to the second data protocol and the fault information, encapsulate the information to be encapsulated based on the first data protocol and the second data protocol, and send the encapsulated information to the wireless device.
[0203] Optionally, the fault information is used to indicate the type of fault in the component;
[0204] The parsing and sending module 302 is used to parse the encapsulated information based on the first data protocol through the wireless device, and send the parsed information to be sent to the target computer device based on the second data protocol.
[0205] Optionally, the target computer device is used to parse, store, and display the information to be sent.
[0206] The above-described device is used to execute the method provided in the foregoing embodiments, and its implementation principle and technical effect are similar, so they will not be described again here.
[0207] These modules can be one or more integrated circuits configured to implement the above methods, such as one or more Application Specific Integrated Circuits (ASICs), one or more microprocessors, or one or more Field Programmable Gate Arrays (FPGAs). Alternatively, when a module is implemented using processing element scheduler code, the processing element can be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. Furthermore, these modules can be integrated together as a system-on-a-chip (SOC).
[0208] Figure 9 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. See also... Figure 9 The computer device 400 includes a memory 401 and a processor 402. The memory 401 stores a computer program that can run on the processor 402. When the processor 402 executes the computer program, it implements the steps in any of the above method embodiments.
[0209] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, can implement the steps in the various method embodiments described above.
[0210] Optionally, this application also provides a program product, such as a computer-readable storage medium, including a program that, when executed by a processor, performs any of the above-described fault information transmission method embodiments.
[0211] In the several embodiments provided by this invention, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0212] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0213] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in the form of hardware plus software functional units.
[0214] The integrated units implemented as software functional units described above can be stored in a computer-readable storage medium. These software functional units, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute partial steps of the methods of the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0215] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0216] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A method for transmitting fault information, characterized in that, Applied to a vehicle, the vehicle including an instrument panel and a wireless device; the method includes: When the diagnostic function is enabled, the instrument device determines the fault information of at least one component in the vehicle based on a first data protocol, determines the information to be encapsulated according to a second data protocol and the fault information, encapsulates the information to be encapsulated based on the first data protocol and the second data protocol, and sends the encapsulated information to the wireless device, wherein the fault information is used to indicate the fault type of the component. The wireless device parses the encapsulated information based on the first data protocol, and sends the parsed information to be sent to the target computer device based on the second data protocol. The target computer device is used to parse, store, and display the information to be sent. The step of encapsulating the information to be encapsulated based on the first data protocol and the second data protocol, and sending the encapsulated information to the wireless device, includes: The information to be encapsulated is encapsulated into an inner data packet based on the second data protocol; The inner data packet is encapsulated into an outer data packet based on the first data protocol, and the outer data packet is sent to the wireless device as the encapsulated information. The wireless device parses the encapsulated information based on the first data protocol and sends the parsed information to be transmitted to the target computer device based on the second data protocol, including: The wireless device parses the outer data packet based on the first data protocol to obtain the inner data packet, and uses the inner data packet as the information to be sent; The inner data packet is sent to the target computer device based on the second data protocol; The method further includes: The instrument sends pairing parameters to the wireless device and controls the wireless device to broadcast pairing data packets; The wireless device receives a data acquisition request sent by the target computer device and forwards the data acquisition request to the instrument device; The instrument generates device data according to the data acquisition request, and sends the device data to the target computer device through the wireless device; The instrument device receives a pairing request sent by the target computer device through the wireless device, and establishes a pairing connection between the instrument device, the wireless device, and the target computer device according to the pairing request; The target computer device is used to parse, store, and display the information to be sent, including: The target computer device parses the information to be sent based on the second data protocol to obtain the fault code indicated by the information to be sent; The target computer device stores the fault code indicated by the information to be sent, and parses the meaning of the fault code to determine and display the fault information and troubleshooting methods of each component of the vehicle corresponding to the information to be sent.
2. The fault information transmission method as described in claim 1, characterized in that, The step of determining the information to be encapsulated based on the second data protocol and the fault information includes: The fault information is parsed, converted into a first fault code that matches the second data protocol, and the first fault code is used as the information to be encapsulated.
3. The fault information transmission method as described in claim 1, characterized in that, The vehicle also includes a controller; The instrument device determines fault information of at least one component in the vehicle based on a first data protocol, including: The instrument device receives a second fault code sent by the controller based on the first data protocol. The second fault code is generated by the controller when it detects a fault in a component of the vehicle. The instrument displays the second fault code; The instrument device parses the second fault code based on the first data protocol to determine the fault information of the component.
4. The fault information transmission method as described in claim 3, characterized in that, The method further includes: Without enabling the diagnostic function, the instrument displays the second fault code.
5. The fault information transmission method as described in claim 3, characterized in that, The method further includes: If the instrument is paired with the target computer device, and the instrument receives a fault information acquisition command sent by the target computer device via the wireless device, then the diagnostic function is activated; or, If the instrument is paired with the target computer device and the instrument receives a second fault code, then the diagnostic function is activated; or, If a diagnostic enable command is input via the input device, the instrument device enables the diagnostic function.
6. A vehicle, characterized in that, The vehicle includes an instrument panel and a wireless device; The instrument device is used to determine fault information of at least one component in the vehicle based on a first data protocol when the diagnostic function is enabled, determine information to be encapsulated according to a second data protocol and the fault information, encapsulate the information to be encapsulated based on the first data protocol and the second data protocol, and send the encapsulated information to the wireless device, wherein the fault information is used to indicate the fault type of the component. The wireless device is used to parse the encapsulated information based on the first data protocol, and to send the parsed information to be sent to the target computer device based on the second data protocol. The target computer device is used to parse, store, and display the information to be sent. The instrument device is specifically used to encapsulate the information to be encapsulated into an inner data packet based on the second data protocol; to encapsulate the inner data packet into an outer data packet based on the first data protocol; and to send the outer data packet as the encapsulated information to the wireless device. The wireless device is specifically used to parse the outer data packet based on the first data protocol to obtain the inner data packet, and use the inner data packet as the information to be sent; and to send the inner data packet to the target computer device based on the second data protocol. The instrument sends pairing parameters to the wireless device and controls the wireless device to broadcast pairing data packets; The wireless device receives a data acquisition request sent by the target computer device and forwards the data acquisition request to the instrument device; The instrument generates device data according to the data acquisition request, and sends the device data to the target computer device through the wireless device; The instrument device receives a pairing request sent by the target computer device through the wireless device, and establishes a pairing connection between the instrument device, the wireless device, and the target computer device according to the pairing request; The target computer device is used to parse, store, and display the information to be sent, including: The target computer device parses the information to be sent based on the second data protocol to obtain the fault code indicated by the information to be sent; The target computer device stores the fault code indicated by the information to be sent, and parses the meaning of the fault code to determine and display the fault information and troubleshooting methods of each component of the vehicle corresponding to the information to be sent.
7. A computer device, characterized in that, include: A memory and a processor, wherein the memory stores a computer program that can run on the processor, and when the processor executes the computer program, it implements the steps of the method described in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Method and device for sending data
CN103889019A
Protocol conversion method and device
CN109669442A