完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,我们正试图让我们的头圆使用手持式条形码扫描仪(4)与RN4020计划纳入我们的下一个产品,将使用一个小的微芯片8位处理器。为了保持代码的紧凑性,代码将在汇编程序中。作为第一步,遵循用户手册,我们设置了TARA终端并获得:DTA1= EC1466108BNEX=开发人员帮助连接=3A62439 F84A,0Booal= 3A62439 F849 A,0Server服务=800 000 000个特征=900000 000 TXPOWER=4LS180A 2A25000 0B,V2A27,0。15. VANDLC180A 2A2400 1402,02 2A2600 16,02 2A2600 1A,02 2A29001C,02 2A29001E,02 2A2A,0200 2180F 2A1900 25,02 02 2A1900 261813 2A4F,04 2B,04 2A31002D,00 2A31002E,101812 2A4A,032,02 2A4C,034,04 2A4E,0363606 02A4B,00 38,02 2A4 00,V 2A26000 0F,V 2A290011,V 2A29 00 13,V 2A2400D,03B,02 2A4D,9003C,10 2A4D,03F,0E 2A2200 42022A22DeCURV,2A4BR,05010906A101050719E029 E71500 250175019508102。在这一点上,我们已经停顿;如何从扫描仪向RN4020引导数据的问题暗示着我们。非常感谢体面的参考书和建议。我们已经开始使用“血腥低能”,但它让我们变得不明智,就像我们可以挖掘的所有其他参考文献一样,它假定RN4020将与AdRAND/Apple / Windows设备——或另一个RN4020进行对话。
以上来自于百度翻译 以下为原文 Hi, We are trying to get our heads round BLE using a hand held barcode scanner (4.0) with the RN4020 which is planned to be incorporated into our next product which will use a small Microchip 8 bit processor. In order to keep the code compact, the code will be in assembler. As a first step, and following the user manual, we set up Tera Terminal and got: D BTA=001EC046108B Name=DeveloperHelp Connected=3A62439F849A,0 Bonded=3A62439F849A,0 Server Service=80000000 Features=90000000 TxPower=4 ls 180A 2A25,000B,V 2A27,000D,V 2A26,000F,V 2A28,0011,V 2A29,0013,V 2A24,0015,V END lc 180A 2A23,0012,02 2A24,0014,02 2A25,0016,02 2A26,0018,02 2A27,001A,02 2A28,001C,02 2A29,001E,02 2A2A,0020,02 180F 2A19,0025,02 2A19,0026,10 1813 2A4F,002B,04 2A31,002D,00 2A31,002E,10 1812 2A4A,0032,02 2A4C,0034,04 2A4E,0036,06 2A4B,0038,02 2A4D,003B,02 2A4D,003C,10 2A4D,003F,0E 2A22,0042,02 2A22 END curv,2a4b R,05010906A101050719E029E715002501750195088102. At this point we have ground to a halt; the question of how to prod data from the scanner to the RN4020 alludes us. Any thoughts on a decent reference book or advice would be greatly appreciated. We have read the 'Getting Started with Blootooth Low Energy' but it leaves us non the wiser as in common with all other references we can dig up, it assumes the RN4020 will be talking to a Android/Apple/Windows device - or another RN4020. |
|
相关推荐
3个回答
|
|
首先,你不需要深入到汇编程序中去编写紧凑代码,编译器今天非常擅长优化,只写高效和精益代码。避免汇编程序的原因有很多,我将使用私有服务。我会在读者端定义BT中的服务器服务。然后,另一个BT将连接到它并用LC(客户端服务)读取服务。您可以使用完整的UUID或短句柄来读取/写入它。参考RN4020用户手册,有一些定义服务和传输数据的例子。
以上来自于百度翻译 以下为原文 First, you don't need to dive into assembler to have compact code, compilers are today very good at optimising, just write efficient and lean code. There is a range of reasons to avoid assembler. I would use private services. I would define a server service in the BT at the reader side. Then the other BT will connect to it and read the service with LC (client services). You can use either the full UUID or the short handle to read/ write to it. Refer to the RN4020 User manual, there are some examples of defining services and transferring data with them. |
|
|
|
在回答你的最后一句话时,你应该让RN4020做他们之间的魔法,并考虑使用旧学校UART与他们交流。这个和知道命令是你需要的所有成功的沟通。
以上来自于百度翻译 以下为原文 In reply to your last sentence, you should let the RN4020 do the magic between them and think of communicating to them using the old school UART. This and knowing the commands is all you need to have successful communications. |
|
|
|
为了澄清:你提到的扫描仪产品是否已经有RN4020,或者你将RN4020和PIC添加到它,这样你就可以通过蓝牙发送扫描仪信息了吗?
以上来自于百度翻译 以下为原文 Just to clarify: Does the scanner product you mention already have an RN4020, or are you adding an RN4020 and PIC to it so that you can then transmit the scanner info elsewhere over Bluetooth? |
|
|
|
只有小组成员才能发言,加入小组>>
5188 浏览 9 评论
2009 浏览 8 评论
1933 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3181 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2232 浏览 5 评论
743浏览 1评论
629浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
512浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
641浏览 0评论
538浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-29 11:22 , Processed in 1.331048 second(s), Total 80, Slave 64 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号