CN112650199A - Parallel testing method for multiple CAN bus products based on-line configuration of test numbers - Google Patents

Parallel testing method for multiple CAN bus products based on-line configuration of test numbers Download PDF

Info

Publication number
CN112650199A
CN112650199A CN202011542613.XA CN202011542613A CN112650199A CN 112650199 A CN112650199 A CN 112650199A CN 202011542613 A CN202011542613 A CN 202011542613A CN 112650199 A CN112650199 A CN 112650199A
Authority
CN
China
Prior art keywords
product
bus
detection
products
detected
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.)
Pending
Application number
CN202011542613.XA
Other languages
Chinese (zh)
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.)
Xi'an Precision Machinery Research Institute
Original Assignee
Xi'an Precision Machinery Research Institute
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 Xi'an Precision Machinery Research Institute filed Critical Xi'an Precision Machinery Research Institute
Priority to CN202011542613.XA priority Critical patent/CN112650199A/en
Publication of CN112650199A publication Critical patent/CN112650199A/en
Pending legal-status Critical Current

Links

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/0218Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults
    • G05B23/0256Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults injecting test signals and analyzing monitored process response, e.g. injecting the test signal while interrupting the normal operation of the monitored system; superimposing the test signal onto a control signal during normal operation of the monitored system
    • 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)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a parallel test method for a plurality of CAN bus products configured on line based on test numbers, which solves the problem that the products do not meet the requirement of undifferentiated purchase due to the fact that software is changed or a specific RAM area is operated in the conventional mode of identifying and realizing the detection of a plurality of products. The detection equipment used by the test method has a power-on function of a multi-channel program control product and is provided with a plurality of detection channels; the product delivery software is provided with a special global variable P for mass detection, the product is connected with the detection channel one by one during each detection, the test serial number is automatically configured on line according to the power-on sequence, the software and the function of the product are not increased or influenced, the setting is only effective during the current detection process, and the initial setting is recovered after the power failure; the method is suitable for occasions of carrying out mass real-time detection on the same CAN bus product in the production process; the detection efficiency and the production efficiency are greatly improved, and the cost is reduced.

Description

Parallel testing method for multiple CAN bus products based on-line configuration of test numbers
Technical Field
The invention belongs to the technical field of product testing, and particularly relates to a parallel testing method for a plurality of CAN bus products based on-line configuration of test numbers.
Background
The CAN bus is used as a serial field bus, has higher reliability, real-time performance and flexibility, and is widely applied to the fields of automobiles, medical treatment, industrial control and military. Electronic products based on the CAN bus often need to detect multiple products of the same type for a long time in the production process, such as environmental stress screening test, copying test, reliability test and the like, and the number of products which CAN be tested by a single set of detection equipment is more, the higher the production efficiency is, and the lower the cost is.
Based on the mechanism of the CAN bus, a single set of detection equipment CAN simultaneously communicate with a plurality of product nodes, but because the installed software of a product is the same and the ID of a data frame is the same, a plurality of products need to be distinguished during the test of the plurality of products, so that the confusion of test data is avoided.
At present, there are two ways to identify and implement detection of multiple products:
1) the identification mode of the mark is as follows: writing different detection numbers into each product to be detected before testing to form an identification mark, so that the detection equipment can conveniently identify the product; the method is simple to operate, but can be realized only by changing product software or operating a specific RAM area, and is not beneficial to mass production; for some units, the products detected by the method do not meet the requirement of unit undifferentiated purchasing, and the requirement of undifferentiated purchasing is that the products must be undifferentiated, namely the installed software of the products is the same, and the ID of the data frame is the same, but the products detected by the method do not meet the requirement due to the fact that different detection numbers are written in the products; if the condition is met, the state needs to be restored to the state before detection, so that the time is longer;
2) a time-sharing detection mode: and the detection of a plurality of products is completed by switching the CAN bus line of each set of products. In this way, the product does not need to be manually switched by a tester, but the detection equipment can only test one product at a certain time, so that parallel testing cannot be realized in practice, and the total testing time cannot be shortened.
Disclosure of Invention
The invention aims to solve the problem that products do not meet the requirement of undifferentiated purchase due to the fact that software is changed or a specific RAM area is operated in the existing mode of identifying and realizing detection of multiple products, and provides a parallel testing method for multiple CAN bus products based on-line configuration of test numbers.
The conception of the invention is as follows:
considering the market demand of products with difference, how to ensure that no trace is left when simultaneously carrying out factory performance detection on large-batch products is the core content of the invention. The invention is carried out by combining product software and detection equipment, and realizes the parallel test of a plurality of products. 1) Detecting by adopting detection equipment which is provided with a plurality of detection channels and has a program control electrifying function of a single product; during detection, controlling all products to be electrified one by one (according to a certain time sequence), sending a test number configuration instruction one by one, and simultaneously independently creating a data storage catalog for each product according to the test number; in the subsequent test, the data of each product is automatically stored in the corresponding catalogue according to the test number of each product, so that the aim of simultaneously testing a plurality of products without mixing the test data is fulfilled. 2) Setting global variables for online configuration (namely software protocol layer reserved configuration interfaces) in each product software, and defining the global variables as product numbers; after the product is electrified and receives an effective test number configuration instruction sent by the detection equipment, setting the global variable as a specified test number in the configuration instruction; during the test period, the global variable (namely the test number) is automatically attached to the test data of the detection equipment; and after power failure, the product is restored to the initial setting.
In order to achieve the purpose, the technical solution provided by the invention is as follows:
the method for testing the parallel of the plurality of CAN bus products based on the online configuration of the test numbers is characterized by comprising the following steps:
1) initialization
Defining a global variable P special for mass detection in software of each product to be detected, wherein the initial values of the global variables P of all the products to be detected are the same after electrification;
2) detecting a connection
Connecting a plurality of products to be detected with CAN bus product detection equipment with a multi-channel program control product electrifying function and a plurality of detection channels, wherein the products to be detected are connected with the detection channels in a one-to-one manner;
the products to be tested adopt the same CAN bus, and the quantity of the products needs to meet the requirements of the total data communication quantity and the bus load of the CAN bus;
3) on-line configuration of test numbers
The CAN bus product detection equipment is used for electrifying a plurality of products to be detected one by one and configuring test numbers on line, and meanwhile, the CAN bus product detection equipment independently creates a data storage catalog for each product to be detected according to the test numbers;
4) carrying out the detection
Starting detection, and storing the detection result of each product to be detected in a corresponding data storage catalog by the CAN bus product detection equipment;
5) resume the initial state
After the detection is finished, all products to be detected are powered off at the same time, the initial state is recovered, and the test number detected at this time is invalid.
Further, the specific steps of step 3) are as follows:
3.1) the CAN bus product detection equipment powers on a product to be detected corresponding to the 1# detection channel and sends a configuration instruction 001, the product to be detected corresponding to the 1# detection channel sets the global variable P in software to 001 after receiving the CAN bus configuration instruction, replies that the CAN bus product detection equipment test number is successfully configured, and does not respond to the configuration instruction of the CAN bus in the test (unless the product is powered on again after being powered off); then, adding 001 numbering marks to CAN bus data sent by the 1# detection channel corresponding to the product to be detected;
3.2) after the CAN bus product detection equipment receives the reply that the test serial number of the product to be detected corresponding to the 1# detection channel is successfully configured, the product to be detected corresponding to the 2# detection channel is electrified, and a configuration instruction 002 is sent, after the product to be detected corresponding to the 2# detection channel receives the CAN bus configuration instruction, the global variable P in the software is set to be 002, the test serial number of the CAN bus product detection equipment is successfully configured, and the configuration instruction of the CAN bus is not responded again in the detection (unless the product is electrified again after being powered off); secondly, 002 numbering marks are added to CAN bus data sent by the 2# detection channel corresponding to the product to be detected;
3.3) repeating the steps in the same way to complete the online configuration of all products to be tested;
and when the test serial number is configured on line, the CAN bus product detection equipment independently creates a data storage catalog for each product to be tested according to the test serial number.
Further, the step 1) also comprises the steps of setting a terminal resistor in a hardware circuit of a product to be tested into a configurable mode so as to meet the requirements of the terminal resistor of the CAN bus during batch testing and ensure the stable work of the CAN bus; when a plurality of products are detected, the detection is set as 'none', namely, the terminal resistor is removed when the plurality of products are detected; then set up to "have" when single product detects, need set up terminating resistance when single product detects promptly, ensure CAN bus steady operation.
Further, in step 1), the configurable mode is implemented by a program-controlled switch, but may also be implemented by other existing manners, such as: and (4) jumping.
Further, in step 1), the termination resistance is 120 Ω.
Further, in the step 1), the initial value of the global variable P of all the products to be tested is 000.
Further, the detection refers to an environmental stress screening test or a copying test or a reliability test.
The invention also provides a product tested by adopting the parallel test method for the plurality of CAN bus products on-line configured based on the test numbers; the products have no difference and meet the requirements of some special units.
The invention has the advantages that:
1. by adopting the testing method, the used detection equipment has the power-on function of a multi-channel program control product and is provided with a plurality of detection channels; the product delivery software is provided with a special global variable for mass detection, the product is connected with the detection channel in a one-to-one manner during each detection, the test serial number is automatically configured on line according to the power-on sequence, the software and the function of the product are not increased or influenced, the setting is only effective during the current detection process, and the initial setting is recovered after the power failure; the method is suitable for occasions of carrying out mass real-time detection on the same CAN bus product in the production process; the detection efficiency and the production efficiency are greatly improved, and the cost is reduced.
2. The test method of the invention can independently create the data storage catalog for each product to be tested, thereby avoiding the confusion of test data, facilitating the detection personnel to timely master the product detection condition and improving the working efficiency.
3. The product adopting the testing method of the invention can meet the requirements of special units, and the traceless detection is carried out, and the product after the detection leaves the factory without difference.
Detailed Description
The present invention will be described in further detail with reference to the following specific examples:
the method for testing the parallel of the plurality of CAN bus products based on the online configuration of the test numbers is characterized by comprising the following steps:
1) initialization
Defining a global variable P special for mass detection in software of each product to be detected, wherein the initial value of the global variable P of all the products to be detected is 000 after the products to be detected are electrified; meanwhile, a 120 omega terminal resistor in a hardware circuit of a product to be tested is set to be in a configurable mode (program control, jumper wire or other modes) so as to meet the requirements of the terminal resistor of the CAN bus during batch testing and ensure the stable work of the CAN bus; when a plurality of products are detected, the detection is set as 'none', namely, the terminal resistor is removed when the plurality of products are detected; then set up to "have" when single product detects, need set up terminating resistance when single product detects promptly, ensure CAN bus steady operation. If the terminal resistance is fixed to be 120 omega, 3 products can be detected at most simultaneously, and if the terminal resistance does not meet the bus load requirement, the simultaneous detection cannot be carried out; therefore, in actual detection, the presence or absence can be automatically selected according to the detected amount.
2) Detecting a connection
Connecting a plurality of products to be detected with CAN bus product detection equipment with a multi-channel program control product electrifying function and a plurality of detection channels, wherein the products to be detected are connected with the detection channels in a one-to-one manner;
the products to be tested adopt the same CAN bus, and the quantity of the products needs to meet the requirements of the total data communication quantity and the bus load of the CAN bus;
3) one-by-one online configuration test number
Controlling the products to be tested to respectively supply power to each product to be tested according to a certain time sequence through CAN bus product detection equipment user interface software; besides a normal CAN test communication protocol, a CAN bus product configuration instruction is also arranged between the product to be tested and the CAN bus product detection equipment; the concrete configuration is as follows:
3.1) the CAN bus product detection equipment powers on a product to be detected corresponding to the No. 1 detection channel and sends a configuration instruction 001, the product to be detected corresponding to the No. 1 detection channel sets the global variable P in software to 001 after receiving the CAN bus configuration instruction, and replies that the CAN bus product detection equipment test number configuration is successful (namely, replies that the instruction is set), and the CAN bus configuration instruction is not responded again in the test (unless the product is powered on again after being powered off); then, adding 001 numbering marks to CAN bus data sent by the 1# detection channel corresponding to the product to be detected;
3.2) after the CAN bus product detection equipment receives the reply that the test serial number of the product to be detected corresponding to the 1# detection channel is successfully configured, the product to be detected corresponding to the 2# detection channel is electrified, and a configuration instruction 002 is sent, after the product to be detected corresponding to the 2# detection channel receives the CAN bus configuration instruction, the global variable P in the software is set to be 002, the test serial number of the CAN bus product detection equipment is successfully configured (namely, the set instruction is replied), and the CAN bus product detection equipment does not respond to the configuration instruction of the CAN bus in the detection (unless the product is electrified again after being powered off); secondly, 002 numbering marks are added to CAN bus data sent by the 2# detection channel corresponding to the product to be detected;
3.3) repeating the steps in the same way to complete the online configuration of all products to be tested;
and when the test serial number is configured on line, the CAN bus product detection equipment independently creates a data storage catalog for each product to be tested according to the test serial number.
4) Carrying out the detection
After all products to be detected are configured, CAN bus product detection equipment sends a detection instruction to start detection, each product to be detected is detected according to a detection flow, and the CAN bus product detection equipment stores the detection result of each product to be detected in a corresponding data storage catalog; the detection refers to an environmental stress screening test, a copying test, a reliability test or other process tests requiring a plurality of products to be tested in parallel.
Although the ID of the product to be detected is the same, the CAN bus data returned by each product is provided with the serial number, the CAN bus product detection equipment CAN quickly distinguish the state, the fault or the qualification of each channel product,
5) resume the initial state
After the detection is finished, all products to be detected are powered off at the same time, the initial state is recovered, and the test number detected at this time is invalid; the next time the power up is detected and a valid instruction is accepted, there will be a new number.
The product tested by the test method completely meets the requirement of undifferentiated products, and has better popularization significance.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications or substitutions can be easily made by those skilled in the art within the technical scope of the present disclosure.

Claims (8)

1. The method for testing the parallel of the plurality of CAN bus products based on the online configuration of the test numbers is characterized by comprising the following steps:
1) initialization
Defining a global variable P special for mass detection in software of each product to be detected, wherein the initial values of the global variables P of all the products to be detected are the same after electrification;
2) detecting a connection
Connecting a plurality of products to be detected with CAN bus product detection equipment with a multi-channel program control product electrifying function and a plurality of detection channels, wherein the products to be detected are connected with the detection channels in a one-to-one manner;
the number of the products to be tested needs to meet the requirements of CAN bus data communication total amount and bus load;
3) on-line configuration of test numbers
The CAN bus product detection equipment is used for electrifying a plurality of products to be detected one by one and configuring test numbers on line, and meanwhile, the CAN bus product detection equipment independently creates a data storage catalog for each product to be detected according to the test numbers;
4) detection of
Starting detection, and storing the detection result of each product to be detected in a corresponding data storage catalog by the CAN bus product detection equipment;
5) resume the initial state
After the detection is finished, all products to be detected are powered off at the same time, the initial state is recovered, and the test number detected at this time is invalid.
2. The method for testing the plurality of CAN bus products in parallel based on the on-line configuration of the test numbers as claimed in claim 1, wherein the specific steps of step 3) are as follows:
3.1) the CAN bus product detection equipment powers on a product to be detected corresponding to the 1# detection channel and sends a configuration instruction 001, the product to be detected corresponding to the 1# detection channel sets the global variable P in software to 001 after receiving the CAN bus configuration instruction, and replies that the CAN bus product detection equipment is successfully configured with a test number and does not respond to the configuration instruction of the CAN bus in the test; then, adding 001 numbering marks to CAN bus data sent by the 1# detection channel corresponding to the product to be detected;
3.2) after the CAN bus product detection equipment receives the reply that the test serial number of the product to be detected corresponding to the 1# detection channel is successfully configured, the product to be detected corresponding to the 2# detection channel is electrified and sends a configuration instruction 002, after the product to be detected corresponding to the 2# detection channel receives the CAN bus configuration instruction, the global variable P in the software is set to be 002, the test serial number of the CAN bus product detection equipment is successfully configured and the configuration instruction of the CAN bus is not responded any more in the detection; secondly, 002 numbering marks are added to CAN bus data sent by the 2# detection channel corresponding to the product to be detected;
3.3) repeating the steps in the same way to complete the online configuration of all products to be tested;
and when the test serial number is configured on line, the CAN bus product detection equipment independently creates a data storage catalog for each product to be tested according to the test serial number.
3. The method for testing the plurality of CAN bus products in parallel based on the on-line configuration of the test numbers as claimed in claim 2, wherein:
the method comprises the following steps that step 1) also comprises the steps that a terminal resistor in a hardware circuit of a product to be detected is set to be in a configurable mode, and the terminal resistor is set to be absent when a plurality of products are detected.
4. The method for testing the plurality of CAN bus products in parallel based on the on-line configuration of the test numbers as claimed in claim 3, wherein:
in the step 1), the configurable mode is realized in a program-controlled switch mode.
5. The method for testing the plurality of CAN bus products in parallel based on the on-line configuration of the test numbers as claimed in claim 4, wherein:
in the step 1), the terminal resistance is 120 Ω.
6. The method for testing the plurality of CAN bus products in parallel based on the on-line configuration of the test numbers as claimed in claim 5, wherein:
in the step 1), the initial value of the global variable P of all the products to be tested is 000.
7. The method for testing the plurality of CAN bus products in parallel based on the on-line configuration of the test numbers according to any one of claims 1 to 6, wherein:
the detection refers to an environmental stress screening test or a copying test or a reliability test.
8. A product tested by the method for testing a plurality of CAN bus products in parallel based on the on-line configuration of the test numbers in any one of claims 1 to 7.
CN202011542613.XA 2020-12-21 2020-12-21 Parallel testing method for multiple CAN bus products based on-line configuration of test numbers Pending CN112650199A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011542613.XA CN112650199A (en) 2020-12-21 2020-12-21 Parallel testing method for multiple CAN bus products based on-line configuration of test numbers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011542613.XA CN112650199A (en) 2020-12-21 2020-12-21 Parallel testing method for multiple CAN bus products based on-line configuration of test numbers

Publications (1)

Publication Number Publication Date
CN112650199A true CN112650199A (en) 2021-04-13

Family

ID=75360021

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011542613.XA Pending CN112650199A (en) 2020-12-21 2020-12-21 Parallel testing method for multiple CAN bus products based on-line configuration of test numbers

Country Status (1)

Country Link
CN (1) CN112650199A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101582824A (en) * 2008-05-13 2009-11-18 施耐德电器工业公司 Node number automatic distribution method for controlling secondary node equipment of local area network bus
CN106603360A (en) * 2016-12-02 2017-04-26 北京奇虎科技有限公司 Method and apparatus for testing security of automobile bus based on bus batch data
CN106708007A (en) * 2016-11-14 2017-05-24 乐视控股(北京)有限公司 Electronic equipment batch test method, apparatus and electronic equipment thereof
US20180131712A1 (en) * 2016-11-07 2018-05-10 MAGNETI MARELLI S.p.A. Method for monitoring data traffic in a motor-vehicle network
CN108387257A (en) * 2018-02-01 2018-08-10 深圳市矗能科技有限公司 A kind of method of ageing system slave ID distribution
CN111586548A (en) * 2020-05-09 2020-08-25 惠州市德赛西威汽车电子股份有限公司 Method and system for realizing coding of multiple automobile sound equipment based on CAN bus

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101582824A (en) * 2008-05-13 2009-11-18 施耐德电器工业公司 Node number automatic distribution method for controlling secondary node equipment of local area network bus
US20180131712A1 (en) * 2016-11-07 2018-05-10 MAGNETI MARELLI S.p.A. Method for monitoring data traffic in a motor-vehicle network
CN106708007A (en) * 2016-11-14 2017-05-24 乐视控股(北京)有限公司 Electronic equipment batch test method, apparatus and electronic equipment thereof
CN106603360A (en) * 2016-12-02 2017-04-26 北京奇虎科技有限公司 Method and apparatus for testing security of automobile bus based on bus batch data
CN108387257A (en) * 2018-02-01 2018-08-10 深圳市矗能科技有限公司 A kind of method of ageing system slave ID distribution
CN111586548A (en) * 2020-05-09 2020-08-25 惠州市德赛西威汽车电子股份有限公司 Method and system for realizing coding of multiple automobile sound equipment based on CAN bus

Similar Documents

Publication Publication Date Title
CN104297623B (en) Automatic test system for onboard cable integrity
CN106020136B (en) Method and system for defining slot bit address
CN107024652A (en) Board level testing system
CN105808480A (en) Role switching method and system of USB (Universal Serial Bus) OTG (On-The-Go) equipment, and USB OTG equipment
CN102724110B (en) The veneer means of communication, system and veneer
CN104865958A (en) Matrix switch device, system and method
CN103186440B (en) Detect subcard method, apparatus and system in place
CN113514726B (en) Complete machine cable detection system and method
CN108415801A (en) Backplane test method and computer storage media
CN111023262B (en) Modbus protocol conversion device and multi-online centralized control system
CN105510755A (en) Testing device
CN101661795A (en) Data burning method and burning system
CN112650199A (en) Parallel testing method for multiple CAN bus products based on-line configuration of test numbers
CN104298125B (en) Modularization CPCI distributing cabinets
CN112838668B (en) Circuit breaker identification method, device and equipment
CN210038541U (en) Function test system of motor controller PCBA board
CN106338938B (en) A kind of backplane bus communication addressing system and method
CN107356802A (en) The method of self-checking circuit and circuitry self test
CN114076901B (en) Automatic testing system and method for output ripples of power supply module
CN112178881B (en) Self-checking method and device of RS485 network
CN109559587B (en) Strong-current equipment connection state acquisition device and acquisition method
CN103376369A (en) Test method and test apparatus of communication load
CN108490338B (en) Test apparatus, test method, computer apparatus, and computer-readable storage medium
CN111371566A (en) MODBUS network card
CN105259989B (en) A kind of method of the compatible multi-source of notebook memory on board

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20210413