How to set RTS/DTR using libusb? -


i can't see setter rts/dtr functions in both libusb-0.1 , libusb-1.0. should send smth special using usb_control_msg() ? usb device cdc-device (not ftdi)

libusb can't - should send 'control state' cdc-device or ftdi-specific commands ftdi-device.

for cdc: http://cscott.net/usb_dev/data/devclass/usbcdc11.pdf

`6.2.14 setcontrollinestate request generates rs-232/v.24 style control signals. ...

d1 carrier control half duplex modems. signal corresponds v.24 signal 105 , rs-232 signal rts. 0 - deactivate carrier 1 - activate carrier device ignores value of bit when operating in full duplex mode

d0 indicates dce if dte present or not. signal corresponds v.24 signal 108/2 , rs-232 signal dtr. 0 - not present 1 - present`

ps. xiaofan libusb-devel mailing list.


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -