首页 > 其他分享 >IP protocol

IP protocol

时间:2023-04-20 22:14:05浏览次数:37  
标签:AUTOSAR protocol IP SOME data ID

SOME/IP: Scalabeservice-Oriented Mideleware over IP, IP-based extensible service-oriented middleware.

In the protocol architecture of Ethernet in vehicles, SOME/IP is in the application layer, Provides a service-oriented communication interface.
The communication method is the concept of the CS interface mentioned in AUTOSAR, which refers to the client and server. When a request is made, SOME/IP sends out data; otherwise, no data is sent, similar to the Direct mode of the COM module. This reduces unnecessary data on the bus and lowers the bus load.

At the same time, Classical AUTOSAR and Adaptive AUTOSAR can be bridged together in the overall vehicle electronic and electrical architecture.
SOME/IP in AUTOSAR

Automotive Ethernet protocol architecture

Bridging between CP and AP, the way described before

SOME/IP mainly provides API interfaces for the application layer, creates CS interfaces, and communicates through TCP/IP protocol. The access methods of SOME/IP are divided into three types: event notification, remote procedure call, and access to process data.

  1. Event notification is similar to traditional CAN communication, where the server periodically or upon event changes sends specific data to the client.
    event notification

  2. Remote procedure call is when the client sends a request command to the server when there is a request, the server parses the command and responds accordingly.
    remote procedure call

  3. Accessing process data allows clients to write (Setter) or read (Getter) data to the server.

access process data

The data format of SOME/IP:
data format of SOME/IP

Message ID (Server ID): 16bit, service ID, identifies a service;

Message ID (Method ID): 16bit, the ID of the method, indicating a method;

Length: message length, 32bit, identifies the total length from the request ID to the end of the message;

Request ID (Client ID): client ID, 16bit. Distinguish between different clients;

Request ID (Session ID): Session ID, which distinguishes multiple calls from the same client;

Protocol Version: the version number of the protocol, the fixed value is x01;

Interface Version: service interface version;

Message Type: message type, in AUTOSAR, contains five types in total, including REQUEST, REQUEST_NO_RETURN, NOTIFICATION, RESPONSE, ERROR;

Return Code: return code, including four types, REQUEST, REQUEST_NO_RETURN, NOTIFICATION, RESPONSE;

Payload: The data segment, used to place the data that needs to be transmitted.

*** Compare between SOME/IP and DDS ***

features SOME/IP DDS
Communication Model Request/Response + Subscribe/Publish Subscribe/Publish
Architectural Style Service-Oriented Data-Centric
Transport Protocol TCP/UDP UDP(default)/TCP/Shared-Memory
Dynamic Discovery Yes Yes
Qos Strategy TCP/UDP Rich QoS Policies
AUTOSAR CP-support/AP CP-most/AP-support
Clouding Nonsupport Need DDS Web transfer
Security TLS DDS Security Standard, Supports fine-grained security rules and also supports TLS
Application Area Automobile Industrial, aviation, automotive, etc

标签:AUTOSAR,protocol,IP,SOME,data,ID
From: https://www.cnblogs.com/holylandofdora/p/17312518.html

相关文章

  • 学习JavaScript
    操作步骤开通语音识别服务在调用语音识别相关接口前,您需要进入 语音识别控制台,进行实名认证和人脸认证,认证完成后,阅读《用户协议》后勾选“我已阅读并同意《用户协议》”,然后单击【立即开通】,即可一键开通录音文件识别、实时语音识别、一句话识别、录音文件识别极速版、语......
  • eclipse字体更改
    代码编辑界面默认颜色为白色。对于长期使用电脑编程的人来说,白色很刺激我们的眼睛,所以改变workspace的背景色,可以使眼睛舒服一些。设置方法如下:1、打开window/Preference,弹出Preference面板2、展开General标签,选中Editors选项,展开。3、选中TextEditors,右边出现TestEdito......
  • JavaScript的节点操作
    目录节点概述节点层级添删等节点操作使用节点操作的示例节点概述一般来说,节点至少拥有nodeType,nodeName,nodeValue这三个基本属性1.元素节点的nodeType为12.属性节点的nodeType为23.文本节点的nodeType为3(包括换行,文字,空格)节点层级1.父节点:node.parentNode(1)paren......
  • ONVIF网络摄像头(IPC)客户端开发—RTSP RTCP RTP加载H264视频流
    前言:RTSP,RTCP,RTP一般是一起使用,在FFmpeg和live555这些库中,它们为了更好的适用性,所以实现起来非常复杂,直接查看FFmpeg和Live555源代码来熟悉这些协议非常吃力,这里将它们独立出来实现,以便更好的理解协议。本文主要介绍RTSP,RTCP,RTP加载H264数据流。说明:(1)大华IPC摄像头作为服......
  • ONVIF网络摄像头(IPC)客户端开发—最简RTSP客户端实现
    前言:网上对于RTSP协议客户端的表述和实现非常不清晰,在实际使用中,FFMPEG和live555这些软件已经实现了RTSP客户端和服务端的所有功能,但是它们并没有将RTSP协议独立出来,通过看live555或是FFMPEG这些第三方库的源码来学习rtsp协议还是非常吃力。这里根据协议自己现实一个RTSP客户端程......
  • ONVIF网络摄像头(IPC)客户端开发—ONVIF介绍
    ​1.前言:网上已经有很多关于ONVIF开发的资料,这里概括介绍一下ONVIF协议以及介绍一下我自己在开发ONVIF网络摄像头的一些流程和经验,做个开发记录和经验总结,以备将来查看,也可供他人参考。如有错误,欢迎你的留言纠正,让我们共同成长。系列博客包括:《ONVIF网络摄像头(IPC)客户端开发......
  • ONVIF网络摄像头(IPC)客户端开发—RTSP RTCP RTP加载AAC音频流
    前言:RTSP,RTCP,RTP一般是一起使用,在FFmpeg和live555这些库中,它们为了更好的适用性,所以实现起来非常复杂,直接查看FFmpeg和Live555源代码来熟悉这些协议非常吃力,这里将它们独立出来实现,以便更好的理解协议。本文主要介绍RTSP,RTCP,RTP加载AAC音频流。说明:(1)大华IPC摄像头作为服......
  • 查找80端口请求数最高的前20个IP
    有时候业务的请求量突然上去了,那么这个时候我们可以查看下请求来源IP情况,如果是集中在少数IP上的,那么可能是存在攻击行为,我们使用防火墙就可以进行封禁。命令: netstat-anlp|grep80|greptcp|awk'{print$5}'|awk-F:'{print$1}'|sort|uniq-c|sort-nr|h......
  • linux IPtable防火墙 禁止和开放端口
    评:1、关闭所有的INPUTFORWARDOUTPUT只对某些端口开放。下面是命令实现:iptables-PINPUTDROPiptables-PFORWARDDROPiptables-POUTPUTDROP再用命令iptables-L-n查看是否设置好,好看到全部DROP了这样的设置好了,我们只是临时的,重启服务器还是会恢复......
  • 易基因:MeRIP-seq等揭示m6A甲基化修饰对抗病毒基因表达的转录调控机制|Cell Rep
    大家好,这里是专注表观组学十余年,领跑多组学科研服务的易基因。2021年03月02日,杜克大学医学中心的分子遗传学和微生物学系StacyM.Horner教授团队在《CellReports》(IF:9.995)杂志发表了题为“Post-transcriptionalregulationofantiviralgeneexpressionbyN6-methylade......