[Tinyos-help] [Tinyos-devel] DS2411 Driver development

Janos Sallai sallai at isis.vanderbilt.edu
Thu Feb 12 07:35:02 PST 2009


As far as I can tell from what you write, you pretty much made the right
steps. OneWireMasterC is pretty much generic, so you probably don't need to
touch that. Since you're receiving 0xff all the time, I suspect an
initialization issue. Can you please check if OneWire.reset() indeed returns
SUCCESS?

By the way, let's move this discussion over to tinyos-help instead.

Thanks,
Janos

On Thu, Feb 12, 2009 at 8:47 AM, JD <hinomura.yo at gmail.com> 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
>
>
> _______________________________________________
> Tinyos-devel mailing list
> Tinyos-devel at millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20090212/756580e0/attachment.htm 


More information about the Tinyos-help mailing list