Results 1 to 3 of 3
  1. #1
    DionnV is offline Member
    Join Date
    Oct 2011
    Rep Power

    Default Accessing NXT Brick through Java application


    I am trying to access an NXT Brick with Java for a project.

    I will plainly explain the situation;

    An Java-based interface runs and gets a value. This value should be sent to the NXT Brick which also runs a Java-based application (mad in leJOS). The Brick should use this value in his own programme to continue his own programme.

    More specific;

    The project is to make a "bank" and a cash dispenser. The interface is made in Java and communicates with a MySQL server to approve acces, update balance, etc. This works fine. The cash dispenser, made of Lego and connected to an NXT Brick, will have to return the cash. The Brick is coded in Java. The code on the cash dispenser works fine too. Giving a value of "80" will return a card of 50, 20 and 10. The problem is that I have to provide the Brick with the value given in the interface. There should be some connection between the running application and the Brick.

    Bluetooth is not an option since I don't have a Bluetooth adapter on the computer.

    I was thinking to create a Batch-file which can be activated from the interface. The Batch-file could activate the "uploadandrun"-command from the build.xml of the Brick application. This gets me stuck, since I have no clue how to send a value from the interface to the Batch-file, to the Brick.

    Is there anyone clever able to help me out?
    Ideas are welcome too.


  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Washington, DC
    Rep Power

    Default Re: Accessing NXT Brick through Java application

    Does this help?

    How to Ask Questions the Smart Way
    Static Void Games - GameDev tutorials, free Java and JavaScript hosting!
    Static Void Games forum - Come say hello!

  3. #3
    DionnV is offline Member
    Join Date
    Oct 2011
    Rep Power

    Default Re: Accessing NXT Brick through Java application

    Will try this.
    Consider this thread as answered, I will post again if it fails.


Similar Threads

  1. Brick wall using BLEUJ
    By boumasmoud in forum New To Java
    Replies: 1
    Last Post: 11-03-2011, 11:33 PM
  2. Replies: 5
    Last Post: 10-12-2011, 03:14 PM
  3. Brick Breaker
    By ivlatt in forum Java Gaming
    Replies: 5
    Last Post: 04-22-2011, 08:47 AM
  4. need help with brick breaker (breakout)
    By blackmatrix00 in forum Java Applets
    Replies: 3
    Last Post: 05-24-2010, 08:25 AM
  5. Replies: 9
    Last Post: 09-01-2009, 08:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts