Bluetooth connection issues

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

Moderators: 99jonathan, roger, imaqine

Bluetooth connection issues

Postby Mr. Mo » Mon Mar 24, 2008 12:03 pm

Hi folks,

I'm trying to use iCommand 0.7 to control a NXT car (with the latest leJOS firmware). The NXT device is paired with my Vista laptop, which also set up incoming and outgoing serial ports for it.

I've not been able to reliably connect to the NXT at all, either with my programs or the sample programs. Very occasionally the connection will be made and everything works fine. However most of the time, once I execute a program, the program hangs for a few seconds, with the dongle flashing like it's trying to do something, before this exception its thrown:

Code: Select all
Exception in thread "main" java.lang.RuntimeException: gnu.io.PortInUseException: Unknown Application
   at icommand.nxt.comm.NXTCommand.open(Unknown Source)
   at carcontrol.CarController.main(CarController.java:225)
Caused by: gnu.io.PortInUseException: Unknown Application
   at gnu.io.CommPortIdentifier.open(CommPortIdentifier.java:354)
   at icommand.nxt.comm.NXTCommRXTX.open(Unknown Source)
   ... 2 more


I use RXTX, because the bluecove stuff kept throwing UnsatisfiedLinkErrors. In addition to the steps in the readme, I also had to include a jar from Sun's wireless toolkit.

I think my dongle uses widcomm drivers (since they're made by broadcom), I don't know if that is important, as the documentation only talks about the windows and toshiba stacks?
Mr. Mo
New User
 
Posts: 2
Joined: Wed Mar 05, 2008 3:57 pm

Postby Mr. Mo » Mon Mar 24, 2008 6:24 pm

In addition, I'm also sometimes getting these:
Code: Select all
#
# An unexpected error has been detected by Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x202c676e, pid=5440, tid=1308
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0_02-b06 mixed mode)
# Problematic frame:
# C  0x202c676e
#
# An error report file with more information is saved as hs_err_pid5440.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#


Code: Select all
Exception in thread "main" java.lang.RuntimeException: gnu.io.NoSuchPortException
   at icommand.nxt.comm.NXTCommand.open(Unknown Source)
   at carcontrol.CarController.main(CarController.java:264)
Caused by: gnu.io.NoSuchPortException
   at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218)
   at icommand.nxt.comm.NXTCommRXTX.open(Unknown Source)
   ... 2 more


I don't understand why I'm getting any of these... the port should not be in use since the programs close the bluetooth connection before exiting, and the port clearly exists as it's shown in my "Bluetooth Devices"...

I find if I keep trying I will eventually get connected, but it seems to be down to pure chance...
Mr. Mo
New User
 
Posts: 2
Joined: Wed Mar 05, 2008 3:57 pm


Return to NXJ Software

Who is online

Users browsing this forum: No registered users and 4 guests

more stuff