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.

[参考译文] CC2652R7:通过消息队列传输的最大数据大小

Guru**** 2749395 points

Other Parts Discussed in Thread: CC2652R7

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/1296583/cc2652r7-maximum-data-size-transfer-through-message-queue

器件型号:CC2652R7

您好  

SDK 使用: simplelink_cc13xx_cc26xx_sdk_7_10_01_24

使用的代码: simple_peripheral_lp_CC2652r7_tirtos7_ticlang

我们正在使用消息队列 API,它们都定义在以下路径/home/ti/simplelink_cc13xx_cc26xx_sdk_7_10_01_24/source/ti/posix/tirtos/mqeue.c 中。  


结构 mq_attr
{
长 mq_flags;/*消息队列说明标志:0或 O_nonblock。
从 mq_open()的 ostag 参数初始化。 */
long mq_maxmsg;/*队列中的最大消息数。 */
长 mq_msgsize;/*最大消息大小。 */
mq_curmsgs;/*当前排队的消息数。 */
};

在上面的"struct mq_attr "结构中,我们可以为"mq_msgsize"成员分配的最大大小是什么,  

我 按以下方式使用、但只能获得100字节的数据。  它仅限于100字节 吗? 一个或更多的振铃、  

结构 mq_attr attr;

ATTR.mq_curmsgs = 0;
ATTR.MQ_FLAGS = 0;
ATTR.mq_maxmsg = 10;
attr.mq_msgsize = 100;
mq_qcsbleManager = mq_open (mngr_queuename、(O_WRONLY | O_CREAT)、0、&attr);