Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^6: Controlling USB on Raspberry Pi

by marto (Cardinal)
on Dec 12, 2020 at 13:07 UTC ( #11125060=note: print w/replies, xml ) Need Help??


in reply to Re^5: Controlling USB on Raspberry Pi
in thread Controlling USB on Raspberry Pi

Have you done anything like this before? It's normal not to get the datasheet delivered with the components. Often they're linked on the sellers product page, or easily locatable using a search engine. Ensuring you know what you're buying, before you buy it is the only sensible way to approach this sort of thing?

Replies are listed 'Best First'.
Re^7: Controlling USB on Raspberry Pi
by Bod (Curate) on Dec 12, 2020 at 13:49 UTC

    Have you done anything like this before?

    It's a couple of decades since I last had anything to do with electronics and the world has moved on a bit since then!

    Ensuring you know what you're buying, before you buy it is the only sensible way to approach this sort of thing

    Yes - I can see this being problematic...
    I have found a review on Amazon that says it is Plug-and-Play and implies that it 'just works'. Although I have it plugged into a Windows 10 laptop which recognises it correctly but doesn't give me any clues other than it is successfully configured using a generic driver utilising input.inf which is a start but not very helpful.

    I'm beginning to think that the GPIO route is going to be simpler than USB. At least with GPIO, there is a helpful Amazon review that very clearly shows the set up with a picture.

      "I have found a review on Amazon that says it is Plug-and-Play and implies that it 'just works'. Although I have it plugged into a Windows 10 laptop which recognises it correctly but doesn't give me any clues other than it is successfully configured using a generic driver utilising input.inf which is a start but not very helpful."

      Amazon reviews are the most gamed reviews on the planet, and are generally worthless when it comes to anything technical. Plug and Play could mean many things, depending on who is doing what with whatever. I agree with what stevieb has said, this is a lot easier with off the shelf microcontrollers, and you can bet that someone has already done exactly what you want, in a way that is fairly easy to adapt or build upon (like the methods I previously linked to). If you want to jump in and get your hands dirty with rolling your own, this is of course fine, but don't use Amazon reviews as a substitute for actual research, and expect to have to do a lot of that, research.

        If you want to jump in and get your hands dirty with rolling your own, this is of course fine, but don't use Amazon reviews as a substitute for actual research, and expect to have to do a lot of that, research.

        Oh you of little faith 😜

        I have found this on GitHub which has been installed and allows the USB module to be controlled from the command line. Meanwhile, installing HiPi and RPi::WiringPi has taken 6 hours so far and is still going...lots of dependencies and some warnings about casting between types that look very C'ish to me...

      I'm beginning to think that the GPIO route is going to be simpler than USB.
      || || || \\// \/

      Alexander

      --
      Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

        Well afoken I am sursprised to be saying that the USB controller is working, albeit only from the command line, whereas the GPIO one is still installing modules! Having found this on GitHub and installed it, the USB module just worked...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11125060]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2022-07-04 21:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?