完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
在这里:http://MicroChIPDeavic.com/FAQ:96:你会发现一个非常简短的微芯片开发者帮助文章:“我如何把RN4020模块放在观察者的角色中去接收广告数据包?”本文的主要内容是:“一个模块作为一个外围设备,另一个模块作为中心。在中心发出命令“j,1”,后面跟着命令“f”。在外围设备上,发出“N”命令,后面跟着要做广告的数据。发布外围设备的“A”命令开始广告。“我已经成功和失败了这个过程,可能是基于外围节点的‘n’和‘a’命令的相对定时,以及中心节点上的‘j,1’和‘f’命令。可能还有其他问题。两个无线节点的配对是最异步的过程。很明显,不能将时间强加给用户。它必须工作,不管这两个节点是如何相互呈现的。当我成功时,我看到的广播消息是:我希望::1001EC01CF7B6,0,35,BRCST:0201040CFF46E616C5265656C4C43.当不成功时,我看到每次都是相同的伪消息::00,-35注意到,两个接收到的消息具有相同的(正确的)MAC地址。如果我不发出“A”命令,则“F”命令什么也得不到。相同的软件结构是成功和失败的基础。看来,如果“A”命令在“F”命令前面一秒钟左右,一切都有效。有没有实现Microchip开发者帮助文章的最佳实践方法?我想感谢RISC和MyZigBee在帮助我达到这一目标方面的帮助,特别是对广告结构的广播消息管理器特定数据字段的解码。如果你们中的任何一个可以评论和评论这个问题,我将非常感激。
以上来自于百度翻译 以下为原文 Go here: http://microchipdeveloper.com/faq:96 There you will find a very short Microchip Developer Help article entitled: "How do I put the RN4020 module into an Observer role to receive advertising data packet?" The text of this article is: "Set up one module as a peripheral and the other as a central. Issue the command ‘J,1’ on the Central, followed by the command ‘F’ . On the Peripheral, issue the ‘N’ command followed by the data you want to advertise. Issue the ‘A’ command on the peripheral to begin advertising." I have had success and failure with this procedure, possibly based on the relative timing of the 'N' and 'A' commands on the peripheral node and the 'J,1' and 'F' commands on the central node. There may be other issues. The pairing of two wireless nodes is about the most asynchronous process there is. Clearly one cannot impose timing on the user. It just has to work, no matter how the two nodes present to each other.. When successful, I see the broadcast message I expect: 001EC01CF7B6,0,-35,Brcst:0201040CFF446E616C526565664C4C43 When not successful I see a bogus message that is the same every time: 001EC01CF7B6,0,,00035B0358E607DD021A08123A000300,-35 Note that both received messages have the same (and correct) MAC address. If i do NOT issue the 'A' command, the 'F' command receives nothing. The same software structure underlies both successes and failures. It does seem that if the 'A' command precedes the 'F' command by a second or so, everything works. Is there a best practices method of implementing the Microchip Developer Help article? I would like to acknowledge both RISC and myZigbee for help in getting me this far, especially the decoding of the broadcast message MANUFACTURER SPECIFIC DATA field of the AD Structures. If either of you could review and comment on this issue I would greatly appreciate it. |
|
相关推荐
3个回答
|
|
嗨,我不知道你把什么叫做最佳实践。你用哪一个PIC来控制RN4020模块?(当我几年前开发了这个模块时,我使用了2×RN4020 PopT尾,因为它更快地尝试命令,然后实现只模拟使用终端窗口手动键入的命令的软件)。最好的方法是看AN1861固件是如何实现的HA。NDLE命令应用注释AN1861:HTTP://www. McCHIP.COM//WavaPabeSe/AppNo.ASPX?AppNeNo.En52528可以看到“C.C.C”如何处理中央项目中的命令,以及外围项目中的“外围设备”。
以上来自于百度翻译 以下为原文 Hi, I'm not sure what you call best practice. Which PIC do you use to control the RN4020 module ? (when I developed with that module a couple of years ago, I used 2 x RN4020 Pictail because it is much faster to try commands and then implement the software which just mimics the command you type manually using a terminal window). The best way is to look how the AN1861 firmware is implemented to handle commands Application note AN1861 : http://www.microchip.com//wwwAppNotes/AppNotes.aspx?appnote=en572728 you can see how the "central.c" handles commands in the central project and same for "peripheral.c" in the peripheral project. Regards |
|
|
|
我正在寻找最好的方法来连接两个RN4020模块,其中两个模块以前从未见过对方,并且它们在哪里共享一个共同的数据块(制造商专用数据),告诉中央节点与外围节点配对是可以的,而忽略其他有效的。连接。本文以HTTP://MyCHIPPrdult.COM/FAQ:96启动了后端流,这是一个基于终端的慢速过程,我正在寻找一个高速的例子。我错过什么了吗?我确实使用了所有的命令/响应交互,大约一半的时间使用没有特定问题的特定的数据字段。我的环境是一个具有PIC24F插件模块的浏览器16/32和一个RN4020 PICTHOST。一个聚合是我的中心节点,另一个聚合是我的外围节点。
以上来自于百度翻译 以下为原文 I am looking for the BEST way to get two RN4020 modules connected where the two modules have never seen each other before and where they both share a common piece of data (MANUFACTURER SPECIFIC DATA) that tells the central node that it is OK to pair with the peripheral node, and ignore other potential connections. The article I started this post stream with (http://microchipdeveloper.com/faq:96) is the terminal based SLOW SPEED procedure for which I am seeking a working HIGH SPEED example. I do not see that covered in AN1861. Am I missing something? I do have all the command / response interactions covered and about half the time using the MANUFACTURER SPECIFIC DATA field without issue. My environment is an Explorer 16/32 with a PIC24F plug-in module, and an RN4020 PICtail. One aggregate is my central node, another aggregate is my peripheral node. |
|
|
|
你收到的广播有两种格式。根据RN4020用户指南,它们有不同的含义:01EC01CF7B6,0,35,BRCST:0201040CFF46E616C526565664 C4C43这是一个不可连接的广告。这只是纯粹的广播信息。我们已经讨论了如何插入有效负载。01EC01CF7B6,0,,0035B0358E607DD021A08123A000 0300,-35。这是一个可连接的广告。意思是你可以用“C”命令直接连接它。下面的128位值是私有服务的UUID。如果您还没有定义任何私有服务,那就是MDP服务的UUID。很容易识别您想要连接的设备。您不必交替发送可连接或不可连接的广告。相反,您定义具有唯一UUID的私有服务,例如,11223、3545、566、8889900AABBCCDDEFEF(您可以使用任何您认为在这个世界上独一无二的UUID)。然后直接用命令“A”做广告。中央设备将发现这个独特的UUID当接收命令“F”广播,而不进入观察员模式。然后中央设备可以解析接收到的数据并找到它想要连接的MAC地址。您不必有复杂的时间来做这件事,只是在定义私有服务时使用具有唯一UUID的简单可连接的广告。
以上来自于百度翻译 以下为原文 SJFreeland The broadcast that you received has two format. According to the RN4020 user guide, they have different meaning: 001EC01CF7B6,0,-35,Brcst:0201040CFF446E616C526565664C4C43 This is a non-connectable advertisement. It is just pure broadcast information. We have discussed how to interpolate the payload. 001EC01CF7B6,0,,00035B0358E607DD021A08123A000300,-35 This is a connectable advertisement. Meaning that you could connect to it immediately with "C" command. The following 128-bit value is the UUID of a private service. If you haven't define any private service, that is the UUID of the MDLP service. It is easy to identify the device that you want to connect. You don't have to alternatively sending connectable or non-connectable advertisement. Instead, you define a private service with unique UUID, for instance, 11223344556677889900AABBCCDDEEFF (you could use any UUID that you think unique in this world. ) and then advertise directly with command "A". The central device will find this unique UUID when receiving broadcastings with command "F", without going into observer mode. Then the central device could parse the received data and find the MAC address that it wants to connect. You don't have to have complex timing to do that, just simple connectable advertisement with unique UUID when defining a private service. |
|
|
|
只有小组成员才能发言,加入小组>>
5242 浏览 9 评论
2031 浏览 8 评论
1955 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3207 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2256 浏览 5 评论
778浏览 1评论
669浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
596浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
679浏览 0评论
577浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-24 00:37 , Processed in 1.349538 second(s), Total 50, Slave 44 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号