[Tinyos-help] [Tinyos-devel] DS2411 Driver development
JD
hinomura.yo at gmail.com
Thu Feb 12 09:42:09 PST 2009
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20090212/a64d14c6/attachment.htm
More information about the Tinyos-help
mailing list