I scanned briefly through the 2760 code and datasheet, since that's the only 
stuff i really have looked into so far 

It appears that there's a read/write memory function (0x69 and 0x6C) that give 
an offset and just suck/blast data until the master has had enough. 

This has the disadvantage of no CRC. 


For your stuff, what are the command codes, sequence? something like this 

0x##, OO, LL, <data....data>, CRC 

Where ## is the command byte OO is offset byte, and LL is length byte. 

I'll probably implement the 0x69 and 0x6c functions first, since they are 
straightforward. 

Is there a list of known 1-wire commands anywhere that i could reference? I 
don't want to reinvent more than i have to. 

-tmk 

----- Original Message ----- 
From: "Pascal Baerten" <[email protected]> 
To: "OWFS (One-wire file system) discussion and help" 
<[email protected]> 
Sent: Monday, February 15, 2010 1:39:33 AM GMT -08:00 US/Canada Pacific 
Subject: Re: [Owfs-developers] How can i get a slave serial number allocated? 

Basically, you have a readmem(pos,length,buffer) and 
writemem(pos,lenght,buffer) that cover practically any situations. 
the only difficulty could be the CRC16 that your avr has to calculate for data 
integrity. 
for read, up to 255 bytes could be read at once, for write, as crc is checked 
before write commit, up to 16bytes max (size of working buffer) per writes. 

By default, 128bytes are exposed by 0xfc devices, but the addressable range fit 
in 16bits. 
If less than 128bytes need to be exposed on your avr, simply mask upper address 
bits to roll over your effective area. 

On owfs side, even without changes, you could then access the avr memory via 
the memory property that returns the 128bytes. Also, for debugging purpose, a 
writebyte property accepts a word value: high 8bit are assumed as low address, 
and low 8bits are the value to write. 


Pascal 

www.brain4home.eu 



2010/2/14 < [email protected] > 




I'll have to look at your structure. 

For mine, i was planning on just having 2 or 4 commands: readmem(), writemem(), 
readbyte(byte#), writebyte(byte#) 

if yours is similar, i don't see any reason not to. 

-tmk 




----- Original Message ----- 
From: "Pascal Baerten" < [email protected] > 
To: "OWFS (One-wire file system) discussion and help" < 
[email protected] > 
Sent: Sunday, February 14, 2010 1:29:01 AM GMT -08:00 US/Canada Pacific 
Subject: Re: [Owfs-developers] How can i get a slave serial number allocated? 

Hi tmk, 

Well, I'm nearly sure that maxim-dallas will not accept to assign family id to 
others. Instead of facing an explicit no way, I just count on maxim-dallas 
tolerance and selected an unassigned familly id near the end of the range... 
To avoid consuming anarchically multiple family id, chips support a simple 
command (read type 0x12) to identify chip model. 

There are still enhancement needed to have OWFS supporting dynamic property 
assignement but the idea is to have within the same 0xfc family multiple device 
types corresponding to a separate directory. 

If you could conform to the simple set of 0xfc commands, why not share this 
family id? 

Pascal 



2010/2/14 < [email protected] > 




Hi folks, 

This one's probably mostly for Paul, but Pascal might know too :) 

I'm doing some solar heat collection automation, and i was going to try and 
hook an arduino (well, actually just an AVR, but close enough) up to the 1-wire 
bus, so i could have all my info in the same place. 

I'd have to write some code to emulate a 1-wire slave device, and i was 
wondering if I can just pick any slave ID/serial #/family ID or if there is a 
special experimental range. 

Hope someone on here knows the answer. 

Cheers 
-tmk 

------------------------------------------------------------------------------ 
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, 
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW 
http://p.sf.net/sfu/solaris-dev2dev 
_______________________________________________ 
Owfs-developers mailing list 
[email protected] 
https://lists.sourceforge.net/lists/listinfo/owfs-developers 




-- 
Pascal 

------------------------------------------------------------------------------ 
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, 
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW 
http://p.sf.net/sfu/solaris-dev2dev 

_______________________________________________ Owfs-developers mailing list 
[email protected] 
https://lists.sourceforge.net/lists/listinfo/owfs-developers 
------------------------------------------------------------------------------ 
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, 
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW 
http://p.sf.net/sfu/solaris-dev2dev 
_______________________________________________ 
Owfs-developers mailing list 
[email protected] 
https://lists.sourceforge.net/lists/listinfo/owfs-developers 




-- 
Pascal 

------------------------------------------------------------------------------ 
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, 
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW 
http://p.sf.net/sfu/solaris-dev2dev 
_______________________________________________ Owfs-developers mailing list 
[email protected] 
https://lists.sourceforge.net/lists/listinfo/owfs-developers 
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to