CN113254283A - Multi-CAN port test system optimization method, device, equipment and storage medium - Google Patents

Multi-CAN port test system optimization method, device, equipment and storage medium Download PDF

Info

Publication number
CN113254283A
CN113254283A CN202110551981.9A CN202110551981A CN113254283A CN 113254283 A CN113254283 A CN 113254283A CN 202110551981 A CN202110551981 A CN 202110551981A CN 113254283 A CN113254283 A CN 113254283A
Authority
CN
China
Prior art keywords
data
groups
module
attitude
format conversion
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
CN202110551981.9A
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.)
China South Industries Group Automation Research Institute
Original Assignee
China South Industries Group Automation 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 China South Industries Group Automation Research Institute filed Critical China South Industries Group Automation Research Institute
Priority to CN202110551981.9A priority Critical patent/CN113254283A/en
Publication of CN113254283A publication Critical patent/CN113254283A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test buses, lines or interfaces, e.g. stuck-at or open line faults

Abstract

The invention discloses a method, a device, equipment and a storage medium for optimizing a multi-CAN port test system, wherein the method comprises the following steps of S1, acquiring data of a plurality of groups of attitude sensors through CAN ports of a plurality of PCI interface cards; step S2, carrying out format conversion on the acquired data of the plurality of groups of attitude sensors; in step S3, the data after format conversion is judged, calculated, and displayed. The method of the invention adopts the extended CAN port of the PCI interface card to realize the test of the attitude sensor, CAN simplify the test process, reduce the technical threshold, and has high test speed and high test efficiency.

Description

Multi-CAN port test system optimization method, device, equipment and storage medium
Technical Field
The invention relates to the technical field of attitude sensor testing, in particular to a method, a device, equipment and a storage medium for optimizing a multi-CAN (controller area network) port testing system.
Background
The traditional technology for testing (mechanical) attitude sensors is that the number of attitude sensors tested by using a universal serial bus-controller area network (USB-CAN) box is limited, and only 2 sensors CAN be tested by 1 universal USB-CAN box, so that factory inspection is seriously delayed. The number of the ID numbers of the sensors is only 2, and the requirement of a physical CAN port is overlarge due to the fact that 20 attitude sensors are tested simultaneously. The same computer uses 2 CAN boxes, and the test software occasionally blocks or loses data, so that the continuous working test fails and is approved by opened unqualified products. And the weekly success testing software displays very complicated protocol data, and inspectors can not clearly distinguish whether the data is correct or not.
Therefore, the conventional testing techniques have the following disadvantages:
1. the testing method is complicated, the judgment method has high requirement, and the technical prevention can not be realized;
2. the testing efficiency is low, and the minimum requirement of testing 20 sensors at a time cannot be met;
3. the occupied area is large, and the test equipment cannot be completely placed;
4. the technical threshold of the personnel is high, and the ordinary testing personnel are difficult to be qualified.
Disclosure of Invention
Aiming at the problems, the invention provides an optimization method of a multi-CAN port test system. The method of the invention adopts the extended CAN port of the PCI interface card to realize the test of the attitude sensor, CAN simplify the test process, reduce the technical threshold, and has high test speed and high test efficiency.
The invention is realized by the following technical scheme:
a multi-CAN port test system optimization method comprises the following steps:
step S1, acquiring data of a plurality of groups of attitude sensors through CAN ports of a plurality of PCI interface cards;
step S2, carrying out format conversion on the acquired data of the plurality of groups of attitude sensors;
in step S3, the data after format conversion is judged, calculated, and displayed.
Preferably, the format conversion in step S2 of the present invention is specifically to convert the acquired 16-system raw data of the attitude sensor into 10-system data.
Preferably, step S3 of the present invention specifically includes:
judging whether the data after format conversion is the list data or the trim data;
calculating a yaw value or a pitch value of the attitude sensor;
calculating the number of received data;
and displaying 16-system original data, a list value, a trim value and the number of received data of the plurality of groups of attitude sensors.
Preferably, in step S1 of the present invention, 1 to 5 PCI interface cards are used to obtain data of 2 to 10 sets of attitude sensors.
In a second aspect, the invention further provides an optimization device for a multi-CAN port test system, which comprises a data receiving module, a data conversion module, a data judgment module, a data processing module and a display module;
the data receiving module acquires data of a plurality of groups of attitude sensors through CAN ports of a plurality of PCI interface cards;
the data conversion module is used for carrying out format conversion on the acquired data of the plurality of groups of attitude sensors;
the data judgment module is used for judging whether the converted data is the heeling data or the pitching data;
the data processing module is used for calculating and obtaining a transverse inclination value or a longitudinal inclination value of the corresponding attitude sensor according to the converted data;
the display module is used for displaying corresponding data.
In a third aspect, the present invention further provides a computer device, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the steps of the method of the present invention when executing the computer program.
In a fourth aspect, the present invention also proposes a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of the invention.
The invention has the following advantages and beneficial effects:
1. the method is simple and easy to realize, and can realize the quick inspection of high-yield products;
2. the technical threshold of the invention is reduced, and the method can be implemented without professional skills;
3. the invention can realize 20 machines/time/industrial personal computer, thereby greatly improving the testing efficiency; the invention has small occupied space and realizes 20 tests of single-box products.
Drawings
The accompanying drawings, which are included to provide a further understanding of the embodiments of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the principles of the invention. In the drawings:
FIG. 1 is a schematic flow chart of the method of the present invention.
FIG. 2 is a schematic diagram of a computer device according to the present invention.
Fig. 3 is a schematic block diagram of the structure of the device of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to examples and accompanying drawings, and the exemplary embodiments and descriptions thereof are only used for explaining the present invention and are not meant to limit the present invention.
Example 1
The embodiment provides an optimization method for a multi-CAN-port test system, and specifically as shown in fig. 1, the method of the embodiment includes the following steps:
step S1, acquiring data of a plurality of groups of attitude sensors through CAN ports of a plurality of PCI interface cards;
step S2, carrying out format conversion on the acquired data of the plurality of groups of attitude sensors;
in step S3, the data after format conversion is judged, calculated, and displayed.
In step S1 of this embodiment, 5 PCI 1680U interface cards have two CAN ports to receive raw data of 10 groups of attitude sensors.
The CAN protocol adopted in this embodiment is: ID: 0x 11; byte [0], Byte [1] data bits; byte [2 ]: and (4) a flag bit.
In the embodiment, 16-system original data of 10 groups of attitude sensors are acquired through a CAN port, then the 16-system original data are converted into 10-system data, and then whether the converted 10-system data are list data or trim data is judged; if the data is the heeling data, calculating to obtain the heeling value of the attitude sensor according to the 10-system data; if the data is the pitching data, calculating to obtain a pitching value of the attitude sensor according to the 10-system data; and finally, displaying the acquired original data, calculated values, data quantity and the like. Therefore, the test of 10 groups of attitude sensors (20 products) can be realized at one time, and the test efficiency is greatly improved; in addition, the method of the embodiment can directly obtain the physical value of the attitude sensor, instead of outputting 16-system original data only, and a professional needs to analyze the data to obtain the corresponding physical value, so that the requirement of professional skills is greatly reduced.
The embodiment also provides a computer device for executing the method of the embodiment.
As shown in fig. 2 in particular, the computer device includes a processor, an internal memory, and a system bus; various device components including internal memory and processors are connected to the system bus. A processor is hardware used to execute computer program instructions through basic arithmetic and logical operations in a computer system. An internal memory is a physical device used to temporarily or permanently store computing programs or data (e.g., program state information). The system bus may be any of several types of bus structures including a memory bus or memory controller, a peripheral bus, and a local bus. The processor and the internal memory may be in data communication via a system bus. Including read-only memory (ROM) or flash memory (not shown), and Random Access Memory (RAM), which typically refers to main memory loaded with an operating system and computer programs.
Computer devices typically include an external storage device. The external storage device may be selected from a variety of computer readable media, which refers to any available media that can be accessed by the computer device, including both removable and non-removable media. For example, computer-readable media includes, but is not limited to, flash memory (micro SD cards), CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer device.
A computer device may be logically connected in a network environment to one or more network terminals. The network terminal may be a personal computer, a server, a router, a smart phone, a tablet, or other common network node. The computer apparatus is connected to the network terminal through a network interface (local area network LAN interface). A Local Area Network (LAN) refers to a computer network formed by interconnecting within a limited area, such as a home, a school, a computer lab, or an office building using a network medium. WiFi and twisted pair wiring ethernet are the two most commonly used technologies to build local area networks.
It should be noted that other computer systems including more or less subsystems than computer devices can also be suitable for use with the invention.
As described above in detail, the computer apparatus adapted to the present embodiment CAN perform the designated operations of the multi-CAN-port test system optimization method. The computer device performs these operations in the form of software instructions executed by a processor in a computer-readable medium. These software instructions may be read into memory from a storage device or from another device via a local area network interface. The software instructions stored in the memory cause the processor to perform the method of processing group membership information described above. Furthermore, the present invention can be implemented by hardware circuits or by a combination of hardware circuits and software instructions. Thus, implementation of the present embodiments is not limited to any specific combination of hardware circuitry and software.
Example 2
The embodiment provides an optimization device for a multi-CAN port test system, and particularly as shown in FIG. 3, the device of the embodiment comprises a data receiving module, a data conversion module, a data judgment module, a data processing module and a display module;
the data receiving module of the embodiment acquires data of a plurality of groups of attitude sensors through CAN ports of a plurality of PCI interface cards; this embodiment uses 5 PCI 1680U interface cards to obtain 16 system raw data of 10 groups of attitude sensors.
The data conversion module of the embodiment is used for carrying out format conversion on the acquired data of the plurality of groups of attitude sensors; the data conversion module of the present embodiment converts 16-system raw data of 10 sets of attitude sensors into 10-system data.
The data judgment module of the embodiment is used for judging whether the converted data is the list data or the trim data; the judgment module of this embodiment judges whether the converted 10-ary data is list data or trim data.
The data processing module of the embodiment is used for calculating and obtaining a list value or a trim value of the corresponding attitude sensor according to the converted data; the data processing module of this embodiment calculates and obtains the roll value or the pitch value of the corresponding attitude sensor according to the determination result.
The display module of the embodiment is used for displaying corresponding data. The display module of the present embodiment can simultaneously display the acquired 16-system raw data, the converted 10-system data, the calculated list or pitch value, the number of acquired data, and the like of 10 sets of attitude sensors.
The apparatus of this embodiment further includes a communication module, and the communication module may send related data (for example, the display data) to other device ends (for example, a cloud end, a remote end, a client end, and the like) for storage, further processing, or providing a data basis for other systems, and the like.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are merely exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (7)

1. A multi-CAN port test system optimization method is characterized by comprising the following steps:
step S1, acquiring data of a plurality of groups of attitude sensors through CAN ports of a plurality of PCI interface cards;
step S2, carrying out format conversion on the acquired data of the plurality of groups of attitude sensors;
in step S3, the data after format conversion is judged, calculated, and displayed.
2. The method as claimed in claim 1, wherein the format conversion in step S2 is specifically to convert the obtained 16-ary raw data of the attitude sensor into 10-ary data.
3. The method according to claim 1, wherein the step S3 specifically includes:
judging whether the data after format conversion is the list data or the trim data;
calculating a yaw value or a pitch value of the attitude sensor;
calculating the number of received data;
and displaying 16-system original data, a list value, a trim value and the number of received data of the plurality of groups of attitude sensors.
4. The method as claimed in claim 1, wherein in step S1, 1 to 5 PCI interface cards are used to obtain data of 2 to 10 sets of attitude sensors.
5. The optimizing device of the multi-CAN port test system is characterized by comprising a data receiving module, a data conversion module, a data judgment module, a data processing module and a display module;
the data receiving module acquires data of a plurality of groups of attitude sensors through CAN ports of a plurality of PCI interface cards;
the data conversion module is used for carrying out format conversion on the acquired data of the plurality of groups of attitude sensors;
the data judgment module is used for judging whether the converted data is the heeling data or the pitching data;
the data processing module is used for calculating and obtaining a transverse inclination value or a longitudinal inclination value of the corresponding attitude sensor according to the converted data;
the display module is used for displaying corresponding data.
6. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method according to any of claims 1-4.
7. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4.
CN202110551981.9A 2021-05-20 2021-05-20 Multi-CAN port test system optimization method, device, equipment and storage medium Pending CN113254283A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110551981.9A CN113254283A (en) 2021-05-20 2021-05-20 Multi-CAN port test system optimization method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110551981.9A CN113254283A (en) 2021-05-20 2021-05-20 Multi-CAN port test system optimization method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113254283A true CN113254283A (en) 2021-08-13

Family

ID=77183080

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110551981.9A Pending CN113254283A (en) 2021-05-20 2021-05-20 Multi-CAN port test system optimization method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113254283A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180111606A1 (en) * 2015-03-25 2018-04-26 Dana Italia S.R.L. System and method for detecting an impending tip over of a vehicle
WO2020079698A1 (en) * 2018-10-19 2020-04-23 A.D Knight Ltd. Adas systems functionality testing
US20200150677A1 (en) * 2018-11-13 2020-05-14 FLIR Belgium BVBA Extrinsic sensor calibration systems and methods
WO2020151468A1 (en) * 2019-01-22 2020-07-30 岳秀兰 Vehicle remote driving system established by primary and secondary wireless devices by means of internet of things connection

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180111606A1 (en) * 2015-03-25 2018-04-26 Dana Italia S.R.L. System and method for detecting an impending tip over of a vehicle
WO2020079698A1 (en) * 2018-10-19 2020-04-23 A.D Knight Ltd. Adas systems functionality testing
US20200150677A1 (en) * 2018-11-13 2020-05-14 FLIR Belgium BVBA Extrinsic sensor calibration systems and methods
WO2020151468A1 (en) * 2019-01-22 2020-07-30 岳秀兰 Vehicle remote driving system established by primary and secondary wireless devices by means of internet of things connection

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张小龙;李亮;曹成茂;宋健;: "基于CAN的汽车低附路面稳定性控制测试系统", 农业机械学报, no. 08 *
洪林: "基于多传感器融合的工程机械智能施工系统研究", 现代制造工程, pages 132 - 137 *

Similar Documents

Publication Publication Date Title
CN112527705B (en) PCIe DMA data path verification method, device and equipment
CN111897660B (en) Model deployment method, model deployment device and terminal equipment
CN110633383A (en) Method and device for identifying repeated house sources, electronic equipment and readable medium
CN104270287A (en) Message disorder detecting method and device
US20130251025A1 (en) Memory bandwidth reduction during video capture
CN113254283A (en) Multi-CAN port test system optimization method, device, equipment and storage medium
CN109446130A (en) A kind of acquisition methods and system of I/O device status information
CN114793223A (en) DNS record storage method and device, storage medium and electronic equipment
CN115905061B (en) Data transfer device, DMA device, electronic apparatus, and data transfer method
EP2829988A1 (en) Storage apparatus, and system and method for executing access operations
CN109446686B (en) Method for analyzing logical connection relation between devices in equipment
CN109270885B (en) Data communication method, device and equipment for monitoring PLC system and storage medium
CN112527453B (en) Virtualization information simulation system, method and computer-readable storage medium
CN112910910B (en) Method, device, equipment and storage medium for processing OPCDA protocol message
CN111930510B (en) Electronic device and data processing method
CN111835596B (en) Target state detection method and device and electronic equipment
CN114006787A (en) Data transmission method, device and computer readable storage medium
US20170118168A1 (en) Computer and network attribute setting method
CN114359015A (en) Data transmission method and device and graphic processing server
CN107577625B (en) Data processing chip and system, and data storing and forwarding processing method
CN110647355B (en) Data processor and data processing method
CN106452838A (en) USB (Universal Serial Bus) equipment simulation device and method
CN103605622B (en) A kind of method and apparatus transmitting data
CN116360708B (en) Data writing method and device, electronic equipment and storage medium
CN108052482B (en) Method and system for communication between GPUs

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