CN116886578A - CAN data processing method and system for cloud system test on data and vehicle - Google Patents

CAN data processing method and system for cloud system test on data and vehicle Download PDF

Info

Publication number
CN116886578A
CN116886578A CN202310580394.1A CN202310580394A CN116886578A CN 116886578 A CN116886578 A CN 116886578A CN 202310580394 A CN202310580394 A CN 202310580394A CN 116886578 A CN116886578 A CN 116886578A
Authority
CN
China
Prior art keywords
data
signal
signals
cloud
protocol
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
CN202310580394.1A
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.)
Chongqing Changan Automobile Co Ltd
Original Assignee
Chongqing Changan Automobile 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 Chongqing Changan Automobile Co Ltd filed Critical Chongqing Changan Automobile Co Ltd
Priority to CN202310580394.1A priority Critical patent/CN116886578A/en
Publication of CN116886578A publication Critical patent/CN116886578A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40267Bus for use in transportation systems
    • H04L2012/40273Bus for use in transportation systems the transportation system being a vehicle
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Security & Cryptography (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

The invention discloses a CAN data processing method, a system and a vehicle for testing a cloud system on data, aiming at the problem of low coverage efficiency of the current cloud demand test on data, a test tool is formulated according to different signal demands and different CAN communication protocols, CAN data are automatically generated to realize the function of generating CAN data of all acquisition demands in batches, the automatic mapping traversal of the CAN data and the CAN protocols is realized, then the CAN data and the CAN data are stored in a list to wait for automatic transmission of the cloud test, and the integrity test of acquisition coverage CAN be efficiently supported.

Description

CAN data processing method and system for cloud system test on data and vehicle
Technical Field
The invention belongs to big data cloud testing, and particularly relates to a CAN data processing method, a system and a vehicle for testing a cloud system on data.
Background
When the cloud system test is performed on the prior art data, in order to verify whether a certain type of can data can be successfully cloud, the real trigger signal of the controller or the can message is generated and sent by the host computer of the can tool in a simulation mode. The upper computer loads DBC (Database CAN (controller area network) files, then adds a frame of CAN data, manually sets signals to a desired value, sends the data to the network segment, and finally checks whether the data uploaded to the cloud is accurate or not.
With the increasing cloud demand on data, the current can data manual generation method has the problems of low efficiency, possibility of human misoperation and incapability of efficiently covering all demands.
Therefore, higher requirements are put on the CAN data generation efficiency and accuracy of the cloud system test on the data.
Disclosure of Invention
The CAN data processing method for testing the cloud system on the data realizes the automatic mapping traversal of the CAN data and the CAN protocol, and then stores the CAN data into a list to wait for automatic sending of the cloud test, thereby solving the problems of the generation efficiency and coverage rate of the cloud test on the CAN data.
The CAN data processing system for testing the cloud system on the data realizes the automatic mapping traversal of the CAN data and the CAN protocol, and then stores the CAN data and the CAN protocol in a list to wait for automatic sending of the cloud test, thereby solving the problems of the generation efficiency and the coverage rate of the cloud test on the CAN data.
The vehicle with the CAN data processing system for testing the data cloud-up system disclosed by the invention realizes automatic mapping traversal of the CAN data and the CAN protocol, and then stores the CAN data into a list to wait for automatic sending of the cloud-up test, thereby solving the problems of generating efficiency and coverage rate of the cloud-up test of the CAN data.
The invention discloses a CAN data processing method for testing a cloud system on data, which comprises the following CAN data generation steps,
step 1), acquiring CAN signals in a CAN signal acquisition list by a demand analysis module, and storing the CAN signals in a signal acquisition dictionary;
step 2), a protocol analysis module acquires CAN information and CAN data signals of the CAN communication network segment in the protocol matrix file and stores the CAN information and the CAN data signals in a rule dictionary;
step 3) traversing signals in the signal acquisition dictionary returned by the requirement analysis module by the data generation module, generating different value data of each signal according to the rule dictionary returned by the protocol analysis module, and adding the data into the CAN data list;
and 4) traversing the CAN data list returned by the data generation module by the data conversion module to generate a general data part, splicing the target data part according to different protocol types, and adding the spliced data to a catalog part to be transmitted in a data list file to be transmitted.
Further, the CAN signal comprises a CAN identity value and a CAN data value, wherein the CAN data value comprises a nested dictionary of the CAN identity value English name and a corresponding value.
Further, the information in the rule dictionary comprises a CAN identity value and CAN protocol information, wherein the CAN protocol information comprises a signal English name, a byte to which the signal belongs in the whole frame of message, a starting position of the signal in the whole frame of message, a signal occupation length, a signal scale factor, a signal offset and a corresponding value.
Further, the data generating module traverses signals in the signal acquisition dictionary returned by the requirement analyzing module, generates two frames of data frame values of each signal according to the signal dictionary returned by the protocol analyzing module, and adds the CAN identity values and the data frames into the CAN data list.
Further, the method also comprises the following data uploading steps:
and 5) opening the upper computer to load the data list file to be sent, and sending click completion data to the cloud.
The invention also discloses a CAN data processing system for testing the cloud system on the data, which comprises a demand analysis module, a protocol analysis module, a data generation module and a data conversion module;
in the stage of the generation of CAN data,
the demand analysis module acquires CAN signals in the CAN signal acquisition list and stores the CAN signals in the signal acquisition dictionary;
the protocol analysis module acquires CAN information and CAN data signals of the CAN communication network segment in the protocol matrix file and stores the CAN information and the CAN data signals in the rule dictionary;
the data generation module traverses signals in the signal acquisition dictionary returned by the requirement analysis module, generates different value data of each signal according to the rule dictionary returned by the protocol analysis module, and adds the data into the CAN data list;
the data conversion module traverses the CAN data list returned by the data generation module to generate a universal data part, splices a target data part according to different protocol types, and adds spliced data to a catalog part to be transmitted in a data list file to be transmitted.
Further, in the CAN data uploading stage,
and opening the upper computer to load the data list file to be sent, and sending click completion data to the cloud.
Further, the CAN signal comprises a CAN identity value and a CAN data value, wherein the CAN data value comprises a nested dictionary of a CAN identity value English name and a corresponding value;
the information in the rule dictionary comprises CAN identity values and CAN protocol information, wherein the CAN protocol information comprises signal English names, bytes to which signals belong in the whole frame of message, starting positions of the signals in the whole frame of message, signal occupation lengths, signal scale factors, signal offset and corresponding values.
Further, the data generating module traverses signals in the signal acquisition dictionary returned by the requirement analyzing module, generates two frames of data frame values of each signal according to the signal dictionary returned by the protocol analyzing module, and adds the CAN identity values and the data frames into the CAN data list.
The invention also discloses a vehicle, which comprises the CAN data processing system for testing the cloud system on the data.
The invention has the beneficial technical effects that: aiming at the problem of low coverage efficiency of the current cloud demand test on data, a test tool is formulated to automatically generate CAN data according to different signal demands and different CAN communication protocols, so that CAN data functions of all acquisition demands are generated in batches, automatic mapping traversal of the CAN data and the CAN protocols is realized, and then the CAN data is stored in a list to wait for automatic transmission of the cloud test, so that the integrity test of acquisition coverage CAN be efficiently supported.
Drawings
Fig. 1 is a flow chart of a CAN data processing method for cloud-on-data system testing.
Detailed Description
The present invention will be described in detail with reference to the accompanying drawings.
The invention discloses a CAN data processing method for testing a cloud system on data, which comprises the following CAN data generation steps,
step 1), acquiring CAN signals in a CAN signal acquisition list by a demand analysis module, and storing the CAN signals in a signal acquisition dictionary; the CAN signal comprises a CAN identity value and a CAN data value, wherein the CAN data value comprises a CAN identity value English name and a nesting dictionary of corresponding values. The CAN signal comprises a CAN identity value and a CAN data value, wherein the CAN data value comprises a CAN identity value English name and a nesting dictionary of a corresponding value.
Step 2), a protocol analysis module acquires CAN information and CAN data signals of the CAN communication network segment in the protocol matrix file and stores the CAN information and the CAN data signals in a rule dictionary;
the information in the rule dictionary comprises CAN identity values and CAN protocol information, wherein the CAN protocol information comprises signal English names, bytes to which signals belong in the whole frame of message, starting positions of the signals in the whole frame of message, signal occupation lengths, signal scale factors, signal offset and corresponding values.
Step 3) traversing signals in the signal acquisition dictionary returned by the requirement analysis module by the data generation module, generating two frames of data frame values of each signal according to the rule dictionary returned by the protocol analysis module, and adding the CAN identity values and the data frames into a CAN data list.
And 4) traversing the CAN data list returned by the data generation module by the data conversion module to generate a general data part, splicing the target data part according to different protocol types, and adding the spliced data to a catalog part to be transmitted in a data list file to be transmitted. Specifically, a general data portion may be generated according to a list file format of the host computer software zcanpro, then object data portions are spliced according to different protocol types, and the spliced data are incorporated into a directory portion to be sent of the list file.
And 5) opening the upper computer to load the data list file to be sent, and sending click completion data to the cloud.
The invention also discloses a CAN data processing system for testing the cloud system on the data, which comprises a demand analysis module, a protocol analysis module, a data generation module and a data conversion module;
in the stage of the generation of CAN data,
the demand analysis module acquires CAN signals in the CAN signal acquisition list and stores the CAN signals in the signal acquisition dictionary;
the protocol analysis module acquires CAN information and CAN data signals of the CAN communication network segment in the protocol matrix file and stores the CAN information and the CAN data signals in the rule dictionary;
the information in the rule dictionary comprises CAN identity values and CAN protocol information, wherein the CAN protocol information comprises signal English names, bytes to which signals belong in the whole frame of message, starting positions of the signals in the whole frame of message, signal occupation lengths, signal scale factors, signal offset and corresponding values.
The data generation module traverses signals in the signal acquisition dictionary returned by the requirement analysis module, generates different value data of each signal according to the rule dictionary returned by the protocol analysis module, and adds the data into the CAN data list; specifically, the data generation module traverses signals in the signal acquisition dictionary returned by the requirement analysis module, generates two frames of data frame values of each signal according to the signal dictionary returned by the protocol analysis module, and adds the CAN identity values and the data frames to the CAN data list.
The data conversion module traverses the CAN data list returned by the data generation module to generate a universal data part, splices a target data part according to different protocol types, and adds spliced data to a catalog part to be transmitted in a data list file to be transmitted.
And in the CAN data uploading stage, opening the upper computer to load a data list file to be transmitted, and transmitting click completion data to the cloud.
The invention also discloses a vehicle, which comprises the CAN data processing system for testing the cloud system on the data.

Claims (10)

1. The CAN data processing method for testing the cloud system on the data is characterized by comprising the following steps of: comprises the following steps of generating CAN data,
step 1), acquiring CAN signals in a CAN signal acquisition list by a demand analysis module, and storing the CAN signals in a signal acquisition dictionary;
step 2), a protocol analysis module acquires CAN information and CAN data signals of the CAN communication network segment in the protocol matrix file and stores the CAN information and the CAN data signals in a rule dictionary;
step 3) traversing signals in the signal acquisition dictionary returned by the requirement analysis module by the data generation module, generating different value data of each signal according to the rule dictionary returned by the protocol analysis module, and adding the data into the CAN data list;
and 4) traversing the CAN data list returned by the data generation module by the data conversion module to generate a general data part, splicing the target data part according to different protocol types, and adding the spliced data to a catalog part to be transmitted in a data list file to be transmitted.
2. The CAN data processing method for cloud-on-data system testing as claimed in claim 1, wherein: the CAN signal comprises a CAN identity value and a CAN data value, wherein the CAN data value comprises a CAN identity value English name and a nesting dictionary of a corresponding value.
3. The CAN data processing method of cloud-on-data system testing of claim 2, wherein: the information in the rule dictionary comprises CAN identity values and CAN protocol information, wherein the CAN protocol information comprises signal English names, bytes to which signals belong in the whole frame of message, starting positions of the signals in the whole frame of message, signal occupation lengths, signal scale factors, signal offset and corresponding values.
4. The CAN data processing method of cloud-on-data system testing of claim 3, wherein: the data generating module traverses signals in the signal acquisition dictionary returned by the requirement analyzing module, generates two frames of data frame values of each signal according to the signal dictionary returned by the protocol analyzing module, and adds the CAN identity values and the data frames into the CAN data list.
5. The CAN data processing method for cloud-on-data system testing as claimed in claim 4, wherein: the method also comprises the following data uploading steps:
and 5) opening the upper computer to load the data list file to be sent, and sending click completion data to the cloud.
6. The CAN data processing system for testing the cloud system on the data is characterized in that: the system comprises a demand analysis module, a protocol analysis module, a data generation module and a data conversion module;
in the stage of the generation of CAN data,
the demand analysis module acquires CAN signals in the CAN signal acquisition list and stores the CAN signals in the signal acquisition dictionary;
the protocol analysis module acquires CAN information and CAN data signals of the CAN communication network segment in the protocol matrix file and stores the CAN information and the CAN data signals in the rule dictionary;
the data generation module traverses signals in the signal acquisition dictionary returned by the requirement analysis module, generates different value data of each signal according to the rule dictionary returned by the protocol analysis module, and adds the data into the CAN data list;
the data conversion module traverses the CAN data list returned by the data generation module to generate a universal data part, splices a target data part according to different protocol types, and adds spliced data to a catalog part to be transmitted in a data list file to be transmitted.
7. The CAN data processing system for cloud-on-data system testing of claim 6, wherein: in the stage of uploading the CAN data,
and opening the upper computer to load the data list file to be sent, and sending click completion data to the cloud.
8. The CAN data processing system for cloud-on-data system testing of claim 7, wherein:
the CAN signal comprises a CAN identity value and a CAN data value, wherein the CAN data value comprises a CAN identity value English name and a nesting dictionary of a corresponding value;
the information in the rule dictionary comprises CAN identity values and CAN protocol information, wherein the CAN protocol information comprises signal English names, bytes to which signals belong in the whole frame of message, starting positions of the signals in the whole frame of message, signal occupation lengths, signal scale factors, signal offset and corresponding values.
9. The CAN data processing system for cloud-on-data system testing of claim 8, wherein: the data generating module traverses signals in the signal acquisition dictionary returned by the requirement analyzing module, generates two frames of data frame values of each signal according to the signal dictionary returned by the protocol analyzing module, and adds the CAN identity values and the data frames into the CAN data list.
10. A vehicle, characterized in that: the CAN data processing system comprises the CAN data processing system for testing the cloud system on the data.
CN202310580394.1A 2023-05-22 2023-05-22 CAN data processing method and system for cloud system test on data and vehicle Pending CN116886578A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310580394.1A CN116886578A (en) 2023-05-22 2023-05-22 CAN data processing method and system for cloud system test on data and vehicle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310580394.1A CN116886578A (en) 2023-05-22 2023-05-22 CAN data processing method and system for cloud system test on data and vehicle

Publications (1)

Publication Number Publication Date
CN116886578A true CN116886578A (en) 2023-10-13

Family

ID=88268643

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310580394.1A Pending CN116886578A (en) 2023-05-22 2023-05-22 CAN data processing method and system for cloud system test on data and vehicle

Country Status (1)

Country Link
CN (1) CN116886578A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117176613A (en) * 2023-11-01 2023-12-05 建信金融科技有限责任公司 Data acquisition method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117176613A (en) * 2023-11-01 2023-12-05 建信金融科技有限责任公司 Data acquisition method and device
CN117176613B (en) * 2023-11-01 2024-01-26 建信金融科技有限责任公司 Data acquisition method and device

Similar Documents

Publication Publication Date Title
CN109768970B (en) Configurable universal protocol generation method
CN112511416A (en) Rule-based data communication protocol conversion system, decoding method and encoding method
CN116886578A (en) CAN data processing method and system for cloud system test on data and vehicle
CN106851513B (en) Method and system for testing electronic product
CN113515298B (en) System and method for upgrading and managing power distribution terminal program
CN103491522A (en) Terminal adaption method and device
CN111881044A (en) Automatic matching test case system according to configuration file
CN114416049A (en) Configuration method and device of service interface combining RPA and AI
CN113722340A (en) Processing method and system for remote automatic point table updating based on power distribution device
CN111752916B (en) Data acquisition method and device, computer readable storage medium and electronic equipment
CN112788576A (en) Equipment offline processing method and system, storage medium and electronic device
JP2021140430A (en) Database migration method, database migration system, and database migration program
CN116155720A (en) CAN data acquisition remote configuration method in T-BOX
CN111580857B (en) Equipment firmware online configuration method, device and system
CN114327217A (en) Method for simplifying configuration of comprehensive background monitoring management system of intelligent station house
CN114285774A (en) Flow recording method and device, electronic equipment and storage medium
US20190394292A1 (en) Method for Transferring Operating Data of an Automation System to a Cloud Memory, and Gateway
CN111144672A (en) Process formula correctness verification method and system, storage medium and electronic equipment
CN114384963B (en) MPPT parameter remote binding method, dynamic acquisition method and device and computer equipment
CN112907345B (en) Identification code-based ticket settlement method, identification code-based ticket settlement system, identification code-based ticket settlement equipment and medium
CN115348320B (en) Communication data conversion method and device and electronic equipment
CN116634036A (en) Protocol conversion configuration method and system of avionics data interface device
CN116233117A (en) Data transmission method, system, electronic equipment and medium
CN116155745A (en) Message parsing method and device, storage medium and computer equipment
CN116389616A (en) Communication method and device for simulating client and Internet of vehicles system

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