CN112311773B - Implementation method for intelligent automobile sensor interface system - Google Patents

Implementation method for intelligent automobile sensor interface system Download PDF

Info

Publication number
CN112311773B
CN112311773B CN202011099695.5A CN202011099695A CN112311773B CN 112311773 B CN112311773 B CN 112311773B CN 202011099695 A CN202011099695 A CN 202011099695A CN 112311773 B CN112311773 B CN 112311773B
Authority
CN
China
Prior art keywords
sensor
interface
message
virtual interface
dynamic link
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.)
Active
Application number
CN202011099695.5A
Other languages
Chinese (zh)
Other versions
CN112311773A (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.)
Shanghai Jiaotong University
Original Assignee
Shanghai Jiaotong University
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 Shanghai Jiaotong University filed Critical Shanghai Jiaotong University
Priority to CN202011099695.5A priority Critical patent/CN112311773B/en
Publication of CN112311773A publication Critical patent/CN112311773A/en
Application granted granted Critical
Publication of CN112311773B publication Critical patent/CN112311773B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • 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

Abstract

A method for realizing an intelligent automobile sensor interface system virtualizes a hardware interface of a vehicle-mounted computing platform into a virtual interface by using interface classes in a dynamic link library, when a sensor is accessed into the hardware interface, a virtual interface class object is newly established by calling the dynamic link library, CAN messages from the sensor are verified, and the type of the sensor is identified to realize initialization; and calling the dynamic link library to newly create a corresponding sensor class object, storing the address of the corresponding virtual interface in member variables of the sensor class object, completing the matching of CAN message data and an analysis mode, and realizing the plug-and-play of the sensor through a uniform data output format.

Description

Implementation method for intelligent automobile sensor interface system
Technical Field
The invention relates to a technology in the field of intelligent automobiles, in particular to an implementation method for an intelligent automobile sensor interface system.
Background
The existing method for accessing the sensor into the intelligent automobile electronic system has certain defects. For different types or models of sensors and different manufacturers or different vehicle types, an autopilot application development engineer usually needs to consume a large amount of resources to develop and test different communication interfaces, not only needs to allocate a specified hardware interface for a certain sensor, but also needs to specially analyze and select output information of the communication matrix of the sensor, and the sensor signal intervention method generally has no universality, portability, maintainability and reliability. Therefore, a sensor interface system design method capable of conveniently and robustly connecting a sensor signal to an intelligent automobile is urgently needed in the development of the automatic driving technology.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides the implementation method for the intelligent automobile sensor interface system, and after the information is obtained through the CAN, the information of different sensors and vehicles CAN be automatically analyzed and uniformly output, so that the development of application layer software is greatly facilitated. In the aspect of CAN analysis, the packaged library CAN directly output road or obstacle information required to be used in a uniform format, and CAN detect the types and models of the sensors under the condition that different sensors simultaneously send information.
The invention is realized by the following technical scheme:
the invention relates to a method for realizing an intelligent automobile sensor interface system, which virtualizes a hardware interface of a vehicle-mounted computing platform into a virtual interface by utilizing an interface class in a dynamic link library, when a sensor is accessed into the hardware interface, a virtual interface class object is newly established by calling the dynamic link library, a CAN message from the sensor is verified, and the type of the sensor is identified to realize initialization; and calling the dynamic link library to newly create a corresponding sensor class object, storing the address of the corresponding virtual interface in member variables of the sensor class object, completing the matching of CAN message data and an analysis mode, and outputting through a uniform data format so as to realize the plug and play of the sensor.
The interface class in the dynamic link library, namely the CAN interface class, is a virtual interface directly faced by an application layer developer.
The virtual interface class object traverses the hardware interface of the computing platform, tries to establish CAN message communication, and establishes a CAN interface class for each hardware interface establishing CAN message communication.
The virtual interface comprises an uninitialized state and an initialized successful state, wherein: the uninitialized virtual interface only executes the task identified by the sensor, and discards the received CAN message after judging the received CAN message without storing the CAN message; the virtual interface that is initialized successfully will store the CAN message until it is parsed by the corresponding sensor object.
The verification specifically includes: and selecting a unique message ID as a retrieval target in different CAN communication protocols, performing traversal retrieval in a message group received by the virtual interface during initialization, and completing verification after retrieving a corresponding target.
The types of sensors described include, but are not limited to: the system comprises millimeter waves, a laser radar and a camera, wherein the identification is realized through matching of unique ID numbers contained in CAN protocols of different sensors in a CAN message, and a virtual interface completes initialization after the matching is passed.
The data format comprises: Timestamp-Timestamp, Header-id, Frameid-coordinate system, Lane-road information, type-road type, Quality-perceived Quality, Model-road Model, Viewrange-perceived length, Intercept-road Model Intercept, Curvature in Curvature-road Model, derivative of Curvature in dCurvature-road Model.
The corresponding sensor class object refers to: and for sensors with different CAN communication protocols, corresponding class objects are arranged in the dynamic link library, and message analysis, original data processing and organization and data format output are completed.
The member variables of the sensor class object comprise: virtual interface, data publisher.
Technical effects
The invention integrally solves the problems that the existing sensor signal access method has no universality, portability, maintainability and reliability, namely, the existing software developer needs to consider the hardware interface accessed by the sensor and specially analyze and select the output information of the communication matrix of the sensor, thereby influencing the independence of software algorithm development and the portability when in actual scale deployment.
Compared with the prior art, the invention automatically identifies the type of the sensor accessed by the system hardware interface through the sensor interface system and completes the analysis of the corresponding communication matrix without allocating the hardware interface of the sensor in advance and completing the corresponding software analysis work, the interface system design method has universality in different vehicles and different controllers, can be directly transplanted in different control systems through one-time development without repeated development, can effectively improve the universality, transportability and reliability of the intelligent automobile electronic system, realizes the plug-and-play target when the sensors in the intelligent automobile electronic system frame are added, greatly shortens the software development period and saves the repeated development cost of the interface function.
Drawings
FIG. 1 is a schematic diagram of the system of the present invention;
FIGS. 2(a) and (b) are a message body structure and visualization diagram of the present invention; the shaded portion in the figure is optional.
Detailed Description
As shown in fig. 1, the present embodiment relates to an interface system for an intelligent automobile sensor, which includes: interface virtualization unit, sensor identification unit and data output unit, wherein: the interface virtualization unit establishes communication towards the hardware interface, and the acquired original message data is output to the sensor identification unit. The sensor identification unit carries out retrieval and matching according to the received original message data to obtain the result of sensor identification and outputs the result to the corresponding sensor data output unit. The data output unit analyzes the message data, organizes the message data according to the data format mentioned in the invention, and outputs the message data to the application layer developer for use.
And when the sensor is accessed to any hardware interface of the vehicle-mounted computing platform, a dynamic link library is called to generate a corresponding uninitialized virtual interface for the hardware interface.
The interface virtualization unit comprises: CAN communication module and data storage module, wherein: the CAN communication module is connected with a specific hardware interface to establish communication with the sensor, and the data storage module is connected with the sensor identification unit and transmits message data.
The sensor identification unit includes: an identification module and a data storage module, wherein: the identification module receives the message data transmitted by the interface virtualization unit, processes the message data and outputs an identification result, the data storage module starts to store the message data after the identification is completed and is connected with the identification module, the data is discarded after the identification, and the storage is closed after the identification is successful; the data storage module is in butt joint with the data output unit, the sensor starts to store after being successfully identified, and the data is discarded after being analyzed and output.
The data output unit includes: analysis module and output module, wherein: the analysis module receives the output data of the sensor identification unit, is connected with the output module and transmits the sensor data analyzed according to the message protocol, and the output module organizes the sensor data according to the data format shown in fig. 2(b) and transmits the standardized sensor data for the function developer.
As shown in fig. 2(a), the connection relationship of each unit in the sensor interface system achieves the goal of conveniently and robustly connecting the sensor signal to the intelligent automobile electronic system.
As shown in fig. 2(b), it is a sensor data organization form output by the sensor access system of the present invention.
Compared with the prior art, the invention realizes the decoupling of software and hardware in the electronic system of the intelligent automobile, virtualizes the hardware interface of the vehicle-mounted computing platform, ensures that the deployment of the multiple sensors is not influenced by the positions of the interfaces, and can automatically identify the types of the sensors accessed by the interfaces and finish the analysis of a communication matrix. The invention unifies the data output formats of different sensors, and an upper application developer can start function development only by calling the standard data output in the invention without knowing the data formats of different sensors. In addition, analog data can be generated according to the data output format in the invention, and the simulation test can be carried out on the function.
The foregoing embodiments may be modified in many different ways by those skilled in the art without departing from the spirit and scope of the invention, which is defined by the appended claims and all changes that come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein.

Claims (6)

1. A method for realizing an intelligent automobile sensor interface system is characterized in that a hardware interface of a vehicle-mounted computing platform is virtualized into a virtual interface by using interface classes in a dynamic link library, when a sensor is connected into the hardware interface, a virtual interface class object is newly established by calling the dynamic link library, CAN messages from the sensor are verified, and the type of the sensor is identified to realize initialization; calling a dynamic link library to newly create a corresponding sensor class object, storing the address of a corresponding virtual interface in member variables of the sensor class object, completing the matching of CAN message data and an analysis mode, and outputting through a uniform data format so as to realize the plug-and-play of the sensor;
the interface class in the dynamic link library, namely the CAN interface class, is a virtual interface directly faced by an application layer developer;
the data format comprises: timestamp, identity, coordinate system, road information, road type, perceived quality, road model, perceived length, intercept in the road model, curvature in the road model, and derivative of curvature in the road model.
2. The method as claimed in claim 1, wherein the virtual interface object traverses the hardware interface of the computing platform, attempts to establish CAN message communication, and creates a CAN interface class for each hardware interface establishing CAN message communication.
3. The method as claimed in claim 1, wherein the virtual interface comprises an uninitialized state and an initialized successful state, and wherein: the uninitialized virtual interface only executes the task identified by the sensor, and discards the received CAN message after judging the received CAN message without storing the CAN message; the virtual interface that is initialized successfully will store the CAN message until it is parsed by the corresponding sensor object.
4. The implementation method for the intelligent automobile sensor interface system according to claim 1, wherein the verification specifically includes: and selecting a unique message ID as a retrieval target in different CAN communication protocols, performing traversal retrieval in a message group received by the virtual interface during initialization, and completing verification after retrieving a corresponding target.
5. The method as claimed in claim 1, wherein the types of the sensors include: the system comprises millimeter waves, a laser radar and a camera, wherein the identification is realized through matching of unique ID numbers contained in CAN protocols of different sensors in a CAN message, and a virtual interface completes initialization after the matching is passed.
6. The method as claimed in claim 1, wherein the corresponding sensor class objects are: for the sensors with different CAN communication protocols, corresponding class objects are arranged in the dynamic link library, and the analysis of messages, the processing and organization of original data and the output of the data format are completed; the member variables of the sensor class object comprise: virtual interface, data publisher.
CN202011099695.5A 2020-10-15 2020-10-15 Implementation method for intelligent automobile sensor interface system Active CN112311773B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011099695.5A CN112311773B (en) 2020-10-15 2020-10-15 Implementation method for intelligent automobile sensor interface system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011099695.5A CN112311773B (en) 2020-10-15 2020-10-15 Implementation method for intelligent automobile sensor interface system

Publications (2)

Publication Number Publication Date
CN112311773A CN112311773A (en) 2021-02-02
CN112311773B true CN112311773B (en) 2021-07-06

Family

ID=74327156

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011099695.5A Active CN112311773B (en) 2020-10-15 2020-10-15 Implementation method for intelligent automobile sensor interface system

Country Status (1)

Country Link
CN (1) CN112311773B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112860249B (en) * 2021-03-10 2022-10-14 上海交通大学 Modularization implementation method of intelligent driving domain controller software
CN112988279A (en) * 2021-04-16 2021-06-18 广州南方卫星导航仪器有限公司 Object processing method and device, electronic equipment and storage medium
CN114760345B (en) * 2022-04-22 2023-10-13 北京和利时智能技术有限公司 Network connection control method and device for multi-source heterogeneous data
CN115801915B (en) * 2023-02-07 2023-05-05 南京九维测控科技有限公司 Automatic data communication protocol adapting interface between digital sensor and host

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1567201A (en) * 2003-06-11 2005-01-19 深圳市蓝津信息技术有限公司 Restructurable virtual device for software bus and chip structure
CN106789449A (en) * 2017-02-22 2017-05-31 安徽优旦科技有限公司 A kind of CAN exploitation and method of testing and system
CN110069433A (en) * 2019-04-18 2019-07-30 深圳市英博超算科技有限公司 A kind of medium system being compatible with different automobile CAN communication interfaces
CN110580157A (en) * 2019-09-12 2019-12-17 广东鑫光智能系统有限公司 Data acquisition interface based on software definition

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104679513B (en) * 2015-02-12 2019-09-27 无锡识凌科技有限公司 A kind of device drives framework development approach in intelligent terminal
US10141967B1 (en) * 2017-07-28 2018-11-27 Ford Global Technologies, Llc Virtual network interface connectivity
US20190053226A1 (en) * 2017-10-23 2019-02-14 Gang Xiong Uplink control signaling for grant-free uplink transmission
CN110329261A (en) * 2018-03-28 2019-10-15 合肥杰发科技有限公司 Control method, control device, vehicle-mounted chip and the computer storage medium of vehicle

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1567201A (en) * 2003-06-11 2005-01-19 深圳市蓝津信息技术有限公司 Restructurable virtual device for software bus and chip structure
CN106789449A (en) * 2017-02-22 2017-05-31 安徽优旦科技有限公司 A kind of CAN exploitation and method of testing and system
CN110069433A (en) * 2019-04-18 2019-07-30 深圳市英博超算科技有限公司 A kind of medium system being compatible with different automobile CAN communication interfaces
CN110580157A (en) * 2019-09-12 2019-12-17 广东鑫光智能系统有限公司 Data acquisition interface based on software definition

Also Published As

Publication number Publication date
CN112311773A (en) 2021-02-02

Similar Documents

Publication Publication Date Title
CN112311773B (en) Implementation method for intelligent automobile sensor interface system
CN109032103B (en) Method, device and equipment for testing unmanned vehicle and storage medium
CN112685289A (en) Scene generation method, and scene-based model in-loop test method and system
CN110780608B (en) Simulation test method and device
KR102122795B1 (en) Method to test the algorithm of autonomous vehicle
CN100444127C (en) System and method for testing software
CN113484851A (en) Simulation test system and method for vehicle-mounted laser radar and complete vehicle in-loop test system
CN110572307A (en) Automatic drive vehicle sensor data acquisition test platform
CN112671487B (en) Vehicle testing method, server and testing vehicle
CN115016435A (en) Automatic driving vehicle test method, device, system, equipment and medium
US20200150648A1 (en) Vehicle control apparatus
CN114415542A (en) Automatic driving simulation system, method, server and medium
CN114021332A (en) Debugging method, device, equipment and storage medium
CN112597005A (en) Closed-loop simulation test system and method for automatic driving full-stack algorithm
CN116775498A (en) Software testing method and device, electronic equipment and storage medium
CN117597669A (en) Test method, system and device
CN113934198A (en) Vehicle diagnosis method, vehicle diagnosis device, electronic device, and storage medium
US20220269585A1 (en) Computer Card for Testing In-Vehicle Software
CN111177877A (en) Local simulation method and device based on application container engine and storage medium
CN111199084B (en) Method and device for accessing dynamic model
Birchler et al. TEASER: Simulation-based CAN Bus Regression Testing for Self-driving Cars Software
CN117008563A (en) Method and device for configuring a module for simulating at least one sensor
CN114444423B (en) Data processing method and system based on verification platform and electronic equipment
WO2023037576A1 (en) Vehicle control system and vehicle control method
Löchner et al. Validating advanced driver assistance systems (ADAS) using comprehensive, loss-free in-vehicle measurements

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