From what I remember the bluecove-library, which is used for this kind of communication, are no longer supported by Mac OS. Which makes it impossible to use bluetooth between a newer Mac and a NXT. But you can try it anyway. I shut down the NXT and Mac several times downloading new programs to the NXT brick using bluetooth. Each time you restart the brick or the NXT program, you must pair bluetooth via the NXT window button in the controller of the NXT program. The new NXT Intelligent Brick, your robot's 'brain,' features a powerful 32-bit microprocessor and more memory, plus support for USB 2.0, Bluetooth and more! A highly versatile palette of LEGO TECHNICĀ® elements combines with state-of-the-art ultrasonic, sound, light and touch sensors in the next generation of intuitive robotics. Getting Started on OS X This version of the tutorial is for the 0.9 release of leJOS NXJ and is compatible with OS X 10.4 or higher and both intel and ppc processors. Prerequisites Java Development Kit You will also need a Java Development Kit (JDK). Note that a Java Runtime Environment (JRE) is not sufficient as it does not allow you to compile Java programs. A full JDK already ships with OS X or it can be installer on demand. Try the java and javac commands in the termainal to see whether a JDK is already installed. On OS X Lion, the commands will also show the instructions on how to installed the JDK provided by Apple. LeJOS NXJ has been tested with JDK versions 1.5 and 1.6, and will not work with earlier versions. JDK 1.6 is recommended. At the time of writing, official builds of Java 1.7 are not available for OS X. Note that even if you have a 64-bit system, leJOS will always chose to run java in 32 Bit mode by automatically passing the -d32 parameter to the java command whenever necessary. USB Driver To run leJOS NXJ on OS X you will need a suitable USB driver on your PC. If you have installed the standard LEGO Mindstorms NXT-G software, a suitable driver (the so-called Fantom driver) is already installed. If you do not wish to install the LEGO software on your PC or if you want to update the Fantom driver to the latest version, you can get an installer from. Stay Private and Protected with the Best Firefox Security Extensions The Best Video Software for Windows The 3 Free Microsoft Office Photo Editor Alternatives Get the. Itunes 1.0.3 free download. It is strongly recommended to update to the latest version (1.1.3 at the time of writing). (Optional) Bluetooth If you want to communicate with the NXT over Bluetooth, you will need a Linux supported Bluetooth dongle or built-in support on your PC. LeJOS uses the Bluecove libraries which are included in the distribution. You can use leJOS NXJ without Bluetooth. Pairing the NXT with your Mac should be done by pair from the computer. Browse for the device and enter a passcode of 1234 on the mac. Installing leJOS Downloading the software You can download the leJOS NXJ software from. The OS X edition of leJOS is distributed as a.tar.gz archive. Untar the archive to a location of your choice. You may delete the build subfolder, since it is required for Linux only. Setting up environment variables leJOS NXJ needs to know the locations of java. Samsung drivers for mac. exe and javac.exe. There are several possibilities to achieve that: (1) add the bin directory of the JDK to your PATH environment variable so that commands such as java and javac can be called from a command prompt or (2) set the LEJOS_NXT_JAVA_HOME environment variable to the directory of an installed JDK. Bluetooth Driver For MacNote that you can use JAVA_HOME instead of LEJOS_NXT_JAVA_HOME, however setting JAVA_HOME might intefere with other applications. Furthermore, the NXJ_HOME variable should be set to the directory where leJOS NXJ is installed. It allows other applications, e.g. The Ant scripts, to locate the leJOS Development Kit. Also, for easy exececution of the leJOS commands on the command line, the bin folder of the leJOS distribution should be added to the PATH variable. Examples: Variable Value Example NXJ_HOME The folder you installed leJOS NXJ into /Users/me/leJOS_NXJ LEJOS_NXT_JAVA_HOME The folder where the JDK is installed /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home PATH Add the bin folders for the JDK and leJOS /Users/me/leJOS_NXJ/bin:$PATH The bin directory for the JDK may already be on your PATH. In that case, it is unnecessary to set LEJOS_NXT_JAVA_HOME or JAVA_HOME, unless you want to have multiple JDKs on your system and want to select a specific JDK for use with leJOS.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |