Microchip
直播中

彭丞峥

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

通过RN4871的UART将串行数据从Windows 10 PC获取到MMU

在使用RN42几年后,我注意到RN48 71具有类似的简单命令结构。我一直使用Windows中的COM端口将数据流到RN42,结果可靠,因为我需要发送的数据量很小,BL似乎是市场正在进行的方式(伴随着低电池消耗的巨大好处)。他将非常感激。数据表给出了一个苹果设备的例子,但没有提到PC。

以上来自于百度翻译


      以下为原文

    Having used the RN42 for some years, I note that the RN4871 has a similar easy command structure. I have always used the COM port in Windows to stream data to the RN42 with reliable results.
As the quantity of data I need to send is small, and BL seems to be the way the market is going (with the huge bonus of low battery consumption).
Any pointers on to how to get a PC (via a COM port) to talk to the RN4871 would be greatly appreciated. The data sheet gives an example of an Apple device, but no mention of a PC.

回帖(1)

余少华

2018-11-26 16:05:36
RN1478内部的物理引脚连接到USAT。这是一个线/引脚的TX和一个线/引脚RX允许同时通信之间的CPU和什么它连接到。在梳棉机行业中,采用USAT作为连接CPU芯片的引脚与Land;Word Word & GT的主要方式。但这不是一种很好的物理连接方式,即使是在PCB上的短距离运行,它也容易被注入其他信号(噪声)。3伏的信号+2伏的噪声=5伏的信号和噪声在接收端。即使这5伏是(RES划分),所产生的3伏仍然是3 + 2=5组合的混合混合物。此外,如果它的2伏SIG和3伏的噪音,甚至更糟。现在噪音控制着更多的5伏电压。因此,通过USAT的TX /RX被本地化为接近USAT本身。粗规则总是有例外的,比如用USB连接你的COMP。(当今最常见的)。需要再次使用两个物理线,但它们以不同的方式使用。这两条导线都是用来进行单向通信的。无论是/CPU;gt;还是lt;设备& gt;都可以使用这对,但是,“一次只有一个”可以做到这一点。这两条线叫做D+和D-。也就是说,数据加和数据减去。它们是一组称为A& LT;差分对GT的两个1/2。这两条电线保持/运行/放置在物理上彼此接近,并具有相同的潜力,但是,一个是负的,另一个是加上的。因此,如果一个外部信号确实被添加到信号路径,它将同时“同时”添加到两条导线上,并且两个注入将具有相同的“极性”。接收器将D+和D-连接到求和放大器,但D首先被反转成相反的电位,然后插入到求和放大器中。由于无论D+和D-的任何潜在的信号都是相同的,当D被反转并将加法放大器加入到D+中时,得罪的噪声有效地抵消了“自身”。这被称为“共模抑制比”。对于所需信号,2减为2加号,加到2加号等于4加号。但是,对于不需要的信号,2加号变为2减,并加到2加号等于“0”。您需要的是接口芯片,使USAT与D+/D线O匹配。USB USB端口。然后,您可以使用运行TARA术语的COMP或一些终端仿真器与使用ASCII命令接口的RN878实现真实世界的接口。有许多便宜的板使用流行的FR23芯片由FTDI设计和专门用于这一目的。看一下斯帕克福德的视线。HTTPS://www. SPARKFUN.COM/PROSPIDS/12731 COMP链路是USB迷你,USAT侧是DIP或SIP PIN连接器或只是焊丝。我相信RN48 71被设计成一个裸露的蓝牙模块,它是难以置信的小,可以连接到用户需要的I2C、SPI和USAT,但不包括在模块本身上,以节省功耗和最终用户成本,而不必支付模块的费用。不必要地包含在模块上。

以上来自于百度翻译


      以下为原文

    The physical pins of the RN4871 internally connect to the USART. That is one wire/pin for TX and one wire/pin for RX allowing for simultaneous communication between the cpu and what ever it is connected to. The usart was adopted as the main way of connecting the pins of the cpu chip with the on the board as the comp industry grew. But it not a good way of physically connecting over long distances and even in short runs like on pcb, it is prone to being injected with other signals (noise). 3-volts of signal + 2-volts of noise = 5-volts of signal and noise at the receiving end. Even if that 5-volts are (res divided) the resulting 3-volts still is a combined mixture of the 3+2=5 combo. Also if it where 2-volts sig and 3-volts noise, even worse. Now the noise is controlling the greater amount of the resulting 5-volts. So, TX/RX by way of usart is localized to close proximity of the usart itself. There are always exceptions to the rule of coarse.
 Connecting with your comp using USB for instance. (the most common found today). requires the use of two physical wires again, but they are used in a different way. These two wires are "both" used for a one way communication to take place. It is possible for either or to use the pair, but, "only one at a time" can do so.
  The two wires, are called D+ and D-. That is, Data Plus and Data Minus. They are two 1/2's of a set known as a . Both wires are kept/run/placed physically close to each other and have the same potential but, one is minus and the other is plus. Therefor if an outside signal does get added to the signal path, it will be added "simultaneously" to both wires "equally" and both injections will have the same "polarity". The receiver connects both D+ and D- to a summing amp but the D- is first inverted to the opposite potential then plugged into the summing amp. Since the unwanted signal of whatever potential is the same on both D+ and D-, when the D- gets inverted and threw the summing amp added to the D+,  the offending noise is effectively cancels "itself" out. This is called "Common Mode Rejection Ratio".
--For the wanted signal, 2-minus changed to 2-plus and added to 2-plus equals 4-plus.
--But, for the unwanted signal, 2-plus changed to 2-minus and added to 2-plus equals "zero".
 
What you need is an interface chip to mate the USART with the D+ / D- lines of the USB comm port. Then you can use the comp running Tera-Term or some terminal emulator to real world interface with the RN4871 using ASCII command interface. There are many inexpensive boards using the popular FR232 chip made by FTDI designed and dedicated for this very purpose.. Have a look on Sparkfun's sight. https://www.sparkfun.com/products/12731 The comp link is USB mini and the usart side is a dip or sip pin connector or just solder wires.
  I believe the RN4871 is designed as a bare bones Bluetooth module which is unbelievably small and can be interfaced to I2C, SPI, and or USART which ever is needed by the user but not included on the module itself to conserve power consumption and end user cost not having to pay for modules that are unnecessarily included on the module.
 
举报

更多回帖

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