Tilman Glotzner | 1 Jan 20:31 2008
Picon

DS2480 "Cannot detect DS2480 or LINK interface" in 2.7

Hello,

>Also comparing your circuit with the one on page 25 of the DS2480B manual
>http://datasheets.maxim-ic.com/en/ds/DS2480B.pdf
>you have the POL pin at ground, and they have it at +VDD. Could you have
>polarity reversed?
That is because the MAX232 has a inverter stage build in and negates the signal (Please refer to page 25 figure 11b in http://datasheets.maxim-ic.com/en/ds/DS2480B.pdf)

I tried again using an oscilloscope. I see some signal changes on the tx line.
a) I wonder what to expect however. A screenshot of an oscilloscope or an equivalent description of the detection sequence would be really helpful :-)
b) Looking through the code in  DS2480_detect ( ow_ds9097U.c) suggest that there should be some activity on the RX line as well during the detection sequence. Is this correct ?
c) Is there some activity to be expected on the OW bus during the detect sequence ?
d) Any suggestions how to narrow this done ? Would it for instance help to instrument the detect sequence and see where it bails out ?

Thanks

Tilman


Express yourself instantly with MSN Messenger! MSN Messenger
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Paul Alfille | 1 Jan 22:10 2008
Picon

Re: Max number of connections for owserver

On Dec 4, 2007 10:20 AM, Michael Weber <mweber <at> aip.de> wrote:

Is there a maximum number of connections for owserver?

I know your specific problem was corrected, but there never was an answer to your initial question.

There should be no limit on the number of connectors, and partitioning into separate adapters should improve performance (each adapter is handled in a separate thread for many operations.)

Each connection is placed in a linked chain and its data structure only takes a few K bytes.

Paul Alfille
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Paul Alfille | 1 Jan 22:40 2008
Picon

Re: DS2480 "Cannot detect DS2480 or LINK interface" in 2.7

Tilman,

I presume your output from 12/15/2006 is still accurate:
./owhttpd -d /dev/tty0 -p 3001 --foreground -msec_read=700 --error_level=9
   CALL: PARSENAME path=[]
CONNECT: Cannot detect DS2480 or LINK interface on /dev/tty0.
  DEBUG: COM_close: flush
  DEBUG: COM_close: restore
  DEBUG: COM_close: close
   CALL: PARSENAME path=[]
DEFAULT: Cannot detect DS9097 (passive) interface on /dev/tty0.
  DEBUG: COM_close: flush
  DEBUG: COM_close: restore
  DEBUG: COM_close: close
  DEBUG: ServerProcessOut = 3084725152
  DEBUG: ServerProcessAccept 3001[3084725152] try lock 0
  DEBUG: ServerProcessAccept 3001[3084725152] locked 0
  DEBUG: ServerProcess: break signo=2
  DEBUG: ow_net.c:ServerProcess() shutdown initiated
  DEBUG: Shutting down 0 of 1 thread -1210242144
  DEBUG: ow_net.c:ServerProcess() shutdown done
  DEBUG: ow_exit 0
   CALL: Starting Library cleanup
   CALL: Closing Cache
   CALL: Closing input devices
  DEBUG: FreeIn: busmode=2
   CALL: Closing outout devices
   CALL: Finished Library cleanup


When I try the same thing, this is what I get:
amd64:/home/paul # owhttpd -d /dev/ttyS0 -p 3001 --foreground --error_level=9
   CALL: PARSENAME path=[]
  DEBUG: ServerProcessOut = 1082132800
  DEBUG: OW_Announce: 1
  DEBUG: OW_Announce: end
  DEBUG: ServerProcessAccept 3001[1082132800] try lock 0
  DEBUG: ServerProcessAccept 3001[1082132800] locked 0
  DEBUG: Announce: 1
  DEBUG: Announce: 2
 DETAIL: RegisterBack ref=5274160 flags=0 error=0 name=OWFS (1-wire) Web type=_http._tcp. domain=local.
  DEBUG: RegisterBack: done
  DEBUG: Announce: 3
 DETAIL: RegisterBack ref=5274304 flags=0 error=0 name=OWFS (1-wire) Web type=_owhttpd._tcp. domain=local.
  DEBUG: RegisterBack: done
  DEBUG: Announce: end

And, indeed, it works from there.

That is because the MAX232 has a inverter stage build in and negates the signal (Please refer to page 25 figure 11b in http://datasheets.maxim-ic.com/en/ds/DS2480B.pdf )
Ok, just offering a suggestion.

I tried again using an oscilloscope. I see some signal changes on the tx line.
a) I wonder what to expect however. A screenshot of an oscilloscope or an equivalent description of the detection sequence would be really helpful :-)
Looking at the code, we set the speed, then send a "break", then "C1" to set timing.
b) Looking through the code in  DS2480_detect ( ow_ds9097U.c) suggest that there should be some activity on the RX line as well during the detection sequence. Is this correct ?
Yes, after that timing byte, 4 bytes of configuration are sent, and echoed back. 
c) Is there some activity to be expected on the OW bus during the detect sequence ?
 After those configuration byte, a 1-wire reset is done.
d) Any suggestions how to narrow this done ? Would it for instance help to instrument the detect sequence and see where it bails out ?
Yes, that's exactly what I would do. You can put a printf after every branch point in DS2480_detect (in modules/owlib/src/c/ow_ds9097U.c) Since you are running in foreground, the lines will appear on the console. Remember to add a "\n" after each debugging line to flush the buffer.

Paul Alfille

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Paul Alfille | 3 Jan 18:29 2008
Picon

Hydroelectric Powerplant

On website at http://owfs.org/index.php?page=hydroelectric-plant (I've included my responses).

---------- Forwarded message ----------
On Dec 13, 2007 3:44 PM, Hakan.Elmqvist <at> ki.se <hakelm <at> ki.se> wrote:
I have an old and small hydroelectric powerplant
( http://sundsvik.dnsalias.org/) run on a shoestring budget.
It is remotely monitored  and controlled by a
system mainly based on 1-wire devices using OWFS.
 
Thankyou for a very nice piece of software.
The 1-wire devices have their limitations, they
are for instance not very good at measuring
precise intervals and totals and other things.
Therefore I would like to design a flexible
device based on a microcotroller for instance a
PIC that can draw on the advantages of the 1-wire
protocol and extend the capabilities of the devices offered by Maxim.
The device to emulate that first comes to my mind
is the DS18S20 which has a rather simple
architecture with a read/write scratchpad memory
area which is ideal for my purposes.
My questions to you are:
1) Commands 0xBE and 0x4E: Can I in any simple
way read and write whole or parts of the
scratchpad memory with OWFS? Is there a
one-to-one relationship between the reported
temperature and the content of the temperature registers?

Well, we read scratchpad internally, and it would be easy to make it externally visible.
I don't currently, because it might overwhelm new users, and changing the scratchpad would make other aspects inaccurate (like temperature resolution).

2) Are you aware of any project for emulating the
Dallas 1-wire devices? I hate to reinvent the wheel.

Louis Swart's LCD uses a PIC to emulate a 1-wire device. Maxim in general is protective of the 1-wire device technology (for the slaves, the masters are fair game).

A. Have you looked at the DS27xx chips? They have temperature, current, accumulators, timers, voltages, even a bit of memory. Pretty cheap. Look specifically at the DS2760 DS2751 DS2770 and DS2780

B. There is no reason to blindly emulate the DS1820 -- we can create an entry to your chip using the command codes you like. It has to speak 1-wire (reset, selection, etc) but the actual protocol needn't be constrained.

C. If you really want to be different, we can make a unique adapter and chips that don't have to talk true 1-wire between them. We can work to make it fall generally in the same scheme.

D. There might be other resources (smart people) if you ask this question ion the owfs-developer's list.

E. Although Dallas is phasing them out, the DS2404 has dual inputs -- 1-wire and 3-wire and can serve as a bridge to the PIC.
 
Thanks in advance
Håkan Elmqvist

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Jim Kusznir | 3 Jan 20:06 2008
Picon

Re: Hydroelectric Powerplant

We have been facing some of the same problems here with our SmartHome
project.  OneWire devices (currently primarily the DS2406, DS18B20,
and DS2450) have been very useful and form the backbone of our sensor
network.  However, we're running into issues where we need "local
intelligence"; for example, running a capicitave pressure sensor or a
complete thermostat with analog voltage output, as well as a handful
of other applications.  We've been debating in our group how best to
go about it, and I was thinking emulating a 1wire memory device might
be best, but a custom device in OWFS could possibly be better.

We plan to put some manpower on writing code for the ATMEL cpu's for
this purpose, but haven't quite gotten there yet.  I was
wondering/fearing how hard it would be to do the slave-side 1-wire
code, as I haven't found any mention of it yet.

I'm really interested in this aspect, and am interested in working
with anyone who is interested.

Thanks again for such a wonderful project that has saved us tons of work!!!

--Jim

On Jan 3, 2008 9:29 AM, Paul Alfille <paul.alfille <at> gmail.com> wrote:
> On website at http://owfs.org/index.php?page=hydroelectric-plant (I've
> included my responses).
>
> ---------- Forwarded message ----------
> On Dec 13, 2007 3:44 PM, Hakan.Elmqvist <at> ki.se <hakelm <at> ki.se> wrote:
>
>
> > I have an old and small hydroelectric powerplant
> > ( http://sundsvik.dnsalias.org/) run on a shoestring budget.
> > It is remotely monitored  and controlled by a
> > system mainly based on 1-wire devices using OWFS.
> >
>
>
> > Thankyou for a very nice piece of software.
> > The 1-wire devices have their limitations, they
> > are for instance not very good at measuring
> > precise intervals and totals and other things.
> > Therefore I would like to design a flexible
> > device based on a microcotroller for instance a
> > PIC that can draw on the advantages of the 1-wire
> > protocol and extend the capabilities of the devices offered by Maxim.
> > The device to emulate that first comes to my mind
> > is the DS18S20 which has a rather simple
> > architecture with a read/write scratchpad memory
> > area which is ideal for my purposes.
> > My questions to you are:
> > 1) Commands 0xBE and 0x4E: Can I in any simple
> > way read and write whole or parts of the
> > scratchpad memory with OWFS? Is there a
> > one-to-one relationship between the reported
> > temperature and the content of the temperature registers?
> >
>
> Well, we read scratchpad internally, and it would be easy to make it
> externally visible.
> I don't currently, because it might overwhelm new users, and changing the
> scratchpad would make other aspects inaccurate (like temperature
> resolution).
>
>
> > 2) Are you aware of any project for emulating the
> > Dallas 1-wire devices? I hate to reinvent the wheel.
> >
>
> Louis Swart's LCD uses a PIC to emulate a 1-wire device. Maxim in general is
> protective of the 1-wire device technology (for the slaves, the masters are
> fair game).
>
> A. Have you looked at the DS27xx chips? They have temperature, current,
> accumulators, timers, voltages, even a bit of memory. Pretty cheap. Look
> specifically at the DS2760 DS2751 DS2770 and DS2780
>
> B. There is no reason to blindly emulate the DS1820 -- we can create an
> entry to your chip using the command codes you like. It has to speak 1-wire
> (reset, selection, etc) but the actual protocol needn't be constrained.
>
> C. If you really want to be different, we can make a unique adapter and
> chips that don't have to talk true 1-wire between them. We can work to make
> it fall generally in the same scheme.
>
> D. There might be other resources (smart people) if you ask this question
> ion the owfs-developer's list.
>
> E. Although Dallas is phasing them out, the DS2404 has dual inputs -- 1-wire
> and 3-wire and can serve as a bridge to the PIC.
>
>
> > Thanks in advance
> > HÃ¥kan Elmqvist
> >
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Owfs-developers mailing list
> Owfs-developers <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
Matthias Urlichs | 4 Jan 00:00 2008
Picon

Re: Hydroelectric Powerplant

Hi,

Jim Kusznir:
> I'm really interested in this aspect, and am interested in working
> with anyone who is interested.
> 
*raises hand*

> > E. Although Dallas is phasing them out, the DS2404 has dual inputs -- 1-wire
> > and 3-wire and can serve as a bridge to the PIC.
> >
Dallas is no longer manufacturing the 2404; the website suggests that
you won't get any unless you already use them in legacy hardware.

--

-- 
Matthias Urlichs   |   {M:U} IT Design  <at>  m-u-it.de   |  smurf <at> smurf.noris.de
Disclaimer: The quote was selected randomly. Really. | http://smurf.noris.de
 - -
Man who sleep in beer keg wake up sticky.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
Ben Griffith | 4 Jan 04:31 2008
Picon

Re: Hydroelectric Powerplant



On Jan 3, 2008 6:00 PM, Matthias Urlichs <smurf <at> smurf.noris.de> wrote:


> > E. Although Dallas is phasing them out, the DS2404 has dual inputs -- 1-wire
> > and 3-wire and can serve as a bridge to the PIC.
> >
Dallas is no longer manufacturing the 2404; the website suggests that
you won't get any unless you already use them in legacy hardware.


I requested samples of the DS2404 from Maxim back in June and they sent them to me.  I planned to access the 3-wire port using an Ardiuno board, but haven't gotten a chance to figure out how to do it yet.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Paul Alfille | 4 Jan 04:42 2008
Picon

Re: Hydroelectric Powerplant

On Jan 3, 2008 2:06 PM, Jim Kusznir <jkusznir <at> gmail.com> wrote:

, but a custom device in OWFS could possibly be better.

We plan to put some manpower on writing code for the ATMEL cpu's for
this purpose, but haven't quite gotten there yet.  I was
wondering/fearing how hard it would be to do the slave-side 1-wire
code, as I haven't found any mention of it yet.


From OWFS's point or view, writing support for a new slave is easy. The hard part is emulating a slave.

If you only plan to use OWFS, the restrictions can be more lax.
1. If you plan to use current 1-wire bus masters and intermix on a 1-wire network, the hardware compatibility is the only issue.
2. It is certainly possible to extend OWFS to use custom masters and custom slaves with a different communication protocol. The aspects of 1-wire that OWFS requires are unique slave numbering, individual addressing, and discovery.
3. The is a semi-compatible Fox Net http://www.ibuttonlink.com/pdf/Using%20fox-Bus.pdf marketed by iButtonlink that has potential advantages in network design, and possibly more approachable licensing scheme.
4. I've proposed adding 1-wire slave capabilities to a Maxim microprocessor (a sure win in my opinion) with no response.

I really like the idea of extending the 1-wire reach. If Maxim has no interest, perhaps we need to find compatible alternatives.

Paul Alfille


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Matthias Urlichs | 4 Jan 04:46 2008
Picon

Re: Hydroelectric Powerplant

Hi,

Ben Griffith:
> I requested samples of the DS2404 from Maxim back in June and they sent them
> to me. 

Oh well, so much for that theory then. ;-)

> I planned to access the 3-wire port using an Ardiuno board, but
> haven't gotten a chance to figure out how to do it yet.

The data sheet says that you feed in basically the same command
structure as with 1wire except that there's a separate clock instead
of timing, and that you don't select the chip before talking to it.

IMHO the whole idea is somewhat flawed: as soon as you talk to it using
the 3-wire interface, it won't respond to 1wire commands any more.
There is no way to get any consistent metric of your bus quality that way.

Native 1wire seems preferable.
You could emulate the DS2404 ...

--

-- 
Matthias Urlichs   |   {M:U} IT Design  <at>  m-u-it.de   |  smurf <at> smurf.noris.de
Disclaimer: The quote was selected randomly. Really. | http://smurf.noris.de
 - -
Benchley's Distinction: There may be said to be two classes of people in the
world; those who constantly divide the people of the world into two classes
and those who do not.
					-- Robert Benchley

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
Thomas Berg | 4 Jan 08:29 2008
Picon

Design help

Hi,
I need design that can do PWM, is anyone intresed in helping me on this 
design issue?

Best regards,
/Thomas

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

Gmane