Re: OT:Java help



On Fri, 18 May 2007 15:27:32 +0100, David Billington
<djb@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

As Loren mentions if you have a USB to rs232 adapter this may be an
issue. I program for a unit that needs RS232 and on some computers
without RS232 an adapter is required. The adapter normally used needs to
be configured so that it writes data immediately rather than buffering
it otherwise due to the serial rate data is lost. The configuration can
be found in the driver configuration panel.

I just received another query about 1-Wire communication, and did a
bit of research. Looks like a lot has changed since I set up my
system. There are now lots of commercial 1-Wire adapters, including
some that go directly from USB to 1-Wire:

<http://www.elbatech.com/ibuttonlink-desc.htm>
<http://www.aircable.net/industrial-male-sensors.html>
<http://www.audon.co.uk/1-wire_interface.html>

There is actually a USB solution from Maxim - the DS9490, DS9490B,
DS9490R USB to 1-Wire/iButton Adapter:
<http://www.maxim-ic.com/quick_view2.cfm/qv_pk/3834>

Maxim really does support Java:
<http://www.maxim-ic.com/products/ibutton/software/1wire/1wire_api.cfm>

Their API overview description still says XP support is incomplete
(but maybe the documentation lags behind the code state):
<http://pdfserv.maxim-ic.com/en/an/archive/app155.pdf>


Here's someone with freeware and shareware weather station software
(doesn't mention whether it uses RS-232 or USB):
<http://www.henriksens.net/1-wire/>


Here's a free software package that claims to export 1-Wire data via
DDE and support XP (you may need to use "Save Target As" to download):
<http://www.roso-control.com/Espanol/DDEVIEW/Esp_DDEVIEW.htm>
(If there's a way to get that site to a language other than Spanish, I
missed it...)

They mention an OPC server, but there is no link for download or info.
Notes on using the DDE server:
<http://www.arunet.co.uk/tkboyd/e1dddev.htm>


Instructions for the buffering adjustment David mentioned:
-----
For the 'userial' builds, the communication is between a UART
and the DS2480B chip. A large portion of the packets sent
to and from the chip are only a few bytes long. Thus is not
desirable to have a large FIFO on the UART because it will
introduct a delay in getting the packet. If the OS being used
supports changing the FIFO settings then it is recommended
to disable or reduce the depth of the FIFO to the smallest
settings.

In Windows, the modification is made in the 'Control Panel' under
'System'. Select the 'Device Manager' tab and choose the
'properties' for the desired port. Click on the 'Port Settings'
tab and go to 'Advanced settings'. Slide the FIFOs to the
minimum settings.
-----


The "Link" adapter claims to act as a network sniffer as well as a
data reader - might help in debugging the OP's problems:
<http://www.elbatech.com/ibuttonlink-desc.htm>
-----
The LINK also has features not found in a Dallas DS9097U. Used with
any terminal program, the LINK can serve as a network sniffer and
diagnostic tool. See Dallas Application Note #244.
-----

Or there is the Link TH which includes sensor reading software and
might be a $52 solution to the OP's problem:
<http://www.ibuttonlink.com/LinkTH_and_THMon.htm>

Hope this helps someone!

Loren
.


Loading