简体   繁体   English

如何通过USB将数据从Windows发送到嵌入式Linux

[英]How to send data from Windows to embedded linux over USB

My setup looks like this: A 64-bit box running Windows 7 Professional is connected to a Beaglebone running Angstrom Linux. 我的设置如下:将运行Windows 7 Professional的64位设备连接到运行Angstrom Linux的Beaglebone。

I'm currently controlling the beaglebone via a putty command line on the windows box. 我目前正在通过Windows框上的腻子命令行控制beaglebone。

What I'd like to do is run an OpenCV script to pull some vision information, process it on the windows box, and send some lightweight data (eg a True or False , a triplet, etc.) over the (or another) USB connection to the beaglebone. 我想做的是运行一个OpenCV脚本以获取一些视觉信息,在Windows框上对其进行处理,然后通过(或另一个)USB发送一些轻量级数据(例如TrueFalse ,Triplet等)。与长骨的联系。

My OpenCV program is running using Python bindings, so any piping I can do with python would be preferable. 我的OpenCV程序正在使用Python绑定运行,因此,我可以使用python做的任何管道操作都比较可取。 I've played around with pyserial to receive data on a windows box via a COM port, so it seems like I could use that on the windows side... at a total loss though on the embedded linux front 我一直在玩pyserial来通过COM端口在Windows盒子上接收数据,所以看来我可以在Windows上使用它……尽管在嵌入式linux前端却完全不知所措

Normally on the linux front, if the usb dongle is of the right type, you will see something like /dev/usbserial or similar device. 通常,在Linux前端,如果USB加密狗的类型正确,您会看到类似/ dev / usbserial或类似设备的信息。 Maybe check dmesg after plugging the cable. 也许在插入电缆后检查dmesg。 (on linux you can run find /dev | grep usb to list all usb related devices) (在Linux上,您可以运行find /dev | grep usb列出所有与USB相关的设备)

Just a side note, I've seen the beaglebone has an ethernet port, why not just using a network socket? 只是附带说明,我已经看到beaglebone具有以太网端口,为什么不仅仅使用网络套接字呢? It's all easier than reinventing a protocol on usb. 这比在USB上重新发明协议要容易得多。

If you want to use python, take a look o PyUSB , as you can see for example in Sending data via USB using PyUSB . 如果要使用python,请看一下PyUSB ,例如您可以在使用PyUSB通过USB发送数据中看到的那样。 A related post is PyUSB for the Raspberry Pi . 相关文章是Raspberry Pi的PyUSB

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

相关问题 树莓派,Python:如何通过 usb 串口发送大数据? - Raspberry Pi, Python: How to send large data over usb serial? 如何通过 USB 发送一个 gcode 命令? - How to send one gcode command over USB? 如何(可靠地)读取嵌入式(无头)Linux中的USB条形码扫描器? - How to (reliably) read USB barcode scanner in embedded (headless) Linux? 在Windows下从Linux USB驱动器读取文件 - read files from linux usb drive under Windows 我如何跟踪将数据从任何外部USB传输到PC(Linux)的过程? - How do i track the process of transferringt data from any external usb to PC (linux) ? 如何通过mqtt代理从字典发送数据 - How does one send data from a dictionary over an mqtt broker Python2和3:嵌入式板,读取USB数据 - Python2 & 3: embedded board, read USB data 在Windows中使用Python,如何通过套接字连接发送和检索任意数量的数据? - Using Python in Windows, how do I send and retrieve an arbitrary amount of data over a socket connection? Windows 和 Linux 上的 USB 设备/PyUSB 表现不同 - USB Device/PyUSB on Windows and LInux behaving differently Linux 上的 Python:如何*立即*将文件移动到 USB 以避免操作系统不同步和 ZEDC9F0A5A5EC6184F7 突然拉出问题701CF39BD7328 - Python on Linux: How to *immediately* move files to USB to avoid issues from OS not syncing and the USB suddenly being pulled
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM