Dear Faisal,
You can use MultiHopLQI with SurgeTelos. If you want to change the
base station address from the default (which is 0) to 9:
(a) in MultiHopLQI.nc set the variable BASE_STATION_ADDRESS to 9
(b) also change line 145 from
if ((TOS_LOCAL_ADDRESS != 0) && (val > BEACON_TIMEOUT)) {
to
if ((TOS_LOCAL_ADDRESS != BASE_STATION_ADDRESS) && (val >
BEACON_TIMEOUT)) {
Regarding Surge.h: the default
struct SurgeMsg
is too small. After writing a java application to read the packets sent
by SurgeMsg I got the following error:
"length message received (too short)"
I changed struct SurgeMsg to the following and the problem was solved:
typedef struct SurgeMsg {
uint16_t type;
uint16_t reading;
uint16_t parentaddr;
uint32_t seq_no;
uint32_t source;
uint16_t trash[2];
} SurgeMsg;
Best regards,
Daniel
On Wed, 2006-11-01 at 09:20 -0800, Faisal Karim wrote:
> Hi All
> i want to use /lib/Route multihop routing to send messages from base
> (mote 0) to some specific node lets say (node 9)
> Do anybody know the fix or some other routing protocol easily
> available to be used.
>
> Thanks
>
>
>
> Regards
> Faisal Karim
>
>
>
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help