Hi Daniel
Thanks for your reply.
Thanks for your reply.
Let me define my problem
Right now i don't have access to real motes so i am struggling with TOSSIM :)
I want to implement a scenario, in which some sensors (e.g. node 4,5,9,11) report their values to sink (node 0) sink take some decision and send that decision to those sensors.
Right now i don't have access to real motes so i am struggling with TOSSIM :)
I want to implement a scenario, in which some sensors (e.g. node 4,5,9,11) report their values to sink (node 0) sink take some decision and send that decision to those sensors.
So when i look in TOSSIM documentation, first thing i can't implement two programs in it :) but with some if conditions one can solve this problem (i hope it works as yet i have not tried). than i looked for Surge application (good example of Multihop) but problem is as discussed in my last email two way multihop not possible. I'll try now MultiHopLQI but im wondering that can one change dynamically BASE_STATION_ADDRESS var and if yes will the process be working fine or not.
I'm trying to change now /lib/Route to achieve this behavior, than i'll look for MultihopLQI as well. I hope it will be easy than coz from a glance to MultihopLQI seems the code is more n less same (off course with change in mech. to adopt routes :)
If you can give your some early thoughts than I'll plan my things accordingly. If you know some application working on this idea, that will be helpful.
Thanks and looking forward for your response.
If you can give your some early thoughts than I'll plan my things accordingly. If you know some application working on this idea, that will be helpful.
Thanks and looking forward for your response.
Regards
Faisal Karim
Faisal Karim
----- Original Message ----
From: Daniel S. Menasche <[EMAIL PROTECTED]>
To: Faisal Karim <[EMAIL PROTECTED]>
Cc: tinyos help <[email protected]>
Sent: Wednesday, November 1, 2006 7:07:59 PM
Subject: Re: [Tinyos-help] Multihop from base to sensor nodes
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
From: Daniel S. Menasche <[EMAIL PROTECTED]>
To: Faisal Karim <[EMAIL PROTECTED]>
Cc: tinyos help <[email protected]>
Sent: Wednesday, November 1, 2006 7:07:59 PM
Subject: Re: [Tinyos-help] Multihop from base to sensor nodes
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
