[Tinyos-help] send and receive
Urs Hunkeler
uhu at gmx.ch
Wed Jan 7 05:27:01 PST 2009
Hi,
Do you initialize/start the radio environment? I couldn't find the code
for this (but it might be embedded in the component Localizar, which was
not included in your mail.
If the send command returns an error (i.e. != SUCCESS), then it would be
helpful to know the error code. If you know that there is a problem and
the program will not continue after the error, you could use the three
LEDs to display the error number, it most likely is smaller than 8
anyways. The error codes are probably in a header file called Error.h (I
don't remember where it is in TinyOS 1.x).
Cheers,
Urs
PS:
I have difficulties to read your source file. It seems as if it was
saved in MS RTF format. If this is actually how your file looks on your
computer, then I am surprised if it compiles at all.
Lorena Aguirre wrote:
> Hello,
>
> I'm doing a program that receive and send a packet. But I can't find where
> the error is.
> I can compile without any error. When the packet is sent, yellow led should
> be on, but the led doesn't respond.
> Could anyone help please? how can I check the error is?
> I attach the program
>
> Thanks very very much
> L.
More information about the Tinyos-help
mailing list