OneWireViewer for OSX Download

Posted by shughes Fri, 05 Aug 2005 01:52:00 GMT

I had a few people post in the comments about getting a copy of the OneWireViewer update I did… A few email me privately. I’ve been emailing it out to people as it’s requested, but now that I have a good web hosting service, I may as well put it out on the intarweb proper-like.

For now, this is a binary-only distribution. I want to do some more testing with it and make a similar binary distribution for Linux before I make this official. Once I’m convinced that it’s as robust as the PC solution, we’ll move it over to the official Dallas Semiconductor ftp site. Although most of the source is available online (1-Wire API for Java and 1-Wire Public Domain Kit on maxim-ic.com, libusb on libusb.sourceforget.net, rxtx on rxtx.org), some of the glue I used to make this work isn’t. I’ll try to make that available soon to people who want to dig around in that part of it.

Don’t blame me if this application sets your pretty Macintosh computer on fire.

OWV-Beta-2.dmg (2.4mb)

If you have any success with this at all, please leave a comment and let me know.

Technorati Tags: , ,

Posted in ,  | Tags ,  | 29 comments

Comments

  1. Avatar andy said 18 days later:

    this is a lifesaver. huge relief to have this available for OSX, and thanks for making it free. been looking for a solution like this for several years (i am not a programmer). i really prefer not having to use someone else’s PC, or Virtual PC and Windows on my Mac just to access my thermochron ibuttons. good job!

  2. Avatar Scott Hughes said 18 days later:

    Andy,

    I hope it works out for you. Come back after you get some time to play with it and let me know if you find any problems.

    I hope to get some time soon to polish this up and call it complete.

  3. Avatar sjm217-blog@srcf.ucam.org said 93 days later:

    Presumably this binary will not work for Linux, but do you have a version that will? Even if it is not robust, I would still be interested in trying it out.

    Thanks.

  4. Avatar Scott Hughes said 93 days later:

    It’s on my to-do list to finish up the missing pieces of the source and post it so anyone can try building it. I promise to get it done soon.

  5. Avatar Scott Hughes said 93 days later:

    Ok, I posted the source for anyone wanting to try it out. This builds on Mac OSX. Other platforms have some work to do.

    http://globalreset.org/files/distribution/PDKAdapterUSB.tar.gz

  6. Avatar Francis said 164 days later:

    Hello, many thanks for putting this up. A dumb question (I hope) - I’m trying to set a theromchron (DS1921G-F5) on a mission, but failing. Can see the device working in the Temperature area, but when I try to start a new mission nothing happens (other than a “Bad Number Format: java.lang.NumberFormatException: empty String”. Any ideas??

  7. Avatar Scott Hughes said 165 days later:

    Francis,

    Make sure you put in a value for Temperature Low Alarm and Temperature High Alarm. These are required fields, but the form, unfortunately, does not tell you so.

    Scott

  8. Avatar Francis said 165 days later:

    many thanks Scott, that worked - which means I’ve gotten everything going without being unfaithful to my Mac and am now a happy vegemite. One follow up question:

    I can get the data out by looking at the graph and copying to the clipboard - which gives me exactly what I want - but I’m left wondering what the file tab is for? Maybe there is some stuff I should read somewhere?

  9. Avatar Grant K said 245 days later:

    Just plugged it in and it worked. Thanks for the time you put in, so we all didn’t have to. (iBook G4, OS 10.4.2 - DS9490R)

  10. Avatar nvdberge said 250 days later:

    Hello Scott,

    It seems like we see each other in every topic, but I still can not get it going. The first thing I see is a message-window where I can enter the default port. He already fills the DS9490 and USB1 in the fields (default or detected?). Further I can select a port. In that list is no USB port, only 2 times a Bluetooth PDA Sync and 2 times a Bluetooth-Modem.

    When I press the OK button I get a textfield with the error:

    Specified adapter name “DS9490” is not known

    Cannot load default adapter. Please check that the adapter is connected and that no other application is using the port.

    I hope someone can help me with this.

  11. Avatar Scott Hughes said 251 days later:

    nvdberge,

    If the USB adapter doesn’t show up in the list, that means there was a problem loading it. I can’t think of a way I’ll be able to help you debug it right now (since there isn’t really any debug output in the PDKAdapterUSB object). What you can do is re-build the adapter object from source and run the TestMain method. Just download this package:

    http://globalreset.org/files/distribution/PDKAdapterUSB.tar.gz

    Then, from the bash terminal, run the following:
    tar -xzf PDKAdapterUSB.tar.gz
    cd PDKAdapterUSB
    make && make test

    I can’t remember off the top of my head if Java checks the current directory for binary extensions. So, that last line might need to be:

    make && sudo make install && make test

    The install target only copies the .jnilib file to the /Library/Java/Extensions folder.

    After you get the output from “make test”, let me know what it looks like.

  12. Avatar nvdberge said 251 days later:
    I get the following:

    PDKAdapter.OpenPort_native called opening DS2490-1 select port returned: false Exception in thread “main” com.dalsemi.onewire.OneWireException: Port not selected at com.dalsemi.onewire.adapter.PDKAdapterUSB.adapterDetected(PDKAdapterUSB.java:124) at TestMain.main(TestMain.java:12)

    make: * [test] Error 1

    Niels

  13. Avatar nvdberge said 251 days later:

    sorry about the big letters, I got it when I used three times a ‘-’

  14. Avatar Felipe Vicentini said 275 days later:

    Hello Scott, Thanks for the wonderful app!!! I´m a little new by with ibuttons, and i couldn´t program my ds1991l-f5 with this mac version, is it possible? It sounds dumb but i´ll apreciate any answer.

    Thanks again.

  15. Avatar Scott Hughes said 275 days later:

    Well, I’m not very familiar with the DS1991 device, but it is possible. If this part requires strong pull-up or 12V programming, it definitely won’t work as I’ve yet to implement those features properly. I believe this is an NVRAM part though, so I want to say that it should work. I’ll try to remember to test it out when I go into the office on Monday (don’t have any DS1991’s lying around).

  16. Avatar Felipe Vicentini said 279 days later:

    Scott, sorry for the false alarm… Your program is OK, I was the one who was confused. The program that i use to program my i-buttons is the tmex one. Is there an alternative for this one on mac computers? Ore at least an resource for programing the DS1991 ibuttons, for dummies?

    thanks again :)

  17. Avatar Scott Hughes said 279 days later:

    Felipe, I’m a dummy on the DS1991. I don’t know what app support we have for it. There is most likely an app in our Public Domain Kit which would work. The best place to find out is the discussion forum (http://discuss.dalsemi.com). I’ll ask around to see if anyone knows better than me.

  18. Avatar Felipe Vicentini said 279 days later:

    Scott, Thanks for every thing, and sorry for bode-ring around :)

  19. Avatar keith.kaiser@gmail.com said 350 days later:

    I hope your offer to send an osx solution is still valid, I just received the iButton starter kit with a DS1921G and a DS9490R adapter. Would you please send me your software, I would really like to send this thing to space this weekend…. nearspace at least. http://nearspaceventures.com

  20. Avatar keith.kaiser@gmail.com said 357 days later:

    It Works! Very cool, now I just have to plow through the 47 page manual and figure out how to actually use the thing.

  21. Avatar Florin van Slingerland said 357 days later:

    First I had the same problems that Niels had, when I did the make test again, but now with the USB adapter plugged in, I get the following info:

    javac -d . -classpath .:OneWireAPI.jar java/test/TestMain.java java -classpath .:OneWireAPI.jar TestMain PDKAdapter.OpenPort_native called opening DS2490-1 select port returned: true adapterDetected returned: true reset returned: 1 datablock returned: 3381E2E22500000045 reset returned: 1 getByte returned: 81 getByte returned: E2 reset returned: 1 getBit returned: 81 find first: true address: 4500000025E2E281 powerdelivery: true powerdelivery after bit: true powerdelivery after byte: true calling owRelease

    I guess this means that something is working, but the onewireviewer somehow still doesn’t like what I have done.

    The select port selection list is empty, but when I use the default port settings, I get the message that the Specified adapter name “DS9490” is not known.

    If anyone knows what I’m doing wrong, please let me know.

  22. Avatar Florin van Slingerland said 357 days later:

    Oh yes, I almost forget to mention, I do have libusb installed (via the pre-build installation package).

  23. Avatar Florin van Slingerland said 358 days later:

    Hi Scott (and everyone else reading this),

    I was able to solve the problem, here is how.

    For the newbies among us (just like me), OneWireViewer.app is just a directory, you won’t notice this when you use the finder, but when you use the terminal you will be able to go into the OneWireViewer.app.

    Make sure that you have downloaded and builded the complete PDK (see Scotts explenation in comment 11). Copy the libonewireUSB.jnilib to //OneWireViewer.app/Contents/Resources/Java .You will overwrite the existing one in that folder. Now try to run the application again via the finder, in my case it’s working now.

    Best Regards,

    Florin

  24. Avatar Florin van Slingerland said 358 days later:

    Remark on my previous comment:

    //OneWireViewer.app/Contents/Resources/Java

    was intended to be:

    /[where you have placed the app file] /OneWireViewer.app/Contents/Resources/Java

    Somehow the website thinks it was a typo and fixed it for me :-(

  25. Avatar Nick said 537 days later:
    Any word on a linux build? i’ve tried to hack the makefile on my amd64 machine, but it keeps dying when creating the shared library… gcc -o libonewireUSB.so -shared -Wl,-soname,libonewireUSB.so /usr/lib/libusb.a PDKAdapterUSB.o libusbllnk.o libusbds2490.o libusbnet.o libusbses.o libusbtran.o owerr.o crcutil.o -static -lc -fpic /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/crtbeginT.o: relocation R_X86_64_32 against `__deregister_frame_info’ can not be used when making a shared object; recompile with -fPIC i also don’t care if the solution is stable… i’d actually like to help if i can :)
  26. Avatar Stuart said 637 days later:

    Dear Sir:

    I am considering the purchase of a TAI8515 1-Wire Weather Instrument Kit V3.0 (from www.aagelectronica.com), and wish to interface it with MacOS 10.4.9 on a PowerBook G4 1.5 laptop.

    I currently own a USB device that gives me an RS-232C port (9-Pin) that I got from NewEgg.com about a year ago, and have drivers for the USB to RS232 cable to work on MacOS 10.4.9 currently.

    That all said, if I were to purchase the DS9097U Universal 1-Wire Com. Port Adapter and plug it into the USB/RS232 adapter I have, would I then be able to use your software to then get access to the data stream under MacOS to record wind speeds, or do I need to scrap that idea and simply use the DS9490R USB 1-Wire Adapter to read TAI8515 1-Wire Weather Instrument Kit V3.0?

    Please advise.

    Stuart

  27. Avatar andy said 823 days later:

    Hi Scott (and everyone else),

    I was the first poster up above… I have used this app extensively with thermochron ibuttons (DS1921G, DS1921Z, DS1922L) using a DS1402D-DR8 “blue dot” ibutton reader and DS9490-R USB interface. The app has a few quirks, but does the job well. I use a 12” Powerbook G4 (1.5ghz).

    The reader must be plugged in before starting the app… otherwise you get an error message, and the program quits. This may be specific to the reader/USB adapter setup that I have.

    If you unplug the reader while the app is running, you can’t just plug it back in and have it be recognized. You have to quit the app, plug in the adapter again, then restart the program. This also may be specific to my setup.

    Other quirks… with DS1921 series thermochron ibuttons, as noted above, you need to fill in the values for high and low temp alarm, or else it will give you an error message.

    Otherwise, operation is just like the PC version.

    When my Mac-using colleagues need to use ibuttons, I point them to this program. Excellent!

    andy

  28. Avatar Don said 965 days later:

    Scott:

    The link for the One-Wire app for Macs did not seem to want to use the PDKadapterUSB that you created and only looked for USerialAdapter. Downloading the source from Maxim, I found that the enumerateAllAdapters routine in the OneWireAccessProvider.java file did not try to load the PDKAdapterUSB class. I duplicated the code for loading the USerialAdapter to fix that problem. That got the USB device port showing up.

    Then in the putByte function in the PDKAdapterUSB.java, the check of ‘ret’ and ‘dataByte’ was failing due to the ‘dataByte’ being sign extended. Masking off just the last byte, “if(ret!=(dataByte & 0x0FF))” fixed this problem and now the code works beautifully.

    Just wanted to leave these notes for anyone else who comes along and has trouble getting it to work.

  29. Avatar jfinazzo@brewerscience.com said 991 days later:

    After reading through the 28 comments, it looks like 1WireViewer for MAC is working. My company needs to use the 1WireViewer on MAC G4’s. Can anyone point me in the right direction to download the java application for MAC? I would greatly appreciate it. Thanks! JAF

(leave url/email »)

   Comment Markup Help Preview comment