Giter Site home page Giter Site logo

Comments (4)

l29ah avatar l29ah commented on August 17, 2024

Have you tried OpenIndex()?

from libmpsse.

skrishnamoorthy5287 avatar skrishnamoorthy5287 commented on August 17, 2024

I believe the Open function essentially uses the OpenIndex function, right?

I have three devices connected to my RPi. If I do:
ls /dev/ttyUSB*

it shows me all three connected (USB0, USB1, USB2). Then I run a code which only implements:
spi=MPSSE(SPI0,ONE_HUNDRED_KHZ,MSB)

after which when I do ls /dev/ttyUSB* again, only USB0 and USB1 are shown. But if I do lsusb, I can still see all three devices there.

Quite confused by this behaviour.

Thank you for your help.

from libmpsse.

l29ah avatar l29ah commented on August 17, 2024

Yes.
I've misinterpreted your question. Sure you'll lose one of the /dev/ttyUSB's since you're allocating the FTDI for SPI. You cannot use the same pins for both UART and SPI.

from libmpsse.

skrishnamoorthy5287 avatar skrishnamoorthy5287 commented on August 17, 2024

Ah thank you. I was concerned it was kicking one of my devices off, but I looked in further and it looks like it first identifies itself as a UART device, that's why I see 3 USB connections, but once I set up the SPI it removes itself from the UART list.

Thank you for your guidance and sorry for the ignorance, first time using SPI over USB with other devices in there :)

from libmpsse.

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.