[Tinyos-devel] SurgeTelos
Daniel S. Menasche
sadoc at cs.umass.edu
Wed Oct 25 17:14:56 PDT 2006
BTW: in the last message (quoted below) the file that I was referring to
was MultiHopLQI.nc.
Another detail, now 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-10-25 at 18:02 -0400, Daniel S. Menasche wrote:
> Dear All,
>
> I'm using MultiHopLQI with SurgeTelos. I had to change the base
> station address from the default, which is 0, to 9. Besides setting
> BASE_STATION_ADDRESS to 9, I also had to change line 145 from
>
> if ((TOS_LOCAL_ADDRESS != 0) && (val > BEACON_TIMEOUT)) {
>
> to
>
> if ((TOS_LOCAL_ADDRESS != BASE_STATION_ADDRESS) && (val >
> BEACON_TIMEOUT)) {
>
>
> Best regards,
>
> Daniel
>
> On Thu, 2006-10-19 at 09:19 +0800, Zhao Stephen wrote:
> > Why I can not see any code about CSMA from "TestTinyVizM.nc"? Maybe
> > CSMA is low layer protocol in MICA that is not open to users?
> > Thanks.
> > SZ
> >
> > 2006/10/19, Michael Schippling <schip at santafe.edu>:
> > > I don't know how detailed the simulation is, but the 'real' world
> > > technique is simple CSMA: listen before you talk. Was that the question?
> > > MS
> > >
> > > Zhao Stephen wrote:
> > > > I have one simple question about "TestTinyViz". I am learning lesson 5
> > > > of TOS tutorial. When I perform "tinyviz -run main 30" and watch the
> > > > "debug messages" shown on the interface panel, I suddenly thought a
> > > > question. There are so many nodes (30) to send messages over RF, so I
> > > > guess that many collisions will happen if different motes are to send
> > > > its message simutaneously.But according to the "debug message" shown
> > > > on panel, I can not find any information about collision-prevention.
> > > > How do you think that?
> > > > _______________________________________________
> > > > Tinyos-help mailing list
> > > > Tinyos-help at Millennium.Berkeley.EDU
> > > > https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> > >
> > _______________________________________________
> > Tinyos-help mailing list
> > Tinyos-help at Millennium.Berkeley.EDU
> > https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
> _______________________________________________
> Tinyos-devel mailing list
> Tinyos-devel at Millennium.Berkeley.EDU
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-devel
More information about the Tinyos-devel
mailing list