Global Reset

Engineer, Objectivist, and Father

1-Wire on Mac OSX

Posted by shughes Fri, 27 May 2005 03:42:31 GMT

On the very successful front, I have had some luck getting 1-Wire apps to build and run on Mac OSX. I tried for far too long to get rxtx working, so that I could run OneWireViewer. That still fails, but I think it’s for an old reason. I had been having problems with rxtx on Win32 and Linux, but they are fixed in the CVS head revision… Unfortunately, I can’t build the CVS head revision for the Mac yet.

Eventually, I gave up on rxtx/Java and turned to our 1-Wire Public Domain Kit. The ulinuxgnu build (which maybe should be renamed the “posix_serial” build), built and ran perfectly. Using a keyspan USB-to-serial adapter and a DS9097U serial-to-1-Wire adapter, I had 1-Wire connectivity! The only modification I had to make was to the ownet.h file, where it was defining certain data types based on platform (and this platform wasn’t one of the ones it knew about).

I also got the libUSB build to compile, though it threw a lot of ugly warnings. I had to first ask the very cool Fink to “install libUSB.” Unfortunately, I am without a USB-to-1-Wire adapter at home, so I was not able to test if it’s actually going to work. :( But I have every confidence that it’ll work or, if it doesn’t, I’ll get it working.

Technorati Tags: ,

Posted in , , | 2 comments |

Comments

Leave a comment

  1. Avatar
    Tim Bitson
    5 months later:

    Scott,

    I’ve been running rxtx with Java & 1-wire on Mac OS X for over year. I just came across your site, I have been successful at building & using nearly all of the 1-wire java examples. I just recently ported a version of my TiniWeatherServer to Java on Mac. If I can be of any help, please let me know.

    I’m interesed in your 1-Wire Java Apps that works with the 1-Wire USB adapter. Is source available?

    Tim Bitson www.timbitson.com/weather/

  2. Avatar
    Scott Hughes
    5 months later:

    Tim,

    Thanks for the offer… I have, since posting this, gotten the rxtx library to work on Mac OS X. I’m working on bundling up a release of my USB Adapter support for libUSB. I’ll update my blog site when I’ve got it completed.

    Scott

Leave a comment