[Tinyos-devel] DS2411 Driver development
Andreas Köpke
koepke at tkn.tu-berlin.de
Thu Feb 12 07:56:04 PST 2009
This is the implementation that I use for the telosb including a test app, it
should work out of the box for the wsn430. Just grab the output using the
PrintfClient.
JD wrote:
> Hi guys,
>
> We are developping a driver for the ds2411 chip which provides the DS2411
> unique serial number of the mote(OneWire protocole) for the wsn430
> platform. To do that, we've took the ds2401 driver (for mica2/iris
> platform) and we did change the port/pin selection for the OneWire protocol
> to retrieve the serial number (and a few other things). We actually use the
> Port24 for the OneWire protocol which should be ok. Indeed we checked out
> the schematics for the two chips (ds2401 & ds2411) and the timing datas
> looks alike. So We wonder which other things might need to be adapted from
> ds2401 to ds2411. For now, when we use the fonction .getId() provided by
> our driver in a basic application (compiled then launched with wsim), we
> only get 255 values for all the data structure fields (crc, serial,
> family_code). And the wsim.log shows :
> <code>
> WSim 0.98cvs, copyright 2005, 2006, 2007, 2008
> Laboratoire Citi, INRIA, INSA de Lyon
> A. Fraboulet, G. Chelius, E. Fleury
> wsim:pid:25419
> wsim: 32 bits edition
> mcu : msp430
> model : msp430f1611
> xin : 32768
> xt2 : 8000000
> DS2411: crc is not valid, should be 0xc1
> == Machine description
> mcu : msp430
> model : msp430f1611
> xin : 32768
> xt2 : 8000000
> device list:
> dev 00 : System Platform
> dev 01 : m25p80 flash memory
> dev 02 : Led display
> dev 03 : Led display
> dev 04 : Led display
> dev 05 : ds2411 serial number
> dev 06 : cc1100 radio device
> dev 07 : ptty serial I/O
> ==
> msp430:basic_clock: speed tracer start
> wsn430:devices: read data on radio while not in SPI mode ?
> msp430:usart0: SPI data RX but not in receive enable state
> msp430:intr: Interrupt 2 received but GIE = 0 (current PC = 0x4060
> [34174978])
> msp430:adc12: read [0x01a0] block not implemented
> msp430:io: read byte at address 0x0008 at pc 0x45ae
> msp430:io: -- target unknown or block not implemented
> </code>
>
> Any ideas would be appreciated ...
> Cheers
-------------- next part --------------
A non-text attachment was scrubbed...
Name: idsensor.zip
Type: application/zip
Size: 6013 bytes
Desc: not available
Url : https://www.millennium.berkeley.edu/pipermail/tinyos-devel/attachments/20090212/95df3754/attachment.zip
More information about the Tinyos-devel
mailing list