When I do the grep, I get nothing returned.<div>When I go into the /dev directory, there is nothing ttyUSBn.</div><div><br></div><div>What do I do now?</div><div>Gerald<br><br><div class="gmail_quote">On Fri, Oct 5, 2012 at 12:21 AM, Alan Jhonn Aguiar Schwyn <span dir="ltr"><<a href="mailto:alanjas@hotmail.com" target="_blank">alanjas@hotmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr"><font face="Calibri, sans-serif" size="3">If he have the latest version, the plugin makes a list of the ttyUSB availables and</font><div style="font-family:Calibri,sans-serif;font-size:12pt">try get the first that works.</div>

<div style="font-family:Calibri,sans-serif;font-size:12pt"><br></div><div style="font-family:Calibri,sans-serif;font-size:12pt">The header of the Arduino Plugin says:</div><div style="font-family:Calibri,sans-serif;font-size:12pt">

<br></div><div><div><font face="Calibri, sans-serif">        self._dev = '/dev/ttyUSB0'</font></div><div><font face="Calibri, sans-serif">        self._baud = 57600</font></div><div><font face="Calibri, sans-serif">        self._arduino = None</font></div>

<div><font face="Calibri, sans-serif"><br></font></div><div><font face="Calibri, sans-serif">        status,output = commands.getstatusoutput("ls /dev/ | grep ttyUSB")</font></div><div><font face="Calibri, sans-serif">        output = output.split('\n')</font></div>

<div><font face="Calibri, sans-serif">        for i in output:</font></div><div><font face="Calibri, sans-serif"><span style="white-space:pre-wrap">        </span>        status,aux=commands.getstatusoutput("udevinfo -a -p /class/tty/%s | grep ftdi_sio > /dev/null" % i)</font></div>

<div><font face="Calibri, sans-serif"><span style="white-space:pre-wrap"> </span>        if (not status):</font></div><div><font face="Calibri, sans-serif"><span style="white-space:pre-wrap">               </span>        self._dev='/dev/%s' % i</font></div>

<div><font face="Calibri, sans-serif"><span style="white-space:pre-wrap">         </span>        break</font></div></div><div><font face="Calibri, sans-serif"><br></font></div><div><font face="Calibri, sans-serif">I'm not sure if the "udevinfo" commands exist in the XO.</font></div>

<div><font face="Calibri, sans-serif">In my Ubuntu 12.10 I not have it, only the "udevadm"</font></div><div><font face="Calibri, sans-serif"><br></font></div><div><font face="Calibri, sans-serif">Which sugar version you have?</font></div>

<div><font face="Calibri, sans-serif"><br></font></div><div><font face="Calibri, sans-serif">In the Terminal Activity:</font></div><div><font face="Calibri, sans-serif"><br></font></div><div><font face="Calibri, sans-serif">check for the N of the arduino:</font></div>

<div><font face="Calibri, sans-serif"><br></font></div><div><span style="font-family:Calibri,sans-serif">ls /dev/ | grep ttyUSB</span></div><div><span style="font-family:Calibri,sans-serif"><br></span></div><div><span style="font-family:Calibri,sans-serif">After, check if exist the udevinfo:</span></div>

<div><span style="font-family:Calibri,sans-serif"><br></span></div><div><span style="font-family:Calibri,sans-serif">See the n, and replace the * in this line:</span></div><div><font face="Calibri, sans-serif"><br></font></div>

<div><span style="font-family:Calibri,sans-serif">udevinfo -a -p /class/ttyUSB* | grep ftdi_sio</span></div><div><font face="Calibri, sans-serif"><br></font></div><div class="hm HOEnZb"><br></div><div style="font-family:Calibri,sans-serif;font-size:12pt">

<div class="hm HOEnZb"><div></div><hr>From: <a href="mailto:gerald.ardito@gmail.com" target="_blank">gerald.ardito@gmail.com</a><br>Date: Fri, 5 Oct 2012 00:14:08 -0400<br>Subject: Re: Re: [IAEP] Arduino and XO-1<br>To: <a href="mailto:forster@ozonline.com.au" target="_blank">forster@ozonline.com.au</a><br>

CC: <a href="mailto:alanjas@hotmail.com" target="_blank">alanjas@hotmail.com</a>; <a href="mailto:iaep@lists.sugarlabs.org" target="_blank">iaep@lists.sugarlabs.org</a></div><div><div class="h5"><br><br>Tony,<div><br>Thanks.  I'll check it out.</div>

<div><br></div><div>Gerald<br><br><div>On Fri, Oct 5, 2012 at 12:09 AM,  <span dir="ltr"><<a href="mailto:forster@ozonline.com.au" target="_blank">forster@ozonline.com.au</a>></span> wrote:<br>

<blockquote style="border-left:1px #ccc solid;padding-left:1ex">Gerald<br>
<br>
Maybe the baud rate or the device name do not match.<br>
<br>
Somewhere in the Arduino plugin code it searches for ttyusbn where n=1,2,3 ...<br>
<br>
Your Arduino board could be ttyusbn or ttyacmn where n increments each time you replug the Arduino. Somewhere, I think /dev , you can see what your Arduino is.<br>
<br>
Somewhere in the Firmata listing the baud rate is set, check its the same in the plugin code.<br>
<br>
Tony<br>
<div><br>
> Alan,<br>
><br>
> I have uploaded the newest version of Firmata to the Arduino board, and<br>
> still get the first error in your list.<br>
> Any thoughts about what I should do next?<br>
><br>
> Thanks.<br>
> Gerald<br>
><br>
> On Thu, Oct 4, 2012 at 11:22 PM, Alan Jhonn Aguiar Schwyn <<br>
> <a href="mailto:alanjas@hotmail.com" target="_blank">alanjas@hotmail.com</a>> wrote:<br>
><br>
> > Hi,<br>
> ><br>
> > The Arduino plugin have some checks. This checks are:<br>
> ><br>
> > 'ERROR: Check the Arduino and the number of port.'<br>
> > 'ERROR: Value must be a number from 0 to 255.'<br>
> > 'ERROR: Value must be either HIGH or LOW.'<br>
> > 'ERROR: The mode must be either INPUT, OUTPUT, PWM or SERVO.'<br>
> ><br>
> > The Arduino board needs have the Firmata firmware [1].<br>
> ><br>
> > The checks are catched with try/excepts that not allows see what is wrong.<br>
> > I can make a version without it to test..<br>
> ><br>
> > Regards!<br>
> ><br>
> > Alan<br>
> ><br>
> > [1] <a href="http://firmata.org/wiki/Download" target="_blank">http://firmata.org/wiki/Download</a><br>
> ><br>
</div>> > ------------------------------<br>
<div>> > From: <a href="mailto:gerald.ardito@gmail.com" target="_blank">gerald.ardito@gmail.com</a><br>
> > Date: Thu, 4 Oct 2012 23:09:03 -0400<br>
> > To: <a href="mailto:forster@ozonline.com.au" target="_blank">forster@ozonline.com.au</a>; <a href="mailto:support-gang@laptop.org" target="_blank">support-gang@laptop.org</a>;<br>
> > <a href="mailto:iaep@lists.sugarlabs.org" target="_blank">iaep@lists.sugarlabs.org</a><br>
> > Subject: [IAEP] Arduino and XO-1<br>
> ><br>
> ><br>
> > Tony,<br>
> ><br>
> > I have been trying to get the Arduino to work with the XO-1 laptops.<br>
> > (Thanks to your great blog posts) I have successfully installed the<br>
> > Arduino IDE on the laptop, and it works great.<br>
> > Tonight, I installed the Arduino plugin for Turtle Art and (once again<br>
> > using your blog posts), created my first project. When I click "Start," I<br>
> > get an error: "Check the Arduino and the number of port."<br>
> ><br>
> > How do I do this with TurtleArt/outside the IDE?<br>
> ><br>
> > Thanks so much.<br>
> > Gerald<br>
> ><br>
> > _______________________________________________ IAEP -- It's An Education<br>
> > Project (not a laptop project!) <a href="mailto:IAEP@lists.sugarlabs.org" target="_blank">IAEP@lists.sugarlabs.org</a><br>
> > <a href="http://lists.sugarlabs.org/listinfo/iaep" target="_blank">http://lists.sugarlabs.org/listinfo/iaep</a><br>
> ><br>
> > _______________________________________________<br>
> > IAEP -- It's An Education Project (not a laptop project!)<br>
> > <a href="mailto:IAEP@lists.sugarlabs.org" target="_blank">IAEP@lists.sugarlabs.org</a><br>
> > <a href="http://lists.sugarlabs.org/listinfo/iaep" target="_blank">http://lists.sugarlabs.org/listinfo/iaep</a><br>
> ><br>
><br>
</div>> _____________________________________________________<br>
> This mail has been virus scanned by Australia On Line<br>
> see <a href="http://www.australiaonline.net.au/mailscanning" target="_blank">http://www.australiaonline.net.au/mailscanning</a><br>
> Alan,<div><br></div><div>I have uploaded the newest version of Firmata to the Arduino board, and still get the first error in your list.</div><div>Any thoughts about what I should do next?<br><br>Thanks.<br>Gerald<br><br><div class="gmail_quote"><br>




><br>
> On Thu, Oct 4, 2012 at 11:22 PM, Alan Jhonn Aguiar Schwyn <span dir="ltr"><<a href="mailto:<a href="mailto:alanjas@hotmail.com" target="_blank">alanjas@hotmail.com</a>" target="_blank"><a href="mailto:alanjas@hotmail.com" target="_blank">alanjas@hotmail.com</a></a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>




><br>
><br>
><br>
><br>
> <div><div dir="ltr">Hi,<div><br></div><div>The Arduino plugin have some checks. This checks are:</div><div><br></div><div><div>'ERROR: Check the Arduino and the number of port.'</div><div>'ERROR: Value must be a number from 0 to 255.'</div><br>




><br>
> <div>'ERROR: Value must be either HIGH or LOW.'</div><div>'ERROR: The mode must be either INPUT, OUTPUT, PWM or SERVO.'</div><div><br></div><div>The Arduino board needs have the Firmata firmware [1].</div><br>




><br>
> <div><br></div><div>The checks are catched with try/excepts that not allows see what is wrong.</div><div>I can make a version without it to test..</div><div><br></div><div>Regards!</div><div><br></div><div>Alan</div><div><br>




><br>
> <br></div><div>[1]�<a href="<a href="http://firmata.org/wiki/Download" target="_blank">http://firmata.org/wiki/Download</a>" style="font-size:12pt" target="_blank"><a href="http://firmata.org/wiki/Download" target="_blank">http://firmata.org/wiki/Download</a></a></div><br><div><div></div><hr>From: <a href="mailto:<a href="mailto:gerald.ardito@gmail.com" target="_blank">gerald.ardito@gmail.com</a>" target="_blank"><a href="mailto:gerald.ardito@gmail.com" target="_blank">gerald.ardito@gmail.com</a></a><br><br>




><br>
> Date: Thu, 4 Oct 2012 23:09:03 -0400<br>To: <a href="mailto:<a href="mailto:forster@ozonline.com.au" target="_blank">forster@ozonline.com.au</a>" target="_blank"><a href="mailto:forster@ozonline.com.au" target="_blank">forster@ozonline.com.au</a></a>; <a href="mailto:<a href="mailto:support-gang@laptop.org" target="_blank">support-gang@laptop.org</a>" target="_blank"><a href="mailto:support-gang@laptop.org" target="_blank">support-gang@laptop.org</a></a>; <a href="mailto:<a href="mailto:iaep@lists.sugarlabs.org" target="_blank">iaep@lists.sugarlabs.org</a>" target="_blank"><a href="mailto:iaep@lists.sugarlabs.org" target="_blank">iaep@lists.sugarlabs.org</a></a><br><br>




><br>
> Subject: [IAEP] Arduino and XO-1<div><div class="h5"><br><br>Tony,<div><br></div><div>I have been trying to get the Arduino to work with the XO-1 laptops.</div><div>(Thanks to your great blog posts) I have successfully installed the Arduino IDE on the laptop, and it works great.</div><br>




><br>
><br>
><br>
> <div>Tonight, I installed the Arduino plugin for Turtle Art and (once again using your blog posts), created my first project. When I click "Start," I get an error: "Check the Arduino and the number of port."<br><br>




><br>
><br>
><br>
> <br>How do I do this with TurtleArt/outside the IDE?<br><br>Thanks so much.<br></div><div>Gerald</div><br>
> <br></div></div>_______________________________________________<br>
<div>> IAEP -- It's An Education Project (not a laptop project!)<br>
</div>> <a href="mailto:<a href="mailto:IAEP@lists.sugarlabs.org" target="_blank">IAEP@lists.sugarlabs.org</a>" target="_blank"><a href="mailto:IAEP@lists.sugarlabs.org" target="_blank">IAEP@lists.sugarlabs.org</a></a><br>




> <a href="<a href="http://lists.sugarlabs.org/listinfo/iaep" target="_blank">http://lists.sugarlabs.org/listinfo/iaep</a>" target="_blank"><a href="http://lists.sugarlabs.org/listinfo/iaep" target="_blank">http://lists.sugarlabs.org/listinfo/iaep</a></a></div></div>                                     </div></div><br>




> <br>_______________________________________________<br><br>
> IAEP -- It's An Education Project (not a laptop project!)<br><br>
> <a href="mailto:<a href="mailto:IAEP@lists.sugarlabs.org" target="_blank">IAEP@lists.sugarlabs.org</a>"><a href="mailto:IAEP@lists.sugarlabs.org" target="_blank">IAEP@lists.sugarlabs.org</a></a><br><br>


> <a href="<a href="http://lists.sugarlabs.org/listinfo/iaep" target="_blank">http://lists.sugarlabs.org/listinfo/iaep</a>" target="_blank"><a href="http://lists.sugarlabs.org/listinfo/iaep" target="_blank">http://lists.sugarlabs.org/listinfo/iaep</a></a><br></blockquote></div><br></div><br>




<br>
</blockquote></div><br></div></div></div></div>                                         </div></div>
<br>_______________________________________________<br>
IAEP -- It's An Education Project (not a laptop project!)<br>
<a href="mailto:IAEP@lists.sugarlabs.org">IAEP@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/iaep" target="_blank">http://lists.sugarlabs.org/listinfo/iaep</a><br></blockquote></div><br></div>