1
完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
RN4020已经存在了很长时间,是一个很好的选择。我不知道你的意思是“至少应该”。连接到虚拟终端(像TraTrm),并开始调试,例如终端设置、波特率、数据位、奇偶校验、停止位,然后转到命令集并检查正在发生的事情。另外,您可能需要设置设备到工厂的重置。请记住,大多数设备的UART都有很多内置的预置。祝你们好运。
以上来自于百度翻译 以下为原文 The RN4020 has been around for a long time and a good choice. I don't know what you mean by "at least it should". Connect to you virtual terminal (something like TeraTerm) and start your debugging e.g. terminal set-up, baud rate, data bits, parity, stop bit then go to your command sets and check what is going on. Also you might want to set device to factory reset. Remember that most of you device's UARTs have a lot of build in presets. Good luck. |
|
|
|
嗨,如果你的PIC16F87A有一个5V VDD和RN4020有一个3.3V VDD,你将有严重的问题…除非你使用逻辑电平转换器。但是最简单的方法是在10MHz使用PIC16LF87A在3.3V,或者如果你需要像PIC16F18877那样运行在更高的频率上,则使用另一个更新的PIC16。
以上来自于百度翻译 以下为原文 Hi, If your PIC16F877A has a 5V Vdd and RN4020 has a 3.3V Vdd you will have severe issues...unless you use logic level translators. But the easiest way is to use PIC16LF877A at 3.3V at 10MHz or use another more recent PIC16 if you need to run at a higher frequency like PIC16F18877 Regards |
|
|
|
暂时,忘记RN4020…得到一个串行到USB适配器(易趣网,1美元)和;确保您的PIC吐出适当的字符在适当的波特(1152K波特)…将消除一个额外的机会麻烦,如果你运行两个芯片在3.3V…至少在1PK系列之间的PICTX&4020 RX…“防止”超速,并保持你的RX上拉。把你的CMD线低,使两条唤醒线嗨。现在(也可能永远),只是TIPS RTS COTTS,而不是PIC.发送:SF,1SR,3200 000,R,1这将足以找到它在您的Android!!!!几乎没有提到GR、GT、ETC将从4020 UART中跳出设置,因此您可以看到它们在终端上设置为您的喜好(S=SET,G= GET)。V将吐出TEN4020的版本。实际上,您可以将串行适配器从PC终端连接到RN40。20(没有使用PIC),只是为了得到使用RN4020命令的实践,所以你知道该怎么做。这是检查你的RN4020工作的最好方法。请注意,Android应该是从4020和/或上电和上电不成对的,这样就可以通过电话检测到任何新的新变化(比如改变名字)。未配对在设置中稍微隐藏……用32000000个配置文件请求一个随机密码,它将从RN4020吐出到您的终端。如果你没有一个终端(看到它),只是输入一些垃圾…它会配对但不会工作,并且不会告诉你有问题。即使你改变了事情,手机也会记住错误的密码,并且永远不会合作(而不是告诉你有问题),直到你解除配对。SR36000将不要求任何密码和对将没有任何问题(但必须取消配对,如果它被错配)
以上来自于百度翻译 以下为原文 For the moment, forget about the RN4020...get a serial to u*** adapter (ebay, $1) & ensure that your pic is spitting out the proper chars at the proper baud (115.2K baud)...Would eliminate one extra chance of trouble if you run both chips at 3.3V...At very least put 1k in series between the pic TX & 4020 RX..to "prevent" overdrive, and keep you RX pullup. Tie your cmd line low, make both wake lines hi. For now (and probably forever), just tie RTS to CTS, not the pic. Send: SF,1 SR,32000000 R,1 This will be enough to find it on your Android !!! It is barely mentioned anywhere that GR ,GT, etc will Get & spit out the settings from the 4020 Uart, so you can see they were set to your likings (S=Set, G=Get) on the terminal. V will spit out the version of the RN4020 . YOU can actually just hook up the serial adapter from the PC terminal to the RN4020 (no PIC used at all), just to get the practice for using the RN4020 commands, so then you know what to do. This is the best way to check your RN4020 is working. Note that the Android should be unpaired from the 4020 & maybe powered down & up so that any later new changes are detected (such as changing the names) by the phone. Unpairing is slightly hidden in the settings... Paring with the 32000000 config will ask for a random password which will be spit out of the RN4020 onto your terminal. If you don't have a terminal (to see it), and just enter some junk...it will pair but won't work & won't tell you there is a problem. Even if you change things, the phone will remember the wrong password & never cooperate (and not tell you there is an issue), until you unpair & re-pair. SR32060000 will not ask for any password & will pair without any issue (but must unpair first if it was mispaired) |
|
|
|
非常感谢你的回复!我会试试你写的东西,然后带着结果回来!我希望它能起作用)
以上来自于百度翻译 以下为原文 piccandies thank you so much for the reply! I will try what you wrote and come back with the results! I hope it'll work =) |
|
|
|
我会试试你写的东西,然后带着结果回来!到现在为止,你必须有结果和失败报告……这将导致0.50美元罚款/天。
以上来自于百度翻译 以下为原文 I will try what you wrote and come back with the results! By now you must have the results & failed to report them...this results in a $0.50 fine/day |
|
|
|
首先,你的PIC在5V供电,BL在3V3,你需要电压转换器或者在两个电压上工作。但是这似乎不是你的问题,一旦模块被启动,它就启动了。如果你找不到它,也许它不是广告,你以前配置它没有广告吗?这些设置保留在Flash中。你可以试试工厂重置,它不需要通信。试试分而治之的哲学,得到一个UB-UART电缆,并用PIC和BL模块检查你的通讯,看看问题在哪里。我用RN4020经历了一些奇怪的事情,有时他们根本没有反应,我以为他们已经死了,但一段时间后(拔出),他们工作的罚款再次…
以上来自于百度翻译 以下为原文 First, you have the PIC powered at 5V and the BL at 3V3, you need either voltage translators or work at the same voltage on both. But this doesn't seem to be your immediate problem, as soon as the module is powered up it starts. If you can't find it, maybe it's not advertising, did you configure it before for not advertising? Those settings remain in flash. You could try a factory-reset, it doesn't need communications. Try the divide-and-conquer philosophy, get a USB-UART cable and check your comms with both the PIC and BL module, to see where the problem is. I experienced some weird things with RN4020, sometimes they didn't respond at all, I assumed they were dead but some time after (unplugged) they worked fine again... |
|
|
|
“皮卡,你说得对!在我看来,设计有了变化,所以我一直在等待新的PCB。另外,新选择的PIC16LF87A,它在3.3V的工作,也没有在法纳尔最后一次订购。别担心,我一得到结果就跟你说话,就像我答应过的一样。不幸的是,这不是一个优先项目在这里工作,所以它可能还需要一段时间+在星期五我们休息14天……JAAB谢谢你的建议!我已经测试过与HTerm的PIC的UART通信,它工作得很好。没有管理测试BLE……在工作中非常忙碌。
以上来自于百度翻译 以下为原文 @piccandies, you are right! In my defence, there was a change in the design, so i've been waiting for the new PCB. Plus, the new selected PIC16LF877a which works on 3.3V as well was not availible in Farnell last time we ordered. Don't worry, I'll talk to you AS SOON as I get the results, just as I promised. Unfortunatelly, this is not a priority project here at work, so it still might take a while + on friday we take 14 day off.... @joab thank you for the advice! I've tested the UART communication with PIC over HTerm and it worked fine..did not manage to test the BLE yet...super busy at work |
|
|
|
几个问题:RN4020是一个3.3V的一部分,但你是驾驶UART TX针直接从5V部分。你可能炒了那部分。我推荐一个分压器,或者简单地使用3V PIC。更容易的!另一件事是你没有连接CMD/MLDP引脚。即使你不使用MLDP模式,这也应该是低的,所以你可以发送它的配置命令。别让它浮起来!祝你好运!
以上来自于百度翻译 以下为原文 A few issues: the RN4020 is a 3.3V part, yet you are driving the UART TX pin directly from a 5V part. You may have fried the part. I recommend a voltage divider, or simply use a 3V PIC. Easier! The other thing is you have not connected the CMD/MLDP pin. Even if you are not using MLDP mode, this should be low so you can send it configuration commands. Don't leave it to float! Good luck! |
|
|
|
只有小组成员才能发言,加入小组>>
5237 浏览 9 评论
2027 浏览 8 评论
1950 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3202 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2253 浏览 5 评论
772浏览 1评论
662浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
590浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
672浏览 0评论
572浏览 0评论
小黑屋| 手机版| Archiver| 德赢Vwin官网 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-21 22:12 , Processed in 1.400580 second(s), Total 90, Slave 74 queries .
Powered by 德赢Vwin官网 网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
德赢Vwin官网 观察
版权所有 © 湖南华秋数字科技有限公司
德赢Vwin官网 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号