CN104331292A - Method for generating configuration for middleware protocol conversion of Internet of vehicles - Google Patents
Method for generating configuration for middleware protocol conversion of Internet of vehicles Download PDFInfo
- Publication number
- CN104331292A CN104331292A CN201410619292.7A CN201410619292A CN104331292A CN 104331292 A CN104331292 A CN 104331292A CN 201410619292 A CN201410619292 A CN 201410619292A CN 104331292 A CN104331292 A CN 104331292A
- Authority
- CN
- China
- Prior art keywords
- protocol
- configuration
- protocol conversion
- middleware
- internet
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000006243 chemical reaction Methods 0.000 title claims abstract description 94
- 238000000034 method Methods 0.000 title claims abstract description 45
- 238000004891 communication Methods 0.000 claims abstract description 49
- 238000013507 mapping Methods 0.000 claims description 17
- 238000004458 analytical method Methods 0.000 claims description 9
- 238000005516 engineering process Methods 0.000 claims description 9
- 238000012986 modification Methods 0.000 claims description 2
- 230000004048 modification Effects 0.000 claims description 2
- 238000011161 development Methods 0.000 abstract description 14
- 230000006870 function Effects 0.000 description 29
- 230000008569 process Effects 0.000 description 19
- 238000010586 diagram Methods 0.000 description 10
- 230000006855 networking Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 6
- 230000003993 interaction Effects 0.000 description 5
- 238000007667 floating Methods 0.000 description 4
- 230000008676 import Effects 0.000 description 4
- 238000004364 calculation method Methods 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 238000013467 fragmentation Methods 0.000 description 2
- 238000006062 fragmentation reaction Methods 0.000 description 2
- 238000003672 processing method Methods 0.000 description 2
- 230000009466 transformation Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013480 data collection Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012827 research and development Methods 0.000 description 1
- 238000013515 script Methods 0.000 description 1
- 238000000844 transformation Methods 0.000 description 1
Landscapes
- Computer And Data Communications (AREA)
- Small-Scale Networks (AREA)
Abstract
本发明公开了一种车联网中间件协议转换的配置生成方法,该方法配置实现协议转换模块的快速开发,通过读取按照车联网通信协议编写的DBC文件描述信息,在配置工具内添加车企通信协议转换参数,将配置信息存入数据库,利用协议转换模板文件自动生成车联网中间件协议转换模块代码。快速融合车身网络于其他网络,实现车联网通信。本发明配置工具能够自动生成配置文件及应用程序框架,并且对用户的配置进行错误检查,尽量避免工人的介入,降低了出错率,从而能积极地提高协议转换模块的稳定性。
The invention discloses a configuration generation method for the protocol conversion of the Internet of Vehicles middleware. The configuration of the method realizes the rapid development of the protocol conversion module. By reading the description information of the DBC file written according to the communication protocol of the Internet of Vehicles, the vehicle enterprise is added in the configuration tool. Communication protocol conversion parameters, the configuration information is stored in the database, and the protocol conversion module code of the Internet of Vehicles middleware is automatically generated by using the protocol conversion template file. Quickly integrate the body network with other networks to realize the communication of the Internet of Vehicles. The configuration tool of the invention can automatically generate configuration files and application program frameworks, and can check user configurations for errors, avoiding workers' intervention as much as possible, reducing error rates, thereby actively improving the stability of the protocol conversion module.
Description
技术领域technical field
本发明属于车联网技术领域,涉及一种车联网中间件协议转换的配置生成方法。The invention belongs to the technical field of the Internet of Vehicles, and relates to a method for generating configurations of middleware protocol conversion of the Internet of Vehicles.
背景技术Background technique
车联网是未来物联网的重点发展对象之一,我们可以通过车载终端设备实现娱乐、打电话等一些手持智能设备功能。同时,我们还可以通过无线网络远程实时了解车辆各个部件的工作状态、车辆位置、车内设备程序的远程更新等功能。还可以通过车车通信、车路通信实现车辆位置的实时统计与分析,为交通调度和车辆主动安全系统提供实时数据。因此,车载终端应用程序,不仅包含和一些通用功能,还带来了新的应用需求。车载智能终端作为车联网的重要组成部分,它是车与其他网络连接的桥梁,需要和车内网络和车外网络进行信息交换。同时,未来车载终端不仅包括固定的设备,还包括手持设备。随着车联网技术的发展,后装终端可以直接利用手持终端代替,如手机、平板电脑等,而这些设备又采用不同的软件平台。同时,车联网的重要载体——汽车却因厂家的不同,其车载网络通信协议存在差别,当前研发的车联网智能终端基本上以汽车整车厂为依托进行定制的,不同企业的车联网终端是不能互换的。车联网终端的互换、相同平台的软件共享是车联网发展的必然趋势。The Internet of Vehicles is one of the key development targets of the Internet of Things in the future. We can realize some functions of handheld smart devices such as entertainment and phone calls through vehicle-mounted terminal equipment. At the same time, we can also remotely understand the working status of various components of the vehicle, the location of the vehicle, and the remote update of in-vehicle equipment programs in real time through the wireless network. Real-time statistics and analysis of vehicle location can also be realized through vehicle-to-vehicle communication and vehicle-to-road communication, providing real-time data for traffic dispatching and vehicle active safety systems. Therefore, the vehicle terminal application program not only contains some common functions, but also brings new application requirements. As an important part of the Internet of Vehicles, the vehicle-mounted intelligent terminal is a bridge connecting the vehicle with other networks, and needs to exchange information with the in-vehicle network and the off-vehicle network. At the same time, future vehicle-mounted terminals include not only fixed devices, but also handheld devices. With the development of Internet of Vehicles technology, after-installed terminals can be directly replaced by handheld terminals, such as mobile phones, tablet computers, etc., and these devices use different software platforms. At the same time, the important carrier of the Internet of Vehicles, the car, has differences in its vehicle network communication protocols due to different manufacturers. The current research and development of intelligent terminals for the Internet of Vehicles are basically customized on the basis of automobile manufacturers. The Internet of Vehicles terminals of different companies are not interchangeable. Interchange of IoV terminals and software sharing on the same platform are inevitable trends in the development of IOV.
随着车联网的应用开发,为了降低开发成本,设备与软件的互换是必然的趋势。由于车载终端的车联网应用功能是一般嵌入式设备不具备的,需要把车身网络、车辆专用短距离通信网络DSRC(Dedicated Short Range Communications)、2G/3G等网络联系到一起共同传输车联网信息。同时,车载信息终端通过与之相连的不同制式的网络传输同一种信息,这些信息相对于车载终端来说是没有差别的。With the application development of the Internet of Vehicles, in order to reduce development costs, the exchange of equipment and software is an inevitable trend. Since the vehicle networking application function of the vehicle terminal is not available in general embedded devices, it is necessary to connect the vehicle body network, vehicle dedicated short-range communication network DSRC (Dedicated Short Range Communications), 2G/3G and other networks to jointly transmit vehicle networking information. At the same time, the vehicle-mounted information terminal transmits the same information through the network of different standards connected to it, and the information is no different from that of the vehicle-mounted terminal.
在车联网架构中,终端需要和车身网络、车内网络设备、附近车辆的信息终端、路侧终端设备以及和车联网服务中心进行通信以实现车车/车路协同等功能,车载智能信息终端需要提供多种和这些网络通信的应用服务。这些信息的传送主要通过3G移动通信、短距离专用无线通信(DSRC)、蓝牙通信、WIFI通信、车身总线等实现信息的交互。In the Internet of Vehicles architecture, the terminal needs to communicate with the vehicle body network, in-vehicle network equipment, information terminals of nearby vehicles, roadside terminal equipment, and the Internet of Vehicles service center to achieve functions such as vehicle-vehicle/vehicle-road coordination. Various application services need to be provided to communicate with these networks. The transmission of these information is mainly through 3G mobile communication, short-distance dedicated radio communication (DSRC), bluetooth communication, WIFI communication, body bus, etc. to realize information interaction.
为了解决车联网中车辆信息的交互,必须把这些网络融合起来,共同为车辆信息交互服务。在这些通信网络中,不同的网络的组网方式不一样,传递的数据格式和访问方式都不一样,不同车辆企业设计的消息格式也有差异,属于异构网络。除车身网络外,其他的通信网络都是通用的。有效地融合这些网络,统一车联网信息通信方式和消息格式,提供规范的访问接口,是当前车联网应用开发需要解决的问题。为了充分利用现有设备,增强车联网应用软件的共享,中间件技术是一种兼容性和可移植性更强,而不必改变现有用户的使用习惯和设备的技术。In order to solve the interaction of vehicle information in the Internet of Vehicles, these networks must be integrated to serve for vehicle information interaction. In these communication networks, different networks have different networking methods, different data formats and access methods, and different message formats designed by different vehicle companies, which belong to heterogeneous networks. Except for the body network, other communication networks are common. Effectively integrating these networks, unifying the information communication method and message format of the Internet of Vehicles, and providing a standardized access interface are the problems that need to be solved in the current application development of the Internet of Vehicles. In order to make full use of existing equipment and enhance the sharing of Internet of Vehicles application software, middleware technology is a technology with greater compatibility and portability without changing the usage habits of existing users and equipment.
在中间件的开发过程中,中间件消息总线起到了各种组件信息交互高速通道的作用,消息总线上挂载的各组件之间的通信协议为适用于车联网中间件的自定义协议。要将车身信息融合到中间件消息总线,需要获取车身网络信息,进而需要实现车辆CAN通信协议与车联网中间件消息总线的协议转换功能。而车辆CAN协议针对不同车企各不相同,是车厂的技术核心,一般不予公开。In the middleware development process, the middleware message bus acts as a high-speed channel for information interaction of various components. The communication protocol between the components mounted on the message bus is a custom protocol suitable for the middleware of the Internet of Vehicles. In order to integrate the vehicle body information into the middleware message bus, it is necessary to obtain the vehicle body network information, and then it is necessary to realize the protocol conversion function between the vehicle CAN communication protocol and the vehicle networking middleware message bus. The vehicle CAN protocol is different for different car companies. It is the core technology of car manufacturers and is generally not disclosed.
现有的协议转换为中间件开发人员在理解车辆CAN协议的基础上通过手工编码实现,即车企需公开车身网络协议,存在不利于保护车企知识产权,手工编码效率不高和分别实现通用性不好等缺点。现有的开发方式不适用于中间件的开发应用。所以要实现车联网信息的融合,协议的转换,必须寻求一种既能保护车企自身知识产权,又能提高开发效率和协议转换模块通用性的方法。The existing protocol is converted to middleware developers through manual coding on the basis of understanding the vehicle CAN protocol, that is, car companies need to disclose the body network protocol, which is not conducive to protecting the intellectual property rights of car companies, and the efficiency of manual coding is not high. Bad sex and other shortcomings. The existing development methods are not suitable for the development and application of middleware. Therefore, in order to realize the integration of vehicle networking information and protocol conversion, it is necessary to find a method that can not only protect the intellectual property rights of car companies, but also improve development efficiency and the versatility of protocol conversion modules.
发明内容Contents of the invention
为了克服现有技术中存在的缺陷,本发明提供一种车联网中间件协议转换的配置生成方法,配置实现协议转换模块的快速开发,通过读取按照车联网通信协议编写的DBC文件描述信息,在配置工具内添加车企通信协议转换参数,即将DBC文件描述的协议通过图形界面配置映射到中间件NGTP(Next Generation Telematics Protocol)框架下的统一自定义协议,将配置信息存入数据库,利用协议转换模板文件在自动代码生成技术JET(JavaEmitter Templates)的辅助下自动生成车联网中间件协议转换模块代码。快速融合车身网络于其他网络,实现车联网通信。其技术方案如下:In order to overcome the defects in the prior art, the present invention provides a configuration generation method for the conversion of the Internet of Vehicles middleware protocol, the configuration realizes the rapid development of the protocol conversion module, by reading the description information of the DBC file written according to the communication protocol of the Internet of Vehicles, Add the vehicle enterprise communication protocol conversion parameters in the configuration tool, that is, the protocol described in the DBC file is mapped to the unified custom protocol under the framework of the middleware NGTP (Next Generation Telematics Protocol) through the graphical interface configuration, and the configuration information is stored in the database. Using the protocol The conversion template file automatically generates the vehicle networking middleware protocol conversion module code with the assistance of the automatic code generation technology JET (JavaEmitter Templates). Quickly integrate the body network with other networks to realize the communication of the Internet of Vehicles. Its technical scheme is as follows:
一种车联网中间件协议转换的配置生成方法,包括以下步骤:A method for generating configurations of the Internet of Vehicles middleware protocol conversion, comprising the following steps:
(1)用DBC文件记录通信协议信息;(1) record communication protocol information with DBC file;
(2)通过图形界面的配置工具进行转换协议参数配置,并将信息存储在数据库文件中;(2) Carry out conversion agreement parameter configuration through the configuration tool of graphical interface, and store information in the database file;
(3)通过代码自动生成技术自动生成中间件通信协议转换代码。(3) The middleware communication protocol conversion code is automatically generated through the automatic code generation technology.
优选地,对于车身应用协议描述文件DBC文件的解析与数据库存储。Preferably, for the analysis and database storage of the body application protocol description file DBC file.
优选地,所述通信协议描述配置与存储具体为:在配置工具中读取DBC文件,配置后将配置信息存储于数据库文件中,按照中间件标准协议的格式为标准,配置生成传递给协议转换模板文件的协议转换映射参数。Preferably, the configuration and storage of the communication protocol description are as follows: read the DBC file in the configuration tool, store the configuration information in the database file after configuration, and pass the configuration generation to the protocol conversion according to the format of the middleware standard protocol Protocol conversion mapping parameters for template files.
优选地,利用自动代码生成技术,最后生成协议转换的代码,在不需要手工改动的情况下,编译后生成通信组件,用于车联网中间件通信。Preferably, the automatic code generation technology is used to finally generate the code for the protocol conversion, and without manual modification, the communication component is generated after compiling for the middleware communication of the Internet of Vehicles.
与现有技术相比,本发明的有益效果:Compared with prior art, the beneficial effect of the present invention:
1)降低开发的门槛;1) Lower the threshold for development;
使用者不需要花精力去熟悉中间件和中间件消息总线协议,只需要在新建的工程中导入和配置协议间的一一映射关系即可。Users do not need to spend energy to familiarize themselves with the middleware and the middleware message bus protocol, but only need to import and configure the one-to-one mapping relationship between the protocols in the newly created project.
2)保护车企的知识产权;2) Protect the intellectual property rights of car companies;
中间件用于车身网络之间的通信,它是屏蔽不同车身网络的核心部分。通过该模块实现车身通信协议与标准通信消息格式之间的转换,提供给应用与车身网络正常的通信。该部分由车企根据中间件协议标准通过配置工具配置自动生成目标代码,保护车企的知识产权。Middleware is used for communication between body networks, and it is the core part of shielding different body networks. This module realizes the conversion between the body communication protocol and the standard communication message format, and provides normal communication between the application and the body network. This part is automatically generated by the car company through the configuration tool configuration according to the middleware protocol standard to automatically generate the target code to protect the intellectual property rights of the car company.
3)提高稳定性;3) Improve stability;
配置工具能够自动生成配置文件及应用程序框架,并且对用户的配置进行错误检查,尽量避免工人的介入,降低了出错率,从而能积极地提高协议转换模块的稳定性。The configuration tool can automatically generate configuration files and application frameworks, and check the user's configuration for errors, avoiding workers' intervention as much as possible, reducing the error rate, and thus actively improving the stability of the protocol conversion module.
4)生成代码在不同平台间移植性和通用性;4) The portability and versatility of the generated code between different platforms;
一方面,协议转换模块与底层驱动模块采用统一的函数接口,对于不用的底层CAN接口平台只需要替换不同的驱动接口;另一方面,协议转换模板代码采用C语言描述,适用类UNIX平台和Android平台。On the one hand, the protocol conversion module and the underlying driver module adopt a unified function interface, and only need to replace different driver interfaces for unused underlying CAN interface platforms; on the other hand, the protocol conversion template code is described in C language, which is applicable to UNIX-like platforms and Android platform.
附图说明Description of drawings
图1协议转换实施流程图;Fig. 1 protocol conversion implementation flow chart;
图2协议转换模型图;Fig. 2 protocol conversion model diagram;
图3协议转换映射图;Figure 3 protocol conversion map;
图4配置工具框图;Figure 4 configuration tool block diagram;
图5协议配置流程图;Figure 5 protocol configuration flow chart;
图6协议转换模板文件流程图;Figure 6 protocol conversion template file flow chart;
图7协议转换模板UML序列图;Figure 7 Protocol conversion template UML sequence diagram;
图8代码自动生成图;The code in Figure 8 automatically generates a diagram;
具体实施方式Detailed ways
下面结合具体实施例进一步说明本发明的技术方案。The technical solutions of the present invention will be further described below in conjunction with specific embodiments.
协议转换实施流程图的结构如图1所示,车企通过DBC文件的解析对协议进行输入,形成变量的数据库,数据库的使用为方便协议信息的条件查找和二次导入。数据项包含了描述输入的信息有CAN的ID,起始位,结束位,偏移量,比例因子等一系列准确描述协议变量的信息。消息总线协议文件是描述车联网中间件消息总线通信协议的文件。The structure of the protocol conversion implementation flow chart is shown in Figure 1. The car company inputs the protocol through the analysis of the DBC file to form a variable database. The use of the database is to facilitate the conditional search and secondary import of protocol information. The data item contains the information describing the input, including CAN ID, start bit, end bit, offset, scale factor and a series of information that accurately describe the protocol variables. The message bus protocol file is a file describing the message bus communication protocol of the IoV middleware.
处理方法模块将配置所得信息进行分析,包括变量匹配,移位,查找操作,得到代码模板的输入参数,传递给代码模板文件。The processing method module analyzes the information obtained from the configuration, including variable matching, shifting, and search operations, obtains the input parameters of the code template, and passes it to the code template file.
代码模板文件通过输入信息及后台协议详细规则在配置工具的辅助下自动生成协议转换代码,经过编译后即生成协议转换的通信组件,以替换不同车型协议转换中间件组件。备份数据库和备份DBC文件存储了配置好的协议信息描述,方便导入微小调整后用于相似协议转换的配置。The code template file automatically generates the protocol conversion code with the assistance of the configuration tool through the input information and the detailed rules of the background protocol. After compilation, the communication component of the protocol conversion is generated to replace the middleware component of the protocol conversion of different models. The backup database and backup DBC file store the configured protocol information description, which is convenient for importing the configuration for similar protocol conversion after minor adjustments.
协议转换输入包括:DBC文件导入,配置界面输入,数据库文件,协议转换模板文件。协议转换的输出包含协议转换代码和数据库文件。Protocol conversion input includes: DBC file import, configuration interface input, database file, protocol conversion template file. The output of protocol conversion includes protocol conversion code and database files.
按照以上所述,本发明的功能实现包括以下四个方面:According to the above, the functional realization of the present invention includes the following four aspects:
1)文件解析与存储;利用Eclipse中文件的操作函数以及正则表达式对文件内容匹配,解析CAN应用协议DBC通用描述文件,如匹配“SG_FarLightOpen:2|21+(1,0)[0|0]“”Gateway”中SG_FarLightOpen字符串名称获取到车辆CAN协议信息中关于远光灯控制信息,存入数据库;协议描述文件的解析与存储是为下一步配置转换准备。1) File parsing and storage; use the file operation functions and regular expressions in Eclipse to match the file content, and parse the CAN application protocol DBC general description file, such as matching "SG_FarLightOpen:2|21+(1,0)[0|0 ]""Gateway" in the string name of SG_FarLightOpen obtains the high beam control information in the vehicle CAN protocol information and stores it in the database; the analysis and storage of the protocol description file is to prepare for the next configuration conversion.
2)协议转换配置映射;生成协议转换模板参数,提供给协议转换模板。以车联网中间件消息总线协议为标准,按照车联网需求的信息将两种协议的关系作一一映射,如表1所示,车身CAN协议数据帧包含ID与DATA信息,中间件协议包含功能码,功能子码和数据域信息,进行映射达到了对协议消息头,数据域的具体位,变量进行解析的目的。2) Protocol conversion configuration mapping; generate protocol conversion template parameters and provide them to the protocol conversion template. Taking the Internet of Vehicles middleware message bus protocol as the standard, the relationship between the two protocols is mapped one by one according to the information required by the Internet of Vehicles. As shown in Table 1, the body CAN protocol data frame contains ID and DATA information, and the middleware protocol contains function Code, function subcode and data field information are mapped to achieve the purpose of parsing protocol message headers, specific bits in the data field, and variables.
表1 协议映射Table 1 Protocol Mapping
而映射的关系是车企自身依靠配置工具通过“信息名称”匹配完成的,从而保护了车企的知识产权。The mapping relationship is completed by the car companies themselves by relying on configuration tools through "information name" matching, thus protecting the intellectual property rights of car companies.
3)协议转换模板设计;降低繁琐度,提高可靠性。协议转换模板包括了协议转换模块与具体协议无关的所有信息,包含了数据采集,控制的分类处理,还包括了对CAN接口的操作,对中间件消息总线接口的接收与发送操作的实现代码;收发线程的创建代码对于不容的模块并不需要更改。需要更改的代码以可变参数的形式在模板中实现,例如远光灯开的控制码对于不同的配置是不一样的,所以其取值代码表现为如下形式,FFMask_State_FarLight_open1=0x<%=elementList.get(0).toString()%>。变量右端为可变赋值,最后使用自动代码生成进行赋值。3) Protocol conversion template design; reduce complexity and improve reliability. The protocol conversion template includes all information that the protocol conversion module has nothing to do with the specific protocol, including data collection, control classification processing, and also includes the operation of the CAN interface, and the implementation code for the receiving and sending operations of the middleware message bus interface; The creation code of the sending and receiving threads does not need to be changed for different modules. The code that needs to be changed is implemented in the template in the form of variable parameters. For example, the control code for turning on the high beam is different for different configurations, so its value code is expressed in the following form, FFMask_State_FarLight_open1=0x<%=elementList. get(0).toString() %>. The right-hand side of the variable is variable assignment, which is finally assigned using automatic code generation.
4)自动代码生成;最终协议转换是需代码实现完成,将上述关系使用配置工具与代码模板结合的方式实现,利用JET代码生成方法自动生成中间件协议转换模块代码,JET利用替换可变字符串方法实现的代码自动生成。4) Automatic code generation; the final protocol conversion needs to be completed by code implementation. The above relationship is realized by combining the configuration tool with the code template, and the JET code generation method is used to automatically generate the middleware protocol conversion module code. JET uses the replacement variable string The code for the method implementation is automatically generated.
要实现协议转换,需要先建立协议转换模型(图2),由于车企协议知识产权保护等特性,车联网中间件协议转换模块需要以配置的方式实现,具体是配置协议间的映射关系(图3),最终的协议转换是依靠配置工具(图4)实施具体的配置流程(图5)得到,协议代码的最后自动生成(图8)需要代码转换模板文件(图6)取得配置所得参数生成。代码模板信息的处理时序由协议转换模板UML序列图(图7)示。To realize protocol conversion, it is necessary to establish a protocol conversion model (Figure 2). Due to the characteristics of car enterprise agreement intellectual property protection and other characteristics, the protocol conversion module of the Internet of Vehicles middleware needs to be implemented in the form of configuration, specifically the mapping relationship between configuration protocols (Figure 2). 3), the final protocol conversion is obtained by implementing the specific configuration process (Figure 5) by means of the configuration tool (Figure 4), and the final automatic generation of the protocol code (Figure 8) requires the code conversion template file (Figure 6) to obtain the parameters generated by the configuration . The processing sequence of the code template information is shown by the protocol conversion template UML sequence diagram (Figure 7).
1)文件解析与存储1) File parsing and storage
协议描述文件的解析详尽的分析了将要进行协议转换的2种不同协议的格式组成,为协议的转换映射关系提供依据。The analysis of the protocol description file analyzes the format composition of the two different protocols to be converted in detail, and provides the basis for the conversion and mapping relationship of the protocols.
参见图1,其中文件解析与存储See Figure 1, where file parsing and storage
解析CAN应用协议DBC通用描述文件,获取到车辆CAN协议信息,如匹配“SG_FarLightOpen:2|21+(1,0)[0|0]“”Gateway”这段DBC文件信息,取得如下表2所示的完整描述各数据段的信息。各数据段准确的描述了一个节点的CAN协议信息。Analyze the DBC general description file of the CAN application protocol to obtain the CAN protocol information of the vehicle, such as matching the DBC file information of "SG_FarLightOpen:2|21+(1,0)[0|0]""Gateway", obtain the following table 2 information that fully describes each data segment displayed. Each data segment accurately describes the CAN protocol information of a node.
表2 车身CAN协议用例Table 2 Body CAN Protocol Use Cases
解析车联网中间件消息总线协议,如表3所示,控制命令的发送主要包含控制功能码,功能子码和数据域。模拟量的数据域根据约定的处理方法(整数,单精度浮点,双精度浮点)进行处理。Analyze the Internet of Vehicles middleware message bus protocol, as shown in Table 3, the transmission of control commands mainly includes control function codes, function subcodes and data fields. The data field of the analog quantity is processed according to the agreed processing method (integer, single-precision floating point, double-precision floating point).
表3 中间件协议用例Table 3 Middleware Protocol Use Cases
2)基于NGTP协议转换配置映射2) Conversion configuration mapping based on NGTP protocol
协议转换的配置映射为协议转换的核心部分;先建立起协议转换的模型,在模型的基础上详述到协议转换的具体字段的映射关系和实现。然后简述了具体映射关系的实现工具,配置工具的简单结构和企业实现配置映射的流程图。The configuration mapping of the protocol conversion is the core part of the protocol conversion; the model of the protocol conversion is established first, and the mapping relationship and realization of the specific fields of the protocol conversion are detailed on the basis of the model. Then briefly describe the implementation tools of the specific mapping relationship, the simple structure of the configuration tool and the flow chart of the enterprise to realize the configuration mapping.
参见图2,协议转换模型图See Figure 2, protocol conversion model diagram
不同车的车载信息终端可通过CAN接口读取车身控制模块BCM的信息,读取到的BCM信息通过消息转换模块转换为中间件通信协议格式,经转换后的信息发送给中间件消息总线,最终到车联网应用(主要包括移动终端应用、车企远程服务终端、其他服务终端的车联网应用程序),车联网应用也可发送消息给车载信息终端,通过中间件协议转换模块的转换后下发给车身控制模块。后台服务与车身能够通信的关键是协议转换模块对不同协议的相互转换。The on-board information terminals of different cars can read the information of the body control module BCM through the CAN interface, and the read BCM information is converted into the middleware communication protocol format by the message conversion module, and the converted information is sent to the middleware message bus, and finally To the Internet of Vehicles application (mainly including mobile terminal applications, remote service terminals of car companies, and Internet of Vehicles applications of other service terminals), the Internet of Vehicles application can also send messages to the vehicle information terminal, and send them after conversion through the middleware protocol conversion module to the body control module. The key to the communication between the background service and the body is the mutual conversion of different protocols by the protocol conversion module.
协议转换模块作为车联网中间件的一部分,其接口一端为车身CAN总线,另一端为中间件消息总线。CAN通信总线网络通过CAN收发器连接到具体的车载网络上;中间件消息总线是一条虚拟总线,其上连接了中间件的各种通信组件和应用组件,各组件通过这条虚拟的消息总线进行通信。其中CAN通信协议的描述采用Vector公司的CAN应用协议标准描述方法DBC文件描述方法;DBC文件包含节点,变量起始位,停止位,范围,偏移量等足以描述和分析一个CAN网络的整体信息。MATLAB和主流的CAN总线协议分析测试软件CANoe等均支持此种格式的文件。中间件通信协议采用下一代车联网协议NGTP(NextGeneration Telematics Protocol)协议框架下的自定义协议。As a part of the middleware of the Internet of Vehicles, the protocol conversion module has one end of the interface as the body CAN bus and the other end as the middleware message bus. The CAN communication bus network is connected to the specific vehicle network through the CAN transceiver; the middleware message bus is a virtual bus on which various communication components and application components of the middleware are connected, and each component is carried out through this virtual message bus. communication. Among them, the description of the CAN communication protocol adopts the CAN application protocol standard description method of Vector Company DBC file description method; the DBC file contains nodes, variable start bits, stop bits, ranges, offsets, etc., which are sufficient to describe and analyze the overall information of a CAN network . Both MATLAB and the mainstream CAN bus protocol analysis and testing software CANoe support files in this format. The middleware communication protocol adopts a custom protocol under the framework of the next-generation Internet of Vehicles protocol NGTP (NextGeneration Telematics Protocol).
参见图3,协议转换映射图;See Figure 3, the protocol conversion map;
转换映射主要包含2个方向上的转换,即发送和接受流程。发送流程中,中间件协议通过功能码和功能子码的解析来区分发送到不同部件的消息,如下表4中右列中功能码4001与功能子码1001的组合表示发往车身的消息;另有码4001与功能子码2001的组合表示发往发动机的消息。然后根据数据域的信息来确定发往车声具体的部件,即确定发送的CAN报文中具体置位和复位在帧中的位置。表4中数据域17表示远光灯控制开,映射到车身CAN协议为ID为7A0,数据帧8个字节的第1节的0-1为置1。接受流程为发送流程的相反流程,根据车身CAN协议ID和数据帧8个字节中的位状态的解析来确定功能码与数据域的值。Transformation mapping mainly includes transformations in two directions, that is, sending and receiving processes. In the sending process, the middleware protocol distinguishes the messages sent to different components through the analysis of function codes and function subcodes. The combination of function code 4001 and function subcode 1001 in the right column in Table 4 below indicates the message sent to the body; The combination of code 4001 and function subcode 2001 indicates a message to the engine. Then according to the information in the data field, determine the specific components sent to the car sound, that is, determine the specific set and reset positions in the frame in the sent CAN message. The data field 17 in Table 4 indicates that the high beam control is turned on, the ID is 7A0 mapped to the CAN protocol of the vehicle body, and the 0-1 in the first section of the 8 bytes of the data frame is set to 1. The receiving process is the opposite process of the sending process, and the value of the function code and data field is determined according to the body CAN protocol ID and the analysis of the bit status in the 8 bytes of the data frame.
表4 协议映射用例(远光灯)Table 4 Protocol Mapping Use Case (High Beam)
参见图4配置工具结构图See Figure 4 Configuration Tool Structure Diagram
配置工具本身为一个Windows应用程序,包含了文件解析模块,视图模块,代码生成模块以及数据库操作模块。文件解析模块对DBC文件进行解析;视图模块包含了配置所需的视图,浏览,编辑等功能;代码生成模块的基础为JET代码生成方法;数据库操作模块利用Eclipse提供的数据库操作类编写SQL标准脚本语言对数据进行操作。The configuration tool itself is a Windows application program, which includes a file parsing module, a view module, a code generation module and a database operation module. The file parsing module parses the DBC file; the view module includes functions such as view, browsing, and editing required for configuration; the code generation module is based on the JET code generation method; the database operation module uses the database operation class provided by Eclipse to write SQL standard scripts Languages operate on data.
参见图5协议配置流程图See Figure 5 for protocol configuration flowchart
车企按照协议配置流程图完成协议的配置,启动配置工具后新建或导入一个已有的配置信息,按照目标车型的CAN协议描述在配置工具上对协议信息进行配置和选择相应的协议转换代码模板文件。配置的参数包含了中间件协议与车身CAN协议的对应关系,对应关系通过变量名称匹配。如下表5,以中间件协议所规定的变量名为标准进行配置。在选择不同的中间件标准协议的对应车身CAN协议中,按照规定的表项配置车身的协议。The car company completes the configuration of the protocol according to the protocol configuration flow chart, creates or imports an existing configuration information after starting the configuration tool, configures the protocol information on the configuration tool according to the CAN protocol description of the target model and selects the corresponding protocol conversion code template document. The configured parameters include the corresponding relationship between the middleware protocol and the body CAN protocol, and the corresponding relationship is matched by the variable name. As shown in Table 5 below, the configuration is performed with the variable names specified in the middleware protocol as standard. In the corresponding CAN protocol of the vehicle body for which different middleware standard protocols are selected, the protocol of the vehicle body is configured according to the specified table items.
表5 配置项详细列表Table 5 Detailed list of configuration items
完成后检查配置的正确性,包括CAN标示信息是否正确,CAN数据信息是否重复,模板是否正确。检查无误后点击配置工具的自动代码生成,生成的代码在目标编译环境下编译生成协议转换模块。将协议转换模块安装到车载信息终端上实现车联网协议转换,实现通信双向交互。其中CAN收发函数采用SocketCAN标准接口。After completion, check the correctness of the configuration, including whether the CAN label information is correct, whether the CAN data information is repeated, and whether the template is correct. After checking, click the automatic code generation of the configuration tool, and the generated code will be compiled in the target compilation environment to generate a protocol conversion module. Install the protocol conversion module on the vehicle information terminal to realize the conversion of the Internet of Vehicles protocol and realize the two-way interaction of communication. Among them, the CAN transceiver function adopts the SocketCAN standard interface.
3)协议转换模板设计3) Protocol conversion template design
协议转换模板文件是最终代码的母版,包含了协议转换的全部代码实现,具体包含协议转换的代码框架文件。保证了最终代码的正确性和可靠性。The protocol conversion template file is the master version of the final code, including all the code implementation of the protocol conversion, specifically including the code framework file of the protocol conversion. The correctness and reliability of the final code are guaranteed.
参见图6协议转换模板文件流程图与图7协议转换模板UML序列图See Figure 6 for the protocol conversion template file flow chart and Figure 7 for the protocol conversion template UML sequence diagram
模板的主要功能就是从CAN网络获取指定报文,提取出有用部分封装为中间件标准格式发送给中间件消息总线,以及相反的过程将消息总线发送的控制指令转换为CAN报文,进行格式转换。其中转换数据是在收发过程中进行的,对应用程序而言接收数据是查询过程,发送数据是控制过程。The main function of the template is to obtain the specified message from the CAN network, extract the useful part and encapsulate it into the middleware standard format and send it to the middleware message bus, and in the opposite process, convert the control command sent by the message bus into a CAN message for format conversion . Among them, converting data is carried out in the process of sending and receiving. For the application program, receiving data is a query process, and sending data is a control process.
将代码中协议相关的信息提取出来作为模板的参数。模板的参数通过配置工具的配置信息计算得到。协议转换模板程序流程图如图所示,main函数为整个模板程序的入口,协议转换模板程序主要包含消息的收发,即主要包含send_threadfun发送线程与receive_threadfun接收线程,主要的任务集中在消息的接收流程,接收线程处理指接收到消息总线发送过来的消息,进而进行处理,包括控制消息,查询消息和紧急消息,分别对应于图中所示的控制流程,查询流程和紧急流程。模板文件采用C语言编写,最终编译为动态链接库,以保证在Linux系统与Android系统的通用性和可替换性。Extract the protocol-related information in the code as the parameters of the template. The parameters of the template are calculated from the configuration information of the configuration tool. The flow chart of the protocol conversion template program is shown in the figure. The main function is the entry point of the entire template program. The protocol conversion template program mainly includes the sending and receiving of messages, that is, the send_threadfun sending thread and the receive_threadfun receiving thread. The main tasks focus on the message receiving process , receiving thread processing refers to receiving and processing messages sent by the message bus, including control messages, query messages and emergency messages, corresponding to the control process, query process and emergency process shown in the figure. The template file is written in C language, and finally compiled into a dynamic link library to ensure the versatility and replaceability between the Linux system and the Android system.
控制流程的计算过程中因为需要得到车身状态以填充此条报文中非控制位的状态,所以包含了查询流程的过程。例如二进制位0101中前2位表示车窗控制位,后两位表示远光灯控制位,当对远光灯控制操作时,前2位车窗控制位为此条CAN控制报文的非控制位,需要保持原有的状态,所以在CAN控制报文下发至总线之前需查询原有车窗控制位状态。参见图7协议转换模板UML序列图,典型控制报文计算流程如下:In the calculation process of the control flow, because the state of the vehicle body needs to be obtained to fill the state of the non-control bit in this message, the process of the query flow is included. For example, the first two digits in the binary bit 0101 represent the window control bit, and the last two digits represent the high beam control bit. When the high beam control operation is performed, the first two window control bits are the non-control bits of this CAN control message. The bit needs to keep the original state, so before the CAN control message is sent to the bus, it is necessary to query the original window control bit state. Refer to the UML sequence diagram of the protocol conversion template in Figure 7. The calculation flow of a typical control message is as follows:
(1)中间件消息总线发送控制命令给通信组件,通信组件的主要功能就是协议转换。(1) The middleware message bus sends control commands to the communication component, and the main function of the communication component is protocol conversion.
(2)解析,根据后台消息的定义拆分消息,判断需要控制的控制位,如远光灯开,并根据配置得到的控制掩码得到控制的掩码,如远光灯_开控制码0x0000000000000001(标准数据帧64位)。(2) Parse, split the message according to the definition of the background message, judge the control bit that needs to be controlled, such as the high beam is turned on, and obtain the controlled mask according to the control mask obtained from the configuration, such as the high beam_on control code 0x0000000000000001 (standard data frame 64 bits).
(3)CAN查询报文发送,查询一次当前控制位相关报文中其他控制位的状态,CAN查询报文返回得到状态码0x0000000000000010。(3) CAN query message is sent, and the status of other control bits in the current control bit-related message is queried once, and the status code 0x0000000000000010 is returned by the CAN query message.
(4)状态码与控制掩码相或(4) The status code is ORed with the control mask
远光灯_开控制掩码||状态码得到发送的数据域0x0000000000000011。HIGH BEAM_ON CONTROL MASK || STATUS CODE GET SENT DATA FIELD 0x0000000000000011.
(5)将数据域与CANID封装成CAN数据帧通过CAN接口发送到总线上。(5) Encapsulate the data field and CANID into a CAN data frame and send it to the bus through the CAN interface.
在因特网中的分片与重组操作是因为不同通信网的MTU值不同,而图中的分片与重组操作是因为中间件消息总线协议数据域所需的信息对应于不同的CAN网络节点,所以需要分开请求数据,收到返回数据解析后再查询组合。The fragmentation and reassembly operations in the Internet are due to the different MTU values of different communication networks, and the fragmentation and reassembly operations in the figure are because the information required by the data field of the middleware message bus protocol corresponds to different CAN network nodes, so It is necessary to request data separately, and then query the combination after receiving and analyzing the returned data.
4)自动代码生成4) Automatic code generation
自动生成源代码可以使使用者不必了解中间件代码的具体代码细节,更方便生成合格的代码,为我们节约时间,降低复杂度,缩短开发周期。Automatic generation of source code can save users from knowing the specific code details of middleware code, make it easier to generate qualified code, save us time, reduce complexity, and shorten the development cycle.
参见图8代码自动生成图See Figure 8 code automatic generation diagram
虽然机器全自动生成源代码很强大,但是往程序中插入代码就会变得很复杂,很难理解。有一种方法可以减少复杂性和增加可读性那就是使用模板。While machine-automated source code generation is powerful, inserting code into a program becomes complex and difficult to understand. One way to reduce complexity and increase readability is to use templates.
在Eclipse建模框架(EMF)项目中,包含两个非常强大的用于生成源代码的工具:JET(JavaEmitter Templates)和JMerge(Java Merge)。利用eclipse中JET代码生成方法以字符串传参的形式进行代码的生成。由于生成的代码需要为消息总线提供通信接口,且通信协议非标准化,所以采用基于模板的代码生成方法,代码易读性得到保证。In the Eclipse Modeling Framework (EMF) project, there are two very powerful tools for generating source code: JET (JavaEmitter Templates) and JMerge (Java Merge). Use the JET code generation method in eclipse to generate code in the form of string parameters. Since the generated code needs to provide a communication interface for the message bus, and the communication protocol is not standardized, the template-based code generation method is adopted to ensure the code readability.
如图所示,代码自动生成的过程为定义一个模板,通过JET引擎生成java中间类,中间类有generate方法,根据配置参数最终生成字符串代码。从使用者的角度看,通常不知道JET引擎和中间类的存在,只需要编辑模板代码,传入配置参数,利用中间类方法生成代码文件。As shown in the figure, the process of automatic code generation is to define a template, generate a java intermediate class through the JET engine, and the intermediate class has a generate method, and finally generate a string code according to the configuration parameters. From the user's point of view, usually do not know the existence of the JET engine and the intermediate class, only need to edit the template code, pass in the configuration parameters, and use the intermediate class method to generate the code file.
如下模板简单示例所示,对于近光灯与远光灯的开关控制,代码传入的参数为argument,是一个list数组,数组包含了所有传递的参数。As shown in the simple template example below, for the switch control of low beam and high beam, the parameter passed in by the code is argument, which is a list array, and the array contains all passed parameters.
根据以上最终生成的代码为:The final generated code based on the above is:
其中16进制字段中包含了配置所得的CAN应用协议信息。例如,控制远光灯开时,发送变量FFMask_State_NearLight_open1的值,最低2字节为0xC1,其他高字节根据查询状态填充。The hexadecimal field contains the configured CAN application protocol information. For example, when the high beam is turned on, the value of the variable FFMask_State_NearLight_open1 is sent, the lowest 2 bytes are 0xC1, and the other high bytes are filled according to the query state.
在代码生成过程中,图中配置参数是最终生成代码的根据,代码生成传递的参数主要有:During the code generation process, the configuration parameters in the figure are the basis for the final code generation. The parameters passed by the code generation mainly include:
数字量:参数包含此数字量在CAN报文信息中的全1掩码和各变量的控制(状态)掩码。这些掩码都是用户配置的参数通过条件查询,移位,与或等计算操作而得到的。Digital quantity: The parameter includes the all-1 mask of this digital quantity in the CAN message information and the control (status) mask of each variable. These masks are all obtained from user-configured parameters through conditional query, shift, and or calculation operations.
模拟量:参数包含此模拟量在CAN报文信息中的全1掩码和处理此原始模拟量的方法。例如整数,单精度浮点或双精度浮点处理。Analog quantity: The parameter includes the mask of all 1s of this analog quantity in the CAN message information and the method of processing this original analog quantity. Such as integer, single precision floating point or double precision floating point processing.
其他:CAN通信接口函数,在协议转换模块读些不同的平台CAN总线信息时,可能会使用不同的CAN读取接口。Others: CAN communication interface function, when the protocol conversion module reads CAN bus information of different platforms, different CAN reading interfaces may be used.
最后生成的代码文件为c文件与h文件的组合,在编译链接文件和make工具的辅助下自动生成目标文件。The final generated code file is a combination of c file and h file, and the target file is automatically generated with the assistance of compiling link file and make tool.
以上所述,仅为本发明最佳实施方式,任何熟悉本技术领域的技术人员在本发明披露的技术范围内,可显而易见地得到的技术方案的简单变化或等效替换均落入本发明的保护范围内。The above is only the best implementation mode of the present invention, any simple changes or equivalent replacements of the technical solutions that can be clearly obtained by any person skilled in the art within the technical scope disclosed in the present invention all fall into the scope of the present invention within the scope of protection.
Claims (4)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410619292.7A CN104331292B (en) | 2014-11-03 | 2014-11-03 | A configuration generation method for protocol conversion of Internet of Vehicles middleware |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410619292.7A CN104331292B (en) | 2014-11-03 | 2014-11-03 | A configuration generation method for protocol conversion of Internet of Vehicles middleware |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104331292A true CN104331292A (en) | 2015-02-04 |
CN104331292B CN104331292B (en) | 2019-01-22 |
Family
ID=52406026
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410619292.7A Active CN104331292B (en) | 2014-11-03 | 2014-11-03 | A configuration generation method for protocol conversion of Internet of Vehicles middleware |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104331292B (en) |
Cited By (49)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105246025A (en) * | 2015-09-08 | 2016-01-13 | 宇龙计算机通信科技(深圳)有限公司 | Method of controlling V2X service transmission and device |
CN105512097A (en) * | 2015-11-26 | 2016-04-20 | 普华基础软件股份有限公司 | File analyzing method |
CN105978898A (en) * | 2016-06-28 | 2016-09-28 | 南京南瑞继保电气有限公司 | Network security threat evaluation method and system for substation monitoring system |
CN106254460A (en) * | 2016-08-05 | 2016-12-21 | 浪潮软件股份有限公司 | Method for accessing message middleware from mobile terminal |
CN106850531A (en) * | 2016-11-21 | 2017-06-13 | 中国航天科工集团第四研究院第四总体设计部 | A kind of protocol code generation method based on template |
CN106950864A (en) * | 2017-04-11 | 2017-07-14 | 重庆长安汽车股份有限公司 | The CAN communication program creating method and device of a kind of entire car controller |
CN106992980A (en) * | 2017-03-30 | 2017-07-28 | 南京维能信息技术有限公司 | A kind of gateway translation-protocol teaching method and device based on Internet of Things |
CN106997176A (en) * | 2016-01-22 | 2017-08-01 | 郭骏贤 | General control method for area network of vehicle controller |
CN107132832A (en) * | 2016-02-29 | 2017-09-05 | 株洲南车时代电气股份有限公司 | A kind of DBC document analysis and its Programming Methodology based on CAN communication |
CN107231279A (en) * | 2016-03-26 | 2017-10-03 | 深圳市沃特玛电池有限公司 | A kind of message parsing method based on CAN communication |
CN107388480A (en) * | 2017-06-26 | 2017-11-24 | 珠海格力电器股份有限公司 | Air conditioner control method and device and air conditioner system |
CN107644059A (en) * | 2017-08-18 | 2018-01-30 | 广州视源电子科技股份有限公司 | Method and device for exporting database file, storage medium and terminal equipment |
CN107704245A (en) * | 2017-09-21 | 2018-02-16 | 深圳市麦斯杰网络有限公司 | Protocol accessing method, device and computer-readable recording medium |
CN107872441A (en) * | 2016-09-28 | 2018-04-03 | 阿里巴巴集团控股有限公司 | The method and apparatus for generating device attribute configuration file |
US9940142B2 (en) | 2016-05-20 | 2018-04-10 | At&T Mobility Ii Llc | Connected car resource manager with associated applications control |
CN108600192A (en) * | 2018-04-03 | 2018-09-28 | 南京越博动力系统股份有限公司 | A kind of DBC document analysis and message analysis method based on regular expression |
CN108833394A (en) * | 2018-06-07 | 2018-11-16 | 中国人民解放军63889部队 | The protocol conversion algorithm of data collection system |
CN109033338A (en) * | 2018-07-23 | 2018-12-18 | 北京新能源汽车股份有限公司 | Method and system for generating database file of automobile communication protocol |
CN109561104A (en) * | 2018-12-28 | 2019-04-02 | 深圳市创梦天地科技有限公司 | A kind of communication protocol conversion method and device |
CN109582639A (en) * | 2018-11-01 | 2019-04-05 | 广东国鸿氢能科技有限公司 | A kind of automobile protocol database document generating method and device |
CN109639789A (en) * | 2018-12-05 | 2019-04-16 | 广东国鸿氢能科技有限公司 | Fuel cell module data monitoring method and system |
CN109688026A (en) * | 2018-12-24 | 2019-04-26 | 北京新能源汽车股份有限公司 | Network protocol data detection method and device |
CN109861976A (en) * | 2018-12-27 | 2019-06-07 | 广州天源信息科技股份有限公司 | Internet of things equipment protocol fitting method |
CN109889482A (en) * | 2018-12-27 | 2019-06-14 | 北京理工大学 | A kind of vehicle protocol analytic method and system |
CN109976828A (en) * | 2019-03-12 | 2019-07-05 | 北京奇艺世纪科技有限公司 | A kind of method and device of configuration file |
CN110196715A (en) * | 2019-06-25 | 2019-09-03 | 上海仪电汽车电子系统有限公司 | A kind of code generating system and method |
CN111049717A (en) * | 2019-12-26 | 2020-04-21 | 潍柴动力股份有限公司 | Variable acquisition method and equipment |
CN111338616A (en) * | 2020-03-24 | 2020-06-26 | 北京自如信息科技有限公司 | Protocol analysis code generation method and device and electronic equipment |
CN111478944A (en) * | 2020-03-10 | 2020-07-31 | 福建工程学院 | Vehicle-mounted terminal and vehicle CAN protocol adaptation method, device, equipment and medium |
CN111708568A (en) * | 2020-05-06 | 2020-09-25 | 福建天泉教育科技有限公司 | Component development decoupling method and terminal |
CN111740956A (en) * | 2020-05-19 | 2020-10-02 | 腾讯科技(深圳)有限公司 | Vehicle communication method and device, computer readable medium and electronic equipment |
WO2020216235A1 (en) * | 2019-04-23 | 2020-10-29 | 华为技术有限公司 | Vehicle-mounted gateway communication method, vehicle-mounted gateway, and smart vehicle |
CN111880780A (en) * | 2020-07-28 | 2020-11-03 | 北京经纬恒润科技有限公司 | Method, device and platform for developing boot loader of MCU (microprogrammed control Unit) |
CN112256253A (en) * | 2020-11-12 | 2021-01-22 | 北斗星通智联科技有限责任公司 | Code generation method and device, electronic equipment and computer readable storage medium |
CN112445491A (en) * | 2020-11-19 | 2021-03-05 | 深圳市元征科技股份有限公司 | File sequence processing method and device, terminal equipment and storage medium |
CN112910830A (en) * | 2019-12-04 | 2021-06-04 | 北京博瑞华通科技有限公司 | Data transmission system, data uploading method and data issuing method of Internet of vehicles |
CN113015132A (en) * | 2021-03-25 | 2021-06-22 | 联合汽车电子有限公司 | Communication method and communication system |
CN113259437A (en) * | 2021-05-11 | 2021-08-13 | 中国第一汽车股份有限公司 | Method and device for determining vehicle network protocol and storage medium |
CN113259233A (en) * | 2021-07-02 | 2021-08-13 | 奥特酷智能科技(南京)有限公司 | DDS-based automation gateway of heterogeneous communication protocol |
CN113568876A (en) * | 2021-08-04 | 2021-10-29 | 江苏爱玛车业科技有限公司 | Method and device for automatically generating DBC file |
WO2021223312A1 (en) * | 2020-05-08 | 2021-11-11 | 广东技术师范大学 | Public transportation smart monitoring cloud service platform |
CN113824621A (en) * | 2021-09-22 | 2021-12-21 | 石家庄通合电子科技股份有限公司 | CAN communication method based on signals and CAN controller |
CN114265636A (en) * | 2021-12-23 | 2022-04-01 | 北京天融信网络安全技术有限公司 | A configuration method and device of a communication protocol, and a storage medium |
CN114281576A (en) * | 2022-03-08 | 2022-04-05 | 魔门塔(苏州)科技有限公司 | Dual-communication-architecture algorithm calling method and device, algorithm control method and vehicle |
CN114925444A (en) * | 2022-04-25 | 2022-08-19 | 一汽奔腾轿车有限公司 | A wiring harness configuration condition design method, terminal and storage medium |
CN115037808A (en) * | 2022-06-15 | 2022-09-09 | 东风悦享科技有限公司 | Method, system and storage medium for rapidly realizing vehicle data access to cloud platform |
CN115267389A (en) * | 2022-07-25 | 2022-11-01 | 安徽橡豫智能科技有限公司 | Implementation method of direct current charging protocol testing device based on raspberry pi |
CN115412613A (en) * | 2021-05-26 | 2022-11-29 | 博泰车联网科技(上海)股份有限公司 | Method of managing afterloading devices of a vehicle, computer storage medium, and the like |
CN116132467A (en) * | 2022-12-12 | 2023-05-16 | 嬴彻星创智能科技(上海)有限公司 | Vehicle communication method, device, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102622470A (en) * | 2012-02-21 | 2012-08-01 | 重庆邮电大学 | General car code conversion method |
CN202772920U (en) * | 2012-06-29 | 2013-03-06 | 惠州天缘电子有限公司 | Peripheral control device of car networking base station |
CN202979022U (en) * | 2012-06-14 | 2013-06-05 | 百年金海安防科技有限公司 | Integral network framework for cooperative communication of network of vehicle |
CN103684963A (en) * | 2013-11-18 | 2014-03-26 | 重庆邮电大学 | Framework system and implementation method of middleware applied to car networking |
-
2014
- 2014-11-03 CN CN201410619292.7A patent/CN104331292B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102622470A (en) * | 2012-02-21 | 2012-08-01 | 重庆邮电大学 | General car code conversion method |
CN202979022U (en) * | 2012-06-14 | 2013-06-05 | 百年金海安防科技有限公司 | Integral network framework for cooperative communication of network of vehicle |
CN202772920U (en) * | 2012-06-29 | 2013-03-06 | 惠州天缘电子有限公司 | Peripheral control device of car networking base station |
CN103684963A (en) * | 2013-11-18 | 2014-03-26 | 重庆邮电大学 | Framework system and implementation method of middleware applied to car networking |
Non-Patent Citations (1)
Title |
---|
冯辉宗等: "基于AutoSAR规范的驱动代码生成工具箱设计与实现", 《电子技术应用》 * |
Cited By (73)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105246025A (en) * | 2015-09-08 | 2016-01-13 | 宇龙计算机通信科技(深圳)有限公司 | Method of controlling V2X service transmission and device |
CN105246025B (en) * | 2015-09-08 | 2018-09-14 | 宇龙计算机通信科技(深圳)有限公司 | A kind of method and device of control V2X business transmission |
WO2017041355A1 (en) * | 2015-09-08 | 2017-03-16 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for controlling v2x service transmission |
CN105512097A (en) * | 2015-11-26 | 2016-04-20 | 普华基础软件股份有限公司 | File analyzing method |
CN106997176A (en) * | 2016-01-22 | 2017-08-01 | 郭骏贤 | General control method for area network of vehicle controller |
CN107132832A (en) * | 2016-02-29 | 2017-09-05 | 株洲南车时代电气股份有限公司 | A kind of DBC document analysis and its Programming Methodology based on CAN communication |
CN107231279A (en) * | 2016-03-26 | 2017-10-03 | 深圳市沃特玛电池有限公司 | A kind of message parsing method based on CAN communication |
US10679435B2 (en) | 2016-05-20 | 2020-06-09 | At&T Mobility Ii Llc | Connected car resource manager with associated applications control |
US11348383B2 (en) | 2016-05-20 | 2022-05-31 | At&T Mobility Ii Llc | Connected car resource manager with associated applications control |
US9940142B2 (en) | 2016-05-20 | 2018-04-10 | At&T Mobility Ii Llc | Connected car resource manager with associated applications control |
CN105978898B (en) * | 2016-06-28 | 2019-09-27 | 南京南瑞继保电气有限公司 | A kind of monitoring system of electric substation network security threats appraisal procedure and system |
CN105978898A (en) * | 2016-06-28 | 2016-09-28 | 南京南瑞继保电气有限公司 | Network security threat evaluation method and system for substation monitoring system |
CN106254460A (en) * | 2016-08-05 | 2016-12-21 | 浪潮软件股份有限公司 | Method for accessing message middleware from mobile terminal |
CN107872441A (en) * | 2016-09-28 | 2018-04-03 | 阿里巴巴集团控股有限公司 | The method and apparatus for generating device attribute configuration file |
CN106850531A (en) * | 2016-11-21 | 2017-06-13 | 中国航天科工集团第四研究院第四总体设计部 | A kind of protocol code generation method based on template |
CN106850531B (en) * | 2016-11-21 | 2020-01-14 | 中国航天科工集团第四研究院第四总体设计部 | Template-based protocol code generation method |
CN106992980A (en) * | 2017-03-30 | 2017-07-28 | 南京维能信息技术有限公司 | A kind of gateway translation-protocol teaching method and device based on Internet of Things |
CN106992980B (en) * | 2017-03-30 | 2020-03-17 | 南京维能信息技术有限公司 | Gateway conversion protocol teaching method and device based on Internet of things |
CN106950864A (en) * | 2017-04-11 | 2017-07-14 | 重庆长安汽车股份有限公司 | The CAN communication program creating method and device of a kind of entire car controller |
CN106950864B (en) * | 2017-04-11 | 2019-12-13 | 重庆长安新能源汽车科技有限公司 | CAN communication program generation method and device of vehicle control unit |
CN107388480A (en) * | 2017-06-26 | 2017-11-24 | 珠海格力电器股份有限公司 | Air conditioner control method and device and air conditioner system |
CN107388480B (en) * | 2017-06-26 | 2020-07-31 | 珠海格力电器股份有限公司 | Air conditioner control method and device and air conditioner system |
CN107644059A (en) * | 2017-08-18 | 2018-01-30 | 广州视源电子科技股份有限公司 | Method and device for exporting database file, storage medium and terminal equipment |
CN107704245A (en) * | 2017-09-21 | 2018-02-16 | 深圳市麦斯杰网络有限公司 | Protocol accessing method, device and computer-readable recording medium |
CN108600192B (en) * | 2018-04-03 | 2021-03-30 | 南京越博动力系统股份有限公司 | Regular expression based DBC file analysis and message analysis method |
CN108600192A (en) * | 2018-04-03 | 2018-09-28 | 南京越博动力系统股份有限公司 | A kind of DBC document analysis and message analysis method based on regular expression |
CN108833394B (en) * | 2018-06-07 | 2020-10-09 | 中国人民解放军63889部队 | Protocol conversion algorithm of data acquisition system |
CN108833394A (en) * | 2018-06-07 | 2018-11-16 | 中国人民解放军63889部队 | The protocol conversion algorithm of data collection system |
CN109033338B (en) * | 2018-07-23 | 2022-02-01 | 北京新能源汽车股份有限公司 | Method and system for generating database file of automobile communication protocol |
CN109033338A (en) * | 2018-07-23 | 2018-12-18 | 北京新能源汽车股份有限公司 | Method and system for generating database file of automobile communication protocol |
CN109582639A (en) * | 2018-11-01 | 2019-04-05 | 广东国鸿氢能科技有限公司 | A kind of automobile protocol database document generating method and device |
CN109639789A (en) * | 2018-12-05 | 2019-04-16 | 广东国鸿氢能科技有限公司 | Fuel cell module data monitoring method and system |
CN109688026A (en) * | 2018-12-24 | 2019-04-26 | 北京新能源汽车股份有限公司 | Network protocol data detection method and device |
CN109889482B (en) * | 2018-12-27 | 2020-05-12 | 北京理工大学 | Vehicle protocol analysis method and system |
CN109889482A (en) * | 2018-12-27 | 2019-06-14 | 北京理工大学 | A kind of vehicle protocol analytic method and system |
CN109861976A (en) * | 2018-12-27 | 2019-06-07 | 广州天源信息科技股份有限公司 | Internet of things equipment protocol fitting method |
CN109561104A (en) * | 2018-12-28 | 2019-04-02 | 深圳市创梦天地科技有限公司 | A kind of communication protocol conversion method and device |
CN109976828A (en) * | 2019-03-12 | 2019-07-05 | 北京奇艺世纪科技有限公司 | A kind of method and device of configuration file |
CN109976828B (en) * | 2019-03-12 | 2022-04-22 | 北京奇艺世纪科技有限公司 | Method and device for configuring file |
WO2020216235A1 (en) * | 2019-04-23 | 2020-10-29 | 华为技术有限公司 | Vehicle-mounted gateway communication method, vehicle-mounted gateway, and smart vehicle |
CN110196715A (en) * | 2019-06-25 | 2019-09-03 | 上海仪电汽车电子系统有限公司 | A kind of code generating system and method |
CN112910830B (en) * | 2019-12-04 | 2022-10-21 | 北京博瑞华通科技有限公司 | Data transmission system, data uploading method and data issuing method of Internet of vehicles |
CN112910830A (en) * | 2019-12-04 | 2021-06-04 | 北京博瑞华通科技有限公司 | Data transmission system, data uploading method and data issuing method of Internet of vehicles |
CN111049717A (en) * | 2019-12-26 | 2020-04-21 | 潍柴动力股份有限公司 | Variable acquisition method and equipment |
CN111478944A (en) * | 2020-03-10 | 2020-07-31 | 福建工程学院 | Vehicle-mounted terminal and vehicle CAN protocol adaptation method, device, equipment and medium |
CN111478944B (en) * | 2020-03-10 | 2022-08-30 | 福建工程学院 | Vehicle-mounted terminal and vehicle CAN protocol adaptation method, device, equipment and medium |
CN111338616A (en) * | 2020-03-24 | 2020-06-26 | 北京自如信息科技有限公司 | Protocol analysis code generation method and device and electronic equipment |
CN111708568B (en) * | 2020-05-06 | 2023-07-07 | 福建天泉教育科技有限公司 | Modularized development decoupling method and terminal |
CN111708568A (en) * | 2020-05-06 | 2020-09-25 | 福建天泉教育科技有限公司 | Component development decoupling method and terminal |
WO2021223312A1 (en) * | 2020-05-08 | 2021-11-11 | 广东技术师范大学 | Public transportation smart monitoring cloud service platform |
CN111740956A (en) * | 2020-05-19 | 2020-10-02 | 腾讯科技(深圳)有限公司 | Vehicle communication method and device, computer readable medium and electronic equipment |
CN111740956B (en) * | 2020-05-19 | 2023-05-26 | 腾讯科技(深圳)有限公司 | Vehicle communication method, device, computer readable medium and electronic equipment |
CN111880780B (en) * | 2020-07-28 | 2024-03-15 | 北京经纬恒润科技股份有限公司 | Method, device and platform for developing boot loader of MCU |
CN111880780A (en) * | 2020-07-28 | 2020-11-03 | 北京经纬恒润科技有限公司 | Method, device and platform for developing boot loader of MCU (microprogrammed control Unit) |
CN112256253B (en) * | 2020-11-12 | 2023-09-01 | 北斗星通智联科技有限责任公司 | Code generation method, device, electronic device and computer-readable storage medium |
CN112256253A (en) * | 2020-11-12 | 2021-01-22 | 北斗星通智联科技有限责任公司 | Code generation method and device, electronic equipment and computer readable storage medium |
CN112445491A (en) * | 2020-11-19 | 2021-03-05 | 深圳市元征科技股份有限公司 | File sequence processing method and device, terminal equipment and storage medium |
CN113015132A (en) * | 2021-03-25 | 2021-06-22 | 联合汽车电子有限公司 | Communication method and communication system |
CN113015132B (en) * | 2021-03-25 | 2023-09-22 | 联合汽车电子有限公司 | Communication method and communication system |
CN113259437A (en) * | 2021-05-11 | 2021-08-13 | 中国第一汽车股份有限公司 | Method and device for determining vehicle network protocol and storage medium |
CN115412613B (en) * | 2021-05-26 | 2023-11-24 | 博泰车联网科技(上海)股份有限公司 | Method for managing aftermarket devices of a vehicle, and computer storage medium |
CN115412613A (en) * | 2021-05-26 | 2022-11-29 | 博泰车联网科技(上海)股份有限公司 | Method of managing afterloading devices of a vehicle, computer storage medium, and the like |
CN113259233A (en) * | 2021-07-02 | 2021-08-13 | 奥特酷智能科技(南京)有限公司 | DDS-based automation gateway of heterogeneous communication protocol |
CN113568876A (en) * | 2021-08-04 | 2021-10-29 | 江苏爱玛车业科技有限公司 | Method and device for automatically generating DBC file |
CN113568876B (en) * | 2021-08-04 | 2024-03-26 | 江苏爱玛车业科技有限公司 | Method and device for automatically generating DBC file |
CN113824621A (en) * | 2021-09-22 | 2021-12-21 | 石家庄通合电子科技股份有限公司 | CAN communication method based on signals and CAN controller |
CN114265636A (en) * | 2021-12-23 | 2022-04-01 | 北京天融信网络安全技术有限公司 | A configuration method and device of a communication protocol, and a storage medium |
CN114281576A (en) * | 2022-03-08 | 2022-04-05 | 魔门塔(苏州)科技有限公司 | Dual-communication-architecture algorithm calling method and device, algorithm control method and vehicle |
CN114925444A (en) * | 2022-04-25 | 2022-08-19 | 一汽奔腾轿车有限公司 | A wiring harness configuration condition design method, terminal and storage medium |
CN115037808A (en) * | 2022-06-15 | 2022-09-09 | 东风悦享科技有限公司 | Method, system and storage medium for rapidly realizing vehicle data access to cloud platform |
CN115267389A (en) * | 2022-07-25 | 2022-11-01 | 安徽橡豫智能科技有限公司 | Implementation method of direct current charging protocol testing device based on raspberry pi |
CN115267389B (en) * | 2022-07-25 | 2025-03-21 | 安徽橡豫智能科技有限公司 | A method for implementing a DC charging protocol test device based on Raspberry Pi |
CN116132467A (en) * | 2022-12-12 | 2023-05-16 | 嬴彻星创智能科技(上海)有限公司 | Vehicle communication method, device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN104331292B (en) | 2019-01-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104331292A (en) | Method for generating configuration for middleware protocol conversion of Internet of vehicles | |
CN104702474B (en) | A kind of EtherCAT master station devices based on FPGA | |
CN101841515B (en) | Implementation method of automatic generation of protocol data unit encoding and decoding codes for variable objects | |
CN106095376B (en) | A kind of implementation method of quick configuration monitoring picture | |
CN106569801A (en) | Complex parameter-based configuration display control system | |
CN103513976B (en) | Service flowpath modelling approach and device | |
CN109523383A (en) | A kind of intelligence contract converting system and method | |
CN102455697B (en) | Electric bus vehicle control unit based on programmable logic controller (PLC) technology | |
CN113364732B (en) | Vehicle-mounted terminal communication protocol analysis method and device | |
CN103049431B (en) | ICD (IED Capability Description) inspection method based on objectified module semantics | |
CN103019690B (en) | A kind of visual assembly module development approach based on JET technology | |
CN111385292A (en) | Descriptor-based protocol message and data interaction method and system | |
CN111478944B (en) | Vehicle-mounted terminal and vehicle CAN protocol adaptation method, device, equipment and medium | |
CN102981827B (en) | A kind of display interface data processing method based on middleware and platform | |
CN106383701A (en) | Common multi-protocol data access interface technology-based data service system | |
CN114047970A (en) | Configuration method and system of AUTOSAR (automotive open system architecture) architecture software | |
CN103077093A (en) | Substation configuration description (SCD) calibration method based on model objectification semantics | |
CN103378994A (en) | Method and terminal for testing communication equipment | |
CN105516178A (en) | Protocol converter for unified management and control of intelligent power distribution terminal | |
CN102970201B (en) | Mobility integrated method for industrial field device | |
CN104063231B (en) | Test resource rapid access method based on HIT-TENA | |
CN106599058B (en) | A kind of RCD file model verification method and verification device | |
CN109582391A (en) | A kind of device tree configuration method based on XML | |
CN104750468B (en) | A kind of server-side topological data conversion method and conversion equipment | |
CN110166485B (en) | Protocol scheduling and using method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |