Prev: NYC LOCAL: Sunday 24 January 2010 Wikipedia Day NYC
Next: Do you think I have a case against Microsoft?
From: Ravi on 24 Jan 2010 13:39 I am using the IR tower that comes with archiach Lego Mindstorms Robotics Invention System 2.0 (very old yeah, but I have to use it for a course). Let me first tell you about it. It uses and IR tower to communicate with the microcontroller to transer the compiled program. The microcontroller is based on Hitachi H8, with the IR reciever and ports for motors and sensors. Its called RCX http://en.wikipedia.org/wiki/Lego_Mindstorms#RCX Linux has the appropriate drivers for the IR tower. Here is the output of dmesg: Code: [ 5221.224151] usb 8-1: new low speed USB device using uhci_hcd and address 2 [ 5221.434401] usb 8-1: configuration #1 chosen from 4 choices [ 5221.472725] legousbtower 8-1:1.0: LEGO USB Tower #0 now attached to major 180 minor 160 [ 5221.476633] legousbtower 8-1:1.0: LEGO USB Tower firmware version is 1.0 build 134 [ 5221.476670] usbcore: registered new interface driver legousbtower [ 5221.476673] legousbtower: v0.96:LEGO USB Tower Driver The output of lsusb is: Bus 008 Device 002: ID 0694:0001 Lego Group Mindstorms Tower The IR tower appears to user as /dev/usb/legousbtower0 I am using legOS (which was later named as bricos). It provides the programming interface and the OS for the RCX too. It also comes with a LNP (LegOS Network Protocol) which can communicate with the RCX's IR using the IR tower attached to the PC so that you can send the data to the RCX remotely. The problem with the program is that expects a serial device, since the earlier version of the IR tower came as serial port device. error message is: Code: 5:Fatal > /dev/usb/legousbtower0 is not a tty If by some method I can set the usb device to serial mode (e.g. by setserial, which gives error of wrong ioctl) I will be able to use the LNP. Can you please help. |