Results 1 to 2 of 2

Thread: How to communicate with USB device (EV3)

  1. #1
    Join Date
    May 2020
    Posts
    9
    Qt products
    Qt5
    Platforms
    Windows Android

    Default How to communicate with USB device (EV3)

    I am working on a Qt based application to interact with Lego Ev3 Mindstorm.

    I am working on Windows 10 platform using Qt 5.14 and Visual Studio 2017;

    I know the brick has a valid USB connection because the Lego application can control it.

    I have tried using libusb but the bulk_transfer apparently is not supported on Windows. I can connect to the device in libusb but the transfer always fails.

    I also tried hidapi. again I can connect to the device but canont write to it.

    Is there a library that is known to work with Qt and windows USB devices?

    Bruce

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,365
    Thanks
    3
    Thanked 5,014 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to communicate with USB device (EV3)

    USB handles multiple different protocols. You need to identify what protocol Ev3 is using for communication and then you have to follow that protocol (it may be some kind of custom serial transmission) in your libusb code. bulk_transfer is probably not the protocol you want.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 0
    Last Post: 1st February 2016, 00:31
  2. Replies: 2
    Last Post: 25th March 2015, 05:01
  3. Replies: 2
    Last Post: 23rd March 2015, 12:43
  4. How to communicate between two forms
    By iamjayanth in forum Qt Programming
    Replies: 2
    Last Post: 7th April 2009, 09:17
  5. How to communicate between two different exe
    By Lele in forum Qt Programming
    Replies: 4
    Last Post: 9th July 2006, 14:02

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.