krzysztofgawrys / libmpsse

Automatically exported from code.google.com/p/libmpsse
0 stars 0 forks source link

open usb-serial port #57

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
This is more of a question or feature request than an actual bug. 

What is the expected output? What do you see instead?
get valid handle for the open port

What version of the product are you using? On what operating system?
1.3

Please provide any additional information below.
libmpsse allows you to open ports in I2c/SPI mode. But it would be useful to be 
able to use the same mechanism to open the ports in UART mode. Right now you  
either call the libmpsse Open(...) method for i2c/sPI mode or the 
stdio  "usb = open( "/dev/ttyUSB0", O_RDWR ); " for UART mode. But, does 
libmpsse support a mechanism that would open the port /dev/ttyUSB0 (for 
example) in UART mode? it would be useful to be able to do this based on 
VID/PID instead of the node path.

Original issue reported on code.google.com by andrei.p...@klasonline.com on 9 Jul 2015 at 11:09