On Thu, Jan 14, 2021 at 1:52 PM Xiaofan Chen <xiaof...@gmail.com> wrote: > > On Thu, Jan 14, 2021 at 1:44 PM Saeed Mirghasemi <s.mirghas...@gmail.com> > wrote: > > I have already done that and it does not work. Does anything else come to > > your mind? > > > > Also, where do I get a list of commands and their arguments in pysub? I am > > trying to > > set the baud rate and I do not know where to start. > > > > Obviously you need to install libusb as well. Please read the FAQ here. > https://github.com/pyusb/pyusb/blob/master/docs/faq.rst > > As for baud rate or things like that, that is not part of pyusb. You have to > understand the communication protocol of your USB device in order to > use libusb/pyusb. > > I suggest you read some basics of USB first. > http://www.usbmadesimple.co.uk/ > > Then if you do not know the communication protocol, you have to reverse > engineering. > http://www.usbmadesimple.co.uk/
Sorry the link is not correct. https://slomkowski.eu/tutorials/eavesdropping-usb-and-writing-driver-in-python/ > And if your device is a standard USB class device like USB to Serial port, > then it is better not to use pyusb but rather pyserial. > > -- > Xiaofan _______________________________________________ pyusb-users mailing list pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users