icommand0.6 Ultrasonic Sensor not working under MacOS

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

Moderators: 99jonathan, roger, imaqine

icommand0.6 Ultrasonic Sensor not working under MacOS

Postby darkside40 » Thu Oct 25, 2007 6:04 pm

Hi Folks,
i am using icommand für a week now with my Macbook.

So far everything works fine with rxtx and eclipse, but i cannot use the Ultrasonic Sensor under Mac OS, all the other Sensors work without problems.

Under Win XP the UltraSonic Sensor works without any problems.

Here is the Output of the DistanceTest.java provided with the package:
Code: Select all
NXTCOMM = /dev/tty.NXT-DevB-1
Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version   = RXTX-2.1-7
NXTCommand.LSGetStatus() error: Pending communication transaction in progress
Version: V1.0
NXTCommand.LSGetStatus() error: Pending communication transaction in progress
Product ID: LEGO
NXTCommand.LSGetStatus() error: Pending communication transaction in progress
Port Type: Sonar
NXTCommand.LSGetStatus() error: Pending communication transaction in progress
Measurement Interval: 1
NXTCommand.LSGetStatus() error: Pending communication transaction in progress
No bytes to be read in I2CSensor.getData(). Returning 0.
Distance: 0
NXTCommand.LSGetStatus() error: Pending communication transaction in progress
No bytes to be read in I2CSensor.getData(). Returning 0.
Distance: 0
NXTCommand.LSGetStatus() error: Pending communication transaction in progress
No bytes to be read in I2CSensor.getData(). Returning 0.
Distance: 0
NXTCommand.LSGetStatus() error: Pending communication transaction in progress
No bytes to be read in I2CSensor.getData(). Returning 0.
Distance: 0
NXTCommand.LSGetStatus() error: Pending communication transaction in progress
No bytes to be read in I2CSensor.getData(). Returning 0.
Distance: 0
NXTCommand.LSGetStatus() error: Pending communication transaction in progress
No bytes to be read in I2CSensor.getData(). Returning 0.
Distance: 0
NXTCommand.LSGetStatus() error: Pending communication transaction in progress
No bytes to be read in I2CSensor.getData(). Returning 0.
Distance: 0
NXTCommand.LSGetStatus() error: Pending communication transaction in progress
No bytes to be read in I2CSensor.getData(). Returning 0.
Distance: 0
NXTCommand.LSGetStatus() error: Pending communication transaction in progress
No bytes to be read in I2CSensor.getData(). Returning 0.
Distance: 0
NXTCommand.LSGetStatus() error: Pending communication transaction in progress
No bytes to be read in I2CSensor.getData(). Returning 0.
Distance: 0
NXTCommand.LSGetStatus() error: Pending communication transaction in progress
Factory scale factor: 1
NXTCommand.LSGetStatus() error: Pending communication transaction in progress
Factory scale divisor: 14
NXTCommand.LSGetStatus() error: Pending communication transaction in progress
No bytes to be read in I2CSensor.getData(). Returning 0.
Distance 0 = 0
Experimental:  JNI_OnLoad called.


Hope somebody of developers can help, would be nice to do my college project under Mac OS.
darkside40
New User
 
Posts: 4
Joined: Thu Oct 25, 2007 5:57 pm

Postby bbagnall » Sat Oct 27, 2007 5:14 pm

Someone else wrote about this problem before and I was sure it wasn't Mac OS X specific, but maybe it is. Unfortunately I don't use Mac OS X and we can't seem to find any Mac users willing to join the project and figure some of these things out.

Try using this as a temporary workaround:

NXTCommand.open()
NXTCommand.setVerify(true);

This should give you better luck.

BTW Is the relative speed of your Mac faster than your Windows box? Probably there needs to be a slightly longer delay somewhere when retrieving data from the Ultrasonic sensor.
User avatar
bbagnall
Site Admin
 
Posts: 392
Joined: Fri Aug 04, 2006 4:03 pm

Postby darkside40 » Tue Nov 13, 2007 1:57 pm

The NXTCommand.setverify(true) did the trick.
THX
darkside40
New User
 
Posts: 4
Joined: Thu Oct 25, 2007 5:57 pm


Return to NXJ Software

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest

more stuff