我运行的是SDK5.30的版本的,采集到的数据原本是通过Python脚本通过USB线传输到电脑,我现在想要把数据通过IO口传输到其他的单片机上可以实现吗?如果可以实现应该在SDK5.30中coordinator代码文件中的那个文件里修改代码呢?
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.
我运行的是SDK5.30的版本的,采集到的数据原本是通过Python脚本通过USB线传输到电脑,我现在想要把数据通过IO口传输到其他的单片机上可以实现吗?如果可以实现应该在SDK5.30中coordinator代码文件中的那个文件里修改代码呢?
您好,
我现在想要把数据通过IO口传输到其他的单片机上可以实现吗?
这个工程师答复是可以实现的。
那个文件里修改代码呢?
这个问题工程师答复是可以使用第二个可用的 UART、I2C 或 SPI 来执行此操作。
您好,
可以创建一个单独的任务来处理串口通信。
收到事件 RTLSSRV_CONNECTION_CTE_IQ_REPORT_EVT 或 RTLSSRV_CL_CTE_IQ_REPORT_EVT(取决于使用的 AoA 类型)后,可以在 application file (rtls_coordinator.c) 中访问 IQ 数据。
您好,
抱歉让您久等了,由于工程师假期原因,回复将会有所延迟,敬请谅解。
一有答复即刻联系您。
您好,
请查看我给您的代码,尤其是 pReport->iqSamples:
case RTLSSRV_CONNECTION_CTE_IQ_REPORT_EVT:
{
rtlsSrv_connectionIQReport_t *pReport = (rtlsSrv_connectionIQReport_t *)pEvt->evtData;
RTLSAoa_processAoaResults(pReport->connHandle,
pReport->rssi,
pReport->dataChIndex,
pReport->sampleCount,
pReport->sampleRate,
pReport->sampleSize,
pReport->sampleCtrl,
pReport->slotDuration,
pReport->numAnt,
pReport->iqSamples);
}
break;
case RTLSSRV_CL_CTE_IQ_REPORT_EVT:
{
rtlsSrv_clIQReport_t *pReport = (rtlsSrv_clIQReport_t *)pEvt->evtData;
RTLSAoa_processAoaResults( pReport->syncHandle,
pReport->rssi,
pReport->channelIndex,
pReport->sampleCount,
pReport->sampleRate,
pReport->sampleSize,
pReport->sampleCtrl,
pReport->slotDuration,
pReport->numAnt,
pReport->iqSamples );
}
break;
您好,
这个问题与初始帖(为 SDK 5.30 编写)无关。 请打开一个新帖以避免混淆也方便他人查询。
感谢您的理解。