完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我公司现有的嵌入式板与RN4020已经在外地。我们对性能不满意,遇到了一百万个问题,所以我们决定在所有未来的单元上安装RN871S。因为我们已经在RN4020模块中有了单元,所以我们需要有一种方法来确定我们在我们的主机MCU固件中附加了哪个模块。两个模块都有一个命令(GDM),分别返回模块模型名称,RN4020或RN871.然而,当加电时,如果我们没有使用SS命令明确地请求设备信息服务(RN4020和0x80为RN870的0x800万),则GDM命令返回垃圾。由于SS命令在两个设备之间格式化不同,有没有办法在不首先配置模块的情况下访问RN4020和RN48的模块模型名称串?整个问题是确定我们安装了哪些模块以及如何配置模块(SS、SR、ST命令等)。
以上来自于百度翻译 以下为原文 My company has current embedded boards with the RN4020 already out in the field. We were unsatisfied with the performance and ran into a million issues, so we've decided to install RN4871s on all future units. Since we already have units in the field with an RN4020 module, we need to have a way to determine which module we have attached in our host MCU firmware. There is a command (GDM) for both modules that returns the module model name, either RN4020 or RN4871 respectively. However, when powered up, it seems that the GDM command returns garbage if we haven't used the SS command to explicitly request the device information service (0x80000000 for RN4020 and 0x80 for RN4871). Since the SS commands are formatted differently between the two devices, is there a way to access the module model name string of both the RN4020 and RN4871 without first configuring the module? The whole point is to determine which module we have installed and how to configure the modules (SS, SR, ST commands etc). |
|
相关推荐
4个回答
|
|
嗨,你有没有更新RN4020到最新的固件?HTTP//www. MyCHIP.COM/WWWORDSTMS/En/RN4020与提示有什么不同,可以帮助您区分这2个模块?当做
以上来自于百度翻译 以下为原文 Hi, Did you update RN4020 to latest firmware ? http://www.microchip.com/wwwproducts/en/RN4020 Is there anything different with the prompt which could help you distinguish between the 2 modules ? regards |
|
|
|
问题是,我不能只是更新我们所有的出货模型,因为这将是非常昂贵的,我有问题的固件修订1.1x,1.2x,和1.3x RN4020模块。到目前为止,在发送GMD命令时,我没有得到任何有用的东西(这说明它在RN48和RN4020两个版本都支持)。我正在发送“GDM rn”,并且也尝试了没有换行符,只有回车。这是在我的主机MCU启动之后,首先运行它的BLE状态机来确定哪个模块被连接,以便它可以向正确的模块发出正确的命令。
以上来自于百度翻译 以下为原文 The problem is that I can't just update all of our shipped out models since that would be very expensive and I'm having the issue on firmware revision 1.1x, 1.2x, and 1.3x RN4020 modules. As of now, I'm not getting anything useful back on the UART when sending the GMD command (which says it's supported on both the RN4871 and RN4020 all revisions). I'm sending "GDMrn" and have also tried without the newline and only the carriage return. This is immediately after my host MCU boots up and first runs it's BLE state machine to determine which module is connected so that it can issue the correct commands to the correct module. |
|
|
|
我与RN4020一起工作,我注意到在重置命令“R,1”之后,我得到了一个垃圾字符。我想这是由于RN4020重新启动时串行线上的一些故障。我不确定,不过,我从来没有用示波器测量过。可能是你收到的UART在上电后得到同样的垃圾吗?如果你发出命令“GDM”两次,放弃第一次阅读呢?
以上来自于百度翻译 以下为原文 I'm working with RN4020 and I noticed that I get a garbage character after reset command "R,1". I guess this is due to some glitches on the serial line when RN4020 reboots. I'm not sure, though, I've never measured with an oscilloscope. Could it be that your receiving UART gets the same garbage after power-up? What if you issue command "GDM" twice and discard the first reading? |
|
|
|
在RN4020重新启动后,在你的缓冲区中至少有一个字节的垃圾——RN4020在重启期间释放它的TX线到地面,最后在你的接收UART中作为0x00。我增加了一个简单的解析Rutin,它移除了接收到的任何0x00字节-它工作。
以上来自于百度翻译 以下为原文 After a reboot of the RN4020 there is at least one byte of garbage in your in buffer - The RN4020 releases it's Tx line to ground during reboot and this ends up as 0x00 in your receiving UART. I have added a simple parsing rutine that removes any 0x00 bytes received - it works. Regards Søren |
|
|
|
只有小组成员才能发言,加入小组>>
5244 浏览 9 评论
2035 浏览 8 评论
1955 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3214 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2261 浏览 5 评论
781浏览 1评论
676浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
602浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
684浏览 0评论
581浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-26 09:31 , Processed in 1.394751 second(s), Total 84, Slave 68 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号