Accessing USB port programmatically

落爺英雄遲暮 提交于 2019-12-09 23:58:05

问题


I was doing some work on MSP430 series MCU.
I have designed a GUI (using wxPython). Now I want to control microcontroller with GUI, but I can't find any modules in python that can send data to the USB port so that the microcontroller can identify it.

Does there exist any module that can send and receive data to/from USB port?

Thanks in advance.


回答1:


libusb is what you're after. PyUSB may be worth taking a look at also.




回答2:


Does the board expose a serial port over the USB? If so, I highly recommend pyserial.



来源:https://stackoverflow.com/questions/7817026/accessing-usb-port-programmatically

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!