Code Monkey home page Code Monkey logo

Comments (7)

jiegec avatar jiegec commented on August 26, 2024

Which USB devices are you using? This seems to be a device-specific request by Linux driver.

You can find the definition of 0xc0 at https://www.beyondlogic.org/usbnutshell/usb6.shtml#SetupPacket

from usbip.

khacluongspk avatar khacluongspk commented on August 26, 2024

Hi @jiegec ,
I faced same issue. My usb device is USB uart (0403:6010 Future Technology Devices International Limited Dual RS232-HS)
Did you test with usb serial device?

from usbip.

jiegec avatar jiegec commented on August 26, 2024

Hi @jiegec , I faced same issue. My usb device is USB uart (0403:6010 Future Technology Devices International Limited Dual RS232-HS) Did you test with usb serial device?

I see, the linux ftdi driver generates the request:

#define  FTDI_SIO_GET_LATENCY_TIMER_REQUEST_TYPE 0xC0
#define FTDI_SIO_GET_MODEM_STATUS_REQUEST_TYPE 0xc0
#define FTDI_SIO_READ_PINS_REQUEST_TYPE 0xc0
#define FTDI_SIO_READ_EEPROM_REQUEST_TYPE 0xc0

Will try to fix this. Currently I don't have a FTDI serial at hand, I can access one later this month.

from usbip.

jiegec avatar jiegec commented on August 26, 2024

I pushed code to master branch, could you please test? I don't have testbed for now.

from usbip.

jamesadevine avatar jamesadevine commented on August 26, 2024

Thanks! I am indeed emulating an ftdi device.

from usbip.

jiegec avatar jiegec commented on August 26, 2024

If you emulating in Rust code, you might need to implement the new trait UsbDeviceHandler to handle the requests.

from usbip.

jamesadevine avatar jamesadevine commented on August 26, 2024

yup - on it! Will contribute FTDI device handler when I have something that looks like it works...

from usbip.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.