Java tools for UDOO Neo board

Discussion in 'UDOO NEO' started by Cyril BOSSELUT, Dec 18, 2015.

  1. Cyril BOSSELUT

    Cyril BOSSELUT New Member

    Joined:
    Oct 30, 2015
    Messages:
    23
    Likes Received:
    14
    Java tools for UDOO Neo board are a set of java class allowing access to GPIOs, sensors, serial port, a complete REST service and to an 16x2 LCD wired using GPIOs.
    Those tools are published under GPL V2 and source are available for download on Github https://github.com/BOSSoNe0013/NeoJava
    Push request are also welcome :)
    Latest release added accelerometer, magnetometer and gyroscope sensors support.

    I've also published a java client for the REST service, UDOO Neo Controller, allowing you to easily managed GPIOs through a network connection :
    https://github.com/BOSSoNe0013/UDOONeoController
    [​IMG]
     
    eRJe and Andrea Rovai like this.
  2. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    I'm impressed! Such a great job you did!
     
    Francesco likes this.
  3. Cyril BOSSELUT

    Cyril BOSSELUT New Member

    Joined:
    Oct 30, 2015
    Messages:
    23
    Likes Received:
    14
    Thanks Andrea :)
     
    Andrea Rovai likes this.
  4. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
  5. Cyril BOSSELUT

    Cyril BOSSELUT New Member

    Joined:
    Oct 30, 2015
    Messages:
    23
    Likes Received:
    14
    Non that's an homonym. My twitter account is @BOSSoNe0013 ;)
     
  6. Flavio Pompermaier

    Flavio Pompermaier New Member

    Joined:
    Apr 13, 2016
    Messages:
    20
    Likes Received:
    2
    Is there any version for Udoo Quad?
     
  7. Maurice

    Maurice Active Member

    Joined:
    Oct 13, 2015
    Messages:
    394
    Likes Received:
    87
    Aren't the GPIOs just accessed as files? No reason it wouldn't work on Quad, and it shouldn't be too difficult to write it yourselves.
     
  8. Cyril BOSSELUT

    Cyril BOSSELUT New Member

    Joined:
    Oct 30, 2015
    Messages:
    23
    Likes Received:
    14
    I don't own a quad but i think it should work, at least thé GPIO part

    Envoyé de mon Nexus 5X en utilisant Tapatalk
     
  9. Flavio Pompermaier

    Flavio Pompermaier New Member

    Joined:
    Apr 13, 2016
    Messages:
    20
    Likes Received:
    2
    That's what I'm doing :)
    I've just forked your repo to make NeoJava work on Neo Quad (https://github.com/fpompermaier/NeoJava).
    I also mavenized the project to simplify a bit some boring tasks (like avoid the manual part of downloading required dependencies, keep version and app name in the code, creating the manifest, etc..).
    Now it works just calling ./jrun.sh but I had to use /dev/ttymx3 instead of /dev/ttyMCC to communicate with the Arduino serial port!
     
  10. Cyril BOSSELUT

    Cyril BOSSELUT New Member

    Joined:
    Oct 30, 2015
    Messages:
    23
    Likes Received:
    14
    Well done, feel free to submit push requests ;)

    Envoyé de mon Nexus 5X en utilisant Tapatalk
     
  11. Flavio Pompermaier

    Flavio Pompermaier New Member

    Joined:
    Apr 13, 2016
    Messages:
    20
    Likes Received:
    2
    Definitely! But first I should refactor a little bit to make it work with both models of Udoo..I'll issue a PR as soon as finished that!
     
    Cyril BOSSELUT likes this.
  12. freedomotic

    freedomotic Member

    Joined:
    Oct 19, 2013
    Messages:
    77
    Likes Received:
    6
  13. Cyril BOSSELUT

    Cyril BOSSELUT New Member

    Joined:
    Oct 30, 2015
    Messages:
    23
    Likes Received:
    14
    Hi @freedomotic ,
    glad you like and want to use my project :)
    I think i can add a new module to the library to let the choice for users. For now, i'm currently working on an Android client so i'll look at it futher as soon as my todo list will be empty.
    If someone wants to test the Android app, you can download it on http://www.b1project.com/~bosselut/app-debug.apk
    Thanks
     
  14. Cyril BOSSELUT

    Cyril BOSSELUT New Member

    Joined:
    Oct 30, 2015
    Messages:
    23
    Likes Received:
    14
    Latest changes on NeoJava tools include:
    - new Serial module using JSSC (SimpleSerial)
    - secure server with SSL (JSSE)
    - better LCD handling
    - many code improvements and bugfixes.

    Here's also a video showing my Android client in action

    I'm streaming while i'm coding on my UDOO stuff, you can watch it on https://www.livecoding.tv/bossone/
     
    Andrea Rovai and waltervl like this.
  15. Flavio Pompermaier

    Flavio Pompermaier New Member

    Joined:
    Apr 13, 2016
    Messages:
    20
    Likes Received:
    2
    Hi Cyril,
    I've just pushed a refactored version of you code on my fork (https://github.com/fpompermaier/NeoJava).
    I still need to improve a little bit the messaging part but I've tried to improve it thinking about new peoploe willing to use that library..with Maven and more structured messages things are easier (IMHO).
    Actually, in my mind I'd like to use thrift also to implement automatically the client and server structures but I'm still thinking if that optimization level is really necessary..

    Best,
    Flavio
     
    Andrea Rovai likes this.
  16. Cyril BOSSELUT

    Cyril BOSSELUT New Member

    Joined:
    Oct 30, 2015
    Messages:
    23
    Likes Received:
    14
    Hi Flavio,
    you've done a great job but i can't merge your changes as there's to much conflicts and parts removed (eg: no more commands to get board info) and i've not enough free time to do it. Please propose some patches as pull requests.

    Cheers,
    Cyril
     
  17. Flavio Pompermaier

    Flavio Pompermaier New Member

    Joined:
    Apr 13, 2016
    Messages:
    20
    Likes Received:
    2
    Actually I've added the commands to get board info only from the input line, I didn't add them also to the NeoJavaProtocol.
    I'll add them right now then I'll issue a PR!
     
  18. Flavio Pompermaier

    Flavio Pompermaier New Member

    Joined:
    Apr 13, 2016
    Messages:
    20
    Likes Received:
    2
    PR issued. I've tested it with my Udoo quad so I had to modify the binding between the tty from /dev/ttyMCC to /dev/ttymxc3.
    After changing that it should work. If you need an example of the new API usage or for other comments to the PR just comment it in github!
     
  19. Cyril BOSSELUT

    Cyril BOSSELUT New Member

    Joined:
    Oct 30, 2015
    Messages:
    23
    Likes Received:
    14
    Merge done, i've updated my Android client, tomorrow i'll do the same for the java client ;)
     
    Andrea Rovai likes this.
  20. Gonzalo Calandria

    Gonzalo Calandria New Member

    Joined:
    Dec 22, 2015
    Messages:
    9
    Likes Received:
    0
    Hello guys! I'm new on this and I have the first Udoo Neo board (the full one) and I would like to know how to use this.. since there's no documentation on how to use it (or at least I didn't found it). I just want to read a button from my arduino and take the status of that button from the linux side using java.

    Thanks!
     

Share This Page