Modes in OWIN/OWOUT
Archiver
Posts: 46,084
The BS2 manual lists modes 0 to 5, 8, and 9 for OWIN and OWOUT.
But there are 4 bits which can be set to come up with the mode number.
Are other modes not listed "valid"? That is, are modes 6, 7, and 10
to 15 valid modes? I'm curious why the other modes are left off
without any explanation.
And, what happens if the BS2p24 sends out OWIN/OWOUT, but no 1W
device is connected? Does it just "hang"?
But there are 4 bits which can be set to come up with the mode number.
Are other modes not listed "valid"? That is, are modes 6, 7, and 10
to 15 valid modes? I'm curious why the other modes are left off
without any explanation.
And, what happens if the BS2p24 sends out OWIN/OWOUT, but no 1W
device is connected? Does it just "hang"?
Comments
>But there are 4 bits which can be set to come up with the mode number.
>
>Are other modes not listed "valid"? That is, are modes 6, 7, and 10
>to 15 valid modes? I'm curious why the other modes are left off
>without any explanation.
>
>And, what happens if the BS2p24 sends out OWIN/OWOUT, but no 1W
>device is connected? Does it just "hang"?
Look at the online help in the IDE. That is generally more complete
and up to date than the manual. I shows the meaning of each of the
four bits in the mode setting.
Both the OWIN and OWOUT commands do time out if nothing is connected
or the response is garbled. The timeouts are around 2.7 and 2.3
milliseconds respectively. It is an important question, when you are
concerned with system reliability.
BTW, the I2C commands also time out, at about 1/4 second.
-- regards
Tracy Allen
http://www.emesystems.com
I tried the on line help in IDE. It is just like the manual...it
shows each of the 4 bit's function, but lists just those that are in
the manual (i.e. only 8 of 16 possibilities).
Does anyone know if the other modes are "valid"?
--- In basicstamps@yahoogroups.com, Tracy Allen <tracy@e...> wrote:
> >The BS2 manual lists modes 0 to 5, 8, and 9 for OWIN and OWOUT.
> >But there are 4 bits which can be set to come up with the mode
number.
> >
> >Are other modes not listed "valid"? That is, are modes 6, 7, and
10
> >to 15 valid modes? I'm curious why the other modes are left off
> >without any explanation.
> >
> >And, what happens if the BS2p24 sends out OWIN/OWOUT, but no 1W
> >device is connected? Does it just "hang"?
>
> Look at the online help in the IDE. That is generally more
complete
> and up to date than the manual. I shows the meaning of each of the
> four bits in the mode setting.
>
> Both the OWIN and OWOUT commands do time out if nothing is
connected
> or the response is garbled. The timeouts are around 2.7 and 2.3
> milliseconds respectively. It is an important question, when you
are
> concerned with system reliability.
>
> BTW, the I2C commands also time out, at about 1/4 second.
>
> -- regards
> Tracy Allen
> http://www.emesystems.com
>
> I tried the on line help in IDE. It is just like the manual...it
> shows each of the 4 bit's function, but lists just those that are in
> the manual (i.e. only 8 of 16 possibilities).
>
> Does anyone know if the other modes are "valid"?
>
I haven't tried one-wire, but looking at that description, I don't see any
reason the unlisted modes would be unusable if you're designing your own
one-wire device at the other end. I suspect those modes they do list are the
ones required by devices Parallax tested (or sells or happened to have lying
around the benchtop while writing the description or ...).
In other words, the "validity" depends on both ends of a comm link agreeing
to use the protocol mode chosen. You have to use the mode the connected
device expects. Some of those other mode combinations don't sound terribly
likely to a non-user of one-wire, but what do I know. (Things like
high-speed bit mode with reset before AND after data...)
Gary
time and place. It all takes a careful evaluation of the
requirements of the one-wire device & system you are trying to
interface. I use the BS2pe primarily, so I can not use the high
speed modes, which is bit3=1. Any of these protocols takes careful
reading of data sheets followed by trying to match up the settings to
make it work. If it doesn't work the first time, then more careful
reading, and, if necessary, hack.
-- Tracy
>Tracy,
>
>I tried the on line help in IDE. It is just like the manual...it
>shows each of the 4 bit's function, but lists just those that are in
>the manual (i.e. only 8 of 16 possibilities).
>
>Does anyone know if the other modes are "valid"?
>
>--- In basicstamps@yahoogroups.com, Tracy Allen <tracy@e...> wrote:
>> >The BS2 manual lists modes 0 to 5, 8, and 9 for OWIN and OWOUT.
>> >But there are 4 bits which can be set to come up with the mode
>number.
>> >
>> >Are other modes not listed "valid"? That is, are modes 6, 7, and
>10
>> >to 15 valid modes? I'm curious why the other modes are left off
>> >without any explanation.
>> >
>> >And, what happens if the BS2p24 sends out OWIN/OWOUT, but no 1W
>> >device is connected? Does it just "hang"?
>>
>> Look at the online help in the IDE. That is generally more
>complete
>> and up to date than the manual. I shows the meaning of each of the
>> four bits in the mode setting.
>>
>> Both the OWIN and OWOUT commands do time out if nothing is
>connected
>> or the response is garbled. The timeouts are around 2.7 and 2.3
>> milliseconds respectively. It is an important question, when you
>are
>> concerned with system reliability.
>>
>> BTW, the I2C commands also time out, at about 1/4 second.
>>
>> -- regards
>> Tracy Allen
> > http://www.emesystems.com