I am trying to debug the problem and right now I am not able to receive any nucleus message to TOSBase node at all. I couldnot find the reason but by changing log4J settings I could see the following out put.

Please explain what it is?

The following statements appear when log4j is set as:

log4j.rootCategory=DEBUG, dest1

[EMAIL PROTECTED] /opt/tinyos-1.x/apps/SurgeTN/build/telosb
$ nquery TOS_LOCAL_ADDRESS Parent
0    INFO  [main] net.tinyos.nucleus.NucleusInterface  - started: opening moteIF
, drip(GET), drip(SET), drainConnector, drain.listen(RESPONSE)
156  INFO  [main] net.tinyos.drip.Drip  - Started id=11
172  INFO  [main] net.tinyos.drip.Drip  - Started id=13
203  INFO  [main] net.tinyos.drain.DrainConnector  - Started myAddr = 65534, lis
tening for DrainMsg
219  INFO  [main] net.tinyos.drain.DrainConnector  - New Listener for id=12
625  INFO  [main] net.tinyos.nucleus.NucleusInterface  - get: 10cs {TOS_LOCAL_AD
DRESS.0 Parent.0 } destAddr: 65534 respAddr: 0
641  DEBUG [Thread-9] net.tinyos.drip.Drip  - DripSender.run(state=1 sendCount=
0)
641  DEBUG [Thread-9] net.tinyos.drip.Drip  - probing
641  INFO  [Thread-9] net.tinyos.drip.Drip  - Sending Msg 0: id=11,seqno=65534
719  DEBUG [Thread-6] net.tinyos.drip.Drip  - Received Msg: id=11,seqno=126
719  DEBUG [Thread-4] net.tinyos.drip.Drip  - Received Msg: id=11,seqno=126
719  DEBUG [Thread-6] net.tinyos.drip.Drip  - dropped, not ID 13
719  INFO  [Thread-4] net.tinyos.drip.Drip  - Receive: id=11,seqno=65534 Heard O
ld Seqno
1000 DEBUG [Thread-4] net.tinyos.drip.Drip  - Received Msg: id=11,seqno=126
1016 DEBUG [Thread-6] net.tinyos.drip.Drip  - Received Msg: id=11,seqno=126
1016 DEBUG [Thread-6] net.tinyos.drip.Drip  - dropped, not ID 13
1141 DEBUG [Thread-9] net.tinyos.drip.Drip  - DripSender.run(state=2 sendCount=
1)
1141 DEBUG [Thread-9] net.tinyos.drip.Drip  - sending new seqno 128
1141 INFO  [Thread-9] net.tinyos.drip.Drip  - Sending Msg 1: id=11,seqno=65408
1203 DEBUG [Thread-4] net.tinyos.drip.Drip  - Received Msg: id=11,seqno=126
1203 DEBUG [Thread-6] net.tinyos.drip.Drip  - Received Msg: id=11,seqno=126
1219 DEBUG [Thread-6] net.tinyos.drip.Drip  - dropped, not ID 13
1500 DEBUG [Thread-4] net.tinyos.drip.Drip  - Received Msg: id=11,seqno=126
1500 DEBUG [Thread-6] net.tinyos.drip.Drip  - Received Msg: id=11,seqno=126
1500 DEBUG [Thread-6] net.tinyos.drip.Drip  - dropped, not ID 13
1641 DEBUG [Thread-9] net.tinyos.drip.Drip  - DripSender.run(state=2 sendCount=
2)
1641 DEBUG [Thread-9] net.tinyos.drip.Drip  - sending new seqno 128
1641 INFO  [Thread-9] net.tinyos.drip.Drip  - Sending Msg 2: id=11,seqno=65408
1688 DEBUG [Thread-6] net.tinyos.drip.Drip  - Received Msg: id=11,seqno=126
1688 DEBUG [Thread-4] net.tinyos.drip.Drip  - Received Msg: id=11,seqno=126
1688 DEBUG [Thread-6] net.tinyos.drip.Drip  - dropped, not ID 13
1985 DEBUG [Thread-4] net.tinyos.drip.Drip  - Received Msg: id=11,seqno=126
1985 DEBUG [Thread-6] net.tinyos.drip.Drip  - Received Msg: id=11,seqno=126
2000 DEBUG [Thread-6] net.tinyos.drip.Drip  - dropped, not ID 13
2141 DEBUG [Thread-9] net.tinyos.drip.Drip  - DripSender.run(state=2 sendCount=
3)
2141 DEBUG [Thread-9] net.tinyos.drip.Drip  - sending new seqno 128
2141 INFO  [Thread-9] net.tinyos.drip.Drip  - Sending Msg 3: id=11,seqno=65408
2188 DEBUG [Thread-4] net.tinyos.drip.Drip  - Received Msg: id=11,seqno=126
2188 DEBUG [Thread-6] net.tinyos.drip.Drip  - Received Msg: id=11,seqno=126
2188 DEBUG [Thread-6] net.tinyos.drip.Drip  - dropped, not ID 13
2485 DEBUG [Thread-4] net.tinyos.drip.Drip  - Received Msg: id=11,seqno=126
2485 DEBUG [Thread-6] net.tinyos.drip.Drip  - Received Msg: id=11,seqno=126
2485 DEBUG [Thread-6] net.tinyos.drip.Drip  - dropped, not ID 13
2641 DEBUG [Thread-9] net.tinyos.drip.Drip  - DripSender.run(state=2 sendCount=
4)
2641 DEBUG [Thread-9] net.tinyos.drip.Drip  - sending new seqno 128
2641 INFO  [Thread-9] net.tinyos.drip.Drip  - Sending Msg 4: id=11,seqno=65408
2735 DEBUG [Thread-4] net.tinyos.drip.Drip  - Received Msg: id=11,seqno=126
2735 DEBUG [Thread-6] net.tinyos.drip.Drip  - Received Msg: id=11,seqno=126
2750 DEBUG [Thread-6] net.tinyos.drip.Drip  - dropped, not ID 13
3031 DEBUG [Thread-4] net.tinyos.drip.Drip  - Received Msg: id=11,seqno=126
3031 DEBUG [Thread-6] net.tinyos.drip.Drip  - Received Msg: id=11,seqno=126
3031 DEBUG [Thread-6] net.tinyos.drip.Drip  - dropped, not ID 13
3141 DEBUG [Thread-9] net.tinyos.drip.Drip  - DripSender.run(state=2 sendCount=
5)
3141 DEBUG [Thread-9] net.tinyos.drip.Drip  - sending new seqno 128
3141 INFO  [Thread-9] net.tinyos.drip.Drip  - Sending Msg 5: id=11,seqno=65408
3235 DEBUG [Thread-4] net.tinyos.drip.Drip  - Received Msg: id=11,seqno=126
3235 DEBUG [Thread-6] net.tinyos.drip.Drip  - Received Msg: id=11,seqno=126
3250 DEBUG [Thread-6] net.tinyos.drip.Drip  - dropped, not ID 13
3516 DEBUG [Thread-4] net.tinyos.drip.Drip  - Received Msg: id=11,seqno=126
3531 DEBUG [Thread-6] net.tinyos.drip.Drip  - Received Msg: id=11,seqno=126
3531 DEBUG [Thread-6] net.tinyos.drip.Drip  - dropped, not ID 13
3641 DEBUG [Thread-9] net.tinyos.drip.Drip  - DripSender.run(state=2 sendCount=
6)
3641 DEBUG [Thread-9] net.tinyos.drip.Drip  - sending new seqno 128
3641 INFO  [Thread-9] net.tinyos.drip.Drip  - Sending Msg 6: id=11,seqno=65408
3719 DEBUG [Thread-4] net.tinyos.drip.Drip  - Received Msg: id=11,seqno=126
3719 DEBUG [Thread-6] net.tinyos.drip.Drip  - Received Msg: id=11,seqno=126
3719 DEBUG [Thread-6] net.tinyos.drip.Drip  - dropped, not ID 13
4016 DEBUG [Thread-4] net.tinyos.drip.Drip  - Received Msg: id=11,seqno=126
4016 DEBUG [Thread-6] net.tinyos.drip.Drip  - Received Msg: id=11,seqno=126
4016 DEBUG [Thread-6] net.tinyos.drip.Drip  - dropped, not ID 13
4141 DEBUG [Thread-9] net.tinyos.drip.Drip  - DripSender.run(state=2 sendCount=
7)
4141 DEBUG [Thread-9] net.tinyos.drip.Drip  - sending new seqno 128
4141 INFO  [Thread-9] net.tinyos.drip.Drip  - Sending Msg 7: id=11,seqno=65408
4203 DEBUG [Thread-4] net.tinyos.drip.Drip  - Received Msg: id=11,seqno=126
4219 DEBUG [Thread-6] net.tinyos.drip.Drip  - Received Msg: id=11,seqno=126
4219 DEBUG [Thread-6] net.tinyos.drip.Drip  - dropped, not ID 13
4500 DEBUG [Thread-4] net.tinyos.drip.Drip  - Received Msg: id=11,seqno=126
4500 DEBUG [Thread-6] net.tinyos.drip.Drip  - Received Msg: id=11,seqno=126
4500 DEBUG [Thread-6] net.tinyos.drip.Drip  - dropped, not ID 13
4641 DEBUG [Thread-9] net.tinyos.drip.Drip  - DripSender.run(state=2 sendCount=
8)
4641 DEBUG [Thread-9] net.tinyos.drip.Drip  - sending new seqno 128
4641 INFO  [Thread-9] net.tinyos.drip.Drip  - Sending Msg 8: id=11,seqno=65408
4703 DEBUG [Thread-4] net.tinyos.drip.Drip  - Received Msg: id=11,seqno=126
4703 DEBUG [Thread-6] net.tinyos.drip.Drip  - Received Msg: id=11,seqno=126
4703 DEBUG [Thread-6] net.tinyos.drip.Drip  - dropped, not ID 13
4985 DEBUG [Thread-4] net.tinyos.drip.Drip  - Received Msg: id=11,seqno=126
5000 DEBUG [Thread-6] net.tinyos.drip.Drip  - Received Msg: id=11,seqno=126
5000 DEBUG [Thread-6] net.tinyos.drip.Drip  - dropped, not ID 13
5141 DEBUG [Thread-9] net.tinyos.drip.Drip  - DripSender.run(state=2 sendCount=
9)
5141 DEBUG [Thread-9] net.tinyos.drip.Drip  - sending new seqno 128
5141 INFO  [Thread-9] net.tinyos.drip.Drip  - Sending Msg 9: id=11,seqno=65408
5203 DEBUG [Thread-4] net.tinyos.drip.Drip  - Received Msg: id=11,seqno=126
5203 DEBUG [Thread-6] net.tinyos.drip.Drip  - Received Msg: id=11,seqno=126
5203 DEBUG [Thread-6] net.tinyos.drip.Drip  - dropped, not ID 13
5485 DEBUG [Thread-4] net.tinyos.drip.Drip  - Received Msg: id=11,seqno=126
5485 DEBUG [Thread-6] net.tinyos.drip.Drip  - Received Msg: id=11,seqno=126
5485 DEBUG [Thread-6] net.tinyos.drip.Drip  - dropped, not ID 13
5641 DEBUG [Thread-9] net.tinyos.drip.Drip  - DripSender.run(state=2 sendCount=
10)
5641 DEBUG [Thread-9] net.tinyos.drip.Drip  - sending new seqno 128
5641 INFO  [Thread-9] net.tinyos.drip.Drip  - Sending Msg 10: id=11,seqno=65408
5703 DEBUG [Thread-4] net.tinyos.drip.Drip  - Received Msg: id=11,seqno=126
5703 DEBUG [Thread-6] net.tinyos.drip.Drip  - Received Msg: id=11,seqno=126
5703 DEBUG [Thread-6] net.tinyos.drip.Drip  - dropped, not ID 13
6000 DEBUG [Thread-4] net.tinyos.drip.Drip  - Received Msg: id=11,seqno=126
6000 DEBUG [Thread-6] net.tinyos.drip.Drip  - Received Msg: id=11,seqno=126
6000 DEBUG [Thread-6] net.tinyos.drip.Drip  - dropped, not ID 13
6141 DEBUG [Thread-9] net.tinyos.drip.Drip  - DripSender.run(state=2 sendCount=
11)
6141 DEBUG [Thread-9] net.tinyos.drip.Drip  - sending new seqno 128
6141 INFO  [Thread-9] net.tinyos.drip.Drip  - Sending Msg 11: id=11,seqno=65408
6266 DEBUG [Thread-4] net.tinyos.drip.Drip  - Received Msg: id=11,seqno=126
6266 DEBUG [Thread-6] net.tinyos.drip.Drip  - Received Msg: id=11,seqno=126
6281 DEBUG [Thread-6] net.tinyos.drip.Drip  - dropped, not ID 13
6563 DEBUG [Thread-4] net.tinyos.drip.Drip  - Received Msg: id=11,seqno=126
6563 DEBUG [Thread-6] net.tinyos.drip.Drip  - Received Msg: id=11,seqno=126
6563 DEBUG [Thread-6] net.tinyos.drip.Drip  - dropped, not ID 13
6641 DEBUG [Thread-9] net.tinyos.drip.Drip  - DripSender.run(state=2 sendCount=
12)
6641 DEBUG [Thread-9] net.tinyos.drip.Drip  - sending finished
6953 DEBUG [Thread-4] net.tinyos.drip.Drip  - Received Msg: id=11,seqno=126
6953 DEBUG [Thread-6] net.tinyos.drip.Drip  - Received Msg: id=11,seqno=126
6953 DEBUG [Thread-6] net.tinyos.drip.Drip  - dropped, not ID 13


This is the breif version of above statement. It comes when log4j settings were:

log4j.rootCategory=INFO, dest1


[EMAIL PROTECTED] /opt/tinyos-1.x/apps/SurgeTN/build/telosb
$ nquery TOS_LOCAL_ADDRESS Parent
0    INFO  [main] net.tinyos.nucleus.NucleusInterface  - started: opening moteIF
, drip(GET), drip(SET), drainConnector, drain.listen(RESPONSE)
391  INFO  [main] net.tinyos.drip.Drip  - Started id=11
391  INFO  [main] net.tinyos.drip.Drip  - Started id=13
438  INFO  [main] net.tinyos.drain.DrainConnector  - Started myAddr = 65534, lis
tening for DrainMsg
438  INFO  [main] net.tinyos.drain.DrainConnector  - New Listener for id=12
829  INFO  [main] net.tinyos.nucleus.NucleusInterface  - get: 10cs {TOS_LOCAL_AD
DRESS.0 Parent.0 } destAddr: 65534 respAddr: 0
844  INFO  [Thread-9] net.tinyos.drip.Drip  - Sending Msg 0: id=11,seqno=65534
907  INFO  [Thread-4] net.tinyos.drip.Drip  - Receive: id=11,seqno=65534 Heard O
ld Seqno
1344 INFO  [Thread-9] net.tinyos.drip.Drip  - Sending Msg 1: id=11,seqno=65408
1844 INFO  [Thread-9] net.tinyos.drip.Drip  - Sending Msg 2: id=11,seqno=65408
2344 INFO  [Thread-9] net.tinyos.drip.Drip  - Sending Msg 3: id=11,seqno=65408
2844 INFO  [Thread-9] net.tinyos.drip.Drip  - Sending Msg 4: id=11,seqno=65408
3344 INFO  [Thread-9] net.tinyos.drip.Drip  - Sending Msg 5: id=11,seqno=65408
3844 INFO  [Thread-9] net.tinyos.drip.Drip  - Sending Msg 6: id=11,seqno=65408
4344 INFO  [Thread-9] net.tinyos.drip.Drip  - Sending Msg 7: id=11,seqno=65408
4844 INFO  [Thread-9] net.tinyos.drip.Drip  - Sending Msg 8: id=11,seqno=65408
5344 INFO  [Thread-9] net.tinyos.drip.Drip  - Sending Msg 9: id=11,seqno=65408
5844 INFO  [Thread-9] net.tinyos.drip.Drip  - Sending Msg 10: id=11,seqno=65408
6344 INFO  [Thread-9] net.tinyos.drip.Drip  - Sending Msg 11: id=11,seqno=65408

[EMAIL PROTECTED] /opt/tinyos-1.x/apps/SurgeTN/build/telosb
$

Please advice.

Sumit

On 9/19/06, Sumit Gupta <[EMAIL PROTECTED]> wrote:
Hi,

I really need help in using Nucleus for data collection from network. Currently, I can collect data from nodes which are in range of base node (i.e. TOSBase node) using nucleus but I am not getting any data from remote nodes. I am little confuse how nucleus should really work. This is because of following reason:
  •  First of all, nodes in network doesnt recorgnize TOSBase node as root, therefore to create a multihop network I had to attach another node to computer with id=0 (running same application as all other nodes) to activate the network. However TOSBase was able to collect data from nodes in range. Is it because nucleus make their own seprate tree to disperse query through out the network and collect data? If so, does it mean that I do have to attach two nodes to computer - one as nuclues base and other as network base to collect regular data?
    (NOTE: I AM USING SURGETELOS APPLICATION WITH NUCLEUS)
Also, as per nucleus manual, Nucleus uses Drain to construct tree if we give following command:

java net.tinyos.drain.Drain

but its giving some problem. I havent tested it for remote nodes yet but the main problem with this command is that after I run it I could retrieve data only once from the network. I mean to say that once this command is being given to system, data can be retreived only one time as after that every next query give blank output. To get data again from network I had to restart all the nodes including base ones. The following output will give you some idea about the problem I am having.


[EMAIL PROTECTED] /opt/tinyos-1.x/apps/SurgeTN/build/telosb
$ nquery TOS_LOCAL_ADDRESS
log4j:WARN No appenders could be found for logger (net.tinyos.nucleus.NucleusInt
erface).
log4j:WARN Please initialize the log4j system properly.
0: TOS_LOCAL_ADDRESS = 0

[EMAIL PROTECTED] /opt/tinyos-1.x/apps/SurgeTN/build/telosb
$ java net.tinyos.drain.Drain
Drain: root_address=3 instance=137 period=0 delay=4
Sending beacon...
log4j:WARN No appenders could be found for logger (net.tinyos.drain.Drain).
log4j:WARN Please initialize the log4j system properly.

[EMAIL PROTECTED] /opt/tinyos-1.x/apps/SurgeTN/build/telosb
$ nquery TOS_LOCAL_ADDRESS
log4j:WARN No appenders could be found for logger (net.tinyos.nucleus.NucleusInt
erface).
log4j:WARN Please initialize the log4j system properly.
0: TOS_LOCAL_ADDRESS = 0

[EMAIL PROTECTED] /opt/tinyos-1.x/apps/SurgeTN/build/telosb
$ nquery TOS_LOCAL_ADDRESS
log4j:WARN No appenders could be found for logger (net.tinyos.nucleus.NucleusInt
erface).
log4j:WARN Please initialize the log4j system properly.

[EMAIL PROTECTED] /opt/tinyos-1.x/apps/SurgeTN/build/telosb
$ java net.tinyos.drain.Drain
Drain: root_address=3 instance=51 period=0 delay=4
Sending beacon...
log4j:WARN No appenders could be found for logger (net.tinyos.drain.Drain).
log4j:WARN Please initialize the log4j system properly.

[EMAIL PROTECTED] /opt/tinyos-1.x/apps/SurgeTN/build/telosb
$ nquery TOS_LOCAL_ADDRESS
log4j:WARN No appenders could be found for logger (net.tinyos.nucleus.NucleusInt
erface).
log4j:WARN Please initialize the log4j system properly.

[EMAIL PROTECTED] /opt/tinyos-1.x/apps/SurgeTN/build/telosb
$ nquery TOS_LOCAL_ADDRESS
log4j:WARN No appenders could be found for logger (net.tinyos.nucleus.NucleusInt
erface).
log4j:WARN Please initialize the log4j system properly.

[EMAIL PROTECTED] /opt/tinyos-1.x/apps/SurgeTN/build/telosb
$ java net.tinyos.drain.Drain
Drain: root_address=3 instance=102 period=0 delay=4
Sending beacon...
log4j:WARN No appenders could be found for logger (net.tinyos.drain.Drain).
log4j:WARN Please initialize the log4j system properly.

[EMAIL PROTECTED] /opt/tinyos-1.x/apps/SurgeTN/build/telosb
$ nquery TOS_LOCAL_ADDRESS
log4j:WARN No appenders could be found for logger (net.tinyos.nucleus.NucleusInt
erface).
log4j:WARN Please initialize the log4j system properly.


Now I am getting some warnings, is it because of that? When I run Drain I get following warnings (also shown above):
log4j:WARN No appenders could be found for logger (net.tinyos.drain.Drain).
log4j:WARN Please initialize the log4j system properly.

and when I run query I get following warnings:
log4j:WARN No appenders could be found for logger (net.tinyos.nucleus.NucleusInterface).
log4j:WARN Please initialize the log4j system properly.

Please advice. I really need to solve this.

Regards,
Sumit

_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to