<?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:  Bluetooth Serial Port To NXT in OSX</title>
    <link>http://juju.org/articles/2006/10/22/bluetooth-serial-port-to-nxt-in-osx</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Sufficiently Advanced Technology</description>
    <item>
      <title> Bluetooth Serial Port To NXT in OSX</title>
      <description>&lt;p&gt;Some people have been confused as to how to use &lt;a href="http://rubyforge.org/projects/ruby-nxt/"&gt;ruby-nxt&lt;/a&gt; in OSX.  Some of the confusion was that I had posted &lt;a href="http://juju.org/articles/2006/08/01/mindstorms-nxt-bluetooth-on-osx"&gt;instructions&lt;/a&gt; which only allowed connection FROM the nxt to the mac where the mac is the slave.  To use ruby-nxt you need to initiate a connection from the mac to the NXT where the mac is the master.  Here's some "simplified" step by step instructions:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Turn on the NXT and make sure bluetooth is turned on. (you should see a bluetooth icon at the top left corner)&lt;/li&gt;
&lt;li&gt;Click the bluetooth icon in the menubar, select "Setup bluetooth device".&lt;/li&gt;
&lt;li&gt;When it asks for Select Device Type, choose "Any device".&lt;/li&gt;
&lt;li&gt;Select the NXT from the list, click continue.&lt;/li&gt;
&lt;li&gt;The nxt will beep and ask for a passkey, choose 1234, press orange button.&lt;/li&gt;
&lt;li&gt;click continue in osx, enter 1234.&lt;/li&gt;
&lt;li&gt;The NXT will beep again, press orange button to use 1234 again.&lt;/li&gt;
&lt;li&gt;The mac will complain "There were no supported services found on your device".  Don't worry about that and click continue and then click Quit.&lt;/li&gt;
&lt;li&gt;In OSX click the bluetooth icon, select "Open bluetooth preferences", you should see the NXT listed, select it, then click "Edit Serial Ports".&lt;/li&gt;
&lt;li&gt;It should show NXT-DevB-1, if not click add, use Port Name: NXT-DevB-1, Device Service: Dev B, Port type: RS-232.  Click Apply.&lt;/li&gt;
&lt;li&gt;You're done!  You should now have a /dev/tty.NXT-DevB-1&lt;/li&gt;
&lt;/ol&gt;</description>
      <pubDate>Sun, 22 Oct 2006 17:14:00 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:b201b7f6-4ec3-4207-aadb-935a0903dfdb</guid>
      <author>Tony Buser</author>
      <link>http://juju.org/articles/2006/10/22/bluetooth-serial-port-to-nxt-in-osx</link>
      <category>OSX</category>
      <category>Code</category>
      <category>Mindstorms</category>
      <trackback:ping>http://juju.org/articles/trackback/514</trackback:ping>
    </item>
    <item>
      <title>" Bluetooth Serial Port To NXT in OSX" by Brian+Marick</title>
      <description>&lt;p&gt;Oops. I rebuilt this machine over the weekend and, um, forgot to install the developer tools. After that, extconf.rb found termios.h. ld found setregid in both /opt/local/lib/libruby.dylib(process.o) and /usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libpthread.dylib(setregid.So), so I removed /opt/local/lib from the path. After that, things appear to work.&lt;/p&gt;</description>
      <pubDate>Tue, 05 Dec 2006 00:52:55 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:566a20a1-4651-487a-a026-14cd032074bd</guid>
      <link>http://juju.org/articles/2006/10/22/bluetooth-serial-port-to-nxt-in-osx#comment-885</link>
    </item>
    <item>
      <title>" Bluetooth Serial Port To NXT in OSX" by Tony Buser</title>
      <description>&lt;p&gt;Seems as though you might not have all the osx developer tools installed.  It should be at /Developer/SDKs/MacOSX10.4u.sdk/usr/include/termios.h&lt;/p&gt;</description>
      <pubDate>Mon, 04 Dec 2006 21:39:42 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:5b9b2572-3044-4905-b4ee-76148ee93cac</guid>
      <link>http://juju.org/articles/2006/10/22/bluetooth-serial-port-to-nxt-in-osx#comment-884</link>
    </item>
    <item>
      <title>" Bluetooth Serial Port To NXT in OSX" by Brian Marick</title>
      <description>&lt;p&gt;Newbie question. I've followed the above instructions successfully. I've tried to compile ruby-serialport--0.6 (OSX 1.4.8, Macbook, with developer tools installed), but I get this:&lt;/p&gt;

&lt;p&gt;$ ~/Desktop/downloads/ruby-serialport-0.6 548 $ ruby extconf.rb
checking for OS... darwin
checking for termios.h... no&lt;/p&gt;

&lt;p&gt;have_header: checking for termios.h... -------------------- no&lt;/p&gt;

&lt;p&gt;"gcc -E -I. -I/opt/local/lib/ruby/1.8/i686-darwin8.8.1 -I. -O -pipe -I/opt/local/include -O -pipe -I/opt/local/include  -fno-common -pipe -fno-common -Ddarwin  conftest.c -o conftest.i"
checked program was:
/* begin */
1: #include 
/* end */&lt;/p&gt;

&lt;p&gt;There doesn't seem to be a termios.h anywhere on the system, though there is a "man 4 termios". Darwinports 'port info' doesn't show anything obvious. &lt;/p&gt;

&lt;p&gt;Hope you can help. The NXT environment on this macbook is s-l-o-w and I frankly think my daughter would like Ruby better. &lt;/p&gt;</description>
      <pubDate>Mon, 04 Dec 2006 20:35:03 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:f8c511dc-94e9-4a91-a2b5-a3354c63c38f</guid>
      <link>http://juju.org/articles/2006/10/22/bluetooth-serial-port-to-nxt-in-osx#comment-883</link>
    </item>
  </channel>
</rss>
