Dear All:

I have gone through the Nucleus document and have no problem on the examples.  Now, I want to add Nucleus into Surge so I can observe the building process of routing table.  I  followed the procedure described in the document.  If I used TOSBase, I could issue 'nquery LedsC.ledsOn' and got correct response as following:

$ nquery LedsC.ledsOn
0    INFO  [main] net.tinyos.nucleus.NucleusInterface  - started: opening moteIF
, drip(GET), drip(SET), drainConnector, drain.listen(RESPONSE)
265  INFO  [main] net.tinyos.drip.Drip  - Started id=11
281  INFO  [main] net.tinyos.drip.Drip  - Started id=13
312  INFO  [main] net.tinyos.drain.DrainConnector  - Started myAddr = 100, liste
ning for DrainMsg
312  INFO  [main] net.tinyos.drain.DrainConnector  - New Listener for id=12
718  INFO  [main] net.tinyos.nucleus.NucleusInterface  - get: 10cs {LedsC.ledsOn
.0 } destAddr: 65534 respAddr: 0
734  INFO  [Thread-8] net.tinyos.drip.Drip  - Sending Msg 0: id=11,seqno=65534
797  INFO  [Thread-3] net.tinyos.drip.Drip  - Receive: id=11,seqno=65534 Heard O
ld Seqno
1234 INFO  [Thread-8] net.tinyos.drip.Drip  - Sending Msg 1: id=11,seqno=20
1297 INFO  [Thread-3] net.tinyos.drip.Drip  - Receive: id=11,seqno=20 Heard New
Seqno
3: LedsC.ledsOn = 10
2: LedsC.ledsOn = 2

If I used Surge with ID=0(make micaz nucleus install,0 avarice), I got the following messages:

$ nquery LedsC.ledsOn
0    INFO  [main] net.tinyos.nucleus.NucleusInterface  - started: opening moteIF
, drip(GET), drip(SET), drainConnector, drain.listen(RESPONSE)
343  INFO  [main] net.tinyos.drip.Drip  - Started id=11
359  INFO  [main] net.tinyos.drip.Drip  - Started id=13
422  INFO  [main] net.tinyos.drain.DrainConnector  - Started myAddr = 100, liste
ning for DrainMsg
422  INFO  [main] net.tinyos.drain.DrainConnector  - New Listener for id=12
890  INFO  [main] net.tinyos.nucleus.NucleusInterface  - get: 10cs {LedsC.ledsOn
.0 } destAddr: 65534 respAddr: 0
906  INFO  [Thread-8] net.tinyos.drip.Drip  - Sending Msg 0: id=11,seqno=65534
1406 INFO  [Thread-8] net.tinyos.drip.Drip  - Sending Msg 1: id=11,seqno=65534
1906 INFO  [Thread-8] net.tinyos.drip.Drip  - Sending Msg 2: id=11,seqno=65534
2406 INFO  [Thread-8] net.tinyos.drip.Drip  - Sending Msg 3: id=11,seqno=65534
2906 INFO  [Thread-8] net.tinyos.drip.Drip  - Sending Msg 4: id=11,seqno=65534
3406 INFO  [Thread-8] net.tinyos.drip.Drip  - Sending Msg 5: id=11,seqno=65534
3906 INFO  [Thread-8] net.tinyos.drip.Drip  - Sending Msg 6: id=11,seqno=65534
4406 INFO  [Thread-8] net.tinyos.drip.Drip  - Sending Msg 7: id=11,seqno=65534
4906 INFO  [Thread-8] net.tinyos.drip.Drip  - Sending Msg 8: id=11,seqno=65534
5406 INFO  [Thread-8] net.tinyos.drip.Drip  - Sending Msg 9: id=11,seqno=65534
5906 INFO  [Thread-8] net.tinyos.drip.Drip  - Sending Msg 10: id=11,seqno=65534
6406 INFO  [Thread-8] net.tinyos.drip.Drip  - Sending Msg 11: id=11,seqno=65534

I have followed Sec. 3.1 in the document by adding component MgmtQueryC into Surge.nc.

How do I modify the Surge so I can see the attributes on all motes?
Any suggestion?

Thanks

Men-Shen Tsai
Graduate Institute of Automation Technology
National Taipei University of Technology
Taipei, 106
TAIWAN

TEL: 886-2-27712171x4326
FAX: 886-2-87733217


----------------------------------------------------------------
國立台北科技大學網路郵局(NTUT Webmail)
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to