20. RF Master.

RF Master是蓝牙SIG标准化接收器和发送器HCI命令的实现以及其他自定义测试HCI命令。

用户可以通过在带式菜单的“布局”选项卡下选择RF主站来访问RF主站,该选项卡将RF主站装入带日志。或者,用户可以在色带的“工具”选项卡下选择RF主刀具。

../_images/rfmaster.png

图84.RF主检查

打开RF主站时,仅包含RF主相关按钮的功能区添加额外选项卡。目前RF主选项卡包含重启释放UART纽扣。单击“发布UART”按钮时,释放用于通信的分配的UART端口,可以从其他工具中使用,如终端脚本

../_images/rf_master_ribbon.png.

图85.额外的RF主丝带

RF主测试分布在像结构树中,用户可以仅扩展当前使用的测试并折叠其余的测试。用户可以使用延伸或折叠所有测试expand_colly.button found at the top of the tab. In order to run RF Master tests, user should first download the suitable RF Master firmware, depending on the selected chip. User can download the firmware over UART or over JTAG. When more than one devices are connected and user has previously selected a different communication interface in the settings file section dialog, user will be asked to select the COM port or JTAG serial number to be used for the firmware download. RF Master tests run over uart, so user will be asked to select a COM port that will be used for the tests, if JTAG has been selected in both settings file selection window and for RF Master firmware download.

RF Master支持以下测试:

  1. le tx / rx
  2. 未调制的Tx / Rx
  3. 连续TX.
  4. xtal.
  5. 睡觉

笔记

附录A.显示如何为每个芯片系列生成二进制固件。

20.1。le tx / rx

LE接收器发送器工具发送蓝牙LE测试命令。测试需要两个实例,作为发射器操作,另一个实例作为接收器。

20.1.1。发射机

../_images/letx.png.

图86.发射机

用户首先选择分组的频率,有效载荷类型及其长度以字节为单位。然后在测试模式下,用户具有以下选项:

1。连续TX:选择此模式时,蓝牙SIG标准化hci_le_transmitter_test.命令是发送的。在此测试中,DUT以固定间隔发送测试参考报文,直到蓝牙SIG标准化hci_le_test_end.执行命令。在能够运行新的LE TX测试命令之前,用户必须先停止连续数据包传输。

2。#pactets tx:此模式还基于蓝牙SIG标准化hci_le_transmitter_test.命令,差异是用户可以指定要在测试时发送的数据包数。可以在一个测试中发送的最大数据包数为65535(两个字节)。按下启动按钮时,DUT以固定间隔生成指定数量的测试参考报文。

开始按钮:启动所选LE发射器测试。请注意,启动禁用,直到测试完成(已发送指定的数据包)或用户按下停止按钮,因为无法启动第二个LE发射器测试,而另一个LE发射器测试已经运行。

Stop Button:发送蓝牙SIG标准化hci_le_test_end.命令。Can be used to stop the continuous transmission or the transmission with spcified number of packets, before the transmission completes. Note that if a transmission with specified number of packets completes, Stop button is disabled again automatically.

示例日志概述:

../_images/letxpktlog.png.

图87.LE TX命令的示例日志输出

The messages in blue color, marked with====> [日期] Tx <===描述主机发送到目标的命令。绿色的消息,标有====> [date] Rx <===描述目标的回应。在图87.我们可以看到使用操作码0xFC90的命令是发送的,并且固件响应一个事件,其中包含Opcode 0xFC90的参数。当分组传输完成时,信息消息通知用户完成完成,并且固件将事件发送到事件代码0x0e,其也包含其参数中的OPCODE 0xFC90。发送LE TX命令后没有从目标接收事件,表示问题。建议用户从水平工具栏中按“重置”按钮,如果问题仍然存在,请将固件再次下载到目标。

20.1.2。接收者

../_images/lerx.png.

图88.Le接收器

用户选择测试需要频率,如果测试需要额外的RF统计信息。在此测试中,蓝牙SIG标准化hci_le_receiver_test.执行测试。在测试期间,DUT在固定间隔处接收测试参考报文,直到按下停止按钮。按下停止按钮时收到测试结果。用户可以在日志上看到已成功接收的数据包数。如果已请求额外的统计数据,则用户还可以在日志上看到已通过同步错误收到的数据包数以及已通过CRC错误接收的数据包数。

开始按钮:启动所选的LE接收器测试。如果在TRASMITTER侧已经选择了具有特定数量的数据包的测试,则用户应首先启动接收器测试以接收数据包。

Stop Button:发送蓝牙SIG标准化hci_le_test_end.命令。测试结果显示在日志上。

示例日志概述:

../_images/lerxstatslog.png.

图89.Sample log output for LE Rx Command

图89.,当按下开始按钮时,生成第一对TX和RX消息,并按下停止按钮时的第二个TX消息。当主机向使用Opcode 0xFC81发送命令以便使用额外的RF统计信息时启动接收时,固件在其参数中包含0xFC81的事件响应。当使用操作码0xfc82的命令发送以停止接收时,固件用事件包响应,该事件包包含有关已正确接收的数据包数的信息,已通过同步错误收到的数据包数使用CRC错误收到的数据包数。我们观察到LE接收器已正确接收LE发射器发送的100个数据包。发送LE Rx命令后没有从目标接收事件,表示问题。建议用户从水平工具栏中按“重置”按钮,如果问题仍然存在,请将固件再次下载到目标。

20.2。未调制的Tx / Rx

此工具用于执行未调制的TX / RX测试。模式可以是tx或rx。选择TX模式并按下启动按钮时,启动未调制的TX测试。选择RX模式并按下启动按钮时,启动未调制的RX测试。当预测停止按钮时,未调制的RX或TX测试停止。为了查看该测试的结果,频谱分析仪必须连接到目标。

../_images/unmodulated.png.

图90.未调制的Tx / Rx

示例日志输出:

../_images/unmodulatedTxStart.png

图91.用于未调制的TX启动命令的示例日志输出

当未调制的传输启动时,主机将命令与操作码0xfc83和模式0x54和目标响应活动(图91.)。

../_images/unmodulatedrxstart.png.

图92.用于未调制的RX START命令的示例日志输出

When the unmodulated reception starts, host sends a command with opcode 0xFC83 and mode 0x52 and target responds with an event (图92.)。

../_images/unmodulatedTxStop.png.

图93.用于未调制的停止命令的示例日志输出

当未调制的传输或接收停止时,主机向操作码0xFC83和模式发送命令,并使用事件响应目标0x4F和目标(图93.)。

发送未调制的TX,RX或STOP命令后,未接收来自目标的事件,表示问题。建议用户从水平工具栏中按“重置”按钮,如果问题仍然存在,请将固件再次下载到目标。

20.3。连续TX.

这个工具是用来使调制载波with specified payload data in a continuous stream. When Start button is pressed, a modulated signal is continuously transmitted, until the Stop button is pressed. In order to see the results of this test, a spectrum analyzer has to be connected to the target.

../_images/continuostx.png.

图94.连续TX.

示例日志输出:

../_images/continuosstxstart.png.

图95.用于连续TX启动命令的示例日志输出

当连续调制的传输开始时,主机向Opcode 0xFC84发送命令,并使用事件响应目标(图95.)。

../_images/continuoustxstop.png.

图96.用于连续TX STOP命令的示例日志输出

当连续调制的传输停止时,主机向Opcode 0xFC85发送命令,并使用事件响应目标(图96.)。

Not receiving an event from the target after sending a continuous Tx start or stop command, indicates a problem. User is advised to press the Reset button from the horizontal toolbar and, if the problem persists, to download the firmware again to the target.

20.4。xtal.

此工具中包含的一组命令用于配置XTAL16M修剪寄存器。

../_images/Xtal.png.

图97.xtal.

20.4。1。xtal.Output

此命令用于在GPIO P0_5上启用或禁用XTAL16M输出。UART不应使用P0_5,或者与设备的通信将丢失。此命令还启用或禁用:

  1. GPIO P0_6上的XTAL32K输出
  2. rc16m在p0_7上输出
  3. rc32k在p1_0上输出

After sending enable or disable command, firmware responds with an event message. Not receiving the event message, indicates a problematic state. User is advised to press the Reset button from the horizontal toolbar and, if the problem persists, to download the firmware again to the target.

20.4.2。XTAL修剪

使用XTAL修剪部分中包含的一组命令,用户可以读取和写入XTAL16M寄存器的值。这是十进制值,它被写入设备寄存器,而不是存储在闪存中。按下写按钮时,首先调用WRITE命令,然后调用读取命令,以便再次读取修剪值并验证其更改。

示例日志输出:

../_images/xtalread.png.

图98.XTAL读取命令的示例日志输出

用户发送XTAL读取命令和固件响应事件,其中包含修剪值(图98.)。固件用事件响应读写命令。发送命令后没有接收事件,表示有问题的状态。

20.5。睡觉

此工具包含一组命令,使目标睡眠指定的分钟和秒数。DA1468x家族芯片不支持睡眠测试。有3种不同的睡眠模式:

../_images/sleep.png.

图99.睡觉

  1. None: Active mode
  2. 延长睡眠模式
  3. 深睡眠模式

几分钟和秒数是0到255之间的整数数字。如果分钟和秒数设置为零,则设备将永远睡眠。已知的限制:

  1. UART communication is lost when the device wakes up from extended sleep mode.
  2. 设备不会从深度睡眠模式唤醒。