Microchip
直播中

李诗晴

7年用户 156经验值
私信 关注
[问答]

在RN4870上使用SN命令时获得Err

当执行“SN,和L.字母数字& gt”,例如“SN,QWERTY”或“SN,12345”时,我得到了“ERR”响应,然后是“CMD & Gt”。具有讽刺意味的是,这个名字实际上是被设定的!当启用回音时,没有“错误”。请参阅附件TXT文件SNROR.TXT。还有人看到这个吗?

以上来自于百度翻译


      以下为原文

    I am getting and "Err" response followed by "CMD> " when executing "SN," such as "SN,qwerty" or "SN,12345". Ironically, the name is actually set! There is no "Err" when ECHO is enabled. See attached TXT file SNError.txt. Anyone else see this?


   Attachment(s)

SNError.txt (0.66 KB) - downloaded 36 times

回帖(1)

余煌木

2018-10-30 15:29:01
附加信息,考虑下面的交换,使用“SN”命令作为一个例子:%ReGoo%%输入:$$$CMD>Enter:SN,AbcDeErCMD&G.AKKCMD & GT;这意味着“SN”命令执行导致“Err”,然后出现“CMD & Gt”,这意味着RNC48已经准备好下一个命令。然后我们得到“AOK”,这肯定是RN48 70作为“SN”命令的一部分输出的最后一件事,但是我们已经移动了,因为RN870已经响应“CMD & Gt”,说RN48 70准备好下一个命令,我解释说这意味着我们完成了“SN”命令。它将伪造的“AOK”和额外的“CMD & GT”转换为下一个命令的交换。此外,进一步的实验表明,“SN”命令在回响或关闭状态下的行为相同。是否有描述如何处理RN870的各种其他响应,主要是“错误”响应?以“SN”命令行为为例,显然是“AOK”一个bug出现的无序状态,还是我们必须处理一个特殊的情况?“AOK”即使在“Err”之前也应该存在吗?

以上来自于百度翻译


      以下为原文

    Additional info, consider the following exchange using the "SN," command as an example:
 
%REBOOT%
 
ENTER: $$$
 
CMD>
 
ENTER: SN,ABCDE
Err
CMD> AOK
CMD>
 
This means that the "SN," command executes resulting in "Err", then comes "CMD> " meaning the RN4870 is ready for the next command. Then we get "AOK" which must be the last thing the RN4870 outputs as a part of the "SN," command, but we have already moved on because the RN4870 has already responded "CMD> " saying that the RN4870 is ready for the next command which I interpret to mean we are DONE with the "SN," command. This rolls the bogus "AOK" and the EXTRA "CMD> " into the exchange for the next command.
 
Also, further experimentation indicates the "SN," command behaves the same under ECHO ON or OFF. Is there a description somewhere about how to handle the various other responses, chiefly the "Err" response, for the RN4870? Using the "SN," command behavior as an example, is the apparent out-of-order appearance of the "AOK" a bug or do we have to deal with a special case? Should the "AOK" even be there if it is preceded by "Err"?
举报

更多回帖

发帖
×
20
完善资料,
赚取积分