Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: USB to Serial drivers for Mac OS X



Bob,

Greg is right, without knowing how to communicate with the device it would be difficult to write software to do it. However, it is possible! :) With the scale monitoring application, the scales we use came with information on how to setup the serial port and what format the data packets would be in. I purposely tried to keep scale specific code in one object so that I could support more scales in the future (eventually some of these scales will start to break).

If the Tinytag people provided you with this information, it would be pretty straightforward to write a Java program to fetch the data. As you can see from my code, there isn't much to it. ;)

-- Miles

On 3/10/06, Bob Irving <email@hidden> wrote:
Would this be similar to acquiring data from dataloggers <http://www.tinytag.info/ecomm/files/TK0014.pdf >? We are forced to use boring windoze software for this and it would be so nice to use a Mac...

Bob

On 10 Mar 2006, at 16:41, Christopher Miles wrote:

I have written a small program that uses RXTX to get data from electronic scales. We use USB to serial adapters on both Macs and Windows and it's been working pretty well.

     http://www.nervestaple.com/trac/scalemonitor

The bit where it talks to the usb serial adapter with RXTX is over here:

     http://www.nervestaple.com/trac/scalemonitor/browser/trunk/src/com/nervestaple/scalemonitor/serialportreader/SerialPortReader.java

There is a problem on OS X where RXTX won't work because it can't get a lock on some files in /var/spool. I have a script that fixes this problem (slightly adapted from the RXTX site) located here:

     http://www.nervestaple.com/projects/scalemonitor/dist/macosx-setup-rxtx.sh

I hope this is helpful,
-- Miles

On 2/23/06, Melvin Dave Vivas < email@hidden> wrote:
Hi,

I'm doing Java-SMS development using a GSM modem. I already have the USB-to-Serial cable. However, the vendor didn't ship a version of the driver for Mac OS X. Are there any generic software drivers out there that can connect my Serial GSM modem to my USB port in Mac OS X?

Actually, I want to support OS X in my next release of my open-source library(https://lemonsms.dev.java.net/ ) that's why I'm looking for a driver.

Cheers!

Melvin
--
The only true wisdom is in knowing you know nothing - Socrates

http://javazealot.blogspot.com
http://lostinsg.blogspot.com
http://myphotostories.blogspot.com

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      ( email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      ( email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: USB to Serial drivers for Mac OS X (From: "Christopher Miles" <email@hidden>)
 >Re: USB to Serial drivers for Mac OS X (From: Bob Irving <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.