第9步:功耗测试 低功耗蓝牙应用一般都是用电池供电的,所以对功耗要求非常高。如何有效快速的测试nRF5的功耗,尤其是BLE各种应用场景下的功耗,就显得尤为重要。Nordic提供了一个在线的理论功耗计算工具:https://devzone.nordicsemi.com/power/,你只需输入你的蓝牙应用场景,该在线工具就可以自动算出这种场景下nRF5芯片的功耗大概为多少,网页截图如下所示: 该工具的使用说明请参考:https://devzone.nordicsemi.com/b/blog/posts/nrf52-online-power-profiler。 除了这个在线的理论功耗计算工具,Nordic还提供了一块电流测试板:PPK(Power Profiler Kit),PPK可以用来实时测试用户板的VDD功耗,就像专业的电源测试工具或者示波器一样,PPK购买链接为:https://www.nordicsemi.com/About-us/BuyOnline?search_token=nRF6707, 使用说明请参考:https://www.nordicsemi.com/Software-and-Tools/Development-Kits/Power-Profiler-Kit/Download#infotabs。 如果对BLE功耗测试原理感兴趣的话,可以参考如下两篇贴子:https://devzone.nordicsemi.com/tutorials/b/hardware-and-layout/posts/current-measurement-guide-introduction和https://devzone.nordicsemi.com/tutorials/b/hardware-and-layout/posts/nrf51-current-consumption-guide 一般来说,测试BLE功耗时,nRF5可以下载HRS程序(关掉UART日志功能)或者power profiling程序,这2个程序都可以准确反应nRF5芯片的蓝牙功耗情况。Power profiling程序放在SDK目录:<InstallFolder>\examples\ble_peripheral\ble_app_pwr_profiling,测试说明见:https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.3.0%2Fble_sdk_app_pwr_mgmt.html&cp=5_1_4_2_2_20。HRS程序放在SDK目录:<InstallFolder>\examples\ble_peripheral\ble_app_hrs,测试说明见:https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.3.0%2Fble_sdk_app_hrs.html&cp=5_1_4_2_2_13。 第10步:勘误表自查勘误表(Errata或者PAN)内容一般都是关于软件开发注意事项的,软件出问题的时候或者正式量产之前,建议自查一下勘误表,以防踩到“坑”。请注意,虽然勘误表里面的条目很多,但真正跟你有关系的其实很少,原因有二:一勘误表里面的workaround已经集成到SDK里面,二错误出现的条件非常极端,你的应用不会有这种情况,所以不要被勘误表长长的列表给吓倒了。如果你使用的是最新版本的SDK和最新版本的芯片,一般而言,勘误表跟你无关,但如果你使用的是老版本SDK或者老版本芯片,那么就一定要自查勘误表了。 - nRF52840勘误表:https://infocenter.nordicsemi.com/index.jsp?topic=%2Fstruct_nrf52%2Fstruct%2Fnrf52840_errata.html&cp=3_0_1
- nRF52832勘误表:https://infocenter.nordicsemi.com/index.jsp?topic=%2Fstruct_nrf52%2Fstruct%2Fnrf52832_errata.html&cp=3_1_1
- nRF52810勘误表:https://infocenter.nordicsemi.com/index.jsp?topic=%2Fstruct_nrf52%2Fstruct%2Fnrf52810_errata.html&cp=3_3_1
- nRF52811勘误表:https://infocenter.nordicsemi.com/index.jsp?topic=%2Fstruct_nrf52%2Fstruct%2Fnrf52811_errata.html&cp=3_2_1
- nRF51822勘误表:https://infocenter.nordicsemi.com/index.jsp?topic=%2Fstruct_nrf51%2Fstruct%2Fnrf51822_pan.html&cp=4_4_1
第11步(可选):认证根据产品需要,你可以去做BQB认证,SRRC认证,FCC认证,ETSI认证,环保测试等。Nordic产品本身已经通过了上述所有测试和认证,对用户来说,这些认证工作,更多的是一些文档工作。一般来说,推荐用户去选择一家专业的实验室或者第三方机构去做这些认证,这样可以保证通过而且不耽误项目进度。 Nordic提供了两套射频测试固件,一套是DTM测试代码,符合蓝牙DTM标准,位于目录:SDK安装目录\examples\dtm\direct_test_mode,具体说明请参考:https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.3.0%2Fble_sdk_app_dtm_serial.html&cp=5_1_4_5;一套是Radio test测试代码,用于直接测试各个射频通道物理性能,比如频偏等,位于目录:SDK安装目录\examples\peripheral\radio_test,具体说明请参考:https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.3.0%2Fnrf_radio_test_example.html&cp=5_1_4_6_29。BQB认证或者SRRC认证,一般推荐使用DTM代码。另外如果你需要测试2.4G丢包率,也推荐使用DTM代码,这个在量产测试的时候非常有用。当然,SRRC认证也可以使用radio test代码,radio test代码除了可以测试蓝牙和2.4G,还可以用来测试802.15.4的物理层,比较适合用来进行定频测试以及频偏测试等。 BQB认证分终端产品和底层component两种认证,做终端产品认证需要用到component认证证书,即QDID,大家可以到如下的蓝牙联盟官网查询Nordic所有认证产品的 QDID:https://launchstudio.bluetooth.com/Listings/Search,在搜索框输入“Nordic Semiconductor ASA”,即可搜出Nordic所有QDID。 除了上述认证,Nordic还提供如下报告: - 企业责任报告:https://www.nordicsemi.com/About-us/Corporate-social-responsibility。
- QA相关文档及证书:https://www.nordicsemi.com/About-us/Quality-Assurance。
- 环境报告也是放在infocenter里面:nRF52840 (nordicsemi.com),大家可以在各个产品中找到对应的环境报告,例如,nRF52840的环境报告链接如下所示:
|