发送/写入/通过串行端口 [英] Sending/writing to/over serial port

查看:94
本文介绍了发送/写入/通过串行端口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 How can I send this through/over the usb port. Do I have to do this with pyserial to send it over the usb port? if so how can I do it. The purpose is to send bits of 0s and 1s through the usb port (For example, for freq = 200, I will obtain a sequence of
4800/100 = 24 bits. This output buffer will be a repeating pattern
of 12 ones followed by 12 zeros (1111111111000000000000,..).





我尝试过:





What I have tried:

<pre> How can I send this through/over the usb port. Do I have to do this with pyserial to send it over the usb port? if so how can I do it. The purpose is to send bits of 0s and 1s through the usb port (For example, for freq = 200, I will obtain a sequence of
4800/100 = 24 bits. This output buffer will be a repeating pattern
of 12 ones followed by 12 zeros (1111111111000000000000,..).

推荐答案

你在这个问题的原始帖子中给出的答案,有人可以帮助我将此代码归为Python? [ ^ ],未发生变化。
The answer you were given in your original post of this question, at Can someone help me change this code to Python?[^], has not changed.


这篇关于发送/写入/通过串行端口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆