Thanks, Dave.<div><br></div><div>I mostly got the USB connection working. (See <meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="http://thinkoftheepsilons.blogspot.com/2010/12/toy-robots-and-linux.html">http://thinkoftheepsilons.blogspot.com/2010/12/toy-robots-and-linux.html</a> for very limited details.)</div>
<div><br></div><div>I'm looking at NXC, though I'd love to use something else eventually. Most other embedded languages require reflashing the brick, which I'm not ready to do yet.</div><div><br></div><div>Chris</div>
<div><br><div class="gmail_quote">On Mon, Dec 27, 2010 at 5:27 PM, David Champion <span dir="ltr"><<a href="mailto:dchamp1337@gmail.com">dchamp1337@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
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"><div><div></div><div class="h5">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>
</div></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex"><div><div></div><div class="h5">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></div></div>_______________________________________________<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>
<br>_______________________________________________<br>
Cialug mailing list<br>
<a href="mailto:Cialug@cialug.org">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></div>