当前位置: 首页 > news >正文

SOME/IP-SD -- 协议英文原文讲解2

前言
SOME/IP协议越来越多的用于汽车电子行业中,关于协议详细完全的中文资料却没有,所以我将结合工作经验并对照英文原版协议做一系列的文章。基本分三大块:

1. SOME/IP协议讲解

2. SOME/IP-SD协议讲解

3. python/C++举例调试讲解


5.1.2.2 SOME/IP-SD Header
[PRS_SOMEIPSD_00252]
Upstream requirements: RS_SOMEIPSD_00001
SOME/IP-SD shall be transported using SOME/IP.
SD报文 是基于SOME/IP协议头传输的在其基础上继续叠加SD头

[PRS_SOMEIPSD_00252] can be seen in Figure 5.2.
[PRS_SOMEIPSD_00253]
Upstream requirements: RS_SOMEIPSD_00006
The SOME/IP-SD Header shall start with an 8 Bit field called flags.
See a representation of Flags in Figure 5.3.
SD header 最开始是个8位的flags
如果仅Reboot Flag是 1 则flag字节的值是0x80.
rebootFlag 为 1 表示新的一段 订阅关系的开始

[PRS_SOMEIPSD_00254]
Upstream requirements: RS_SOMEIPSD_00006
The first flag of the SOME/IP-SD Flags field (highest order bit) shall be called Reboot
Flag.
For flags see Figure 5.3.
[PRS_SOMEIPSD_00255]
Upstream requirements: RS_SOMEIPSD_00006
The Reboot Flag of the SOME/IP-SD Header shall be set to one for all messages
after reboot until the Session-ID in the SOME/IP-Header wraps around and thus starts
with 1 again. After this wrap around the Reboot Flag is set to 0.
reboot_flag   sessionID
1             1          --->开机
0             2
0             3
0             4
...   ...
...   ...
...   ...
0             0xffff
1             1         --> sessionID 绕回
0             2
0             3
0             4
...   ...
...   ...

[PRS_SOMEIPSD_00256]
Upstream requirements: RS_SOMEIPSD_00002, RS_SOMEIPSD_00003
The information for the reboot flag and the Session ID shall be kept for multicast and
unicast separately.
(reboot flag and the Session ID )的值 多播和 单播的情况要分开

[PRS_SOMEIPSD_00631]
Upstream requirements: RS_SOMEIPSD_00002, RS_SOMEIPSD_00003
The information for the reboot flag and the Session ID shall be kept for every senderreceiver relation (i.e. source address and destination address) separately.
不通的发送-接收 关系 要分开使用 (reboot flag and the Session ID)
Note:
This means there shall be separate counters for sending and receiving.
Sending

client / server的sessionID 没联系,各自管理,
比如 client sub server的sessionID 和 server suback client的sessionID 不相关。

• There shall be a counter for multicast.(对于发送端来说 多播只配一路
• There shall be a separate counter for each peer for unicast.
Receiving
• There shall be a counter for each peer for multicast.
• There shall be a counter for each peer for unicast.
[PRS_SOMEIPSD_00258]
Upstream requirements: RS_SOMEIPSD_00006
The detection of a reboot shall be done as follows (with the new values of the current
packet from the communication partner and old the last value received before):
if old.reboot==0 and new.reboot==1 then Reboot detected
OR
if old.reboot==1 and new.reboot==1 and old.session_id>=new.session_id then Reboot
detected

reboot_flag   sessionID
1             1          --->开机 reboot
0             2
0             3
0             4
...   ...
...   ...

0             999
1             1000
1             1001 ---> 主动发起reboot (old.reboot==1 and new.reboot==1 and old.session_id>=new.session_id)
0             1002
...   ...
...   ...
0             0xffff
1             1         --> sessionID 绕回 -- reboot
0             2
0             3
0             4
...   ...
...   ...

[PRS_SOMEIPSD_00259]
Upstream requirements: RS_SOMEIPSD_00002
The second flag of the SOME/IP-SD Flags (second highest order bit) shall be called
Unicast Flag.
Flag第二高位 表示 单播标志
For flags see Figure 5.3.

[PRS_SOMEIPSD_00540]
Upstream requirements: RS_SOMEIPSD_00002
The Unicast Flag of the SOME/IP-SD Header shall be set to Unicast (that means 1)
for all SD Messages since this means that receiving using unicast is supported.
Note:
The Unicast Flag is left over from historical SOME/IP versions and is only kept for
compatibility reasons. Its use besides this is very limited.
此标志设置为1 表示支持单播接收 -- 目前都是单播接收 -- 而没移除的原因是 历史版本的兼容保留了下来

For flags see Figure 5.3.
[PRS_SOMEIPSD_00702]
Upstream requirements: RS_SOMEIPSD_00002
Undefined bits within the Flag field shall be set to ’0’ when sending and ignored on
receiving.
发送端flag的其他位要设置为0,接收端要忽略这些位。

[PRS_SOMEIPSD_00261]
Upstream requirements: RS_SOMEIPSD_00006
After the Flags the SOME/IP-SD Header shall have a field of 24 bits called Reserved.
Flag剩下的24位保留 设置为0

[PRS_SOMEIPSD_00262]
Upstream requirements: RS_SOMEIPSD_00006
After the SOME/IP-SD Header the Entries Array(条目数组:提供、订阅的 事件组们) shall follow.
[PRS_SOMEIPSD_00263]
Upstream requirements: RS_SOMEIPSD_00006
The entries shall be processed exactly in the order they arrive.接收端 按接收的顺序 解析处理。
[PRS_SOMEIPSD_00264]
Upstream requirements: RS_SOMEIPSD_00006
After the Entries Array in the SOME/IP-SD Header an Option Array shall follow.
配置组:和上面的 事件组一一对应,是事件组的详细配置 下面有讲
[PRS_SOMEIPSD_00265]
Upstream requirements: RS_SOMEIPSD_00006
The Entries Array and the Options Array of the SOME/IP-SD message shall start with
a length field as uint32 that counts the number of bytes of the following data; i.e. the
entries or the options.
事件组 和 配置组 前都有 4个字节的长度段,描述对应数组的字节数(不包含长度段本身的4个字节)

5.1.2.3 Entry Format
[PRS_SOMEIPSD_00266]
Upstream requirements: RS_SOMEIPSD_00006
The service discovery shall support multiple entries that are combined in one service
discovery message.
一条SD报文中可以有多条 事件组描述 -- 称为聚包。
Note:
The entries are used to synchronize the state of services instances and the Publish/-
Subscribe handling.
这些条目 体现了 发布 和 订阅的实例状态

[PRS_SOMEIPSD_00267]
Upstream requirements: RS_SOMEIPSD_00006
Two types of entries exist: A Service Entry Type for Services and an Eventgroup Entry
Type for Eventgroups.
分两类条目:find/offer/stopoffer是一类条目格式
                      Subscribe (0x06), StopSubscribeEventgroup (0x06), SubscribeAck (0x07) and SubscribeEventgroupNack (0x07) 是一类条目格式

[PRS_SOMEIPSD_00268]
Upstream requirements: RS_SOMEIPSD_00006
A Service Entry Type shall be 16 Bytes of size and include the following fields in this
order:
• Type Field [uint8]: encodes FindService (0x00), OfferService (0x01) and StopOfferService (0x01)
offer 和 stopOffer 都是 0x01 -->TTL为0时表示停止订阅 ,>0 为提供服务
48页 有对find 报文的详解
50页 有对offer报文的详解

• Index First Option Run [uint8]: Index of this runs first option in the option array.
• Index Second Option Run [uint8]: Index of this runs second option in the option
array.
• Number of Options 1 [uint4]: Describes the number of options the first option run
uses.
• Number of Options 2 [uint4]: Describes the number of options the second option
run uses.
833条有解释 作用
5.1.2.4.1节解释了 为啥一条entry可以有多个配置
因为一个服务可以既有ipv4 又有ipv6 ,既有UDP又有TCP,既有ipv4多播又有ipv6多播,还可能有key-value(下面介绍)或者还有负载均衡选项(下面有介绍)
52页有介绍不同类型SD报文 可以使用哪些端点配置。
Option 0: Load Balancing Option
Option 1: IPv4 Endpoint Option
Option 2: IPv6 Endpoint Option
Option 3: Configuration Option
某 Entry 的字段值为:
Index First Option Run: 1
Number of Options 1: 2
Index Second Option Run: 3
Number of Options 2: 1
解析:
第一个 Option Run:

起始位置:Index First Option Run = 1(指向 Option 1)
选项数量:Number of Options 1 = 2(包含 Option 1 和 Option 2)
包含选项:[Option 1, Option 2](IPv4 和 IPv6 Endpoint Option)
第二个 Option Run:

起始位置:Index Second Option Run = 3(指向 Option 3)
选项数量:Number of Options 2 = 1(包含 Option 3)
包含选项:[Option 3](Configuration Option)
4. 重点总结
Index First Option Run 和 Index Second Option Run:

指向选项数组中的起始位置。
用于关联具体的选项数据。
Number of Options 1 和 Number of Options 2:

描述从起始位置开始的连续选项数量。
用于定义关联的 Option Run 长度。
关联关系:

通过这些字段,Entry 和 Option 数组之间建立了灵活的映射。
支持每个 Entry 使用多个不连续的 Option Run。
实际应用:

这套机制允许在服务发现协议中以高效和结构化的方式携带附加信息

为什么有Index1可以指定连续多个options, 还要index2?
因为有时 两个options不一定是连续的,中间隔了几个。

• Service ID [uint16]: Describes the Service ID of the Service or Service Instance
this entry is concerned with.
提供 或 需要 的serviceID

• Instance ID [uint16]: Describes the Service Instance ID of the Service Instance
this entry is concerned with or is set to 0xFFFF if all service instances of a service
are meant.
offer报文中需要指定具体的 instanceID < 0xffff

sub报文中 可指定 订阅具体的instanceID 或者用0xffff 通配订阅所有的instance。

suback报文 响应 具体的instanceID

• Major Version [uint8]: Encodes the major version of the service (instance).
此服务id的 主版本号 -- 表示已有的接口有重大变化,表示不兼容的变化 --- client对比不一致 会拒绝订阅。

另外:一般客户在矩阵表服务更新时,为了减少工作量 不会改变这个版本号,因为会把矩阵表同步更新释放到 所有ECU供应商 


• TTL [uint24]: Describes the lifetime of the entry in seconds.
服务的生存周期 单位是秒

为0的含义:停止offer

推荐值
低频更新场景:

推荐 TTL:60 ~ 120 秒。
应用于较低频的场景,如不频繁变动的配置类服务。
高频实时场景:

推荐 TTL:10 ~ 30 秒。
适用于需要快速检测失效的场景,如实时数据订阅(状态或传感器数据)。
测试或调试场景:

推荐 TTL:5 ~ 15 秒。
短 TTL 用于快速观察服务和订阅行为的变化。
实际设置的考虑
网络延迟:
如果网络延迟较大,应设置较高的 TTL 值,以避免误判服务失效。
服务的动态性:
对动态性较高的服务,TTL 可以短一些,以确保订阅列表保持更新。

4. 如何处理 TTL 到期
客户端:
客户端需要在 TTL 到期前主动续订(发送新的订阅请求)。
续订的时间间隔一般可以略小于 TTL 值,例如 TTL 的 80%。
服务端:
服务端在 TTL 到期后清除对应订阅信息,节省资源。
不会主动通知客户端失效,需要客户端自行维护续订逻辑。

• Minor Version [uint32]: Encodes the minor version of the service
服务id的次版本号 -- 是向后兼容的变化 --- 表示新增了接口 不影响之前的接口使用 -- 可兼容 -- client对比不一致 打印报警信息 可继续订阅

另外:一般客户在矩阵表服务更新时,为了减少工作量 不会改变这个版本号,因为会把矩阵表同步更新释放到 所有ECU供应商

[PRS_SOMEIPSD_00270]
Upstream requirements: RS_SOMEIPSD_00006
dAn Eventgroup Entry (Type 2) shall be 16 Bytes of size and include the following fields
in this order:
• Type Field [uint8]: encodes Subscribe (0x06), StopSubscribeEventgroup (0x06),
SubscribeAck (0x07) and SubscribeEventgroupNack (0x07).
• Index of first option run [uint8]: Index of this runs first option in the option array.
• Index of second option run [uint8]: Index of this runs second option in the option
array.
• Number of Options 1 [uint4]: Describes the number of options the first option run
uses.
• Number of Options 2 [uint4]: Describes the number of options the second option
run uses.
• Service-ID [uint16]: Describes the Service ID of the Service or Service Instance
this entry is concerned with.
这 5 个 字段的含义 同 268条

• Instance ID [uint16]: Describes the Service Instance ID of the Service Instance
this entry is concerned with. The Service Instance ID shall not be set to 0xFFFF
for any Instance.
订阅、订阅回复的 具体instanceID ,不能用0xffff通配

• Major Version [uint8]: Encodes the major version of the service instance this
eventgroup is part of.
• TTL [uint24]: Descibes the lifetime of the entry in seconds.
• Reserved [uint12]: Shall be set to 0x000.
这几个的含义 同 268条

• Counter [uint4]: Is used to differentiate identical Subscribe Eventgroups of the
same subscriber. Set to 0x0 if not used.
最大到15
为0表示不使用。
client发送 1-15 递增表示更新TTL 或是groupID , 或是由于网络问题 导致重发,server端发现counter值未变化 则表示已订阅过 不做处理。

• Eventgroup ID [uint16]: Transports the ID of an Eventgroup.
订阅的serviceID所在的事件组。

[PRS_SOMEIPSD_00845]
Upstream requirements: RS_SOMEIPSD_00006
The Major Version of an entry (according to [PRS_SOMEIPSD_00268] and
[PRS_SOMEIPSD_00270]) shall match the version of the corresponding Service Interface
主版本号要做一致性检查

Note: While SOME/IP-SD defines the Major and Minor version of a service interface,
SOME/IP messages themselves only use the major version in the interface version
field of the SOME/IP header.
sub 仅对比 Major版本号
 

5.1.2.3.1 Referencing Options from Entries
[PRS_SOMEIPSD_00833]
Upstream requirements: RS_SOMEIPSD_00025
Using the following fields of the entries, options are referenced by the entries:
• Index First Option Run: Index into array of options for first option run. Index 0
means first option of this SOME/IP-SD message.
配置项1 位于队列的起始位置 (0表示第一个)
• Index Second Option Run: Index into array of options for second option run. Index
0 means first option of this SOME/IP-SD message.
配置项2 位于队列的起始位置
• Number of Options 1: Length of first option run. Length 0 means no option in
option run.
配置项1 起始位置连续多少项对应全是配置项1 的配置(一般只有 1 项)

• Number of Options 2: Length of second option run. Length 0 means no option in
option run.
配置项2 起始位置连续多少项对应全是配置项2 的配置

Two different option runs exist: First Option Run and Second Option Run.

Rationale for the support of two option runs: Two different types of options are expected: options common between multiple SOME/IP-SD entries and options different
for each SOME/IP-SD entry. Supporting two different options runs is the most efficient
way to support these two types of options, while keeping the wire format highly efficient.
意思这中 位置 加 长度的设计 对序列化来说比较灵活高效

[PRS_SOMEIPSD_00341]
Upstream requirements: RS_SOMEIPSD_00025
Each option run shall reference the first option and the number of options for this run.
每个选项的应用是 从它起始位置起连续 number of options 个

[PRS_SOMEIPSD_00342]
Upstream requirements: RS_SOMEIPSD_00025
If the number of options is set to zero, the option run is considered empty.
如果options的数量设置为0 则option的 index引用可以认为是无效的

[PRS_SOMEIPSD_00343]
Upstream requirements: RS_SOMEIPSD_00025
For empty runs the Index (i.e. Index First Option Run and/or Index Second Option
Run) shall be set to zero.
如果 options number是0 表示无效 则index也需要设置为0

[PRS_SOMEIPSD_00834]
Upstream requirements: RS_SOMEIPSD_00025
Implementations shall accept and process incoming SD messages with option run
length set to zero and option index not set to zero by ignoring this option run
接收端 看到无效的option则可忽略 不要“大惊小怪”报错

相关文章:

SOME/IP-SD -- 协议英文原文讲解2

前言 SOME/IP协议越来越多的用于汽车电子行业中&#xff0c;关于协议详细完全的中文资料却没有&#xff0c;所以我将结合工作经验并对照英文原版协议做一系列的文章。基本分三大块&#xff1a; 1. SOME/IP协议讲解 2. SOME/IP-SD协议讲解 3. python/C举例调试讲解 5.1.2.2 S…...

IntelliJ IDEA中Maven配置全指南

一、环境准备与基础配置 1.1 Windows 环境下载并配置 Maven 见此篇博文&#xff1a;环境配置 1.2 IDEA配置步骤 打开设置面板&#xff1a;File → Settings → Build → Build Tools → Maven 关键配置项&#xff1a; Maven home path E:\apache-maven-3.9.9 &#xff08;…...

第438场周赛:判断操作后字符串中的数字是否相等、提取至多 K 个元素的最大总和、判断操作后字符串中的数字是否相等 Ⅱ、正方形上的点之间的最大距离

Q1、判断操作后字符串中的数字是否相等 1、题目描述 给你一个由数字组成的字符串 s 。重复执行以下操作&#xff0c;直到字符串恰好包含 两个 数字&#xff1a; 从第一个数字开始&#xff0c;对于 s 中的每一对连续数字&#xff0c;计算这两个数字的和 模 10。用计算得到的新…...

20-R 绘图 - 饼图

R 绘图 - 饼图 R 语言提供来大量的库来实现绘图功能。 饼图&#xff0c;或称饼状图&#xff0c;是一个划分为几个扇形的圆形统计图表&#xff0c;用于描述量、频率或百分比之间的相对关系。 R 语言使用 pie() 函数来实现饼图&#xff0c;语法格式如下&#xff1a; pie(x, l…...

【LLM】R1复现项目(SimpleRL、OpenR1、LogitRL、TinyZero)持续更新

note &#xff08;1&#xff09;未来的工作需亟待解决&#xff1a; 支持大规模 RL 训练&#xff08;PPO、GRPO 等&#xff09;的开源基础框架用于稳定训练的 GRPO 训练超参的自动化调优RL 训练数据的配比&#xff08;难度、领域、任务等&#xff09;基于 Instruct 模型训练 R…...

Linux 内核网络设备驱动编程:私有协议支持

一、struct net_device的通用性与私有协议的使用 struct net_device是Linux内核中用于描述网络设备的核心数据结构,它不仅限于TCP/IP协议,还可以用于支持各种类型的网络协议,包括私有协议。其原因如下: 协议无关性:struct net_device的设计是通用的,它本身并不依赖于任何…...

20241130 RocketMQ本机安装与SpringBoot整合

目录 一、RocketMQ简介 ???1.1、核心概念 ???1.2、应用场景 ???1.3、架构设计 2、RocketMQ Server安装 3、RocketMQ可视化控制台安装与使用 4、SpringBoot整合RocketMQ实现消息发送和接收? ? ? ? ? 4.1、添加maven依赖 ???4.2、yaml配置 ???4.3、…...

FFmpeg进化论:从av_register_all手动注册到编译期自动加载的技术跃迁

介绍 音视频开发都知道 FFmpeg,因此对 av_register_all 这个 API 都很熟悉,但ffmpeg 4.0 版本开始就已经废弃了,是旧版本中用于全局初始化的重要接口。 基本功能 核心作用:av_register_all() 用于注册所有封装器(muxer)、解封装器(demuxer)和协议处理器(protocol),…...

Http升级为Https - 开发/测试服环境

1.应用场景 主要用于开发/测试服环境将http升级为https, 防止前端web(浏览器)出现Mixed Content报错; 2.学习/操作 1.文档阅读 deepseek 问答; 2.整理输出 报错信息: Mixed Content: The page at <URL> was loaded over HTTPS, but requested an insecure XMLHttpRequ…...

C语言预编译

大家好&#xff0c;这里是小编的博客频道 小编的博客&#xff1a;就爱学编程 很高兴在CSDN这个大家庭与大家相识&#xff0c;希望能在这里与大家共同进步&#xff0c;共同收获更好的自己&#xff01;&#xff01;&#xff01; 本文目录 引言正文一、预处理的作用与流程&#xf…...

算法刷题-字符串-151.反转单词

题目 给一串字符串&#xff0c;里面有若干单词&#xff0c;以空格界定单词的结束&#xff0c;翻转其中的单词 输入&#xff1a;s " hello world " 输出&#xff1a;“world hello” 需要注意的是&#xff0c;给定的字符串可能存在头空格、尾空格以及中间的空格数量…...

单片机裸机编程:状态机与其他高效编程框架

在单片机裸机编程中&#xff0c;状态机是一种非常强大的工具&#xff0c;能够有效管理复杂的逻辑和任务切换。除了状态机&#xff0c;还有其他几种编程模式可以在不使用 RTOS 的情况下实现高效的程序设计。以下是一些常见的方法&#xff1a; 1. 状态机编程 状态机通过定义系统…...

图表控件Aspose.Diagram入门教程:使用 Python 将 VSDX 转换为 PDF

将VSDX转换为PDF可让用户轻松共享图表。PDF 文件保留原始文档的布局和设计。它们广泛用于演示文稿、报告和文档。在这篇博文中&#xff0c;我们将探讨如何在 Python 中将 VSDX 转换为 PDF。 本文涵盖以下主题&#xff1a; Python VSDX 到 PDF 转换器库使用 Python 将 VSDX 转…...

DPVS-1:编译安装DPVS (ubuntu22.04)

操作系统 rootubuntu22:~# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.3 LTS Release: 22.04 Codename: jammy rootubuntu22:~# 前置软件准备 apt install git apt install meson apt install gcc ap…...

即将发布书籍 - Yocto项目实战教程:高效定制嵌入式Linux系统

以下这本书《Yocto项目实战教程&#xff1a;高效定制嵌入式Linux系统》即将发布&#xff0c;现在请哪位大佬出山写一个序或者推荐&#xff0c;有兴趣的大佬&#xff0c;请联系我&#xff01; Git仓库地址&#xff1a; https://github.com/jerrysundev/Yocto-Project-Book.git …...

Git 常用指令及其说明

配置相关 # 配置全局用户名 git config --global user.name "YourUsername"# 配置全局邮箱 git config --global user.email "your.emailexample.com"说明&#xff1a;这两条命令用于设置 Git 全局的用户名和邮箱&#xff0c;在提交代码时&#xff0c;这些…...

nginx代理后502

直接访问 ​https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions正常 使用nginx代理后访问出现502 server {listen 9999;server_name 172.21.3.78;location ^~ /compatible-mode {proxy_pass https://dashscope.aliyuncs.com;}location / {proxy_pass…...

大模型WebUI:Gradio全解12——LangChain原理及其agent构建Gradio(1)

大模型WebUI:Gradio全解12——LangChain原理及其agent构建Gradio(1) 前言本篇摘要12. LangChain原理及其agent构建Gradio12.1 LangChain概念及优势分析12.1.1 概念12.1.2 标准化组件接口1. 示例:聊天模型2. 示例:检索器12.1.3 编排组件12.1.4 便于部署12.1.5 可观测性和评…...

【Unity】鱼群效果模拟

鱼群效果模拟 文章目录 鱼群效果模拟Boid算法实现方式version1_CPUversion2_GPUversion3_Multilaterationversion4_Bitonic_Sorting &#xff08;GPU友好&#xff09;version5_Skinning &#xff08;TODO&#xff09; 细节项优化项参考链接 Boid算法 Boid算法是一种模拟群体行…...

PHP入门基础学习五(函数1)

函数 一、概念 1、什么是函数? 函数:封装一段用于完成特定功能的代码 当使用一个函数时,只需关心函数的参数和返回值,就可以完成一个特定的功能 2、php中的函数 PHP 的真正威力源自于它的函数,PHP 中提供了超过 1000 个内建的函数。 php函数分为: 系统内部函数和自…...

Flask RESTful 示例

目录 1. 环境准备2. 安装依赖3. 修改main.py4. 运行应用5. API使用示例获取所有任务获取单个任务创建新任务更新任务删除任务 中文乱码问题&#xff1a; 下面创建一个简单的Flask RESTful API示例。首先&#xff0c;我们需要创建环境&#xff0c;安装必要的依赖&#xff0c;然后…...

【力扣数据库知识手册笔记】索引

索引 索引的优缺点 优点1. 通过创建唯一性索引&#xff0c;可以保证数据库表中每一行数据的唯一性。2. 可以加快数据的检索速度&#xff08;创建索引的主要原因&#xff09;。3. 可以加速表和表之间的连接&#xff0c;实现数据的参考完整性。4. 可以在查询过程中&#xff0c;…...

srs linux

下载编译运行 git clone https:///ossrs/srs.git ./configure --h265on make 编译完成后即可启动SRS # 启动 ./objs/srs -c conf/srs.conf # 查看日志 tail -n 30 -f ./objs/srs.log 开放端口 默认RTMP接收推流端口是1935&#xff0c;SRS管理页面端口是8080&#xff0c;可…...

【决胜公务员考试】求职OMG——见面课测验1

2025最新版&#xff01;&#xff01;&#xff01;6.8截至答题&#xff0c;大家注意呀&#xff01; 博主码字不易点个关注吧,祝期末顺利~~ 1.单选题(2分) 下列说法错误的是:&#xff08; B &#xff09; A.选调生属于公务员系统 B.公务员属于事业编 C.选调生有基层锻炼的要求 D…...

12.找到字符串中所有字母异位词

&#x1f9e0; 题目解析 题目描述&#xff1a; 给定两个字符串 s 和 p&#xff0c;找出 s 中所有 p 的字母异位词的起始索引。 返回的答案以数组形式表示。 字母异位词定义&#xff1a; 若两个字符串包含的字符种类和出现次数完全相同&#xff0c;顺序无所谓&#xff0c;则互为…...

【碎碎念】宝可梦 Mesh GO : 基于MESH网络的口袋妖怪 宝可梦GO游戏自组网系统

目录 游戏说明《宝可梦 Mesh GO》 —— 局域宝可梦探索Pokmon GO 类游戏核心理念应用场景Mesh 特性 宝可梦玩法融合设计游戏构想要素1. 地图探索&#xff08;基于物理空间 广播范围&#xff09;2. 野生宝可梦生成与广播3. 对战系统4. 道具与通信5. 延伸玩法 安全性设计 技术选…...

微软PowerBI考试 PL300-在 Power BI 中清理、转换和加载数据

微软PowerBI考试 PL300-在 Power BI 中清理、转换和加载数据 Power Query 具有大量专门帮助您清理和准备数据以供分析的功能。 您将了解如何简化复杂模型、更改数据类型、重命名对象和透视数据。 您还将了解如何分析列&#xff0c;以便知晓哪些列包含有价值的数据&#xff0c;…...

JavaScript基础-API 和 Web API

在学习JavaScript的过程中&#xff0c;理解API&#xff08;应用程序接口&#xff09;和Web API的概念及其应用是非常重要的。这些工具极大地扩展了JavaScript的功能&#xff0c;使得开发者能够创建出功能丰富、交互性强的Web应用程序。本文将深入探讨JavaScript中的API与Web AP…...

Proxmox Mail Gateway安装指南:从零开始配置高效邮件过滤系统

&#x1f49d;&#x1f49d;&#x1f49d;欢迎莅临我的博客&#xff0c;很高兴能够在这里和您见面&#xff01;希望您在这里可以感受到一份轻松愉快的氛围&#xff0c;不仅可以获得有趣的内容和知识&#xff0c;也可以畅所欲言、分享您的想法和见解。 推荐&#xff1a;「storms…...

uniapp 小程序 学习(一)

利用Hbuilder 创建项目 运行到内置浏览器看效果 下载微信小程序 安装到Hbuilder 下载地址 &#xff1a;开发者工具默认安装 设置服务端口号 在Hbuilder中设置微信小程序 配置 找到运行设置&#xff0c;将微信开发者工具放入到Hbuilder中&#xff0c; 打开后出现 如下 bug 解…...