RemoteNXT - PC to NXT problems

This is where you talk about the NXJ software itself, installation issues, and programming talk.

Moderators: 99jonathan, roger, imaqine

RemoteNXT - PC to NXT problems

Postby denitz666 » Wed Sep 15, 2010 9:31 pm

Hello there,

I wanted to make shure that I dont't bang my head against a digital wall by using this coding approach. So, I wanted to ask you guys for opinion.

I wrote a simple NXT remote controll, that is executed on a pc and communicates via bluetooth with the NXT.
I need direct access to the NXTs Motors, so I wanted to use the LCP approach.

this is the methode that seems to be producing an exception:
Code: Select all
    private void connect() {

        try {
            remoteNxt = new RemoteNXT("00:16:53:00:BE:3A", Bluetooth.getConnector());
        } catch (IOException ex) {
            System.out.println("no connection established");
        }
        System.out.println("connection successful");
        System.out.println("#test# remote brick name: " + remoteNxt.getBrickName());
    }


and here is the exceptions stacktrace:

Code: Select all
Exception in thread "main" java.lang.UnsatisfiedLinkError: lejos.nxt.NXT.getUserPages()I
        at lejos.nxt.NXT.getUserPages(Native Method)
        at lejos.nxt.Flash.<clinit>(Flash.java:18)
        at lejos.nxt.SystemSettings.<clinit>(SystemSettings.java:30)
        at lejos.nxt.comm.NXTCommDevice.loadSettings(NXTCommDevice.java:167)
        at lejos.nxt.comm.NXTCommDevice.<clinit>(NXTCommDevice.java:20)
        at bluemote.comm.RemoteControllServerPlus.connect(RemoteControllServerPlus.java:79)


Any suggestions to why this fails? Or is there a problem with my approach?

regards,

Dennis
denitz666
New User
 
Posts: 1
Joined: Fri Sep 10, 2010 9:08 am

Postby gloomyandy » Wed Sep 15, 2010 10:14 pm

Looks like you are using the lejos classes.jar in a program that runs on the PC. You should only use this for NXT based programs.

Andy
User avatar
gloomyandy
leJOS Team Member
 
Posts: 3891
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK

Re: RemoteNXT - PC to NXT problems

Postby monroe » Mon Jun 04, 2012 8:00 pm

Are there any classes in the PC-side API that have functionality similar to RemoteNXT?
monroe
New User
 
Posts: 2
Joined: Fri Jun 01, 2012 7:47 pm

Re: RemoteNXT - PC to NXT problems

Postby skoehler » Mon Jun 04, 2012 9:00 pm

pccomm.jar - or simply create a leJOS PC project with the new leJOS Eclipse plug-in.
skoehler
leJOS Team Member
 
Posts: 1390
Joined: Thu Oct 30, 2008 4:54 pm

Re: RemoteNXT - PC to NXT problems

Postby matthias » Wed Jun 06, 2012 6:16 am

No, there is no class on the PC-side, that does exactly what RemoteNXT does.

But you can atleast use the RemoteMotor class.

(in a previous version there was some hack like NXT.setSingleton(), that enables you to use Motor.A, Motor.B like you are used to, but i was not able to do that in lejos 0.9)
matthias
New User
 
Posts: 20
Joined: Thu Mar 22, 2012 11:44 am


Return to NXJ Software

Who is online

Users browsing this forum: No registered users and 5 guests

more stuff