1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
|
Remarks/advices (updated july 2015)
------------------------------------
- Compile the tool:
Even if binaries are available, it is strongly recommanded to
(re)compile the tool on your machine from the source distribution.
You need:
g++
libusb-dev
then run "make"
- Usb rights:
When you run t2n, you will probaby get the message:
Error :
usbnxt: usbmisc: fails to set config, errno=-1, usberr="could not set config 1: Operation not permitted" (cf=1 vendor=0x0694 product=0x0002)
it meens that "normal" users cannot access the usb device.
In order to set the rights, your system must run "udev" service:
which is the case if the folder "/etc/udev/rules.d/" exists.
Copy (as root) the file "71-lego.rules"(*) in this folder:
sudo cp udev/71-lego.rules /etc/udev/rules.d/
Just in case, restart the service:
sudo service udev restart
sudo udevadm control --reload-rules
(*) The udev syntax has changed several times, the file "71-lego.rules"
should be ok for recent debian or ubuntu systems.
Archives
--------
The following remark corresponds to older versions of debian/ubuntu,
and is probably obsolete. However if you encounters problems you
can check if you fall in this case:
- Get rid of "cdc-acm"
This problem may appear in firmware-loading mode, a serial-device driver
called "cdc-acm" captures the nxt, e.g. dmesg gives:
usb 4-2: new full speed USB device using uhci_hcd and address 2
usb 4-2: New USB device found, idVendor=03eb, idProduct=6124
usb 4-2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
cdc_acm 4-2:1.0: This device cannot do calls on its own. It is not a modem.
cdc_acm 4-2:1.0: ttyACM0: USB ACM device
usbcore: registered new interface driver cdc_acm
cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adapters
Kick and DIRTY solution, as root:
1) black-list cdc-acm:
add the line:
blacklist cdc-acm
to the file:
/etc/modprobe.d/blacklist
2) kill cdc-acm (if running):
modprobe -r cdc-acm
|