wireshark抓包DCI Frequency Domain Resource Assignment的RIV值怎么计算得到哪个RB开始,连续分配多少个RB,可以用EXCEL宏表示吗
时间: 2024-04-10 11:27:46 浏览: 24
Wireshark抓包中DCI Frequency Domain Resource Assignment字段的RIV值可以通过一定的计算方法来确定RB的起始位置和数量。下面是一个用Excel宏表示的示例:
```excel
Function ExtractRBStart(ByVal RIV As Integer) As Integer
Dim NPRB As Integer
Dim RBStart As Integer
NPRB = (RIV \ 2) + 1
RBStart = RIV Mod 2
ExtractRBStart = RBStart
End Function
Function ExtractNPRB(ByVal RIV As Integer) As Integer
Dim NPRB As Integer
NPRB = (RIV \ 2) + 1
ExtractNPRB = NPRB
End Function
```
在Excel中,你可以将上述代码粘贴到宏编辑器中。然后,你可以在Excel单元格中使用两个自定义函数:ExtractRBStart和ExtractNPRB。
- ExtractRBStart函数接收RIV值作为参数,并返回RB的起始位置。
- ExtractNPRB函数接收RIV值作为参数,并返回连续分配的RB数量。
例如,如果你的RIV值存储在A1单元格中,你可以在B1单元格中输入函数`=ExtractRBStart(A1)`来获取RB的起始位置,而在C1单元格中输入函数`=ExtractNPRB(A1)`来获取连续分配的RB数量。
请注意,这只是一个示例,实际的计算方法可能因不同的协议规范和算法而有所不同。因此,在实际使用中,你需要根据相关的5G协议规范和标准文档来确定正确的计算方法。
相关推荐
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![doc](https://img-home.csdnimg.cn/images/20210720083327.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)