It is difficult to say without knowing what's wrong in the first place
or without any hint or log :), by just taking a look I spotted a typo:

if (call SerailSend.send(AM_BROADCAST_ADDR, &packet,
sizeof(gateway_msg_t)) == SUCCESS) {

That should be "SerialSend"

What's wrong with the BaseStation application at /apps/BaseStation? 

Regards,

On Tue, 2012-01-24 at 09:41 -0500, Qian Li wrote:
> Hello,
> 
> I want to write an application that can receive packets over radio and
> send the same packets to a PC over serial. Could anybody take a look
> at the application I wrote (in attachment). What's wrong with it?
> 
> Thanks in advance!
> 
> Best regards,
> Qian 
> _______________________________________________
> 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