An isoSPI communication system with path diagnosis function and use method thereof

By setting up a diagnostic module and SPI to isoSPI chip in the isoSPI communication system, we can judge the path breakage and impedance matching, and the problem of traditional isoSPI path lacking impedance matching diagnosis is solved, and the BMS chip test efficiency and communication quality are improved.

CN113009902BActive Publication Date: 2024-12-06FUJIAN NEBULA ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110196366.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-22
Publication Date
2024-12-06
Estimated Expiration
2041-02-22

AI Technical Summary

Technical Problem

The traditional isoSPI path lacks impedance matching diagnosis, resulting in unstable communication quality and affecting the BMS chip test efficiency.

Method used

A isoSPI communication system with path diagnostic function was designed. By setting up a diagnostic module, SPI to isoSPI chip and isoSPI interface in the isoSPI communication box, it uses the transmission and return of diagnostic data to judge the path breakage and impedance matching situation, and generates diagnostic results. .

Benefits of technology

It realizes rapid diagnosis of isoSPI path, ensures communication quality, and significantly improves the BMS chip testing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113009902B_ABST
    Figure CN113009902B_ABST
Patent Text Reader

Abstract

The present invention provides an isoSPI communication system and a method for using the system with a path diagnosis function in the technical field of new energy vehicles. The system includes a computer, an isoSPI communication box, and an isoSPI communication cable; the isoSPI communication box includes a diagnosis module, a communication interface, a first SPI to isoSPI chip, a second SPI to isoSPI chip, a first isoSPI interface, and a second isoSPI interface; one end of the communication interface is connected to the computer, and the other end is connected to the diagnosis module; one end of the second SPI to isoSPI chip is connected to the diagnosis module, and the other end is connected to the second isoSPI interface; one end of the isoSPI communication cable is connected to the second isoSPI interface, and the other end is connected to the first isoSPI interface; one end of the first SPI to isoSPI chip is connected to the first isoSPI interface, and the other end is connected to the diagnosis module. The advantages of the present invention are: the isoSPI path is diagnosed, and the communication quality is guaranteed, which greatly improves the test efficiency of the BMS chip.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of new energy vehicles, and in particular to an isoSPI communication system with a path diagnosis function and a use method thereof. Background Art

[0002] Electric vehicles (BEV) refer to vehicles that use onboard power as a power source, use motors to drive wheels, and comply with various requirements of road traffic and safety regulations. As their impact on the environment is relatively small compared to traditional vehicles, their prospects are widely optimistic. With the development of electric vehicles, the demand for testing BMS chips in electric vehicles is also increasing.

[0003] For the testing of BMS chips, the CAN interface is traditionally used to connect the BMS chip for testing. However, the CAN interface needs to integrate devices such as microprocessors, digital isolators and CAN transceivers, and has the disadvantages of complex structure and high cost. The isoSPI interface (isolated serial peripheral interface) is gradually replacing the traditional CAN interface due to its simple structure and low cost.

[0004] Since the isoSPI interface uses a single twisted pair for connection, and the impedance matching of the twisted pair will directly affect the communication quality, but the impedance matching of the isoSPI path has not been diagnosed traditionally. Therefore, how to provide an isoSPI communication system with a path diagnosis function and a method for using it to diagnose the isoSPI path, thereby ensuring the communication quality and improving the BMS chip test efficiency has become an urgent problem to be solved. Summary of the invention

[0005] The technical problem to be solved by the present invention is to provide an isoSPI communication system with a path diagnosis function and a use method thereof, so as to diagnose the isoSPI path, thereby ensuring the communication quality and improving the BMS chip test efficiency.

[0006] In a first aspect, the present invention provides an isoSPI communication system with a path diagnosis function, comprising a computer, an isoSPI communication box and an isoSPI communication cable;

[0007] The isoSPI communication box includes a diagnostic module, a communication interface, a first SPI to isoSPI chip, a second SPI to isoSPI chip, a first isoSPI interface and a second isoSPI interface;

[0008] One end of the communication interface is connected to the computer, and the other end is connected to the diagnostic module; one end of the second SPI to isoSPI chip is connected to the diagnostic module, and the other end is connected to the second isoSPI interface; one end of the isoSPI communication cable is connected to the second isoSPI interface, and the other end is connected to the first isoSPI interface; one end of the first SPI to isoSPI chip is connected to the first isoSPI interface, and the other end is connected to the diagnostic module.

[0009] Furthermore, the diagnosis module is an MCU.

[0010] Furthermore, the diagnostic module includes an MCU and a diagnostic chip;

[0011] One end of the MCU is connected to the communication interface, and the other end is connected to the second SPI to isoSPI chip; the diagnostic chip is connected to the first SPI to isoSPI chip.

[0012] Furthermore, the communication interface is an Ethernet interface or a CAN interface.

[0013] Furthermore, the isoSPI communication box also includes a power module; the power module is respectively connected to the diagnostic module, the first SPI to isoSPI chip and the second SPI to isoSPI chip.

[0014] In a second aspect, the present invention provides a method for using an isoSPI communication system having a path diagnosis function, comprising the following steps:

[0015] Step S10, connecting one end of the isoSPI communication cable to the first isoSPI interface, and the other end to the second isoSPI interface;

[0016] Step S20: The computer presets a time period, and sends the diagnostic data and the time period to the MCU through the communication interface;

[0017] Step S30, the MCU counts down based on the received time period, and transmits the received diagnostic data to the MCU or the diagnostic chip in sequence through the second SPI to isoSPI chip, the second isoSPI interface, the isoSPI communication cable, the first isoSPI interface, and the first SPI to isoSPI chip;

[0018] Step S40: the MCU or the diagnostic chip transmits the received diagnostic data back to the MCU via the first SPI to isoSPI chip, the first isoSPI interface, the isoSPI communication cable, the second isoSPI interface, and the second SPI to isoSPI chip in sequence;

[0019] Step S50, the MCU determines whether the returned diagnostic data is received before the countdown ends, and if so, proceeds to step S60; if not, generates a diagnostic result of an isoSPI path open circuit and sends it to the computer;

[0020] Step S60, the MCU determines whether the returned diagnostic data contains garbled characters. If so, a diagnostic result of isoSPI channel impedance mismatch is generated and sent to the computer; if not, a diagnostic result of isoSPI channel impedance matching is generated and sent to the computer, and the process proceeds to step S70;

[0021] Step S70: connect one end of the isoSPI communication cable to the second isoSPI interface, and the other end to the BMS chip; the computer reads, writes, debugs or tests the BMS chip through the isoSPI communication box.

[0022] The advantages of the present invention are:

[0023] By arranging a diagnostic module, a first SPI to isoSPI chip, a second SPI to isoSPI chip, a first isoSPI interface and a second isoSPI interface in an isoSPI communication box, after the first isoSPI interface and the second isoSPI interface are connected with an isoSPI communication cable, the diagnostic module transmits the diagnostic data sent by the computer to the diagnostic module (MCU or diagnostic chip) through the second SPI to isoSPI chip, the second isoSPI interface, the isoSPI communication cable, the first isoSPI interface and the first SPI to isoSPI chip in sequence, and then returns the diagnostic data by the original route. By judging whether the returned diagnostic data is received and whether the received diagnostic data generates garbled characters, it can be judged whether the isoSPI path is broken and whether the isoSPI path is impedance matched. When the isoSPI path is broken or the impedance is not matched, maintenance can be carried out immediately, that is, the isoSPI path is diagnosed, thereby ensuring the communication quality and greatly improving the BMS chip test efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The present invention will be further described below in conjunction with embodiments with reference to the accompanying drawings.

[0025] Figure 1 This is one of the circuit principle block diagrams of an isoSPI communication system with a path diagnosis function of the present invention.

[0026] Figure 2 This is the second circuit principle block diagram of an isoSPI communication system with a path diagnosis function of the present invention.

[0027] Figure 3This is the third circuit principle block diagram of an isoSPI communication system with a path diagnosis function of the present invention.

[0028] Figure 4 It is a circuit principle block diagram of the power module of the present invention.

[0029] Figure 5 The present invention is a schematic diagram of the use status of an isoSPI communication system with a path diagnosis function.

[0030] Figure 6 The present invention is a flowchart of a method for using an isoSPI communication system with a path diagnosis function.

[0031] Marking Description:

[0032] 100-an isoSPI communication system with a path diagnosis function, 1-computer, 2-isoSPI communication box, 3-isoSPI communication cable, 4-BMS chip, 21-diagnostic module, 22-communication interface, 23-first SPI to isoSPI chip, 24-second SPI to isoSPI chip, 25-first isoSPI interface, 26-second isoSPI interface, 27-power module, 211-MCU, 212-diagnostic chip. DETAILED DESCRIPTION

[0033] The technical solution in the embodiment of the present application has the following general idea: two isoSPI paths are set in the isoSPI communication box 2, and the two isoSPI paths are connected by the isoSPI communication cable 3 during diagnosis, and diagnostic data is transmitted back and forth on the two isoSPI paths. By judging whether the returned diagnostic data is received and whether the received diagnostic data generates garbled characters, whether the isoSPI path is broken and whether the isoSPI path is impedance matched is diagnosed, thereby realizing rapid fault location and saving troubleshooting time.

[0034] Please refer to Figures 1 to 6 As shown, a preferred embodiment of an isoSPI communication system 100 with a path diagnosis function of the present invention comprises a computer 1, an isoSPI communication box 2 and an isoSPI communication cable 3; the computer 1 is used to send diagnostic data to the isoSPI communication box 2 to diagnose whether the isoSPI path is open and whether the isoSPI path is impedance matched, receive the diagnostic result of the isoSPI communication box 2, and test the BMS chip 4 through the isoSPI communication box 2; the isoSPI communication box 2 is used to establish isoSPI communication with the BMS chip 4; the isoSPI communication cable 3 is used to transmit isoSPI signals;

[0035] The isoSPI communication box 2 includes a diagnostic module 21, a communication interface 22, a first SPI to isoSPI chip 23, a second SPI to isoSPI chip 24, a first isoSPI interface 25 and a second isoSPI interface 26; the diagnostic module 21 is used to receive and send diagnostic data, and to diagnose whether the isoSPI path is broken and whether the isoSPI path is impedance matched based on the diagnostic data, and to generate a diagnostic result; the first SPI to isoSPI chip 23 and the second SPI to isoSPI chip 24 are used for the mutual conversion between SPI signals and isoSPI signals. In specific implementation, it is sufficient to select a chip that can realize this function from the prior art, and it is not limited to any model, such as LTC6820, which can be obtained by those skilled in the art without creative labor;

[0036] One end of the communication interface 22 is connected to the computer 1, and the other end is connected to the diagnostic module 21; one end of the second SPI to isoSPI chip 24 is connected to the diagnostic module 21, and the other end is connected to the second isoSPI interface 26; one end of the isoSPI communication cable 3 is connected to the second isoSPI interface 26, and the other end is connected to the first isoSPI interface 25; one end of the first SPI to isoSPI chip 23 is connected to the first isoSPI interface 25, and the other end is connected to the diagnostic module 21.

[0037] The diagnosis module 21 is MCU211.

[0038] The diagnostic module 21 includes an MCU211 and a diagnostic chip 212; the diagnostic chip 212 is used to receive diagnostic data sent by MCU211 and transmit the received diagnostic data back to MCU211. In specific implementation, it is sufficient to select a diagnostic chip that can realize this function from the existing technology, and it is not limited to any model. For example, a battery pack monitoring chip with model LTC6811, LTC6804 or LTC2949 is used, which can be obtained by technical personnel in this field without creative labor.

[0039] One end of the MCU 211 is connected to the communication interface 22 , and the other end is connected to the second SPI to isoSPI chip 24 ; the diagnostic chip 212 is connected to the first SPI to isoSPI chip 23 .

[0040] That is, the diagnosis module 21 includes two design solutions. When the diagnosis module 21 is an MCU 211 , the MCU 211 integrates the function of the diagnosis chip 212 .

[0041] The communication interface 22 is an Ethernet interface or a CAN interface, and is used for communication between the computer 1 and the isoSPI communication box 2 .

[0042] The isoSPI communication box 2 further includes a power module 27 ; the power module 27 is respectively connected to the diagnostic module 21 , the first SPI to isoSPI chip 23 and the second SPI to isoSPI chip 24 ; the power module 27 is used to supply power to the isoSPI communication box 2 .

[0043] A preferred embodiment of a method for using an isoSPI communication system with a path diagnosis function of the present invention comprises the following steps:

[0044] Step S10, connecting one end of the isoSPI communication cable to the first isoSPI interface, and the other end to the second isoSPI interface;

[0045] Step S20: The computer presets a time period, and sends the diagnostic data and the time period to the MCU through the communication interface;

[0046] Step S30, the MCU counts down based on the received time period, and transmits the received diagnostic data to the MCU or the diagnostic chip in sequence through the second SPI to isoSPI chip, the second isoSPI interface, the isoSPI communication cable, the first isoSPI interface, and the first SPI to isoSPI chip;

[0047] Step S40: the MCU or the diagnostic chip transmits the received diagnostic data back to the MCU via the first SPI to isoSPI chip, the first isoSPI interface, the isoSPI communication cable, the second isoSPI interface, and the second SPI to isoSPI chip in sequence;

[0048] Step S50, the MCU determines whether the returned diagnostic data is received before the countdown ends, and if so, proceeds to step S60; if not, generates a diagnostic result of an isoSPI path open circuit and sends it to the computer;

[0049] Step S60, the MCU determines whether the returned diagnostic data contains garbled characters. If so, a diagnostic result of isoSPI channel impedance mismatch is generated and sent to the computer; if not, a diagnostic result of isoSPI channel impedance matching is generated and sent to the computer, and the process proceeds to step S70;

[0050] Step S70: connect one end of the isoSPI communication cable to the second isoSPI interface, and the other end to the BMS chip; the computer reads, writes, debugs or tests the BMS chip through the isoSPI communication box.

[0051] When the diagnostic module is an MCU, the MCU integrates the function of the diagnostic chip, and the transmission path of the diagnostic data is the MCU, the second SPI to isoSPI chip, the second isoSPI interface, the isoSPI communication cable, the first isoSPI interface, the first SPI to isoSPI chip, the MCU, and then returns along the original path.

[0052] When the diagnostic module includes an MCU and a diagnostic chip, the transmission path of the diagnostic data is the MCU, the second SPI to isoSPI chip, the second isoSPI interface, the isoSPI communication cable, the first isoSPI interface, the first SPI to isoSPI chip, the diagnostic chip, and then returns to the original path.

[0053] In summary, the advantages of the present invention are:

[0054] By arranging a diagnostic module, a first SPI to isoSPI chip, a second SPI to isoSPI chip, a first isoSPI interface and a second isoSPI interface in an isoSPI communication box, after the first isoSPI interface and the second isoSPI interface are connected with an isoSPI communication cable, the diagnostic module transmits the diagnostic data sent by the computer to the diagnostic module (MCU or diagnostic chip) through the second SPI to isoSPI chip, the second isoSPI interface, the isoSPI communication cable, the first isoSPI interface and the first SPI to isoSPI chip in sequence, and then returns the diagnostic data by the original route. By judging whether the returned diagnostic data is received and whether the received diagnostic data generates garbled characters, it can be judged whether the isoSPI path is broken and whether the isoSPI path is impedance matched. When the isoSPI path is broken or the impedance is not matched, maintenance can be carried out immediately, that is, the isoSPI path is diagnosed, thereby ensuring the communication quality and greatly improving the BMS chip test efficiency.

[0055] Although the specific implementation modes of the present invention are described above, those skilled in the art should understand that the specific implementation modes described are only illustrative and are not intended to limit the scope of the present invention. Equivalent modifications and changes made by those skilled in the art in accordance with the spirit of the present invention should be included in the scope of protection of the claims of the present invention.

Claims

1. A method for using an isoSPI communication system with a path diagnosis function, characterized in that: The method requires the use of an isoSPI communication system with a path diagnosis function, including a computer, an isoSPI communication box and an isoSPI communication cable; The isoSPI communication box includes a diagnostic module, a communication interface, a first SPI to isoSPI chip, a second SPI to isoSPI chip, a first isoSPI interface and a second isoSPI interface; One end of the communication interface is connected to the computer, and the other end is connected to the diagnostic module; one end of the second SPI to isoSPI chip is connected to the diagnostic module, and the other end is connected to the second isoSPI interface; one end of the isoSPI communication cable is connected to the second isoSPI interface, and the other end is connected to the first isoSPI interface; one end of the first SPI to isoSPI chip is connected to the first isoSPI interface, and the other end is connected to the diagnostic module; The diagnostic module is an MCU; The diagnostic module may include an MCU and a diagnostic chip; One end of the MCU is connected to the communication interface, and the other end is connected to the second SPI to isoSPI chip; the diagnostic chip is connected to the first SPI to isoSPI chip; The communication interface is an Ethernet interface or a CAN interface; The isoSPI communication box also includes a power module; the power module is respectively connected to the diagnostic module, the first SPI to isoSPI chip and the second SPI to isoSPI chip; The method comprises the following steps: Step S10, connecting one end of the isoSPI communication cable to the first isoSPI interface, and the other end to the second isoSPI interface; Step S20: The computer presets a time period, and sends the diagnostic data and the time period to the MCU through the communication interface; Step S30, the MCU counts down based on the received time period, and transmits the received diagnostic data to the MCU or the diagnostic chip in sequence through the second SPI to isoSPI chip, the second isoSPI interface, the isoSPI communication cable, the first isoSPI interface, and the first SPI to isoSPI chip; Step S40: The MCU or the diagnostic chip transmits the received diagnostic data back to the MCU via the first SPI to isoSPI chip, the first isoSPI interface, the isoSPI communication cable, the second isoSPI interface, and the second SPI to isoSPI chip in sequence; Step S50, the MCU determines whether the returned diagnostic data is received before the countdown ends, and if so, proceeds to step S60; if not, generates a diagnostic result of isoSPI path open circuit and sends it to the computer; Step S60, the MCU determines whether the returned diagnostic data contains garbled characters. If so, a diagnostic result of isoSPI channel impedance mismatch is generated and sent to the computer; if not, a diagnostic result of isoSPI channel impedance matching is generated and sent to the computer, and the process proceeds to step S70; Step S70: connect one end of the isoSPI communication cable to the second isoSPI interface, and the other end to the BMS chip; the computer reads, writes, debugs or tests the BMS chip through the isoSPI communication box.