Hello again,

today I discussed this problem with a colleague and he pointed out that
we receive a, for us unexplainable, byte sequence from the reader, when
it is plugged in to the pc. The sequence occurs every time we open the
device file /dev/ttyS0 with plain cat or cutecom. If there is nothing
like an initialization what does this stand for?

The byte sequence looks like this:
00 00 80 00 00 00 80 00 80 80 80 80 80 80 80 80 80 80 80 80 00 80 80 80
00 00 80 00 00 00 00 80 00 00 80 00 00

greetz
chriz


Christopher Schwardt wrote:
> Thanks a lot for your answer. Well, i was implying this because it was
> our only explanation for the situation. We just cannot figure out why
> the reader talks with the pc, the telosb mote talks with the pc, but
> they just won't talk with each other. :(
> At least we can now stop anatomizing the serial kernel module.
> 
> 
> But then another question: Does anyone know if the call to the following
> functions suffice to set up a uart? resetUsart(TRUE); clearModeI2C();
> disableSpi(); enableUart(); resetUsart(FALSE); clrIntr(); disableIntr();
> 
> Greetz,
> Chriz
> 
> 
> Eric Keller wrote:
>> There is no difference at all for your application.   For most of us,
>> the difference
>> between DTE and DCE is the cable you use to connect them.  Once you set
>> up a uart, it will receive or send as required.
>>
>> I haven't looked into setting up the serial on the motes at all, sorry
>> I can't help
>> you with that.  I have done assembly language setup of serial ports on PC, 
>> and
>> there is no initialization of the type that you seem to be implying.
>> Eric
>>
>>
>> On Fri, May 16, 2008 at 6:07 AM, Christopher Schwardt <[EMAIL PROTECTED]> 
>> wrote:
>>> -----BEGIN PGP SIGNED MESSAGE-----
>>> Hash: SHA256
>>>
>>>
>>> But I still don't know if this initializes the communication over the
>>> serial port as an DTE or DCE or if there is a difference at all.
>>> I am desperatly waiting for you help.
>>>
>>> Thanks,
>>> Chriz
>> _______________________________________________
>> Tinyos-help mailing list
>> [email protected]
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> 
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to