Global Reset

Engineer, Objectivist, and Father

1-Wire on Mac OSX: Java/USB Support!

Posted by shughes Tue, 05 Jul 2005 03:10:00 GMT
OneWire USB OSX

Take a look at this screen capture to see how I spent my 4th of July vacation weekend.

I ended up taking the libusb build of the 1-Wire Public Domain Kit and creating a JNI-wrapper around it. Now I’ve got a nice USB Adapter driver for the Java API (and hence for OneWireViewer). I’m going to look into modifying the WebStart download so that it will deliver the new USB adapter and the binary (JNI) portion of it. Possibly, I can sneak the libusb drivers along with that as well, without causing too much confusion. Maybe make 2 builds, one that includes libusb for people who aren’t cmd-line savvy enough to build their own and one that doesn’t.

The good news is that this should work on Linux, Mac OSX, and Windows. Windows users will have to install a .inf file first, but it will be a single-click application for Linux and Mac.

Update (7/10/2005): I used JarBundler to create a nice .App bundle of this for Mac OS X users. It’s pretty nice to have a installable .App of OneWireViewer that supports both the USB Adapter (DS9490) and the Serial Adapter (DS9097U) on Mac OS X. Unfortunately, I don’t have a good place to host it.. I’m not sure in it’s current form if it’s suitable for an official release to go up on the dalsemi ftp servers. So, if you’d like to try it, just leave a comment and include your email address (not in the comment, but in the regular email address field, where I will be able to see it but noone else will) and I can email you a copy of the app. It’s 2.3mb compressed.

Technorati Tags: , , , ,

Posted in , , | 10 comments |

Comments

Leave a comment

  1. Avatar
    anon
    4 months later:

    awesome to see this.

  2. Avatar
    Stephen Houser
    4 months later:

    I’m intrested in trying out this support as I’m working on getting Jython (java python) to work with onewire on USB on some macs. stephenhouser at gmail dot com.

  3. Avatar
    Scott Hughes
    4 months later:

    I’ve since posted the OneWireViewer.App for download:

    OneWireViewer.App

    And I posted the full source for the JNI-to-PDK-to-libUSB driver:

    Driver Source

  4. Avatar
    n6ac-at-arrl.net
    about 1 year later:

    Scott - Please send me a copy of your serial MacOSX app for the 1wirre system. Regards, …Al

  5. Avatar
    n6ac-at-arrl.net
    about 1 year later:

    That is, the 1wire weather system…

  6. Avatar
    thomas.kantermann@med.lmu.dew
    over 2 years later:

    Hi,

    great news that you have done this! Congratulations! Please send me your file for me to enter the iButton World!

    Greetings from Munich, Thomas

  7. Avatar
    thomas.kantermann@med.lmu.de
    over 2 years later:

    sorry, there was a “w” too much in my email ….

  8. Avatar
    James
    over 2 years later:

    Hi, Scott,

    I’m fixing on ordering one of the 1-Wire USB Adaptor [DS9490R-A] from HobbyBoards.com (http://www.hobby-boards.com/catalog/product_info.php?cPath=23&products_id=1503), and was hoping you’d be able to send me a copy of the driver you wrote for it.

    Have you had any feedback from users as far as any problems getting the 1-wire talking through the USB on your Mac?

    Thanks, James

  9. Avatar
    James
    over 2 years later:

    Also, could you please send me the OneWireViewer app you wrote?

    Thanks!

  10. Avatar
    n6ac_AT_arrl_dot_net
    about 4 years later:

    Any chance the file’s updated for Snow Leopard?

Leave a comment