CN115632943A - Vehicle cloud network channel data configuration method and system - Google Patents
Vehicle cloud network channel data configuration method and system Download PDFInfo
- Publication number
- CN115632943A CN115632943A CN202211283804.8A CN202211283804A CN115632943A CN 115632943 A CN115632943 A CN 115632943A CN 202211283804 A CN202211283804 A CN 202211283804A CN 115632943 A CN115632943 A CN 115632943A
- Authority
- CN
- China
- Prior art keywords
- vehicle
- configuration
- network channel
- forwarding rule
- cloud server
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Computer And Data Communications (AREA)
Abstract
本发明公开了一种车云网络通道数据配置方法,其包括:车端周期性向云端服务器发送请求服务报文,请求最新的配置转发规则;云端服务器接收所述请求服务报文,获取车辆对应的车辆类型,并进行版本号比较,将所述车辆类型对应的最新版本号的配置转发规则发送给车端,所述配置转发规则的负载中记载有每一通道对应的业务报文主题信息;车端接收并解析云端服务器返回的最新版本的配置转发规则,对相应网络通道上订阅的业务报文主题进行更新处理。本发明还公开了相应的系统。实施本发明,可以快速实现网络通道数据配置规则的更新,以及批量化处理,提高了更新效率;并降低了云端的开发难度以及车端的存储要求。
The invention discloses a data configuration method for a vehicle-cloud network channel, which includes: the vehicle terminal periodically sends a request service message to a cloud server to request the latest configuration forwarding rules; the cloud server receives the request service message and obtains the vehicle corresponding Vehicle type, and compare the version number, and send the configuration forwarding rule of the latest version number corresponding to the vehicle type to the vehicle end, and the load of the configuration forwarding rule records the business message subject information corresponding to each channel; The terminal receives and parses the latest version of the configured forwarding rules returned by the cloud server, and updates the subject of the subscribed service message on the corresponding network channel. The invention also discloses a corresponding system. The implementation of the present invention can quickly realize the update of network channel data configuration rules and batch processing, which improves the update efficiency; and reduces the development difficulty of the cloud and the storage requirements of the vehicle end.
Description
技术领域technical field
本发明涉及车联网技术领域,特别是涉及一种车云网络通道数据配置方法及系统。The present invention relates to the technical field of Internet of Vehicles, in particular to a method and system for configuring channel data of a vehicle-cloud network.
背景技术Background technique
当前车端与云平台采用标准车联网协议MQTT协议进行通讯,利用MQTT消息中间件的发布订阅模式,车端与处于车端与云端服务器之间的云端网关实现车云业务数据交互,快速集成远程控车、大数据等业务场景。At present, the car terminal and the cloud platform use the standard Internet of Vehicles protocol MQTT protocol for communication. Using the publish and subscribe mode of the MQTT message middleware, the vehicle terminal and the cloud gateway between the vehicle terminal and the cloud server realize the vehicle-cloud business data interaction, and quickly integrate remote Business scenarios such as car control and big data.
基于MQTT客户端与服务端解耦发布订阅模式,车端与处于车端与云端服务器之间的云端网关可实现基于多个网络通道的车云数据通道,车端通过车云数据通道发布消息到云端,或车端订阅云端下发控制消息,但是如果多个数据消息共用一个车云通道网络资源,比如对于远控指令消息,时效性要求高,车端数据随着业务扩大数据量也随之扩大,数据堆积占用很多资源,这样可能导致车控响应延迟比较大影响用户体验,需要根据时延、流量等业务指标要求调整数据配置的车云网络通道。Based on the decoupled publish and subscribe mode between the MQTT client and server, the car end and the cloud gateway between the car end and the cloud server can realize the car cloud data channel based on multiple network channels, and the car end publishes messages through the car cloud data channel to The cloud, or the car end subscribes to the cloud to send control messages, but if multiple data messages share a car cloud channel network resource, such as remote control command messages, the timeliness requirements are high, and the data volume of the car end will increase with the business expansion. Expansion, data accumulation takes up a lot of resources, which may lead to a relatively large delay in the response of the car control and affect the user experience. It is necessary to adjust the data configuration of the car-cloud network channel according to the requirements of business indicators such as delay and traffic.
车端与处于车端与云端服务器之间的云端网关之间消息交互,网络通道配置数据当前采用通过诊断设备下发配置指令的方式,诊断设备发送DID设置指令到车端,车端网关接收配置数据并执行成功,基于更新的配置,将更新的数据响应发送给云端,通常诊断设备下发诊断设置需要人工触发控制到具体车辆。Messages are exchanged between the car end and the cloud gateway between the car end and the cloud server. The network channel configuration data currently adopts the method of issuing configuration instructions through the diagnostic device. The diagnostic device sends DID setting instructions to the car end, and the car end gateway receives the configuration. The data is successfully executed, and based on the updated configuration, the updated data response is sent to the cloud. Usually, the diagnostic device sends the diagnostic settings and needs to be manually triggered to control the specific vehicle.
但是现有的这种通过诊断设备下发诊断DID设置方法存在一些不足之处:However, there are some deficiencies in the existing method for setting the diagnostic DID through the diagnostic device:
由于通过诊断设备发送控制指令至车端,车端接收并存储变更的网络通道配置规则,需要具体到单车,不仅占用存储空间而且不适用批量车控制;Since the control command is sent to the car end through the diagnostic equipment, the car end receives and stores the changed network channel configuration rules, which need to be specific to a single car, which not only occupies storage space but also does not apply to batch car control;
同时由于是采用人工触发下发诊断指令到单车,操作费时费力;同时车端接收到云端控制变更指令,需要复位重新初始化程序才能使具体配置变更生效,操作非常复杂。At the same time, because the manual trigger is used to send the diagnostic command to the bicycle, the operation is time-consuming and laborious; at the same time, the vehicle receives the cloud control change command, and needs to reset and re-initialize the program to make the specific configuration change take effect. The operation is very complicated.
发明内容Contents of the invention
本发明所要解决的技术问题在于,提供一种车云网络通道数据配置方法及系统。可以快速实现网络通道数据配置规则的更新,以及批量化处理,降低了云端的开发难度以及车端的存储要求。The technical problem to be solved by the present invention is to provide a data configuration method and system for a vehicle-cloud network channel. It can quickly realize the update of network channel data configuration rules and batch processing, which reduces the development difficulty of the cloud and the storage requirements of the vehicle.
为解决上述技术问题,作为本发明的一方面,提供一种车云网络通道数据配置方法,其至少包括如下步骤:In order to solve the above technical problems, as an aspect of the present invention, a method for configuring vehicle-cloud network channel data is provided, which at least includes the following steps:
车端周期性向云端服务器发送请求服务报文,请求最新的配置转发规则,所述请求服务报文中至少携带有本车中当前配置转发规则的版本号信息;The vehicle end periodically sends a request service message to the cloud server to request the latest configuration forwarding rules, and the service request message at least carries the version number information of the current configuration forwarding rules in the vehicle;
云端服务器接收所述请求服务报文,获取车辆对应的车辆类型,并进行版本号比较,将所述车辆类型对应的最新版本号的配置转发规则发送给车端,所述配置转发规则至少包含配置更新类型与负载,所述负载中记载有每一通道对应的业务报文主题信息;The cloud server receives the request service message, obtains the vehicle type corresponding to the vehicle, and compares the version numbers, and sends the configuration forwarding rule of the latest version number corresponding to the vehicle type to the vehicle end, and the configuration forwarding rule includes at least configuration update type and load, the load records the subject information of the business message corresponding to each channel;
车端接收并解析云端服务器返回的最新版本的配置转发规则,对相应网络通道上订阅的业务报文主题进行更新处理。The car end receives and parses the latest version of the configured forwarding rules returned by the cloud server, and updates the subject of the service message subscribed on the corresponding network channel.
其中,云端服务器将所述车辆类型对应的最新版本号的配置转发规则发送给车端的步骤具体为:Wherein, the steps for the cloud server to send the configuration forwarding rule of the latest version number corresponding to the vehicle type to the vehicle end are as follows:
云端服务器查询车端的网络通道在线状态,若车端的网络通道处于在线状态,直接下发所述最新版本号的配置转发规则;若车端的网络通道处于离线状态,向车端发送唤醒消息,在收到车辆上线通知后再下发所述最新版本号的配置转发规则。The cloud server queries the online status of the network channel of the vehicle. If the network channel of the vehicle is online, it directly sends the configuration forwarding rules of the latest version number; if the network channel of the vehicle is offline, it sends a wake-up message to the vehicle. The configuration forwarding rules of the latest version number will be issued after the notification of the vehicle going online.
其中,所述车端接收并解析云端服务器返回的最新版本的配置转发规则,对相应网络通道上订阅的业务报文主题进行更新处理的步骤进一步包括:Wherein, the vehicle terminal receives and parses the latest version of configuration forwarding rules returned by the cloud server, and the step of updating the subject of the service message subscribed on the corresponding network channel further includes:
车端接收并解析云端服务器返回的最新版本的配置转发规则,获取需要更新的网络通道序号以及对应的更新的业务报文主题信息;The car end receives and parses the latest version of the configuration forwarding rules returned by the cloud server, and obtains the serial number of the network channel that needs to be updated and the corresponding updated business message subject information;
车端判断处于使能状态的网络通道,并且针对使能状态的网络通道进行检索,当检索到当前网络通道为需要更新的网络通道,则取消订阅其对应的原始业务主题,重新订阅更新的业务报文主题。The car end judges the network channel in the enabled state, and searches for the network channel in the enabled state. When the current network channel is retrieved as the network channel that needs to be updated, it cancels the subscription to the original business topic corresponding to it, and re-subscribes to the updated business message subject.
其中,进一步包括:Among them, further include:
如果车端解析所述最新版本号的配置转发规则失败,重新向云端服务器发送请求服务报文,并将所述请求服务报文中携带的本车当前版本号修改为0。If the car end fails to analyze the configuration forwarding rules of the latest version number, it will resend the request service message to the cloud server, and modify the current version number of the car carried in the service request message to 0.
其中,进一步包括:云端服务器生成最新版本的配置转发规则的步骤,包括:Wherein, it further includes: the cloud server generates the latest version of the step of configuring forwarding rules, including:
云端服务器根据车辆类型识别并确认车端与云端之间处于使能状态的网络传输通道的数量;The cloud server identifies and confirms the number of enabled network transmission channels between the vehicle end and the cloud according to the vehicle type;
根据当前的业务需求,确定每个网络通道对应的业务报文主题信息,并与上一版本的数据配置转发规则比较确定配置更新类型,从而生成最新版本号的配置转发规则;According to the current business needs, determine the subject information of the business message corresponding to each network channel, and compare it with the data configuration forwarding rules of the previous version to determine the configuration update type, thereby generating the configuration forwarding rules with the latest version number;
其中,所述最新版本号的配置转发规则报文的数据结构包括:配置更新类型、配置版本号、配置名称以及负载;所述配置更新类型包括:新增业务报文类型、业务报文通道更新、修改业务报文类型;所述负载中记载有网络通道序号以及其所对应的业务报文主题及编码。Wherein, the data structure of the configuration forwarding rule message of the latest version number includes: configuration update type, configuration version number, configuration name and load; the configuration update type includes: new business message type, service
相应地,本发明的另一方面,还提供一种车云网络通道数据配置系统,其至少包括云端服务器,以及与所述云端服务器采用MOTT协议进行通信的多个车端;其中:Correspondingly, another aspect of the present invention also provides a car-cloud network channel data configuration system, which at least includes a cloud server, and a plurality of car terminals that communicate with the cloud server using the MOTT protocol; wherein:
每一车端用于周期性向云端服务器发送请求服务报文,请求最新的配置转发规则,所述请求服务报文中至少携带有本车中当前配置转发规则的版本号信息;并在接收到云端服务器返回的最新版本的配置转发规则进行解析,对相应网络通道上订阅的业务报文主题进行更新处理。Each vehicle end is used to periodically send a request service message to the cloud server to request the latest configuration forwarding rules, and the request service message at least carries the version number information of the current configuration forwarding rules in the vehicle; The latest version of the configuration forwarding rules returned by the server is analyzed, and the subject of the subscribed service message on the corresponding network channel is updated.
云端服务器用于接收来自车端的请求服务报文,获取车辆对应的车辆类型,并进行版本号比较,将所述车辆类型对应的最新版本号的配置转发规则发送给车端,所述配置转发规则至少包含配置更新类型与负载,所述负载中记载有每一通道对应的业务报文主题信息。The cloud server is used to receive the request service message from the vehicle end, obtain the vehicle type corresponding to the vehicle, and compare the version number, and send the configuration forwarding rule of the latest version number corresponding to the vehicle type to the vehicle end, and the configuration forwarding rule It includes at least the configuration update type and payload, and the payload records the subject information of the service message corresponding to each channel.
其中,云端服务器进一步包括:Among them, the cloud server further includes:
规则存储单元,用于存储各车辆类型对应的最新版本号的配置转发规则;The rule storage unit is used to store the configuration forwarding rule of the latest version number corresponding to each vehicle type;
请求服务报文接收单元,用于接收来自车端的请求服务报文,获取车辆对应的车辆类型,并进行版本号比较,获取规则存储单元中存储的所述车辆类型对应的最新版本号的配置转发规则;The request service message receiving unit is used to receive the request service message from the vehicle end, obtain the vehicle type corresponding to the vehicle, and compare the version numbers, and obtain the configuration forwarding of the latest version number corresponding to the vehicle type stored in the rule storage unit rule;
下发处理单元,用于在获取到所述车端的最新版本号的配置转发规则后,查询车端的网络通道在线状态,若车端的网络通道处于在线状态,直接下发所述最新版本号的配置转发规则;若车端的网络通道处于离线状态,向车端发送唤醒消息,在收到车辆上线通知后再下发所述最新版本号的配置转发规则。The sending processing unit is used to query the online status of the network channel of the car end after obtaining the configuration forwarding rule of the latest version number of the car end, and directly deliver the configuration of the latest version number if the network channel of the car end is in the online state Forwarding rules: If the network channel of the car is offline, send a wake-up message to the car, and send the configuration forwarding rule of the latest version number after receiving the vehicle online notification.
其中,云端服务器进一步包括:Among them, the cloud server further includes:
配置转发规则生成单元,用于针对每一车辆类型,确认车端与云端处于使能状态的网络传输通道的数量;并根据当前的业务需求,确定每个网络通道对应的业务报文主题信息,并与上一版本的数据配置转发规则比较确定配置更新类型,从而生成最新版本号的配置转发规则并存储;Configure the forwarding rule generation unit, which is used to confirm the number of network transmission channels in the enabled state between the vehicle end and the cloud for each vehicle type; and determine the business message subject information corresponding to each network channel according to the current business requirements, And compare it with the data configuration forwarding rules of the previous version to determine the configuration update type, so as to generate and store the configuration forwarding rules with the latest version number;
其中,所述最新版本号的配置转发规则报文的数据结构包括:配置更新类型、配置版本号、配置名称以及负载;所述配置更新类型包括:新增业务报文类型、业务报文通道更新、修改业务报文类型;所述负载中记载有网络通道序号以及其所对应的业务报文主题及编码;Wherein, the data structure of the configuration forwarding rule message of the latest version number includes: configuration update type, configuration version number, configuration name and load; the configuration update type includes: new business message type, service
其中,所述车端进一步包括:Wherein, the vehicle end further includes:
请求服务报文发送单元,用于周期性向云端服务器发送请求服务报文,请求最新的配置转发规则,所述请求服务报文中至少携带有本车中当前配置转发规则的版本号信息;The request service message sending unit is used to periodically send a request service message to the cloud server to request the latest configuration forwarding rules, and the request service message at least carries the version number information of the current configuration forwarding rules in the vehicle;
配置更新处理单元,用于在接收到云端服务器返回的最新版本的配置转发规则进行解析,对相应网络通道上订阅的业务报文主题进行更新处理;The configuration update processing unit is used to analyze the latest version of the configuration forwarding rules returned by the cloud server, and update the subject of the business message subscribed on the corresponding network channel;
解析失败处理单元,用于在车端解析所述最新版本号的配置转发规则失败后,重新向云端服务器发送请求服务报文,并将所述请求服务报文中携带的本车当前版本号修改为0。The parsing failure processing unit is used to resend the request service message to the cloud server after the car end fails to parse the configuration forwarding rule of the latest version number, and modify the current version number of the vehicle carried in the request service message is 0.
其中,所述配置更新处理单元进一步包括:Wherein, the configuration update processing unit further includes:
解析单元,用于接收并解析云端服务器返回的最新版本的配置转发规则,获取需要更新的网络通道序号以及对应的更新的业务报文主题信息;The parsing unit is used to receive and parse the latest version of the configuration forwarding rules returned by the cloud server, and obtain the serial number of the network channel to be updated and the corresponding updated subject information of the business message;
重新订阅单元,用于判断处于使能状态的网络通道,并且针对使能状态的网络通道进行检索,当检索到当前网络通道为需要更新的网络通道,则取消订阅其对应的原始业务主题,重新订阅更新的业务报文主题。The re-subscription unit is used to determine the network channel in the enabled state, and retrieve the network channel in the enabled state. When the current network channel is retrieved as the network channel that needs to be updated, cancel the subscription to its corresponding original business topic, and re-subscribe Subscribe to the topic of updated business messages.
实施本发明实施例,具有如下的有益效果:Implementing the embodiment of the present invention has the following beneficial effects:
本发明提出一种车云网络通道数据配置方法及系统,基于业务更新,在云端将不同网络通道配置不同的业务数据,生成网络通道数据配置规则;而车端定时向云端请求获取更新,云端服务器自动匹配下发最新的数据配置规则至车端,车端根据更新的网络通道配置规则更新订阅多个不同通道的业务数据。在本发明中,对于网络通道数据配置规则的更新,处于车端与云端服务器之间的云端网关不再需要更改网关代码,通过标准的发布订阅封装,快速集成新的业务场景,可以实现批量化处理,大大降低了云端的开发难度,且提高了业务服务的开发效率。The present invention proposes a vehicle-cloud network channel data configuration method and system. Based on service updates, different network channels are configured with different service data in the cloud to generate network channel data configuration rules; The latest data configuration rules are automatically matched and delivered to the car end, and the car end updates and subscribes to business data of multiple different channels according to the updated network channel configuration rules. In the present invention, for the update of network channel data configuration rules, the cloud gateway between the vehicle end and the cloud server no longer needs to change the gateway code, and quickly integrates new business scenarios through standard publish-subscribe encapsulation, which can realize batching Processing greatly reduces the difficulty of cloud development and improves the development efficiency of business services.
在本发明实施例中,车端数据可以利用不同的网络通道,与云端数据网关连接进行数据交互,有效利用不同网络通道的资源,并且可实现云端下发配置规则升级。同时,在车端解析并订阅业务主题生效最新配置规则后,在生效后就可以删掉,无需一直保留,这样不需要车端存储变更的网络通道配置规则占用存储,降低了车端的存储要求。In the embodiment of the present invention, the car end data can use different network channels to connect with the cloud data gateway for data interaction, effectively utilize the resources of different network channels, and realize the upgrade of configuration rules issued by the cloud. At the same time, after the latest configuration rules are parsed and subscribed to by the vehicle end, they can be deleted after they take effect, and there is no need to keep them all the time. In this way, the network channel configuration rules that do not need to be stored on the vehicle end occupy storage, reducing the storage requirements on the vehicle end.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,根据这些附图获得其他的附图仍属于本发明的范畴。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, obtaining other drawings based on these drawings still belongs to the scope of the present invention without any creative effort.
图1为本发明提供的一种车云网络通道数据配置方法的一个实施例的主流程示意图;Fig. 1 is a schematic diagram of the main flow of an embodiment of a vehicle-cloud network channel data configuration method provided by the present invention;
图2为本发明提供的一种一种车云网络通道数据配置系统的一个实施例的结构示意图;Fig. 2 is a schematic structural diagram of an embodiment of a vehicle-cloud network channel data configuration system provided by the present invention;
图3为图2中云端服务器的结构示意图;Fig. 3 is a schematic structural diagram of the cloud server in Fig. 2;
图4为图2中云端的结构示意图;FIG. 4 is a schematic structural diagram of the cloud in FIG. 2;
图5为图4配置更新处理单元的结构示意图。FIG. 5 is a schematic structural diagram of a configuration update processing unit in FIG. 4 .
具体实施方式Detailed ways
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings.
如图1所示,示出了本发明提供的一种车云网络通道数据配置方法的一个实施例的主流程示意图。在本实施例中,所述方法至少包括如下步骤:As shown in FIG. 1 , it shows a schematic diagram of the main flow of an embodiment of a vehicle-cloud network channel data configuration method provided by the present invention. In this embodiment, the method includes at least the following steps:
步骤S10,车端周期性向云端服务器发送请求服务报文,请求最新的配置转发规则,所述请求服务报文中至少携带有本车中当前配置转发规则的版本号信息;Step S10, the vehicle end periodically sends a request service message to the cloud server, requesting the latest configuration forwarding rules, and the service request message at least carries the version number information of the current configuration forwarding rules in the vehicle;
步骤S11,云端服务器接收所述请求服务报文,获取车辆对应的车辆类型,并进行版本号比较,将所述车辆类型对应的最新版本号的配置转发规则发送给车端,所述配置转发规则至少包含配置更新类型与负载,所述负载中记载有每一通道对应的业务报文主题信息;Step S11, the cloud server receives the request service message, obtains the vehicle type corresponding to the vehicle, compares the version numbers, and sends the configuration forwarding rule of the latest version number corresponding to the vehicle type to the vehicle end, and the configuration forwarding rule Contains at least the configuration update type and load, and the load records the subject information of the service message corresponding to each channel;
其中,云端服务器将所述车辆类型对应的最新版本号的配置转发规则发送给车端的步骤具体为:Wherein, the steps for the cloud server to send the configuration forwarding rule of the latest version number corresponding to the vehicle type to the vehicle end are as follows:
云端服务器查询车端的网络通道在线状态,若车端的网络通道处于在线状态,直接下发所述最新版本号的配置转发规则;若车端的网络通道处于离线状态,向车端发送唤醒消息,在收到车辆上线通知后再下发所述最新版本号的配置转发规则。The cloud server queries the online status of the network channel of the vehicle. If the network channel of the vehicle is online, it directly sends the configuration forwarding rules of the latest version number; if the network channel of the vehicle is offline, it sends a wake-up message to the vehicle. The configuration forwarding rules of the latest version number will be issued after the notification of the vehicle going online.
步骤S12,车端接收并解析云端服务器返回的最新版本的配置转发规则,对相应网络通道上订阅的业务报文主题进行更新处理。In step S12, the car end receives and parses the latest version of the configured forwarding rules returned by the cloud server, and updates the subject of the subscribed service message on the corresponding network channel.
其中,所述车端接收并解析云端服务器返回的最新版本的配置转发规则,对相应网络通道上订阅的业务报文主题进行更新处理的步骤进一步包括:Wherein, the vehicle terminal receives and parses the latest version of configuration forwarding rules returned by the cloud server, and the step of updating the subject of the service message subscribed on the corresponding network channel further includes:
车端接收并解析云端服务器返回的最新版本的配置转发规则,获取需要更新的网络通道序号以及对应的更新的业务报文主题信息;The car end receives and parses the latest version of the configuration forwarding rules returned by the cloud server, and obtains the serial number of the network channel that needs to be updated and the corresponding updated business message subject information;
车端判断处于使能状态的网络通道,并且针对使能状态的网络通道进行检索,当检索到当前网络通道为需要更新的网络通道,则取消订阅其对应的原始业务主题,重新订阅更新的业务报文主题。The car end judges the network channel in the enabled state, and searches for the network channel in the enabled state. When the current network channel is retrieved as the network channel that needs to be updated, it cancels the subscription to the original business topic corresponding to it, and re-subscribes to the updated business message subject.
其中,所述方法进一步包括:Wherein, the method further includes:
如果车端解析所述最新版本号的配置转发规则失败,重新向云端服务器发送请求服务报文,并将所述请求服务报文中携带的本车当前版本号修改为0。可以理解的是,由于云端的版本号必定会大于0,故这样可以保证云端会将最新版号的的配置转发规则下发给车端。If the car end fails to analyze the configuration forwarding rules of the latest version number, it will resend the request service message to the cloud server, and modify the current version number of the car carried in the service request message to 0. It is understandable that since the version number of the cloud must be greater than 0, this can ensure that the cloud will send the configuration forwarding rules of the latest version number to the vehicle end.
可以理解的是,所述方法进一步包括:云端服务器生成最新版本的配置转发规则的步骤,包括:It can be understood that the method further includes: a step of the cloud server generating the latest version of the configured forwarding rules, including:
云端服务器根据车辆类型识别并确认车端与云端之间处于使能状态的网络传输通道的数量;The cloud server identifies and confirms the number of enabled network transmission channels between the vehicle end and the cloud according to the vehicle type;
根据当前的业务需求,确定每个网络通道对应的业务报文主题信息,并与上一版本的数据配置转发规则比较确定配置更新类型,从而生成最新版本号的配置转发规则;According to the current business needs, determine the subject information of the business message corresponding to each network channel, and compare it with the data configuration forwarding rules of the previous version to determine the configuration update type, thereby generating the configuration forwarding rules with the latest version number;
其中,所述最新版本号的配置转发规则报文的数据结构包括:配置更新类型、配置版本号、配置名称以及负载(payload);Wherein, the data structure of the configuration forwarding rule message of the latest version number includes: configuration update type, configuration version number, configuration name and load (payload);
更具体地,配置更新类型为当前配置转发规则更新类型,所述配置更新类型包括:新增业务报文类型、业务报文通道更新、修改业务报文类型;More specifically, the configuration update type is the update type of the current configuration forwarding rule, and the configuration update type includes: new service message type, service message channel update, and modified service message type;
配置版本号为当前配置转发规则更新的版本号,云端更新下发从版本1开始递增;The configuration version number is the version number of the current configuration forwarding rule update, and the cloud update delivery is incremented from
配置名称为根据车辆类型(车系)生成的,便于云端按需下发至车端;The configuration name is generated according to the vehicle type (car series), which is convenient for the cloud to send to the vehicle terminal on demand;
所述负载中记载有网络通道序号以及其所对应的业务报文主题及编码。The payload records the serial number of the network channel and the subject and code of the corresponding service message.
例如在一个例子中,所述负载中记载有如下的内容:For example, in one example, the following content is recorded in the payload:
通道1:用于MQTT协议交互的业务报文主题(topic)以及编码;Channel 1: business message topic (topic) and encoding for MQTT protocol interaction;
通道2:用于MQTT协议交互的业务报文主题(topic)以及编码;Channel 2: business message topic (topic) and encoding for MQTT protocol interaction;
通道N:用于MQTT协议交互的业务报文主题topic以及编码,格式为JSON或者键值对对象数组;Channel N: The topic and encoding of the business message used for MQTT protocol interaction, in the format of JSON or an array of key-value pairs;
更具体地,对于不同的配置更新类型,网络通道配置转发规则中需要进行如下工作:More specifically, for different configuration update types, the following work needs to be done in the network channel configuration forwarding rules:
新增业务报文类型:当新增业务类型时,云端新增一类主题以及编码,并新增一条记录至配置规则负载中,用于车端与云端基于MQTT协议交互;在增加新业务时,处于车端与云端服务器之间的云端网关不需要更改网关代码,只需要通过标准的发布订阅封装,快速集成新的业务场景,大大降低了云端的开发难度。最后将业务报文主题匹配到对应网络通道,更新配置规则下发至车端生效;New business message type: When adding a new business type, a new category of topics and codes will be added to the cloud, and a record will be added to the configuration rule load for the interaction between the vehicle end and the cloud based on the MQTT protocol; when adding a new business , the cloud gateway between the car end and the cloud server does not need to change the gateway code, but only needs to be packaged through standard publish and subscribe to quickly integrate new business scenarios, which greatly reduces the difficulty of cloud development. Finally, the subject of the business message is matched to the corresponding network channel, and the updated configuration rules are sent to the vehicle end to take effect;
业务报文通道更新:当某一类业务数据随着业务变更需要变更网络通道时,将业务报文主题匹配的网路通道更新,变更到其他网络通道,并新增一条记录至配置规则负载中,将更新配置规则下发至车端生效;Service message channel update: When a certain type of business data needs to change the network channel as the business changes, update the network channel that matches the subject of the service message, change it to another network channel, and add a record to the configuration rule load , and send the updated configuration rules to the vehicle end to take effect;
修改业务报文类型:当修改业务报文类型时,需要修改对应的业务报文主题。可根据业务划分对业务报文主题进行拆分处理,分解成多个不同类别的业务,在云端新增业务报文主题以及编码,并新增记录至配置规则至负载中,将更新后的业务报文主题对应匹配到不同的网络通道,更新网络通道配置规则下发至车端生效。这样,在MQTT网络通道层面拆分业务实现数据传输,处于车端与云端服务器之间的云端网关不需要变更数据更新代码,只需要订阅对应网路通道上传的业务报文主题,将不同类数据桥接到云端服务器中的业务处理模块,不需要解析业务报文内部数据,即可实现数据拆分分流处理,节省开发成本。Modify the service message type: When modifying the service message type, you need to modify the corresponding service message subject. The topic of business messages can be split and processed according to business division, and can be decomposed into multiple different types of services. Themes and codes of business messages can be added in the cloud, and records can be added to the configuration rules and loads, and the updated business The subject of the message is matched to different network channels, and the updated network channel configuration rules are delivered to the vehicle end to take effect. In this way, the business is split at the MQTT network channel level to realize data transmission. The cloud gateway between the vehicle end and the cloud server does not need to change the data update code, but only needs to subscribe to the subject of the business message uploaded by the corresponding network channel, and transfer different types of data Bridged to the business processing module in the cloud server, it does not need to parse the internal data of the business message, and can realize data splitting and flow processing, saving development costs.
如图2所示,示出了本发明提供的一种车云网络通道数据配置系统一个实施例的结构示意图。一并结合图3至图5所示,在本实施例中,所述系统至少包括云端服务器1,以及与所述云端服务器1采用MOTT协议进行通信的多个车端2;在所述云端服务器1与多个车端1的MOTT协议网络中设置有云端网关(未示出),其中:As shown in FIG. 2 , it shows a schematic structural diagram of an embodiment of a vehicle-cloud network channel data configuration system provided by the present invention. As shown in Figures 3 to 5, in this embodiment, the system at least includes a
每一车端2用于周期性向云端服务器发送请求服务报文,请求最新的配置转发规则,所述请求服务报文中至少携带有本车中当前配置转发规则的版本号信息;并在接收到云端服务器返回的最新版本的配置转发规则进行解析,对相应网络通道上订阅的业务报文主题进行更新处理。Each
云端服务器1用于接收来自车端的请求服务报文,获取车辆对应的车辆类型,并进行版本号比较,将所述车辆类型对应的最新版本号的配置转发规则发送给车端,所述配置转发规则至少包含配置更新类型与负载,所述负载中记载有每一通道对应的业务报文主题信息。The
更具体地,如图3所示,所述云端服务器1进一步包括:More specifically, as shown in Figure 3, the
规则存储单元10,用于存储各车辆类型对应的最新版本号的配置转发规则;The
请求服务报文接收单元11,用于接收来自车端的请求服务报文,获取车辆对应的车辆类型,并进行版本号比较,获取规则存储单元中存储的所述车辆类型对应的最新版本号的配置转发规则;The request service message receiving unit 11 is used to receive the request service message from the vehicle end, obtain the vehicle type corresponding to the vehicle, and perform version number comparison, and obtain the configuration of the latest version number corresponding to the vehicle type stored in the rule storage unit Forwarding rules;
下发处理单元12,用于在获取到所述车端的最新版本号的配置转发规则后,查询车端的网络通道在线状态,若车端的网络通道处于在线状态,直接下发所述最新版本号的配置转发规则;若车端的网络通道处于离线状态,向车端发送唤醒消息,在收到车辆上线通知后再下发所述最新版本号的配置转发规则;The sending
配置转发规则生成单元13,用于针对每一车辆类型,确认车端与云端处于使能状态的网络传输通道的数量;并根据当前的业务需求,确定每个网络通道对应的业务报文主题信息,并与上一版本的数据配置转发规则比较确定配置更新类型,从而生成最新版本号的配置转发规则并存储;Configure the forwarding
其中,所述最新版本号的配置转发规则报文的数据结构包括:配置更新类型、配置版本号、配置名称以及负载;所述配置更新类型包括:新增业务报文类型、业务报文通道更新、修改业务报文类型;所述负载中记载有网络通道序号以及其所对应的业务报文主题及编码;Wherein, the data structure of the configuration forwarding rule message of the latest version number includes: configuration update type, configuration version number, configuration name and load; the configuration update type includes: new business message type, service
更具体地,如图4所示,所述车端2进一步包括:More specifically, as shown in FIG. 4, the
请求服务报文发送单元10,用于周期性向云端服务器发送请求服务报文,请求最新的配置转发规则,所述请求服务报文中至少携带有本车中当前配置转发规则的版本号信息;The request service
配置更新处理单元11,用于在接收到云端服务器返回的最新版本的配置转发规则进行解析,对相应网络通道上订阅的业务报文主题进行更新处理;The configuration update processing unit 11 is configured to analyze the configuration forwarding rules of the latest version returned by the cloud server, and update the subject of the service message subscribed on the corresponding network channel;
解析失败处理单元12,用于在车端解析所述最新版本号的配置转发规则失败后,重新向云端服务器发送请求服务报文,并将所述请求服务报文中携带的本车当前版本号修改为0。The parsing
其中,所述配置更新处理单元11进一步包括:Wherein, the configuration update processing unit 11 further includes:
解析单元110,用于接收并解析云端服务器返回的最新版本的配置转发规则,获取需要更新的网络通道序号以及对应的更新的业务报文主题信息;The parsing unit 110 is configured to receive and parse the latest version of the configuration forwarding rule returned by the cloud server, and obtain the serial number of the network channel to be updated and the corresponding updated subject information of the business message;
重新订阅单元111,用于判断处于使能状态的网络通道,并且针对使能状态的网络通道进行检索,当检索到当前网络通道为需要更新的网络通道,则取消订阅其对应的原始业务主题,重新订阅更新的业务报文主题。The re-subscribing unit 111 is used to determine the network channel in the enabled state, and to search for the network channel in the enabled state. When the current network channel is retrieved as the network channel that needs to be updated, unsubscribe from its corresponding original business topic, Re-subscribe to the updated business message topic.
更多细节,可以参考并结合前述对图1的描述,在此不进行赘述。For more details, reference may be made to and combined with the foregoing description of FIG. 1 , and details are not repeated here.
实施本发明实施例,具有如下的有益效果:Implementing the embodiment of the present invention has the following beneficial effects:
本发明提出一种车云网络通道数据配置方法及系统,基于业务更新,在云端将不同网络通道配置不同的业务数据,生成网络通道数据配置规则;而车端定时向云端请求获取更新,云端服务器自动匹配下发最新的数据配置规则至车端,车端根据更新的网络通道配置规则更新订阅多个不同通道的业务数据。在本发明中,对于网络通道数据配置规则的更新,处于车端与云端服务器之间的云端网关不再需要更改网关代码,通过标准的发布订阅封装,快速集成新的业务场景,可以实现批量化处理,大大降低了云端的开发难度,且提高了业务服务的开发效率。The present invention proposes a vehicle-cloud network channel data configuration method and system. Based on service updates, different network channels are configured with different service data in the cloud to generate network channel data configuration rules; The latest data configuration rules are automatically matched and delivered to the car end, and the car end updates and subscribes to business data of multiple different channels according to the updated network channel configuration rules. In the present invention, for the update of network channel data configuration rules, the cloud gateway between the vehicle end and the cloud server no longer needs to change the gateway code, and quickly integrates new business scenarios through standard publish-subscribe encapsulation, which can realize batching Processing greatly reduces the difficulty of cloud development and improves the development efficiency of business services.
在本发明实施例中,车端数据可以利用不同的网络通道,与云端数据网关连接进行数据交互,有效利用不同网络通道的资源,并且可实现云端下发配置规则升级。同时,在车端解析并订阅业务主题生效最新配置规则后,在生效后就可以删掉,无需一直保留,这样不需要车端存储变更的网络通道配置规则占用存储,降低了车端的存储要求。In the embodiment of the present invention, the car end data can use different network channels to connect with the cloud data gateway for data interaction, effectively utilize the resources of different network channels, and realize the upgrade of configuration rules issued by the cloud. At the same time, after the latest configuration rules are parsed and subscribed to by the vehicle end, they can be deleted after they take effect, and there is no need to keep them all the time. In this way, the network channel configuration rules that do not need to be stored on the vehicle end occupy storage, reducing the storage requirements on the vehicle end.
本领域内的技术人员应明白,本发明的实施例可提供为方法、装置、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, apparatuses, or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
以上所揭露的仅为本发明一种较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。The above disclosure is only a preferred embodiment of the present invention, which certainly cannot limit the scope of rights of the present invention. Therefore, equivalent changes made according to the claims of the present invention still fall within the scope of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211283804.8A CN115632943A (en) | 2022-10-20 | 2022-10-20 | Vehicle cloud network channel data configuration method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211283804.8A CN115632943A (en) | 2022-10-20 | 2022-10-20 | Vehicle cloud network channel data configuration method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115632943A true CN115632943A (en) | 2023-01-20 |
Family
ID=84906235
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211283804.8A Pending CN115632943A (en) | 2022-10-20 | 2022-10-20 | Vehicle cloud network channel data configuration method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115632943A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN119172168A (en) * | 2024-11-18 | 2024-12-20 | 中汽数据(天津)有限公司 | A cloud-based system for managing vehicle safety monitoring functions |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104777771A (en) * | 2014-01-09 | 2015-07-15 | 福特全球技术公司 | Vehicle and system for updating configuration of module to support different function |
CN112486554A (en) * | 2020-12-01 | 2021-03-12 | 中国科学院合肥物质科学研究院 | Vehicle-mounted networking terminal software upgrading method |
CN113778498A (en) * | 2021-08-23 | 2021-12-10 | 武汉中海庭数据技术有限公司 | Vehicle data update method, OTA cloud and vehicle data update system |
CN114979206A (en) * | 2022-05-20 | 2022-08-30 | 重庆长安汽车股份有限公司 | Vehicle OTA (over the air) upgrading system and method based on subscription and release mode |
CN115174677A (en) * | 2022-07-19 | 2022-10-11 | 中国工商银行股份有限公司 | Information creation terminal management method, device and system based on distributed message |
-
2022
- 2022-10-20 CN CN202211283804.8A patent/CN115632943A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104777771A (en) * | 2014-01-09 | 2015-07-15 | 福特全球技术公司 | Vehicle and system for updating configuration of module to support different function |
CN112486554A (en) * | 2020-12-01 | 2021-03-12 | 中国科学院合肥物质科学研究院 | Vehicle-mounted networking terminal software upgrading method |
CN113778498A (en) * | 2021-08-23 | 2021-12-10 | 武汉中海庭数据技术有限公司 | Vehicle data update method, OTA cloud and vehicle data update system |
CN114979206A (en) * | 2022-05-20 | 2022-08-30 | 重庆长安汽车股份有限公司 | Vehicle OTA (over the air) upgrading system and method based on subscription and release mode |
CN115174677A (en) * | 2022-07-19 | 2022-10-11 | 中国工商银行股份有限公司 | Information creation terminal management method, device and system based on distributed message |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN119172168A (en) * | 2024-11-18 | 2024-12-20 | 中汽数据(天津)有限公司 | A cloud-based system for managing vehicle safety monitoring functions |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102415845B1 (en) | Internet of Things Resource Subscription Methods, Devices, and Systems | |
CN114328618B (en) | A cache data synchronization method, device, equipment and storage medium | |
CN114270344A (en) | Messaging platform for delivering real-time messages | |
CN106210049B (en) | Cluster communication method and system based on message queue | |
US20070016674A1 (en) | Information exchange system, management server, and method for reducing network load used in the same | |
JP2011523470A (en) | Automatic content transmission technology to mobile devices based on feeds | |
US20070016673A1 (en) | Information exchange system and management server, terminal unit, and method for reducing network load used in the same | |
WO2021051747A1 (en) | Data update method, system and device, electronic device, and computer storage medium | |
CN109462640B (en) | A metadata synchronization method, data terminal, interactive system and medium | |
CN115314571A (en) | Cloud protocol gateway implementation method and system supporting heterogeneous device access | |
CN113347195B (en) | Dynamic mounting system and method for communication protocol packet of Internet of things equipment | |
CN113852667A (en) | Message pushing method and device, storage medium and electronic device | |
CN115114044A (en) | Message pushing method, device, equipment and medium | |
GB2580419A (en) | Electronic message control | |
GB2580421A (en) | Electronic message translation management | |
CN117082137A (en) | Communication method, device, equipment and medium for maintaining OTA upgrade refreshing mode | |
CN115632943A (en) | Vehicle cloud network channel data configuration method and system | |
CN118450354A (en) | OTA upgrade method, device, electronic device and medium based on service-oriented architecture | |
CN111130905A (en) | Distributed cluster-based log level dynamic adjustment method | |
CN112131014B (en) | Decision engine system and business processing method thereof | |
US11245567B2 (en) | Electronic message adaptation | |
CN114143730B (en) | Signaling processing method, communication system, electronic device and storage medium | |
WO2024103943A1 (en) | Service processing method and apparatus, storage medium, and device | |
CN114143728B (en) | Message processing method, communication system, electronic device and storage medium | |
CN113553206B (en) | Data event execution method and device, electronic equipment and computer readable medium |
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 |