Hello All:

I've downloaded lejos and installed it on a Mandrake 10.1 Download Edition version. I'm having trouble getting the USB tower to work and was wondering if anybody out there might be able to point me in a direction to resolve this issue.

The Linux version I'm using supports the legousbtower module: when I plug the tower in, a node is created in /dev.. Using the configuration tool, it sees the device and recognizes it as a mindstorms tower so part of the connection is there. 

Consider the following output that I get when I try to make the hello world example: I've annotated the output with some colours so that I can discuss it a little easier.

1) the first text in red below shows that the node is created, however it seems that the major/minor numbers differ from those that the tutorial suggests if you are building the module for a system that doesn't support the tower directly. I tried following the instructions found in the tutorial about removing the node, and then 'mknod' but that failed for various reasons.

2) blundering on, when I tried to make and hence download the hello world example into the brick, as you can see, a permission denied error popped up (see blue text). (I'm running as a non-priviledged user as this will be part of a robotics unit at a high-school - I don't really want to give my students root privileges!  :~)  This error probably makes sense as the permission bits on the device only allow the system to access. As the output shows below, I  su'ed to root, changed the permissions and did a make clean/make again. This resulted in the green text error 'not a tty'.

BTW, if I try doing the make on hello world as root before I altered the permissions, I got the same 'not a tty' error.

3) Just to confirm that everything else is working ok, I plugged in a serial tower, reset the RCXTTY to /dev/ttyS0, and did the make/make clean and the example built, downloaded and ran correctly.


So ....    my question is:    "any suggestions on what needs to happen to make the USB tower work?"

The reason I'm keen on the USB tower is that I intend to set up 4 workstations for my class - I have 4 usb towers, and only 1 serial tower)

Many thanks in advance for any clues or solutions:

Best Regards

Scott Thornton
Mathematics, Science, &
Computing Science Instructor
Webber Academy
1515 93rd Street SW
Calgary, Alberta CANADA
T3H 4A8


[EMAIL PROTECTED]:~/lejos-programs}cd hello-world/
[EMAIL PROTECTED]:~/lejos-programs/hello-world}setenv RCXTTY /dev/usb/legousbtower0
[EMAIL PROTECTED]:~/lejos-programs/hello-world}ll /dev/usb/legousbtower0
crw-------  1 root root 180, 0 Dec 29 21:56 /dev/usb/legousbtower0
[EMAIL PROTECTED]:~/lejos-programs/hello-world}make
/home/layered-software/lejos/lejos_2_1_0//bin/lejosrun HelloWorld.bin
/dev/usb/legousbtower0: Permission denied
make: *** [run] Error 1
[EMAIL PROTECTED]:~/lejos-programs/hello-world}su
Password:
[EMAIL PROTECTED] hello-world]# chmod 666 /dev/usb/legousbtower0
[EMAIL PROTECTED] hello-world]# exit
[EMAIL PROTECTED]:~/lejos-programs/hello-world}make clean
rm -f HelloWorld.bin HelloWorld.sig *.class *~ core
[EMAIL PROTECTED]:~/lejos-programs/hello-world}make
/home/layered-software/lejos/lejos_2_1_0//bin/lejosc HelloWorld.java
/home/layered-software/lejos/lejos_2_1_0//bin/lejos -verbose HelloWorld -o HelloWorld.bin > HelloWorld.sig
/home/layered-software/lejos/lejos_2_1_0//bin/lejosrun HelloWorld.bin
/dev/usb/legousbtower0: not a tty
make: *** [run] Error 1
[EMAIL PROTECTED]:~/lejos-programs/hello-world}ll /dev/usb/legousbtower0
crw-rw-rw-  1 root root 180, 0 Dec 29 21:56 /dev/usb/legousbtower0
[EMAIL PROTECTED]:~/lejos-programs/hello-world}setenv RCXTTY /dev/ttyS0
[EMAIL PROTECTED]:~/lejos-programs/hello-world}make clean
rm -f HelloWorld.bin HelloWorld.sig *.class *~ core
[EMAIL PROTECTED]:~/lejos-programs/hello-world}make
/home/layered-software/lejos/lejos_2_1_0//bin/lejosc HelloWorld.java
/home/layered-software/lejos/lejos_2_1_0//bin/lejos -verbose HelloWorld -o HelloWorld.bin > HelloWorld.sig
/home/layered-software/lejos/lejos_2_1_0//bin/lejosrun HelloWorld.bin
[EMAIL PROTECTED]:~/lejos-programs/hello-world}



Reply via email to