Hi TinyOS users!!
I'm trying to develop a simple application for a MICA2 mote which sends
and receives data through its serial port. I've been looking to the
example applications provided with TinyOS (I'm a beginner in this
exciting world of motes) and I've managed to send serial frames to a PC
through the COM1 port. However, I cannot send data from the PC to the
mote's UART. I've tried to send to the mote the same frame it is
sending, but it doesn't work. I also tried to send some frames I've read
in TinyOS help sites, but it doesn't work. The frames I tried to send
are the following:
7E 45 00 FF FF 00 00 02 00 09 BB A9 BB AA 7E
7E 40 09 00 BE EF 05 5D 06 01 02 03 04 05 7E
The event I'm using to handle received data is the following:
----------------------------------------------------------------
event message_t* Receive.receive(message_t* bufPtr, void* payload,
uint8_t len)
{
if (len != sizeof(test_serial_msg_t))
{
call Leds.led0Toggle();
return bufPtr;
}
else
{
call Leds.led1Toggle();
return bufPtr;
}
call Leds.led2Toggle();
return bufPtr;
}
Could someone help me to find a solution to my problem?
Thanks in advance.
==============================================================
Este mensaje se dirige exclusivamente a su destinatario, y puede contener
información confidencial sometida a secreto profesional, o cuya divulgación
esté legalmente prohibida.Cualquier opinión en él contenida es exclusiva de su
autor y no representa necesariamente la opinión de la empresa. Si ha recibido
este mensaje por error, le rogamos nos lo comunique de forma inmediata por esta
misma vía y proceda a su eliminación, así como a la de cualquier documento
adjunto al mismo. El correo electrónico vía Internet no es seguro y no se puede
garantizar que no haya errores ya que puede ser interceptado, modificado,
perdido o destruido, o contener virus. Cualquier persona que se ponga en
contacto con nosotros por correo electrónico se considerará que asume estos
riesgos.
This e-mail is addressed exclusively to the recipient and may contain
privileged information under a professional confidential agreement or it may be
against the law to disclose its contents. Any opinion contained in it belongs
exclusively to his/her author and does not necessarily reflect the company's
view. If you receive this e-mail in error, please let us know immediately (by
return e-mail) and proceed to its destruction, as well as any document attached
to it. The sending of e-mails through the Internet is not safe and, therefore,
error-free communications cannot be guaranteed, as they can be intercepted,
changed, misled or destroyed or they might contain a virus. Any user contacting
us through e-mails shall be understood to be assuming these risks.
==============================================================_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help