I want to ask a question about the Tinyos.
I change the struct of the code which named BlinkToRadio:

typedef nx_struct DATA_MSG{
        nx_uint16_t nodeid;
        nx_uint8_t power;
        nx_int8_t rssi;
        nx_uint8_t lqi;
}DATA_MSG;

Then, I try to broadcast it with AMSend and receive this package with 
BaseStation.
Using the code that;

DATA_MSG->rssi = CC2420Packet.getRssi(msg);
DATA_MSG->lqi = CC2420Packet.getLqi(msg);

to receive the package. After modify the content of the package,  the package 
will be sent to computer uart.

I got this method according to the information in mail attachments and my code 
is also in the mail attachments.

Now, I face some problems.
1. The BaseStation which is changed by myself can not receive the packet.
2. I don’t know how to modify the Packet in BaseStation and then send it to 
computer.
I hope you can help me fix these problems. 
or may i reference an example code the same as attachments(wsn_lab06_en.pdf).
Thanks a lot and look forward to your respond. 


mail attachments link: 
https://drive.google.com/file/d/0B9rEaLYq8z6BemlXSDJ6T194Zlk/edit?usp=sharing
https://drive.google.com/file/d/0B9rEaLYq8z6BWFM3ZGN0ZDlUdjA/edit?usp=sharing
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to