AnsweredAssumed Answered

JN-AN-1172 JN51xx Production_Test Packets Receive Test Question

Question asked by Kai Jia on Sep 6, 2017

English:

I am using official JN-AN-1172 with JN5169. I am supposed to re-write or add some function in the code. When I am trying the Receive Packets Test function. I noticed the channel can not be scaned again when entering Receive Packets Test and scan the same channel again. After searching and reading the original code. I noticed there is a part of code I do not write in my code:

 

if (u8Channel != 26)
{
bJPT_PacketRx(26, &sPacket);
}
else
{
bJPT_PacketRx(11, &sPacket);
}

 

Does this mean this test code can not scan the same channel again? And why?

 

Chinese:

我正在使用芯片为JN5169的电路板进行开发,改写官方提供的代码 JN-AN-1172,目的是添加少部分其他功能。当我改写部分代码后,试用Receive Packets Test时,发现再次进入Receive Packets Test 并选择同一个信道的时候,并不能对该信道进行扫描,收包。函数bJPT_PacketRx(u8Channel,&sPacket); 的返回值始终为FALSE。比较原始的代码后,发现我没有加入如下一段代码:

 

if (u8Channel != 26)
{
bJPT_PacketRx(26, &sPacket);
}
else
{
bJPT_PacketRx(11, &sPacket);
}

 

这是否意味着,官方的代码也存在这样不能重复扫描同样信道的问题?如果是,原因又是什么呢?

 

附件是官方原始代码。

Original Attachment has been moved to: AN1172_CustomerModuleEvalTool.c.zip

Outcomes