Results 1 to 3 of 3
- 12-08-2011, 01:53 PM #1
Member
- Join Date
- Oct 2011
- Posts
- 6
- Rep Power
- 0
Accessing NXT Brick through Java application
Hey,
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.
~DionnV
- 12-08-2011, 02:25 PM #2
Re: Accessing NXT Brick through Java application
Does this help?
CommunicationsHow to Ask Questions the Smart Way
Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!
- 12-08-2011, 02:34 PM #3
Member
- Join Date
- Oct 2011
- Posts
- 6
- Rep Power
- 0
Similar Threads
-
Brick wall using BLEUJ
By boumasmoud in forum New To JavaReplies: 1Last Post: 11-03-2011, 10:33 PM -
How to use KSoap for accessing .net web service in java application?
By Subhasri in forum Web FrameworksReplies: 5Last Post: 10-12-2011, 02:14 PM -
Brick Breaker
By ivlatt in forum Java GamingReplies: 5Last Post: 04-22-2011, 07:47 AM -
need help with brick breaker (breakout)
By blackmatrix00 in forum Java AppletsReplies: 3Last Post: 05-24-2010, 07:25 AM -
Accessing local file from server side using Java Application
By ersachinjain in forum JDBCReplies: 9Last Post: 09-01-2009, 07:17 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks