[go: up one dir, main page]

CN114200908A - Device installation verification method and terminal - Google Patents

Device installation verification method and terminal Download PDF

Info

Publication number
CN114200908A
CN114200908A CN202111314765.9A CN202111314765A CN114200908A CN 114200908 A CN114200908 A CN 114200908A CN 202111314765 A CN202111314765 A CN 202111314765A CN 114200908 A CN114200908 A CN 114200908A
Authority
CN
China
Prior art keywords
current
current value
bus
controller
steps
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.)
Granted
Application number
CN202111314765.9A
Other languages
Chinese (zh)
Other versions
CN114200908B (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.)
Hangzhou Cober Technology Co ltd
Original Assignee
Hangzhou Cober 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 Hangzhou Cober Technology Co ltd filed Critical Hangzhou Cober Technology Co ltd
Priority to CN202111314765.9A priority Critical patent/CN114200908B/en
Publication of CN114200908A publication Critical patent/CN114200908A/en
Application granted granted Critical
Publication of CN114200908B publication Critical patent/CN114200908B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0208Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
    • G05B23/0213Modular or universal configuration of the monitoring system, e.g. monitoring system having modules that may be combined to build monitoring program; monitoring system that can be applied to legacy systems; adaptable monitoring system; using different communication protocols
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24065Real time diagnostics

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Power Sources (AREA)

Abstract

The invention relates to a device adding and checking method and a terminal, wherein the method comprises the steps that a controller monitors whether the CAN bus data of a device to be tested has an appointed data frame in real time, if yes, handshake checking is carried out on the CAN bus data and the device to be tested, if the CAN bus data passes the checking, a control signal is normally output, and if not, the output is stopped. According to the invention, through the existing CAN hardware module, on the basis of not increasing the hardware cost, the conditions of installing illegal unmatched parts and unmatched CAN instruments are identified through the preset data frame and handshake check, so that the stable and reliable operation of the controller is ensured, and the problem of increasing after-sale cost caused by installing unmatched devices is reduced.

Description

Device additional installation checking method and terminal
Technical Field
The invention belongs to the technical field of circuit control, and particularly relates to a device adding and checking method and a terminal.
Background
The vehicle control unit in the existing electric vehicle is used for controlling the normal operation of the electric vehicle, and in the actual use process of the controller, the following two problems exist:
firstly, illegal unmatched parts are additionally arranged in the electric automobile, such as the illegal addition of a range extender brings instability of input voltage, signal interference is increased, abnormal damage is caused to a controller, and therefore after-sale cost is increased.
Secondly, when a Controller Area Network (CAN) instrument cannot be matched in an electric vehicle, the Controller failure is generally considered as a result of the fact that the instrument is not displayed or is not matched by a manufacturer and a client, and therefore the after-sale cost of the Controller is increased.
Disclosure of Invention
The invention aims to provide a device attachment verification method and a terminal, which aim to reduce the problem of increasing after-sale cost caused by attaching unmatched devices.
In order to solve the technical problem, the invention discloses a device additional installation verification method, which comprises the following steps:
s1, the controller monitors whether the CAN bus data of the device to be tested has an agreed data frame in real time, if yes, the step S2 is executed;
and S2, performing handshake check on the controller and the device to be tested, if the check is passed, normally outputting a control signal, and otherwise, stopping outputting.
Further, the step S1 further includes the following steps:
if the appointed data frame does not exist, the controller obtains a total battery current value, a current bus current value and a current motor rotating speed, whether the difference value of the total battery current value and the current bus current value is within a preset current difference value and whether the current motor rotating speed is larger than or equal to a preset motor rotating speed are judged, and if yes, the step S2 is executed.
Further, the step of acquiring the total battery current value and the current bus current value by the controller specifically includes the following steps:
the method comprises the steps of obtaining a real-time total current value of preset times and a real-time bus current value of a current bus of the preset times in a battery management system in real time, respectively averaging the real-time total current values and the real-time bus current values, and then taking an absolute value to obtain the battery total current value and the current bus current value.
Further, the handshake check specifically includes the following steps:
and the controller sends a message comprising a random number through the first data frame, monitors the CAN bus in real time to receive a second data frame responded by the device to be tested in real time, and performs validity check on the second data frame.
Further, if the handshake check in step S2 is a check pass, step S1 and step S2 are not executed until the controller or the device under test is powered off.
In order to solve the technical problem, the invention discloses a device installation verification terminal, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the computer program to realize the following steps:
s1, the controller monitors whether the CAN bus data of the device to be tested has an agreed data frame in real time, if yes, the step S2 is executed;
and S2, performing handshake check on the controller and the device to be tested, if the check is passed, normally outputting a control signal, and otherwise, stopping outputting.
Further, the step S1 further includes the following steps:
if the appointed data frame does not exist, the controller obtains a total battery current value, a current bus current value and a current motor rotating speed, whether the difference value of the total battery current value and the current bus current value is within a preset current difference value and whether the current motor rotating speed is larger than or equal to a preset motor rotating speed are judged, and if yes, the step S2 is executed.
Further, the step of acquiring the total battery current value and the current bus current value by the controller specifically includes the following steps:
the method comprises the steps of obtaining a real-time total current value of preset times and a real-time bus current value of a current bus of the preset times in a battery management system in real time, respectively averaging the real-time total current values and the real-time bus current values, and then taking an absolute value to obtain the battery total current value and the current bus current value.
Further, the handshake check specifically includes the following steps:
and the controller sends a message comprising a random number through the first data frame, monitors the CAN bus in real time to receive a second data frame responded by the device to be tested in real time, and performs validity check on the second data frame.
Further, if the handshake check in step S2 is a check pass, step S1 and step S2 are not executed until the controller or the device under test is powered off.
According to the invention, through the existing CAN hardware module, on the basis of not increasing the hardware cost, the conditions of installing illegal unmatched parts and unmatched CAN instruments are identified through the preset data frame and handshake check, so that the stable and reliable operation of the controller is ensured, and the problem of increasing the after-sale cost caused by installing unmatched devices is reduced.
Drawings
FIG. 1 is a schematic flow chart of a device loading verification method;
FIG. 2 is a schematic circuit diagram corresponding to a device attach verification method;
FIG. 3 is a schematic circuit diagram corresponding to a device attach verification method;
fig. 4 is a schematic flow chart of the device loading verification terminal.
1. A device is additionally provided with a check terminal; 2. a memory; 3. a processor.
Detailed Description
The present invention is further described in detail below with reference to examples so that those skilled in the art can practice the invention with reference to the description.
It will be understood that terms such as "having," "including," and "comprising," when used herein, do not preclude the presence or addition of one or more other elements or groups thereof.
Example one
As shown in fig. 1 to 3, the device mounting verification method includes the following steps:
s1, the controller monitors whether the CAN bus data of the device to be tested has an agreed data frame in real time, if yes, the step S2 is executed;
fig. 2 shows an existing hardware module, where CAN communication signals CANH and CANL pass through a CAN chip U14 to a signal isolation chip U13, and then pass through a resistance-capacitance filter circuit composed of resistors R1 and R2 and capacitors C2 and C3 to two ports CAN-RXD and CAN-TXD of a main control chip MCU for communication, where capacitors C1 and C4 are used for power filtering of the signal isolation chip U13, and capacitors C5 and C6 are used for signal filter capacitors of the CAN chip U13, and resistors R3 and R4 and a capacitor C7 are used to form a CAN signal impedance matching circuit to ensure normal communication signals.
Wherein DGND is an abbreviation for Digital group, meaning numerically; VCC is a power interface, the signal isolation chip U13 selects pi 122M31, and the CAN chip U14 selects TJA 1044T.
As shown in fig. 3, step S1 further includes the following steps:
if the appointed data frame does not exist, the controller obtains a total battery current value, a current bus current value and a current motor rotating speed, whether the difference value of the total battery current value and the current bus current value is within a preset current difference value and whether the current motor rotating speed is larger than or equal to a preset motor rotating speed are judged, and if yes, the step S2 is executed.
The step of acquiring the total battery current value and the current bus current value by the controller specifically comprises the following steps:
the method comprises the steps of obtaining a real-time total current value of preset times and a real-time bus current value of a current bus of the preset times in a battery management system in real time, respectively averaging the real-time total current values and the real-time bus current values, and then taking an absolute value to obtain the battery total current value and the current bus current value.
In this embodiment, the controller MCU determines whether there is an agreed data frame of 0x108FFFD3 (default transmission of 0xFF), if so, enters a handshake flow, otherwise, the controller MCU reads bits 24-bit39 in the battery total Current data BMS _ Current in BMS (battery management system) (0x10F81111) from the CAN bus in real time and updates the read bits into the register; the controller MCU sets a 100ms timer and processes the following in the timer:
(1) and averaging the total battery data BMS _ Current for 50 times, and performing negative calculation processing to obtain data BMS _ Current1, wherein the bus Current data sent by the BMS are negative in discharge, so that negative processing is performed to obtain a positive number, which is equivalent to taking an absolute value.
(2) Acquiring a Current bus Current value MCU _ GS _ Current, and carrying out calculation processing on the Current bus Current value MCU _ GS _ Current for 50 times of averaging to obtain data MCU _ GS _ Current 1;
(3) if ((BMS _ Current1-MCU _ GS _ Current1< -25) & rotating speed ≧ 3500), performing a handshake flow.
And S2, performing handshake check on the controller and the device to be tested, if the check is passed, normally outputting a control signal, and otherwise, stopping outputting.
In this embodiment, the handshake check specifically includes the following steps:
and the controller sends a message comprising a random number through the first data frame, monitors the CAN bus in real time to receive a second data frame responded by the device to be tested in real time, and performs validity check on the second data frame.
If the handshake check in step S2 is a check pass, step S1 and step S2 are not executed until the controller or the device under test is powered off.
The method comprises the steps that a first data frame 0x10FC2222 message of a controller MCU is continuously sent for 10 times at an interval of 100ms, a CAN bus is monitored, whether a second data frame 0x108FFFD3 which responds returns or not is judged, bit0-bit7 data in the data frame are read for legality checking, wherein xor is adopted for legality checking, a random number is generated when the controller MCU is powered on, before the power off, the random number is unchanged, the controller MCU normally operates as long as one-time checking is passed, a checking strategy is not executed before the power off, if no response frame returns or the checking is not passed, the MCU output is stopped, and an illegal additional fault code is sent through bit24-bit31 in the data frame 0x10F 8109A;
therefore, for unmatched instruments in the same way as above, the controller MCU monitors CAN bus data at any time, if the CAN bus has a default data frame (default to send 0xFF), a handshake flow is started, if the CAN bus is successfully handshake, the controller MCU normally operates, the handshake is not successful, the controller continues to handshake at intervals, the controller is still unsuccessful for a plurality of times continuously, and the controller normally works and simultaneously reports and prompts the fault of the unmatched instrument which is illegally installed. Therefore, on the basis of not increasing hardware cost, the existing hardware module is utilized, conditions of installing illegal unmatched parts and unmatched CAN instruments are identified through preset data frames and handshake verification, stable and reliable operation of the controller is guaranteed, and the problem of cost increase after sale due to the fact that unmatched devices are installed additionally is solved.
Example two
As shown in fig. 4, the device-attached verification terminal 1 includes a memory 2, a processor 3, and a computer program stored in the memory 2 and executable on the processor 3, and the processor 3 implements the steps in the first embodiment when executing the computer program.
While embodiments of the invention have been described above, it is not limited to the applications set forth in the description and the embodiments, which are fully applicable to various fields of endeavor for which the invention may be embodied with additional modifications as would be readily apparent to those skilled in the art, and the invention is therefore not limited to the details given herein and to the embodiments shown and described without departing from the generic concept as defined by the claims and their equivalents.

Claims (10)

1. The device additional installation checking method is characterized by comprising the following steps:
s1, the controller monitors whether the CAN bus data of the device to be tested has an agreed data frame in real time, if yes, the step S2 is executed;
and S2, performing handshake check on the controller and the device to be tested, if the check is passed, normally outputting a control signal, and otherwise, stopping outputting.
2. The device attachment verification method of claim 1, wherein step S1 further comprises the steps of:
if the appointed data frame does not exist, the controller obtains a total battery current value, a current bus current value and a current motor rotating speed, whether the difference value of the total battery current value and the current bus current value is within a preset current difference value and whether the current motor rotating speed is larger than or equal to a preset motor rotating speed are judged, and if yes, the step S2 is executed.
3. The device loading verification method of claim 2, wherein the step of obtaining the total battery current value and the current bus current value by the controller specifically comprises the steps of:
the method comprises the steps of obtaining a real-time total current value of preset times and a real-time bus current value of a current bus of the preset times in a battery management system in real time, respectively averaging the real-time total current values and the real-time bus current values, and then taking an absolute value to obtain the battery total current value and the current bus current value.
4. The device attachment verification method of any one of claims 1 to 3, wherein the handshake verification specifically comprises the steps of:
and the controller sends a message comprising a random number through the first data frame, monitors the CAN bus in real time to receive a second data frame responded by the device to be tested in real time, and performs validity check on the second data frame.
5. The device loading verification method of claim 4, wherein if the handshake verification in step S2 is verified, steps S1 and S2 are not executed until the controller or the device under test is powered down.
6. The device installation verification terminal comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, and is characterized in that the processor executes the computer program to realize the following steps:
s1, the controller monitors whether the CAN bus data of the device to be tested has an agreed data frame in real time, if yes, the step S2 is executed;
and S2, performing handshake check on the controller and the device to be tested, if the check is passed, normally outputting a control signal, and otherwise, stopping outputting.
7. The device loading verification terminal of claim 6, wherein step S1 further comprises the steps of:
if the appointed data frame does not exist, the controller obtains a total battery current value, a current bus current value and a current motor rotating speed, whether the difference value of the total battery current value and the current bus current value is within a preset current difference value and whether the current motor rotating speed is larger than or equal to a preset motor rotating speed are judged, and if yes, the step S2 is executed.
8. The device retrofit audit terminal of claim 7 wherein the controller obtaining said total battery current value and said current bus current value specifically includes the steps of:
the method comprises the steps of obtaining a real-time total current value of preset times and a real-time bus current value of a current bus of the preset times in a battery management system in real time, respectively averaging the real-time total current values and the real-time bus current values, and then taking an absolute value to obtain the battery total current value and the current bus current value.
9. The device loading verification terminal according to any one of claims 6 to 8, wherein the handshake verification specifically comprises the following steps:
and the controller sends a message comprising a random number through the first data frame, monitors the CAN bus in real time to receive a second data frame responded by the device to be tested in real time, and performs validity check on the second data frame.
10. The device loading verification terminal of claim 9, wherein if the handshake verification in step S2 is verification pass, steps S1 and S2 are not executed until the controller or the device under test is powered down.
CN202111314765.9A 2021-11-08 2021-11-08 Device installation verification method and terminal Active CN114200908B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111314765.9A CN114200908B (en) 2021-11-08 2021-11-08 Device installation verification method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111314765.9A CN114200908B (en) 2021-11-08 2021-11-08 Device installation verification method and terminal

Publications (2)

Publication Number Publication Date
CN114200908A true CN114200908A (en) 2022-03-18
CN114200908B CN114200908B (en) 2025-02-28

Family

ID=80647194

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111314765.9A Active CN114200908B (en) 2021-11-08 2021-11-08 Device installation verification method and terminal

Country Status (1)

Country Link
CN (1) CN114200908B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130117586A1 (en) * 2011-11-03 2013-05-09 Realtek Semiconductor Corp. Network access device with flexible precise low-power remote wake-up mechanism applicable in various application layer handshake protocols
KR20140058336A (en) * 2012-10-26 2014-05-14 주식회사 케이티 Method for channel access in wireless local area network system
CN104639296A (en) * 2015-02-28 2015-05-20 安徽江淮汽车股份有限公司 Method and system for checking CAN (controller area network) bus data field
CN108600231A (en) * 2018-04-27 2018-09-28 广东复安科技发展有限公司 Network security transmission method based on synchronization technology
CN112398824A (en) * 2020-11-03 2021-02-23 珠海格力电器股份有限公司 Authority verification method, storage medium and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130117586A1 (en) * 2011-11-03 2013-05-09 Realtek Semiconductor Corp. Network access device with flexible precise low-power remote wake-up mechanism applicable in various application layer handshake protocols
KR20140058336A (en) * 2012-10-26 2014-05-14 주식회사 케이티 Method for channel access in wireless local area network system
CN104639296A (en) * 2015-02-28 2015-05-20 安徽江淮汽车股份有限公司 Method and system for checking CAN (controller area network) bus data field
CN108600231A (en) * 2018-04-27 2018-09-28 广东复安科技发展有限公司 Network security transmission method based on synchronization technology
CN112398824A (en) * 2020-11-03 2021-02-23 珠海格力电器股份有限公司 Authority verification method, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN114200908B (en) 2025-02-28

Similar Documents

Publication Publication Date Title
CN112380045B (en) Vehicle abnormality detection method, device, equipment and storage medium
US10958470B2 (en) Attributing bus-off attacks based on error frames
EP3809223A1 (en) Vehicle remote diagnosis method and related apparatus
CN109656172A (en) A kind of method, apparatus obtaining baud rate
CN105981336A (en) Abnormality detection electronic control unit, vehicle network system and abnormality detection method
EP3772840B1 (en) A security module for a can node
CN107491055A (en) The test system and method for bus
US20210044615A1 (en) Security module for a can node
CN113406944B (en) Vehicle diagnosis method, device, equipment and computer readable storage medium
CN113485920B (en) Method and device for realizing DoIP entity, readable storage medium and electronic equipment
CN111665821B (en) Error frame checking method based on vehicle diagnosis service
CN113931860B (en) Fan rotation speed control method and device, terminal equipment and storage medium
WO2017006537A1 (en) Communication method, program and communication device using same
CN114170705A (en) Vehicle data uploading method, device and equipment
EP3550769A1 (en) Communication circuitry integrity assessment
US20190347232A1 (en) Method and system for configuring filter objects for a controller area network controller
Kharche et al. Uds implementation for ecu i/o testing
CN112118075B (en) CAN bus baud rate self-adaption method and device
CN114200908A (en) Device installation verification method and terminal
CN116826909A (en) Automatic access control method and system for terminal resistor
CN118041892B (en) Address allocation method for energy storage system, energy storage system and readable storage medium
CN114880033B (en) Screen protection method and device for vehicle-mounted display, storage medium and control equipment
CN115934449B (en) Register verification method, device and equipment
EP4243352A1 (en) Collective switching from a differential signalling communication mode to a single-ended communication mode upon the detection of a fault
CN113830009B (en) Signal transmission method and device and electric automobile

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