[Tinyos-help] unable to run testNetwork application

2009-02-11 Thread BHARATHI MANJULA K
Hi all,
i compiled TestNetwork application successfully using the command make
micaz sim.
i don't have motes and i am using TOSSIM simulator.so i gave python
test.py to run the application.But it errors. can anyone hellp me?
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] setting LocalTime

2009-02-11 Thread Javier M. Mora Merchan
Hi, 

I want to measure time from certain event. I've seen there is a
component called LocalTimeC and I can get the value of time from boot.

But, Is it possible to set the value of localtime?

If LocalTimeC is read-only, Is there other componente witch allows me
get and set values?

I've seen Counter Interface but it's read-only too. 



I know I can use an time_offset var and work with it (comparing with
localtime) but Is there anything more direct?.

Javier M Mora

___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Ask multicast routing Syntax on TinyOS V1.0 / v1.1.10 (Urgent needed)

2009-02-11 Thread ma. pratama

Hi My name is Arif and now i'm working on my final project on multicast routing 
in wireless sensor networks.. Can you tell me how to program the mote and the 
base station for doing multicast ?? i'll be first try to use 5 mote which is 
1mote for source node, 2 mote for middle node, and 2 base station as receiver. 
I confuse on how to use the program on TinyOS that this is my first time using 
the program. For your information my TinyOS version is v1.0. and i'll use the 
MicaZ as the mote and MIB600 as the base staion.
Can you give me the program tutorial or the exact program for the multicast on 
TinyOS v1.0.

Can u please help me with this??I really really need the syntax program... I'll 
be very appreciating your help..thank you..

Regards

Arif




  


  ___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] The applications can not be compiled any more, *** No rule to make target...

2009-02-11 Thread Ruoshui Liu

Dear all,

I have been working on the tinyos 1.1.15, and it was working all right 
with everything. One day, I installed the Jennic ZigBee Evaluation Kit 
on my computer and the installation comes with the new version of 
Cygwin. After the installation, my /cygwin shell/ has been replaced with 
the /bash-2.05b/, and user interface has been totally changed. This was 
solved by rerun the setup located in the 
\tinyos\cygwin-installationfiles\, but the worst thing is I can not 
compile any applications any more. The error message I have got is


../Makerules:26: /../apps/Makerules: No such file or directory
make: *** No rule to make target `/../apps/Makerules'.  Stop.

These makefile and makerules are exactly same as before, and I didn't 
change anything. Could you anyone give me some hints on this please? I 
really appreciate any help.


Best regards,
Ruoshui
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] How do I reply on a message ?

2009-02-11 Thread Gmx1
Hi Folks,

How do I reply on a message posted here ?

Thankfully

Ivan-Vanja

Sent from my iPhone
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] mda100 sensor board

2009-02-11 Thread A Abu Mahfouz
Hi:

does anybody has an example code to use this board, I am using the  
micaz mote under Linux

This message and attachments are subject to a disclaimer. Please refer
to www.it.up.ac.za/documentation/governance/disclaimer/ for full
details. / Hierdie boodskap en aanhangsels is aan 'n vrywaringsklousule
onderhewig. Volledige besonderhede is by
www.it.up.ac.za/documentation/governance/disclaimer/ beskikbaar.


___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] How do I reply on a message ?

2009-02-11 Thread Siirtola Harri
Sign in to the mailing list, then you get all messages by email.
Remember to reply all to include the list in your reply, not just the
poster you're replying to.

Regards,

Harri 

-Original Message-
From: tinyos-help-boun...@millennium.berkeley.edu
[mailto:tinyos-help-boun...@millennium.berkeley.edu] On Behalf Of Gmx1
Sent: Wednesday, February 11, 2009 12:45 PM
To: tinyos-help@millennium.berkeley.edu
Subject: [Tinyos-help] How do I reply on a message ?

Hi Folks,

How do I reply on a message posted here ?

Thankfully

Ivan-Vanja

Sent from my iPhone
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] mda100 sensor board

2009-02-11 Thread João Paulo Amaro da Costa Luz Carneiro
Hi,
You can use the sense example in the apps of the tinyos.
Compile wih
SENSORBOARD=mda100 make iris
or whatever.
You can specify the CB in the makefile by adding
-I$(TOSDIR)/sensorboards/mda100/cb
to the CFLAGS.
Regards,

Joao

On 2009/02/11, at 10:51, A Abu Mahfouz wrote:

 Hi:

 does anybody has an example code to use this board, I am using the
 micaz mote under Linux

 This message and attachments are subject to a disclaimer. Please refer
 to www.it.up.ac.za/documentation/governance/disclaimer/ for full
 details. / Hierdie boodskap en aanhangsels is aan 'n  
 vrywaringsklousule
 onderhewig. Volledige besonderhede is by
 www.it.up.ac.za/documentation/governance/disclaimer/ beskikbaar.


 ___
 Tinyos-help mailing list
 Tinyos-help@millennium.berkeley.edu
 https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] The applications can not be compiled any more, *** No rule to make target...

2009-02-11 Thread Urs Hunkeler
Hi Ruoshui,

This sounds like the environment variables are not set correctly. I'm 
not sure for TinyOS 1.x, with TinyOS 2.x I would check:
$MAKERULES (this should indicate where the TinyOS specific makefiles are 
located)
$TOSROOT
$CLASSPATH

When I was still using windows, I think I had a startup script in 
/etc/profile.d for configuring the paths. You might also have set the 
paths in your .bashrc or .profile script.

Cheers,
Urs


Ruoshui Liu wrote:
 Dear all,
 
 I have been working on the tinyos 1.1.15, and it was working all right 
 with everything. One day, I installed the Jennic ZigBee Evaluation Kit 
 on my computer and the installation comes with the new version of 
 Cygwin. After the installation, my /cygwin shell/ has been replaced with 
 the /bash-2.05b/, and user interface has been totally changed. This was 
 solved by rerun the setup located in the 
 \tinyos\cygwin-installationfiles\, but the worst thing is I can not 
 compile any applications any more. The error message I have got is
 
 ../Makerules:26: /../apps/Makerules: No such file or directory
 make: *** No rule to make target `/../apps/Makerules'.  Stop.
 
 These makefile and makerules are exactly same as before, and I didn't 
 change anything. Could you anyone give me some hints on this please? I 
 really appreciate any help.
 
 Best regards,
 Ruoshui
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] motelist error:could not open key HKLM\SYSTEM\CurrentControlSet\Enum\FTDIBUS

2009-02-11 Thread wangdawei_mail
 
 hello everyone! i am fresher, i just installed tinyOS following instructions 
in website of 
http://docs.tinyos.net/index.php/Installing_TinyOS_2.1#Manual_installation_on_your_host_OS_with_RPMs.
my platform is Windows+Cygwin+TinyOS.tos-check-env is ok,without errors.
but when i plug in telosB and type motelist on Cygwin,it display :could not 
open key HKLM\SYSTEM\CurrentControlSet\Enum\FTDIBUS.
i found some similar answers,but it does not work.i donot how to do it.can you 
help me?
 
thanks!___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] The applications can not be compiled any more, *** No rule to make target...

2009-02-11 Thread Urs Hunkeler
Hi Ruoshui,

The first step is to identify the exact nature of the conflict. 
Apparently it's not the environmental variables. Maybe something in the 
directory structure has changed? How exactly do you include the 
Makerules in your Makefile? Check that this file really exists at the 
given path (e.g. if you include ../apps/Makerules, is the file really 
there?). Maybe Makerules itself also includes files, then also check 
whether these files are there.

Another idea is that your Jennic Kit installed a different version of 
make, maybe one that is not aware of cygwin paths?

Cheers,
Urs

Ruoshui Liu wrote:
 Hi Urs,
 
 Thank you very much for your prompt replay. I checked these setting, 
 they are the same as before when the compilation was working. I am 
 wondering if the installation of Jennic ZigBee Evaluation Kit causes the 
 conflict with the previous cygwin which was installed with the tinyos, 
 since there is another cygwin installed when the Jennic things were 
 installed. If this is the case, how to solve it please.
 
 Thanks very much!
 
 Ruoshui
 
 Urs Hunkeler wrote:
 Hi Ruoshui,

 This sounds like the environment variables are not set correctly. I'm 
 not sure for TinyOS 1.x, with TinyOS 2.x I would check:
 $MAKERULES (this should indicate where the TinyOS specific makefiles 
 are located)
 $TOSROOT
 $CLASSPATH

 When I was still using windows, I think I had a startup script in 
 /etc/profile.d for configuring the paths. You might also have set the 
 paths in your .bashrc or .profile script.

 Cheers,
 Urs


 Ruoshui Liu wrote:
 Dear all,

 I have been working on the tinyos 1.1.15, and it was working all 
 right with everything. One day, I installed the Jennic ZigBee 
 Evaluation Kit on my computer and the installation comes with the new 
 version of Cygwin. After the installation, my /cygwin shell/ has been 
 replaced with the /bash-2.05b/, and user interface has been totally 
 changed. This was solved by rerun the setup located in the 
 \tinyos\cygwin-installationfiles\, but the worst thing is I can not 
 compile any applications any more. The error message I have got is

 ../Makerules:26: /../apps/Makerules: No such file or directory
 make: *** No rule to make target `/../apps/Makerules'.  Stop.

 These makefile and makerules are exactly same as before, and I didn't 
 change anything. Could you anyone give me some hints on this please? 
 I really appreciate any help.

 Best regards,
 Ruoshui
 

___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] How do I reply on a message ?

2009-02-11 Thread Gmx1
Thank you.
Obviously this worked.

Sent from my iPhone

On 11.02.2009, at 12:28, Siirtola Harri harri.siirt...@vtt.fi wrote:

 Sign in to the mailing list, then you get all messages by email.
 Remember to reply all to include the list in your reply, not just  
 the
 poster you're replying to.

 Regards,

Harri

 -Original Message-
 From: tinyos-help-boun...@millennium.berkeley.edu
 [mailto:tinyos-help-boun...@millennium.berkeley.edu] On Behalf Of Gmx1
 Sent: Wednesday, February 11, 2009 12:45 PM
 To: tinyos-help@millennium.berkeley.edu
 Subject: [Tinyos-help] How do I reply on a message ?

 Hi Folks,

 How do I reply on a message posted here ?

 Thankfully

 Ivan-Vanja

 Sent from my iPhone
 ___
 Tinyos-help mailing list
 Tinyos-help@millennium.berkeley.edu
 https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Ask multicast routing Syntax on TinyOS V1.0 / v1.1.10 (Urgent needed)

2009-02-11 Thread Mohammad S. Hashemian
Well, there is lots of tutorial out there, like the documentations by
Crossbow which has some samples about this, or documentation of tinyOS. I
don't know exactly how many features you want to write for your program, but
just a program that sends a packet through some nodes is not very hard, you
can easily find some samples about this in Crossbow documentation.

2009/2/11 ma. pratama spidol_perma...@yahoo.com


 Hi My name is Arif and now i'm working on my final project on multicast
 routing in wireless sensor networks.. Can you tell me how to program the
 mote and the base station for doing multicast ?? i'll be first try to use 5
 mote which is 1mote for source node, 2 mote for middle node, and 2 base
 station as receiver. I confuse on how to use the program on TinyOS that this
 is my first time using the program. For your information my TinyOS version
 is v1.0. and i'll use the MicaZ as the mote and MIB600 as the base staion.
 Can you give me the program tutorial or the exact program for the multicast
 on TinyOS v1.0.

 Can u please help me with this??I really really need the syntax program...
 I'll be very appreciating your help..thank you..

 Regards

 Arif




 ___
 Tinyos-help mailing list
 Tinyos-help@millennium.berkeley.edu
 https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help




-- 
Mohammad S. Hashemian
Research Scholar/DISCUS Lab
Department of Computer Science
254.2 Thorvaldson Building
University of Saskatchewan
(306)966-1947
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] CRC in CC2420

2009-02-11 Thread Jordi Pérez
Dear all,

For CC2420, if AUTOCRC is set, will the hardware reject CRC-error packet
automatically?
If true, then is it possible to receive those packets but with AUTOCRC still
being set? I want to receive this packets and rebuild them.

Thanks a lot,

Jordi
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Pls Help me- sending packet to a particular mote

2009-02-11 Thread Brandon Fu

Hi,

 Can anyone tell me how do i send to a particular mote and receive from a 
particular mote.?? Use AMSend and what else?

Really appreciate whoever can provide me an answer

 

yours sincerely,

Brandon

_
Easily edit your photos like a pro with Photo Gallery.
http://get.live.com/photogallery/overview___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Pls Help me- sending packet to a particular mote

2009-02-11 Thread Ittipong Khemapech
Hi,

Have you gone through the tutorials? Lesson 3 and 4 will be very useful. You
can modify the BaseStation.

Ittipong

2009/2/11 Brandon Fu brandon...@hotmail.com

  Hi,
  Can anyone tell me how do i send to a particular mote and receive from a
 particular mote.?? Use AMSend and what else?
 Really appreciate whoever can provide me an answer

 yours sincerely,
 Brandon

 --
 Enrich your blog with Windows Live Writer. Windows Live 
 Writerhttp://get.live.com/writer/overview

 ___
 Tinyos-help mailing list
 Tinyos-help@millennium.berkeley.edu
 https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] b6lowpan: tunnel problems

2009-02-11 Thread Stephen Dawson-Haggerty
Can you tell me
 - what platform you are using
 - what tinyos version you are using
 - what source of lowpan you are using

Steve

On Wed, Feb 11, 2009 at 12:27 AM, Ansar Jamil ansa...@yahoo.com wrote:

 Hi Steve,

 I am able to get the tunnel up. I install UDPEcho program in second mote
 with ID 101 as per README. The second mote is located side by side with the
 base station. Then try to ping the secong mote but i got the following
 error:

 r...@ansar-desktop:/svn/code/b6lowpan/support/sdk/c/lib6lowpan/tunnel#
 ping6 2001:470:1f04:56d::65
 PING 2001:470:1f04:56d::65(2001:470:1f04:56d::65) 56 data bytes
 From fe80::211:85ff:fef2:72df icmp_seq=10 Destination unreachable: Address
 unreachable
 From fe80::211:85ff:fef2:72df icmp_seq=11 Destination unreachable: Address
 unreachable
 From fe80::211:85ff:fef2:72df icmp_seq=12 Destination unreachable: Address
 unreachable
 From fe80::211:85ff:fef2:72df icmp_seq=14 Destination unreachable: Address
 unreachable
 From fe80::211:85ff:fef2:72df icmp_seq=15 Destination unreachable: Address
 unreachable
 From fe80::211:85ff:fef2:72df icmp_seq=16 Destination unreachable: Address
 unreachable

 It seem like no communication between base station and the second sensor
 mote. Do you have any suggestion how to solve this issue?

 Thanks
 Best regards
 ansar


 --- On Sun, 2/8/09, Stephen Dawson-Haggerty stev...@eecs.berkeley.edu
 wrote:

  From: Stephen Dawson-Haggerty stev...@eecs.berkeley.edu
  Subject: Re: [Tinyos-help] b6lowpan: tunnel problems
  To: Brendan Cody Kenny codyke...@gmail.com
  Cc: tinyos-help@millennium.berkeley.edu
  Date: Sunday, February 8, 2009, 4:16 PM
  Hi Brendan-- It sounds like a couple of people have been
  having this
  problem.  I think we've reproduced it here (finally)
  and it seems specific
  to ubuntu, so I'll have a look this afternoon and see
  if I can get to the
  bottom of it.  Hopefully I'll have a patch later today
  that fixes the issue.
 
  Steve
 
  On Sat, Feb 7, 2009 at 5:38 AM, Brendan Cody Kenny
  codyke...@gmail.comwrote:
 
   Hi All,
  
   I had the same problem on ubuntu based distro. fixed
  it by checking
   some of the following along with working through the
  readme:
  
   the readme mentions $TOS_ROOT which is not
  set by tinyos2.1.0 (it
   sets $TOSROOT) so set $TOS_ROOT = $TOSROOT
  
   make sure that permissions are correct on ttyUSB1 and
  TTYUSB0 (i just
   set them to 777 to be sure)
  
   I now get the tunnel up, have installed UPDEcho on
  some motes as per
   readme, but there doesnt seem to be any communication
  between mote and
   base station.
  
   I turn on the mote, expect it to contact the base
  station and the
   driver sets up the routing.
  
   I am using the UDPEcho from conrtib as released
  11-13-2008 and
   everything else seems fine as instructed.
  
   Whats missing here?
  
   Thanks,
   Brendan.
   ___
   Tinyos-help mailing list
   Tinyos-help@millennium.berkeley.edu
  
  https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
  
  ___
  Tinyos-help mailing list
  Tinyos-help@millennium.berkeley.edu
  https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help




___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] unable to run testNetwork application

2009-02-11 Thread Omprakash Gnawali
On Wed, Feb 11, 2009 at 12:33 AM, BHARATHI MANJULA K cs0...@pec.edu wrote:
 Hi all,
 i compiled TestNetwork application successfully using the command make
 micaz sim.
 i don't have motes and i am using TOSSIM simulator.so i gave python
 test.py to run the application.But it errors. can anyone hellp me?

Please go through the TOSSIM simulator. You can find it here:
http://docs.tinyos.net/index.php/TOSSIM

Once you complete the tutorial, you can send us the error message you
get when you try to simulate TestNetwork.

- om_p
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] unable to run testNetwork application

2009-02-11 Thread BAI LI
Hi,

you need to specify your problem then we can help you.

Regards,
Bai
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Pls Help me- sending packet to a particular

2009-02-11 Thread Mhd. Amer Wafai
Hi,

If you go through the tutorial lesson 3 
http://docs.tinyos.net/index.php/Mote-mote_radio_communication you can see in 
BlinkC.nc file the AMSend function has in it's first parameter the destination 
address which is put as 0x broadcast address if you want a particular 
destination you can specify the mote TOS_NODE_ID.

hope it will help you,
Amer___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] CRC in CC2420

2009-02-11 Thread Razvan Musaloiu-E.

Hi!

On Wed, 11 Feb 2009, Jordi Pérez wrote:


Dear all,

For CC2420, if AUTOCRC is set, will the hardware reject CRC-error packet
automatically?
If true, then is it possible to receive those packets but with AUTOCRC still
being set? I want to receive this packets and rebuild them.



The CC2420 is not discarding the packets with bad CRC. What does is to 
indicate using a bit that the packet was bad (page 38, section 16.4 
from [1]). The TinyOS driver for CC2420 inspects this bit and discards the 
packets if that bit is not 1. You can see this happening in 
the RXFIFO.readDone event from CC2420ReceiveP.nc. The switch branch of 
interest is 'case S_RX_PAYLOAD:'.


The other filtering that you'll have to disable is in the 
SubReceive.receive event from CC2420ActiveMessageP.nc.


[1] http://focus.ti.com/lit/ds/symlink/cc2420.pdf

--
Razvan ME___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] unable to run testNetwork application

2009-02-11 Thread BHARATHI MANJULA K
i am trying to simulate RadioCountToLeds example in Tossim simulator using
command 'make micaz sim'
It errors like:No rule to make target RadioCountToLeds .h  needed by
RadioCountMsg.py .stop ...i guess there is something wrong in makefile.

I can compile and run all other examples given in tutorials.But this
troubles .
can u help me .



On Wed, Feb 11, 2009 at 1:56 PM, BAI LI libai0...@gmail.com wrote:

 Hi,

 you need to specify your problem then we can help you.

 Regards,
 Bai


___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Help with the TestNework.java

2009-02-11 Thread Varun Jain
Hi Saul,

Can you execute the Listen tool?

 

If you can run that then it should be pretty much same. Is your TestNetworkMsg 
file generated correctly??? If it is not, then check that in 
Makefile,  you need to have a TAB before java and mig java

 

Have you set up your MOTECOM environment variable?? If you have then you only 
need to give the following command:

 

java net.tinyos.tools.MsgReader TestNetworkMsg

 

It should work straight away. Also check if your serial port is connected to 
the Root of the network. But if you are able to see anything using Listen 
tool then there is some other problem.

 

I hope it helps.

 

Cheers,

 

Varun Jain

 

From: Saul Garcia [mailto:sgar2...@gmail.com] 
Sent: Thursday, 12 February 2009 12:35 AM
To: Varun Jain
Cc: tinyos-help@millennium.berkeley.edu
Subject: Re: Help with the TestNework.java

 

Thank you, I have been working but there is a problem, I cannot execute the 
second command:

java net.tinyos.tools.MsgReader TestNetworkMsg

Am I missing something? I have tried adding the -comm 
serial@/dev/tty.usb..B:iris, but no luck because it appeared the message: 
s...@localhost:9002 died - exiting (java.net.ConnectException: Connection 
refused)

Kindly,

2009/2/11 Varun Jain va...@spiderbox.com.au

Hi Saul,

TestNetwork application is the best application to start with to check if your 
networking is working alright, BACAUSE the application exercises the basic 
networking layers, i.e collection (using CTP) and dissemination (Using DIP or 
DRIP).

 

You will have to make two new files so that you can print all the data on the 
Screen

 

I suggest that in the TestNetwork application you make another folder called 
java:. Make the following two new files in this folder.

 

1)  Makefile

 

BUILD_EXTRA_DEPS += TestNetwork.class

CLEAN_EXTRA = *.class TestNetworkMsg.java



TestNetwork.class: $(wildcard *.java) TestNetworkMsg.java

javac *.java

 

TestNetworkMsg.java:

mig java -target=null -java-classname=TestNetworkMsg 
../TestNetwork.h TestNetworkMsg -o $@

 

 

2)  TestNetwork.java

 

import net.tinyos.message.*;

import net.tinyos.util.*;

import java.io.*;

 

public class TestNetwork implements MessageListener

{

MoteIF mote;



// Main entry point

void run() {



mote = new MoteIF(PrintStreamMessenger.err);

mote.registerListener(new TestNetworkMsg(), 
this);

}

 

  synchronized public void messageReceived(int dest_addr, Message message) {

 if (message instanceof TestNetworkMsg) {

TestNetworkMsg msg = (TestNetworkMsg)message;



 System.out.println(Event is happening at node 
number  =   + msg.get_source());



System.out.println(The message sequence for 
source node   =   + msg.get_seqno());



System.out.println(PARENT for the event 
generating node   =   + msg.get_parent());



System.out.println(Link quality with the 
parent is=   + msg.get_metric());



System.out.println(Number of hops to get to 
the base  =   + msg.get_data());

 

System.out.println(Number of hops to get to 
the base  =   + msg.get_hopcount());



System.out.println(Number of hops to get to 
the base  =   + msg.get_ sendCount ());

 

System.out.println(Number of hops to get to 
the base  =   + msg.get_ sendSuccessCount ());



System.out.println(  );

 }

}

 



public static void main(String[] args) {

TestNetwork me = new TestNetwork();

me.run();

}

}

 

 

 

Now if you go to this java directory, you should type make. This should 
automatically create all .class files and TestNetworkMsg.java file.

 

Now you can run the following two tests at this point. If your Root Node is 
attached to the serial port/PC then you run the following command:

 

java net.tinyos.tools.Listen -comm serial@/dev/ttySn:micaz  -à Put the 
correct number in place of 'n' and correct mote

 

AND

java net.tinyos.tools.MsgReader TestNetworkMsg

 

 

You should be seeing loys of data coming in like the source, the parent, 
etc I hope this helps.

 

 

Cheers,

 

Varun Jain

 

From: Saul Garcia [mailto:sgar2...@gmail.com] 
Sent: Wednesday, 11 February 2009 2:33 AM
To: Varun Jain
Subject: Help with the TestNework.java

 

Hi,

I have been reading the tinyos mailing-list since I am