HID USB code for UDOObuntu to communicate with a microcontroller

Discussion in 'General Programming Discussion' started by ahadaheda, Oct 3, 2015.

  1. ahadaheda

    ahadaheda New Member

    Joined:
    May 26, 2014
    Messages:
    1
    Likes Received:
    0
    I want to use the Cypress PSoC microcontroller to communicate over USB with the UDOO imx6. Prefer to use a Generic HID interface in UDOObuntu. Can someone point me to some example code where I can get started on the linux side of things? I am trying to create an interface GUI using UDOO that will control a number of different things in the PSoC. UDOO will be host and PSoC the device.
     
  2. filipxsikora

    filipxsikora New Member

    Joined:
    Feb 11, 2015
    Messages:
    5
    Likes Received:
    0
    http://www.libusb.org/ would be a good way to do it. I don't know specifics of Generic HID interface, but basically you will have to specify functions that will communicate with USB endpoints. There are many tutorials over the internet for that.
    However, I don't know, if libusb is included in UDOO's Linux or at the repository, so probably you will have to build it by yourself.
     

Share This Page