- --------------------------------------------------------------
- See blog "hoofdmenu" for a list of subjects around the NXT
- --------------------------------------------------------------
The actual robot "around" the NXT can be rebuilt and rethought every time. Then while building you have to have an idea about the programming, using which language, and bluetooth or not. So you have to shift around the language on the brick, Lego firmware or Lejos JAVA, or even others. Bluetooth can be hindered by another language, different from the Lego firmware.
I want to record here some of the problems encountered:Reinstalling Lego Firmware
After using Lejos JAVA. Connected to USB, working from the Firmware CD program. Problem: NXY not found, after minutes of waiting.
- Cause: using an extra USB HUB i had connected about 6 things to the laptop. Connecting the USB from the brick directly to the laptop solved this problem.
Firmware has to be installing itself within 60 seconds.
ECLIPS problems
- JAVA installed watch it: no space in the name of the folder Program Files -> ProgramFiles
- Lejos installed , check lejos with lejosdl in Commandwindow
- Eclips installed , using the JRE 1.3, as advised, can only be done when installed seperately, and is not really necessary.
- Eclips gives problem {project_loc} unknown; try configuring hardpath
- Eclips gives problem java_type_name , this was caused by dragging a file into eclipse, but not adding it to the project......
- Eclipse ok, compile, ok, upload incredible fast (<500>
- Eclipse ok, USB connected, compile & upload: warning: bluetooth not found: can be caused by compiling and uploading too fast after connecting USB. Wait 3 seconds after the positive Windows beep of USB connection.
Bluetooth
In the beginning all went wrong, but actually this is simple!
In general:
- installed Bluetooth does not work: use dongle....20 euro's.
- first the Bluetooth dongle, V2.0 PROMEDION is ok on a Toshiba, Toshiba's own bluetooth does not function
- install WIDCOMM, free download, or
- Bluecove , this comes in a try out version, but still functions on my laptop.
- start bluetooth search: NXT is shown (or you have to ask: get name devices)
- select NXT: pairing in principle once.
- ouble click or right click, connect to serial (for instance devB, or directly serial COM8)
- pairing connection
- NXT asks a pin, and the Bluetooth too, dont imagine anything different from the preset 1234
- after this: you can test the connection in the bluetooth prog, but
- Eclipse and C# programs connect and disconnect themselves!!!
- ok the COM port is installed on YOUR computer, it is not something of the NXT
- COM port number bigger than 10: not working reconfigure COM Ports (see below)
- COM port number gets higher and higher : see below
Bluetooth -> COMpoorten problems
Repeat: dont connect first to the NXT and then start a prog from the laptop to connect, this prog connects itself. (I made this mistake in the beginning costing me quite some time to reconfigure the COM ports.....)Ok, when made this mistake of double connecting and messing up your Ports:
Where to find theCOM ports:
- A: Mycomputer, properties, hardware, (peripheriques ), Ports (Com en LPT)
- B: or commandwindow en regedit.exe, HKEY_LOCAL_MACHINE, HARDWARE, DEVICEMAP, SERIALCOMM,
vanuit versie A:
right click on PORT, TAB parameters, advanced, bottom, numberCOMport, configure: the number must be below 10
The COM port numbers get higher and higher, while not using the lower ones, they were not cleaned up. In this window you can "reclaim" numbers a few times, thus "emptying" the PORT numbers. Primitive, but it works.
Then desinstall the old portnumbers, start the bluetooth configuring again, and in the end, the COM PORT mess, caused by double connections to the NXT, will be cleaned up.
0 comments:
Post a Comment