3 Replies Latest reply on Dec 13, 2014 9:02 PM by Atomusj

    Issue with Keyboard on USB Host using Arduino




      I am getting started with Edison Using the Arduino Board and I am trying the Keyboard Controler exemple from the Arduino Tool.


      I have plugged a 12V 200mA AC adapter, the switch on the mini USB setting (to push the code), and I am getting the "B0100000063f694" error.




      This error seems to be linked with a crash (for instance with Wifi)  :

      ** B0100000063f694 error


      Thinking that the issue was that there was no Keyboard plugged, I have modifyed the "Blink" script to add the keyboard initialisation that show the same error (and does not blink at all - without the code in red, it was working properly) :


       // Require keyboard control library
      #include <KeyboardController.h>
      // Initialize USB Controller
      USBHost usb;
      // Attach keyboard controller to USB
      KeyboardController keyboard(usb);
      // Pin 13 has an LED connected on most Arduino boards.
      // give it a name:
      int led = 13;
      // the setup routine runs once when you press reset:
      void setup() {               
        // initialize the digital pin as an output.
        pinMode(led, OUTPUT);    
      // the loop routine runs over and over again forever:
      void loop() {
        digitalWrite(led, HIGH);   // turn the LED on (HIGH is the voltage level)
        delay(1000);               // wait for a second
        digitalWrite(led, LOW);    // turn the LED off by making the voltage LOW
        delay(1000);               // wait for a second



      Then, I switch the switch the USB with an USB keyboard plugged. The keyboard now light up, and it does show up in /dev/input/by-id.



      But on reboot (since I don't know how to force the reboot of the Arduino code), I still don't see the LED blinking.


      I am doing something wrong ? The keyboard is working, everything else is Ok, but I can't make the keyboard working.



      Thank you for your help.