[Tinyos-help] [Tinyos-devel] DS2411 Driver development
JD
hinomura.yo at gmail.com
Fri Feb 13 03:59:01 PST 2009
HI guys,
In the file /tos/chips/msp430/pins/HplMsp430GeneralIOC.nc
we have the following lines :
#ifdef __msp430_have_port2
provides interface HplMsp430GeneralIO as Port24;
// Port24 used for OneWire Protocol
#ifdef __msp430_have_port2
.
.
new HplMsp430GeneralIOP(P2IN_, P2OUT_, P2DIR_, P2SEL_, 4) as P24,
.
.
But we don't see any initialization of P2IN_, P2OUT_, P2DIR_, P2SEL_
parameters. Could it be the reason of the 0xFF values we keep getting for
the ds2411's serial Id ?
Cheers,
JD
2009/2/12 JD <hinomura.yo at gmail.com>
> See below
>
> 2009/2/12 Janos Sallai <sallai at isis.vanderbilt.edu>
>
>> Did you tell the simulator what 48-bit id it should simulate? Maybe a
>> series of 0xff-s is the default...
>
>
> We launched wsim with --ds2411=0f:07:06:05:04:03:02:01 parameter , so the
> 64 bit id shouldn't be a series of 0xff.
>
>
>>
>> Can you run this code on the real hardware?
>
>
> Nope, we only have the simulator at this point.
>
>
>>
>>
>> BTW, I compared my OneWireMasterC (which is in tos/chips/ds2401) to
>> Andreas's one, and they are more or less the same...
>>
>
> I tried with the OneWireMasterC and files related to it through the
> TestDsApp of Andreas and it returns :
>
>
> ==== Wsim serial console ====
> ~E[00][ff][ff][00][00][1c][00]dTmote ID readError: 0 id:
> 0u[a4]~~E[00][ff][ff][00][00][1c][00]d 0 0 0 0 0 [0a]
> [00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00]B[f2]~~E[00][ff][ff][00][00][1c][00]dTmote
> ID readError: 0 id: 0u[a4]~~E[00][ff][ff][00][0
> 0][1c][00]d 0 0 0 0 0 [0a]
> [00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00]B[f2]~~E[00][ff][ff][00][00][1c][00]dTmote
> ID readError: 0 id: 0u[a4]~~E[00][ff][ff][00][0
> 0][1c][00]d 0 0 0 0 0 [0a]
> [00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00]B[f2]~~E[00][ff][ff][00][00][1c][00]dTmote
> ID readError: 0 id: 0u[a4]~~E[00][ff][ff][00][0
> 0][1c][00]d 0 0 0 0 0 [0a]
> [00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00]B[f2]~~E[00][ff][ff][00][00][1c][00]dTmote
> ID readError: 0 id: 0u[a4]~~E[00][ff][ff][00][0
> 0][1c][00]d 0 0 0 0 0 [0a]
> [00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00]B[f2]~~E[00][ff][ff][00][00][1c][00]dTmote
> ID readError: 0 id: 0u[a4]~~E[00][ff][ff][00][0
> 0][1c][00]d 0 0 0 0 0 [0a]
> [00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00]B[f2]~~E[00][ff][ff][00][00][1c][00]dTmote
> ID readError: 0 id: 0u[a4]~~E[00][ff][ff][00][0
> 0][1c][00]d 0 0 0 0 0 [0a]
> [00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00]B[f2]~~E[00][ff][ff][00][00][1c][00]dTmote
> ID readError: 0 id: 0u[a4]~~E[00][ff][ff][00][0
> 0][1c][00]d 0 0 0 0 0 [0a]
> [00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00]B[f2]~~E[00][ff][ff][00][00][1c][00]dTmote
> ID readError: 0 id: 0u[a4]~~E[00][ff][ff][00][0
> 0][1c][00]d 0 0 0 0 0 [0a]
> [00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00]B[f2]~====
> End of connexion ====
>
>
> Don't know what to conclude from this...
>
> JD
>
>
>>
>> Janos
>>
>>
>>
>> On Thu, Feb 12, 2009 at 10:21 AM, JD <hinomura.yo at gmail.com> wrote:
>>
>>> 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?
>>>
>>>
>>> First thanks for helping.
>>> And We did put a print("SUCCESS") in the OneWire.reset() before it
>>> returns SUCCESS and we get the SUCCESS print in wconsole/log. That's why we
>>> actually think it returns SUCCESS.
>>>
>>>
>>>>
>>>> By the way, let's move this discussion over to tinyos-help instead.
>>>>
>>>> Thanks,
>>>> Janos
>>>>
>>>
>>> --
>>> ----------------------------------------------------
>>> "If A is a success in life, then A equals x plus y plus z. Work is x; y
>>> is play; and z is keeping your mouth shut. " A.Einstein
>>>
>>> _______________________________________________
>>> Tinyos-help mailing list
>>> Tinyos-help at millennium.berkeley.edu
>>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>>
>>
>>
>
>
> --
> ----------------------------------------------------
> "If A is a success in life, then A equals x plus y plus z. Work is x; y is
> play; and z is keeping your mouth shut. " A.Einstein
>
--
----------------------------------------------------
"If A is a success in life, then A equals x plus y plus z. Work is x; y is
play; and z is keeping your mouth shut. " A.Einstein
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20090213/0347bdde/attachment-0001.htm
More information about the Tinyos-help
mailing list