简体   繁体   English

在Python的Raspberry Pi USB端口上使用uart

[英]Use uart on Raspberry Pi usb port with Python

im working on a project to connect a Pic to a Raspberry pi via uart. 我正在研究通过uart将Pic连接到Raspberry pi的项目。

I know they both have uart pins, but I need to connect them via usb, the cable also serves as the power supply for the Pic. 我知道它们都有uart引脚,但我需要通过usb连接它们,电缆还可以用作Pic的电源。

So my question is, is it possible to use python, C# might also be an option with mono, to use an USB port on the Raspberry Pi for UART? 所以我的问题是,是否有可能使用python,C#也可能是mono的一种选择,以便将Raspberry Pi上的USB端口用于UART?

this is a tutorial I found about uart on the Raspberry Pi with Python 这是我在使用Python的Raspberry Pi上找到有关uart的教程

a turorial on what is uart 关于什么是什么的故事

Not possible. 不可能。

USB uses two 'pins' for transmission using 'differential signaling'. USB使用两个“引脚”通过“差分信号”进行传输。 This means, both pins are used for sending and transmission. 这意味着两个引脚都用于发送和传输。

In UART you use one pin for transmission and one for reception. 在UART中,您使用一根引脚进行发送,使用一根引脚进行接收。

Without any interface, not possible. 没有任何接口,是不可能的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM