Other Parts Discussed in Thread: CC2340R5
目前实现了SimpleLink App连接LP-EM-CC2340R5,并通过Uart通信。
现在需要在LP-EM-CC2340R5添加测试最大吞吐量的代码,是否有对应的demo?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
目前实现了SimpleLink App连接LP-EM-CC2340R5,并通过Uart通信。
现在需要在LP-EM-CC2340R5添加测试最大吞吐量的代码,是否有对应的demo?
您好,
首先最大吞吐量的测试将取决于中央和外围配置、发送的数据、使用的连接参数以及其他几个因素。
由于协议本身,蓝牙 LE 5 的吞吐量上限约为 1394kbps。
此为26XX示例,但基本逻辑一致,您可以作为参考
注:增加 PDU 大小将增加可发送的数据量。他们仍然需要排队足够的数据以完全填满缓冲区才能看到吞吐量的增加。链接的示例包含执行此操作的逻辑。该示例适用于 CC26XX 器件,因此会有一些代码差异,但一般逻辑应保持不变。
你好Galaxy,谢谢你提供的链接。
但是这个里面throughput_peripheral.c中使用的queue、event、task在simplelink_lowpower_f3_sdk_7_20_00_29中变化较大,是否有适用于simplelink_lowpower_f3_sdk_7_20_00_29架构的?
Hi Galaxy,
COM_TI_SIMPLELINK_LOWPOWER_F3_SDK_INSTALL_DIR\source\ti\ble5stack_flash\icall\src\inc\icall.h中有个event id定义#define ICALL_MSG_EVENT_ID Event_Id_31,在throughput_peripheral.c中使用报错。
C:\ti\simplelink_lowpower_f3_sdk_7_20_00_29\source\ti\ble5stack_flash\common\cc26xx\icall.h中event id的修改如下,但是并没有Event_Id_31
/** * @brief Util Queue Event ID * * In order to wake an application when a message is inserted into its * queue, an event must be posted. Util reserved Event Id 30 for a generic * queue event. */ #ifdef FREERTOS #define UTIL_EVENT_ID_NONE (0) // Event_Id_NONE #define UTIL_EVENT_ID_00 (0x1) // Event_Id_00 #define UTIL_EVENT_ID_01 (0x2) // Event_Id_01 #define UTIL_EVENT_ID_02 (0x4) // Event_Id_02 #define UTIL_EVENT_ID_03 (0x8) // Event_Id_03 #define UTIL_EVENT_ID_04 (0x10)// Event_Id_04 #define UTIL_EVENT_ID_05 (0x20)// Event_Id_05 #define UTIL_EVENT_ID_06 (0x40)// Event_Id_06 #define UTIL_QUEUE_EVENT_ID (0x00100000)//Event_Id_30 #define UTIL_TL_CB_EVENT UTIL_EVENT_ID_00 // Event_Id_00 #else #define UTIL_QUEUE_EVENT_ID Event_Id_30 #endif
请问我该如何替换这个Event_Id_31
您好,我们这边是没有在CC2340R5进行吞吐量测试的,所以目前只能给您提供思路和方案。
第一点是建议您先定义Event_Id_31和29
第二点是由于两个芯片的SDK架构不太一样,建议采取移植。
给您一个链接,您可以参考其中的Porting Simple Peripheral部分,按照给出的guide进行移植
希望对您有所帮助