Connect Andriod Phone via USB to Arduinos

About Forums Forum Connect Andriod Phone via USB to Arduinos

Tagged: , ,

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1110
    georgeTry
    Participant

    Hello, I am wanting to directly connect a PhoneGap app on an Andriod Tablet by a USB cable, run BreakoutJS, to an Arduinos board. There is not a web server or other device between them. Can we use BreakoutJS in this way? If so, what do we put in the host / port line of script? Thank you
    George

    #1112

    Hi,
    This is not currently possible because BreakoutJS can only communicate over a websocket. It probably wouldn’t be to difficult to get it to work with PhoneGap. You’d need to swap out the WebSocket interface for PhoneGap’s serial interface. See the file Breakout/src/core/WSocketWrapper.js and how it is integrated into Breakout/src/core/IOBoard.js.

    #1113

    Hi,
    This is not currently possible because BreakoutJS can only communicate over a websocket. It probably wouldn’t be to difficult to get it to work with PhoneGap. You’d need to swap out the WebSocket interface for PhoneGap’s serial interface. See the file Breakout/src/core/WSocketWrapper.js and how it is integrated into Breakout/src/core/IOBoard.js.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Forum’ is closed to new topics and replies.