GithubHelp home page GithubHelp logo

Comments (3)

reillyeon avatar reillyeon commented on May 21, 2024 1

Device class 0 means "check the interface class" and interface class 255 means "vendor specific". This is an FTDI device which means it uses a vendor-specific USB serial protocol rather than the standard USB CDC-ACM protocol support by this polyfill. Issue #8 tracks adding support for FTDI chips.

from web-serial-polyfill.

stewartoallen avatar stewartoallen commented on May 21, 2024

turns out the device shows up as class 0, not class 2. not sure what to do with this knowledge because I know nothing about usb-serial. but that's the filter that prevented it from showing. the WebSerial implementations do handle this somehow. android, mac, windows all return the same info below.

Screen Shot 2022-11-26 at 7 15 45 PM

from web-serial-polyfill.

stewartoallen avatar stewartoallen commented on May 21, 2024

On PC, Mac, Android the device shows up as having only one interface which does not match the device class. So I presumed this could be used as both the transfer and control interface (seems this is anticipated in the code). I changed the serial.ts code to allow searching for devices with a different class code from the class code used later for interfaces. But then USBOutTransfer stalls trying to set line coding.

Screen Shot 2022-11-27 at 2 59 28 PM

from web-serial-polyfill.

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.