pyserial to read from DS1615 temperature recorder chip
Grant Edwards
grante at visi.com
Mon Jul 24 14:48:48 EDT 2006
On 2006-07-24, Gerhard Fiedler <gelists at gmail.com> wrote:
> On 2006-07-24 14:03:30, alexandre_irrthum at yahoo.com wrote:
>
>> To read from the chip, one must issue the "read page" command (33h),
>> followed by the two-byte address of the requested page (pages are 32
>> bytes long). After receiving this, the DS1615 will send the data in a
>> burst of (up to) 32 bytes.
>
> I'm not sure what you mean when you say it will send "up to" 32 bytes.
Registers are in 32-byte pages. If you request register N, the
device sends register N followed by the remainder of the
32-byte page that contains address N. If you request the first
register on a page, you'll get 32 bytes back. If you request
the last register on a page, you'll get one 1 back.
--
Grant Edwards grante Yow! If I pull this SWITCH
at I'll be RITA HAYWORTH!! Or
visi.com a SCIENTOLOGIST!
More information about the Python-list
mailing list