I'm not much help on NXT... I have an original Mindstorm kit that uses the serial / IR tower to communicate with it.<br><br>What are you planning to use with it? I had messed around with NQC (Not Quite C) and it worked fairly well, but it's been a few years since I've used it. Looks like there's a version that will work with the NXT called NXC.<br>
<br><a href="http://bricxcc.sourceforge.net/nbc/" target="_blank">http://bricxcc.sourceforge.net/nbc/</a><br><br>-dc<br><br><div class="gmail_quote">On Sun, Dec 26, 2010 at 10:56 AM, Chris Freeman <span dir="ltr"><<a href="mailto:cwfreeman@gmail.com" target="_blank">cwfreeman@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">I'm trying to write a udev rule to hook up my Christmas present to my computer.<div><br>
</div><div>The /dev/legonxt symlink (see rule) is never created, and the /tmp/legonxt.called file (see script) is never created.</div>
<div><br></div><div>Any ideas?</div><div><div><br></div><div>----- details ------</div><div><br></div><div>udevadm info tells me this:</div><div><div>$ udevadm info -a -p /sys/devices/LNXSYSTM\:00/</div><div><cut some plain text...></div>
<div><br></div><div> looking at device '/devices/LNXSYSTM:00':</div><div> KERNEL=="LNXSYSTM:00"</div><div> SUBSYSTEM=="acpi"</div><div> DRIVER==""</div><div> ATTR{path}=="\"</div>
<div> ATTR{hid}=="LNXSYSTM"</div><div> ATTR{modalias}=="acpi:LNXSYSTM:"</div></div><div><br></div><div><br></div><div>I've got this in /etc/udev/rules.d/90-legonxt.rules:</div><div>SUBSYSTEM=="acpi", ATTR{hid}=="LNXSYSTM", SYMLINK+=”legonxt”, ACTION=="add", RUN+=”/etc/udev/legonxt.sh”</div>
<div><br></div><div>The shell file:</div><div><br></div><div><div>$ ls -l /etc/udev/legonxt.sh </div><div>-rwxr-xr-x 1 root root 327 2010-12-26 10:35 /etc/udev/legonxt.sh</div></div><div><br></div><div>$ cat /etc/udev/legonxt.sh</div>
<div><div>#!/bin/bash</div><div><br></div><div>echo "Called legonxt.sh ..." >> /tmp/legonxt.called</div><div>echo " ACTION=[${ACTION}]" >> /tmp/legonxt.called</div><div>echo " DEVICE=[${DEVICE}]" >> /tmp/legonxt.called</div>
<div><br></div><div>GROUP=plugdev</div><div>if [ "${ACTION}" = "add" ] &amp;&amp; [ -f "${DEVICE}" ]</div><div>then</div><div> chmod o-rwx "${DEVICE}"</div><div> chgrp "${GROUP}" "${DEVICE}"</div>
<div> chmod g+rw "${DEVICE}"</div><div>fi</div></div></div><div><br></div><div><br></div><div><br></div><div>Thanks,</div><div><br></div><font color="#888888"><div>Chris</div>
</font><br>_______________________________________________<br>
Cialug mailing list<br>
<a href="mailto:Cialug@cialug.org" target="_blank">Cialug@cialug.org</a><br>
<a href="http://cialug.org/mailman/listinfo/cialug" target="_blank">http://cialug.org/mailman/listinfo/cialug</a><br>
<br></blockquote></div><br>