<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/stylesheets/rss.css" type="text/css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Juju: ruby-nxt</title>
    <link>http://juju.org/articles/2006/08/06/ruby-nxt</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Sufficiently Advanced Technology</description>
    <item>
      <title>ruby-nxt</title>
      <description>&lt;p&gt;I made a lot of progress this weekend on ruby-nxt.  I got most of the Direct Commands completed.  &lt;b&gt;Update:&lt;/b&gt; ruby-nxt can now be found at &lt;a href="http://rubyforge.org/projects/ruby-nxt/"&gt;rubyforge&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;It makes programming the NXT as &lt;em&gt;simple&lt;/em&gt; as:&lt;/p&gt;

&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_default "&gt;require 'nxt.rb'

NXT.exec(&amp;quot;/dev/tty.NXT-B&amp;quot;) do |cmd|

  puts &amp;quot;Battery Level: #{cmd.GetBatteryLevel[0]/1000.0} V&amp;quot;

  cmd.PlaySoundFile(true,&amp;quot;Good Job.rso&amp;quot;)
  sleep(3)
  cmd.StopSoundPlayback

end&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Once I get it a little more polished, I plan on also creating a &lt;a href="http://rubyonrails.com"&gt;Ruby On Rails&lt;/a&gt; plugin.  Forget &lt;a href="http://msdn.microsoft.com/robotics/"&gt;Microsoft Robotics Studio&lt;/a&gt;.  ;)&lt;/p&gt;</description>
      <pubDate>Sun, 06 Aug 2006 23:11:00 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:a0236470-949f-42cb-8225-530fdd7eda6d</guid>
      <author>Tony Buser</author>
      <link>http://juju.org/articles/2006/08/06/ruby-nxt</link>
      <category>Ruby On Rails</category>
      <category>Ruby</category>
      <category>Robots</category>
      <category>Mindstorms</category>
      <category>Code</category>
      <category>ruby</category>
      <category>mindstorms</category>
      <category>nxt</category>
      <category>rails</category>
      <trackback:ping>http://juju.org/articles/trackback/410</trackback:ping>
    </item>
    <item>
      <title>"ruby-nxt" by Seriously awesome</title>
      <description>&lt;p&gt;This is awesome. Exactly what I've been looking for. Please do keep working on this. I'm hooked up to your svn repository.&lt;/p&gt;</description>
      <pubDate>Thu, 31 Aug 2006 01:10:31 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:4d67aadf-4672-4876-bbb1-01bdecfffd9d</guid>
      <link>http://juju.org/articles/2006/08/06/ruby-nxt#comment-480</link>
    </item>
    <item>
      <title>"ruby-nxt" by Tony</title>
      <description>&lt;p&gt;Check out someone created an &lt;a href="http://nxt.ivorycity.com/"&gt;nxt direct commands module for perl&lt;/a&gt;.&lt;/p&gt;</description>
      <pubDate>Mon, 21 Aug 2006 21:34:16 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:8520a9b6-32ca-42b4-8734-2340c86609c5</guid>
      <link>http://juju.org/articles/2006/08/06/ruby-nxt#comment-479</link>
    </item>
    <item>
      <title>"ruby-nxt" by Tony</title>
      <description>&lt;p&gt;I got it working in &lt;a href="http://juju.org/articles/2006/08/16/ruby-serialport-nxt-on-windows"&gt;windows under cygwin&lt;/a&gt;!&lt;/p&gt;</description>
      <pubDate>Wed, 16 Aug 2006 23:05:53 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:96b4aa07-b0f9-4433-a4bb-af1d1e9ca4a1</guid>
      <link>http://juju.org/articles/2006/08/06/ruby-nxt#comment-478</link>
    </item>
    <item>
      <title>"ruby-nxt" by Tony Buser</title>
      <description>&lt;p&gt;Apparently it's not quite that easy on windows, you need a compiler.  For more info &lt;a href="http://rubyforge.org/forum/forum.php?thread_id=590&amp;amp;forum_id=227"&gt;check here&lt;/a&gt;.  I probably won't be testing it on windows.&lt;/p&gt;</description>
      <pubDate>Tue, 08 Aug 2006 09:13:21 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:583a056f-0384-4def-8d84-ce169fe0819a</guid>
      <link>http://juju.org/articles/2006/08/06/ruby-nxt#comment-415</link>
    </item>
    <item>
      <title>"ruby-nxt" by Tony Buser</title>
      <description>&lt;p&gt;Hi and thanks.  If only there was a ruby interpreter that ran on a cell phone.  :)  If you use ruby-nxt and set $DEBUG = true, it will print out the bytes that it's sending and recieving so it could be used to figure out what commands need to be sent to do what you want.&lt;/p&gt;

&lt;p&gt;As for getting it working in linux, check out &lt;a href="http://www.jstuber.net/lego/nxt-programming/bluetooth-linux.html"&gt;this page&lt;/a&gt; for how to pair the NXT.  I haven't tested it yet, but I will when I get a chance.  If you get it working let me know.  Also, the ruby-serialport module says it works in windows also.  Instead of passing a "/dev/ttyS0", you'd pass it "COMx" where x is the port number.&lt;/p&gt;

&lt;p&gt;You had asked about licensing on your blog, consider it GPL.  :)  I'll stick it in the comments when I get a chance.&lt;/p&gt;</description>
      <pubDate>Tue, 08 Aug 2006 09:08:11 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:adc416a5-0e0f-4ae8-9840-5b9485c5c5a3</guid>
      <link>http://juju.org/articles/2006/08/06/ruby-nxt#comment-414</link>
    </item>
    <item>
      <title>"ruby-nxt" by DannyStaple</title>
      <description>&lt;p&gt;Tony, this is seriously nice. I am going to have to try this out on my linux box at some point when I have the tuits. &lt;/p&gt;

&lt;p&gt;Until then, I have blogged this at orionrobots: &lt;a href="http://orionrobots.co.uk/tiki-view_blog_post.php?blogId=1&amp;amp;postId=113"&gt;http://orionrobots.co.uk/tiki-view&lt;em&gt;blog&lt;/em&gt;post.php?blogId=1&amp;amp;postId=113&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;Unfortunately, I have not got trackback pings coming out of my CMS at the moment, but rest assured I have linked to you from there.&lt;/p&gt;

&lt;p&gt;Have you thought about how this, and the phone AT command menu setups, could be used together? Having a ruby script to setup a series of commands, try them out, then send them to a mobile to attach to a button?&lt;/p&gt;

&lt;p&gt;Danny&lt;/p&gt;</description>
      <pubDate>Tue, 08 Aug 2006 02:11:39 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:c22df58e-77e1-4312-8e0b-0e8d62e80deb</guid>
      <link>http://juju.org/articles/2006/08/06/ruby-nxt#comment-411</link>
    </item>
  </channel>
</rss>
