Re: [Tinyos-help] Accelerometer in MTS310CA

2007-06-10 Thread Tarun Bansal

Hi

Yes they are raw readings

You can see the formula for conversion from
\opt\tinyos-1.x\contrib\xbow\tools\src\xlisten\xconvert.c
The function name that you should be looking for in this file is xconvert_accel.
However note that the conversion involves two calibration constants
calib_pos_1g and calib_neg_1g which you can determine by placing the
sensor static and reverse engineering the raw value.

Whether the accelerometer will serve your purpose or not can only be
decided after doing some experiments

Tarun

On 6/10/07, Shuo Xiao [EMAIL PROTECTED] wrote:

Hi, all

There is a dual-axis accelerometer in sensorboard MTS310CA. And I tried to
install the oscilloscope of TinyOS 2 into MicaZ motes by using AccelX and
got some data.   These data are ADC readings, right? How to convert these
readings to engineering units? Are there some formulas in TinyOS 2 to
convert the raw ADC readings to engineering units? If I measure people's
movement, dual-axis accelerometer doesnot seem to be enough, what do you
think?

Thanks a lot.

Shuo

_
Advertisement: Makeover Your Finances - WIN a $3000 Planning Package
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fwww%2Eletsshop%2Ecom%2FDefault%2Easpx%3Ftabid%3D948_t=764144777_r=letshop_emailtaglines_june07_m=EXT

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


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


Re: [Tinyos-help] How nesc (TOSSIM) is communicating with .java files? (SensorModel)

2007-05-08 Thread Tarun Bansal

On 5/8/07, Fahad Munawar Jan [EMAIL PROTECTED] wrote:

tinyos-help@Millennium.Berkeley.EDU
Hi Tarun,

Thankyou very much for your detailed response.
Could you please guide me a bit more:

With reference to my question no: 2 (answer), can i ask:
1b. Is there any commandline option to use SensorModel?


There is no command line option. All the functions are already built.
You just need to call them appropriately from a Python script.
check the example at:
\opt\tinyos-1.x\tools\java\net\tinyos\sim\pyscripts\sensor-test.py
Thats an example where they have called the sensor model plugin





2b.
I am looking to implement/use SensorModel in order to get controlled
values of my own choice, how can i use it? Is there any helping code,
examples or references?


Yes there are
See LinearSensorModel.java, ConstantSensorModel.java,
DiscSensorModel.java in the folder
\opt\tinyos-1.x\tools\java\net\tinyos\sim. These are 3 different
sensor models


Tarun Bansal


Thanks for your guidance and support,

Best Regards,
Fahad

-

- Original Message 
From: Tarun Bansal [EMAIL PROTECTED]
To: Fahad Munawar Jan [EMAIL PROTECTED]
Cc: tinyos-help@millennium.berkeley.edu
Sent: Monday, May 7, 2007 4:55:38 PM
Subject: Re: [Tinyos-help] How nesc (TOSSIM) is communicating with .java
files? (SensorModel)

On 5/7/07, Fahad Munawar Jan [EMAIL PROTECTED] wrote:


 Hi,


 I want to
 know about a couple of questions;


 1. How the
 nesc compiled code communicates with .java files?

The nesc does not communicate *directly* with the java files. When you
run the nesc code in, it can send data to UART, where the java code
will be listening. So actually the two processes communicate via ports
(COM port), and there is no direct communication per se. Also only the
motes which are connected to base station can send data over UART (in
TOSSIM only mote with ID 0 is configured as base station)

See http://www.tinyos.net/tinyos-1.x/doc/tutorial/lesson5.html

 2. Is there
 any communication between nesc code and SensorModel.java
 (…\opt\tinyos-1.x\tools\java\net\tinyos\sim)?

SensorModel.java is actually a sensor model which is used in TinyViz
(the GUI end for TOSSIM).  If you don't use any sensor model, the
values returned by TOSSIM/TinyViz will be totally random; however by
using a specific sensor model, you can control the values returned (by
the sensors in the TOSSIM) to a certain degree depending on the sensor
model used.



 3. Can I communicate
 through .java files with my compiled nesc code, if yes then how?

Yes, you can.for this your java files will write the bytes on
UART, which your base station mote will pick.  However there are some
tools (like SerialForwarder) which can make this job easier for you.

See the sample application Oscilloscope for further help
http://www.tinyos.net/tinyos-1.x/doc/tutorial/lesson6.html

Best Regards,
Tarun Bansal



 Please guide
 me in this regard,





 Thanks for
 your attention





 Best regards,


 Fahad




 Send instant messages to your online friends http://uk.messenger.yahoo.com






Send instant messages to your online friends http://uk.messenger.yahoo.com


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


Re: [Tinyos-help] How nesc (TOSSIM) is communicating with .java files? (SensorModel)

2007-05-07 Thread Tarun Bansal

On 5/7/07, Fahad Munawar Jan [EMAIL PROTECTED] wrote:



Hi,


I want to
know about a couple of questions;


1. How the
nesc compiled code communicates with .java files?


The nesc does not communicate *directly* with the java files. When you
run the nesc code in, it can send data to UART, where the java code
will be listening. So actually the two processes communicate via ports
(COM port), and there is no direct communication per se. Also only the
motes which are connected to base station can send data over UART (in
TOSSIM only mote with ID 0 is configured as base station)

See http://www.tinyos.net/tinyos-1.x/doc/tutorial/lesson5.html


2. Is there
any communication between nesc code and SensorModel.java
(…\opt\tinyos-1.x\tools\java\net\tinyos\sim)?


SensorModel.java is actually a sensor model which is used in TinyViz
(the GUI end for TOSSIM).  If you don't use any sensor model, the
values returned by TOSSIM/TinyViz will be totally random; however by
using a specific sensor model, you can control the values returned (by
the sensors in the TOSSIM) to a certain degree depending on the sensor
model used.




3. Can I communicate
through .java files with my compiled nesc code, if yes then how?


Yes, you can.for this your java files will write the bytes on
UART, which your base station mote will pick.  However there are some
tools (like SerialForwarder) which can make this job easier for you.

See the sample application Oscilloscope for further help
http://www.tinyos.net/tinyos-1.x/doc/tutorial/lesson6.html

Best Regards,
Tarun Bansal




Please guide
me in this regard,





Thanks for
your attention





Best regards,


Fahad




Send instant messages to your online friends http://uk.messenger.yahoo.com


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


Re: [Tinyos-help] Re: Simple problem about running Oscilloscope program

2007-04-29 Thread Tarun Bansal

Ensure that your TOSSIM simulation has started before you start
capturing packets.
Are you directly using Oscilloscope (without SF) for listening?

Tarun Bansal

On 4/29/07, Chan kenniel [EMAIL PROTECTED] wrote:

dear all,

I have followed you guys kind suggestion, and set the MOTECOM by using
 export MOTECOM=tossim-serial, but what it returned to me is
[EMAIL PROTECTED] died -- restarting
I also used the serialforwarder, and it also had that problem, the server
port is 9001

Still not work :-(, whyyy .

Thanks for your answer.

Regards,
Kenneth


On 4/28/07, Chan kenniel  [EMAIL PROTECTED] wrote:
 Dear all,

 I am new to tinyos, and I have encountered the following problem when I
follow the instruction of this link

http://www.tinyos.net/tinyos-1.x/doc/tutorial/lesson6.html

 the quote text is from the website aboved

  The 'listen' tool: displaying raw packet data

 The first step to establishing communication between the PC and the mote
is to connect up your serial port cable to the programming board, and to
make sure that you have Java and the javax.comm package installed. After
programming your mote with the Oscilloscope code, cd to the tools/java
directory, and type   make
   export [EMAIL PROTECTED]:baudrate
 The environment variable MOTECOM tells the java Listen tool (and most
other tools too) which packets it should listen to. Here
[EMAIL PROTECTED]:baudrate says to listen to a mote connected to a serial
port, where serialportis the serial port that you have connected the
programming board to, and baudrate is the specific baudrate of the mote. For
the mica and mica2dot motes, the baud rate is 19200, for the mica2 it is
57600 baud. You can also use a mote name as the baudrate (in which case that
motes baudrate is selected). So you could do any of:
   export [EMAIL PROTECTED]:19200 # mica baud rate
 export [EMAIL PROTECTED]:mica # mica baud rate, again
 export MOTECOM=

 [EMAIL PROTECTED]:mica2 # the mica2 baud rate, on a different serial port
 export [EMAIL PROTECTED]:57600 # explicit mica2 baud rate

 Set MOTECOM appropriately, then run   java net.tinyos.tools.Listen
 You should see some output resembling the following: % java
net.tinyos.tools.Listen
 [EMAIL PROTECTED]:19200: resynchronising
 7e 00 0a 7d 1a 01 00 0a 00 01 00 46 03 8e 03 96 03 96 03 96 03 97 03 97 03
97 03 97 03 97 03


 7e 00 0a 7d 1a 01 00 14 00 01 00 96 03 97 03 97 03 98 03 97 03 96 03 97 03
96 03 96 03 96 03
 7e 00 0a 7d 1a 01 00 1e 00 01 00 98 03 98 03 96 03 97 03 97 03 98 03 96 03
97 03 97 03 97 03
 The program is simply printing the raw data of each packet received from
the serial port.

 Before continuning, execute unset MOTECOM to avoid forcing all java
applications to use the serial port to get packets. If you don't have the
javax.comm package installed properly, then the program will complain that
it can't find the serial port. If you do not see that data lines on the
screen, you may have chosen the wrong COM port or the mote may not be
correctly connected to the computer. 



 I have followed what it tells me to do, but when I use the command I only
see
 % java net.tinyos.tools.Listen
 [EMAIL PROTECTED]:19200: resynchronising
 There's no the data line 7e 00 7d  show up, it keeps listening, but
listen nothing. Can anyone tell me what I did wrong please? Here is what I
did:

 Noted: I have no mote plug in the computer, but I was wondering is it
necessary?
 1) I went to /apps/Oscilloscope directory, and use command make PC,
after compile, I run by using  build/pc/main.exe 1 command, and in cygwin
window, there's bunch of data flashing
 out in the screen, which I think it's working.

 2) then I move to another cygwin window, and go to /tools/java, then use
command make
 after making java, I export the port I want to listen which I used:
 export [EMAIL PROTECTED]:19200
 then I use
 java net.tinyos.tools.Listen

 at this moment, nothing comes up. what did I do wrong? or did I miss
something?

 Thanks a lot for your answer.





 --
 Best wishes,
 Kenneth Chan

 
 Wish you have a good day!



--
Best wishes,
Kenneth Chan


Wish you have a good day!
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


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


Re: [Tinyos-help] Re: Simple problem about running Oscilloscope program

2007-04-29 Thread Tarun Bansal

Did you start your tossim simulation (./build/pc/main.exe 1) ?

As long as TOSSIM has not started, SF will keep on giving that error.
Once you start TOSSIM, error won't come and the packet count on the
right hand side will start increasing.


Tarun


On 4/29/07, Chan kenniel [EMAIL PROTECTED] wrote:

How can I make sure the tossim is started? I haven't even used the
Oscilloscope, I just used the SF to listen, but it
said [EMAIL PROTECTED] died :-(


On 4/29/07, Tarun Bansal [EMAIL PROTECTED] wrote:
 Ensure that your TOSSIM simulation has started before you start
 capturing packets.
 Are you directly using Oscilloscope (without SF) for listening?

 Tarun Bansal

 On 4/29/07, Chan kenniel  [EMAIL PROTECTED] wrote:
  dear all,
 
  I have followed you guys kind suggestion, and set the MOTECOM by using
   export MOTECOM=tossim-serial, but what it returned to me is
  [EMAIL PROTECTED] died -- restarting
  I also used the serialforwarder, and it also had that problem, the
server
  port is 9001
 
  Still not work :-(, whyyy .
 
  Thanks for your answer.
 
  Regards,
  Kenneth
 
 
  On 4/28/07, Chan kenniel  [EMAIL PROTECTED] wrote:
   Dear all,
  
   I am new to tinyos, and I have encountered the following problem when
I
  follow the instruction of this link
  
 
http://www.tinyos.net/tinyos-1.x/doc/tutorial/lesson6.html
  
   the quote text is from the website aboved
  
The 'listen' tool: displaying raw packet data
  
   The first step to establishing communication between the PC and the
mote
  is to connect up your serial port cable to the programming board, and to
  make sure that you have Java and the javax.comm package installed. After
  programming your mote with the Oscilloscope code, cd to the tools/java
  directory, and type   make
 export [EMAIL PROTECTED]:baudrate
   The environment variable MOTECOM tells the java Listen tool (and most
  other tools too) which packets it should listen to. Here
  [EMAIL PROTECTED]:baudrate says to listen to a mote connected to a
serial
  port, where serialportis the serial port that you have connected the
  programming board to, and baudrate is the specific baudrate of the mote.
For
  the mica and mica2dot motes, the baud rate is 19200, for the mica2 it is
  57600 baud. You can also use a mote name as the baudrate (in which case
that
  motes baudrate is selected). So you could do any of:
 export [EMAIL PROTECTED]:19200 # mica baud rate
   export [EMAIL PROTECTED]:mica # mica baud rate, again
   export MOTECOM=
  
   [EMAIL PROTECTED]:mica2 # the mica2 baud rate, on a different serial port
   export [EMAIL PROTECTED]:57600 # explicit mica2 baud rate
  
   Set MOTECOM appropriately, then run   java net.tinyos.tools.Listen
   You should see some output resembling the following: % java
  net.tinyos.tools.Listen
   [EMAIL PROTECTED]:19200: resynchronising
   7e 00 0a 7d 1a 01 00 0a 00 01 00 46 03 8e 03 96 03 96 03 96 03 97 03
97 03
  97 03 97 03 97 03
  
  
   7e 00 0a 7d 1a 01 00 14 00 01 00 96 03 97 03 97 03 98 03 97 03 96 03
97 03
  96 03 96 03 96 03
   7e 00 0a 7d 1a 01 00 1e 00 01 00 98 03 98 03 96 03 97 03 97 03 98 03
96 03
  97 03 97 03 97 03
   The program is simply printing the raw data of each packet received
from
  the serial port.
  
   Before continuning, execute unset MOTECOM to avoid forcing all java
  applications to use the serial port to get packets. If you don't have
the
  javax.comm package installed properly, then the program will complain
that
  it can't find the serial port. If you do not see that data lines on the
  screen, you may have chosen the wrong COM port or the mote may not be
  correctly connected to the computer. 
  
  
  
   I have followed what it tells me to do, but when I use the command I
only
  see
   % java net.tinyos.tools.Listen
   [EMAIL PROTECTED]:19200: resynchronising
   There's no the data line 7e 00 7d  show up, it keeps listening,
but
  listen nothing. Can anyone tell me what I did wrong please? Here is what
I
  did:
  
   Noted: I have no mote plug in the computer, but I was wondering is it
  necessary?
   1) I went to /apps/Oscilloscope directory, and use command make PC,
  after compile, I run by using  build/pc/main.exe 1 command, and in
cygwin
  window, there's bunch of data flashing
   out in the screen, which I think it's working.
  
   2) then I move to another cygwin window, and go to /tools/java, then
use
  command make
   after making java, I export the port I want to listen which I used:
   export MOTECOM= [EMAIL PROTECTED]:19200
   then I use
   java net.tinyos.tools.Listen
  
   at this moment, nothing comes up. what did I do wrong? or did I miss
  something?
  
   Thanks a lot for your answer.
  
  
  
  
  
   --
   Best wishes,
   Kenneth Chan
  
   
   Wish you have a good day!
 
 
 
  --
  Best wishes,
  Kenneth Chan
 
  
  Wish you have a good day!
  ___
  Tinyos-help mailing list
  Tinyos-help

Re: [Tinyos-help] Re: Simple problem about running Oscilloscope program

2007-04-29 Thread Tarun Bansal

One reason for this error can be that the versions of your jdk and jre
differ.  You can try recompiling the oscilloscope application (by make
-B) . See if that works.

Did you uninstall/reinstall java after tinyos installation?

Tarun

On 4/29/07, Chan kenniel [EMAIL PROTECTED] wrote:

Thanks, Tarun, problem solved, the sf is receiving packets, however, when I
wanna see the graphic panel to see results by using command
 java net.tinyos.oscope.oscilloscope,
 it saids there's Exception in thread main
java.lang.UnsupportedClassVersionError:
net/tinyos/oscope/oscilloscope.
could you guys please help me out with this?

Thanks a lot and sorry about asking tons of stupid ques :-P

Kenneth


 On 4/29/07, Tarun Bansal [EMAIL PROTECTED] wrote:
 Did you start your tossim simulation (./build/pc/main.exe 1) ?

 As long as TOSSIM has not started, SF will keep on giving that error.
 Once you start TOSSIM, error won't come and the packet count on the
 right hand side will start increasing.


 Tarun


 On 4/29/07, Chan kenniel [EMAIL PROTECTED] wrote:
  How can I make sure the tossim is started? I haven't even used the
  Oscilloscope, I just used the SF to listen, but it
  said [EMAIL PROTECTED] died :-(
 
 
  On 4/29/07, Tarun Bansal [EMAIL PROTECTED] wrote:
   Ensure that your TOSSIM simulation has started before you start
   capturing packets.
   Are you directly using Oscilloscope (without SF) for listening?
  
   Tarun Bansal
  
   On 4/29/07, Chan kenniel  [EMAIL PROTECTED] wrote:
dear all,
   
I have followed you guys kind suggestion, and set the MOTECOM by
using
 export MOTECOM=tossim-serial, but what it returned to me is
[EMAIL PROTECTED] died -- restarting
I also used the serialforwarder, and it also had that problem, the
  server
port is 9001
   
Still not work :-(, whyyy .
   
Thanks for your answer.
   
Regards,
Kenneth
   
   
On 4/28/07, Chan kenniel  [EMAIL PROTECTED] wrote:
 Dear all,

 I am new to tinyos, and I have encountered the following problem
when
  I
follow the instruction of this link

   
 
http://www.tinyos.net/tinyos-1.x/doc/tutorial/lesson6.html

 the quote text is from the website aboved

  The 'listen' tool: displaying raw packet data

 The first step to establishing communication between the PC and
the
  mote
is to connect up your serial port cable to the programming board,
and to
make sure that you have Java and the javax.comm package installed.
After
programming your mote with the Oscilloscope code, cd to the
tools/java
directory, and type   make
   export [EMAIL PROTECTED]:baudrate
 The environment variable MOTECOM tells the java Listen tool (and
most
other tools too) which packets it should listen to. Here
[EMAIL PROTECTED]:baudrate says to listen to a mote connected to a
  serial
port, where serialportis the serial port that you have connected the
programming board to, and baudrate is the specific baudrate of the
mote.
  For
the mica and mica2dot motes, the baud rate is 19200, for the mica2
it is
57600 baud. You can also use a mote name as the baudrate (in which
case
  that
motes baudrate is selected). So you could do any of:
   export [EMAIL PROTECTED]:19200 # mica baud rate
 export [EMAIL PROTECTED]:mica # mica baud rate, again
 export MOTECOM=

 [EMAIL PROTECTED]:mica2 # the mica2 baud rate, on a different serial
port
 export [EMAIL PROTECTED]:57600 # explicit mica2 baud rate

 Set MOTECOM appropriately, then run   java net.tinyos.tools.Listen
 You should see some output resembling the following: % java
net.tinyos.tools.Listen
 [EMAIL PROTECTED]:19200: resynchronising
 7e 00 0a 7d 1a 01 00 0a 00 01 00 46 03 8e 03 96 03 96 03 96 03 97
03
  97 03
97 03 97 03 97 03


 7e 00 0a 7d 1a 01 00 14 00 01 00 96 03 97 03 97 03 98 03 97 03 96
03
  97 03
96 03 96 03 96 03
 7e 00 0a 7d 1a 01 00 1e 00 01 00 98 03 98 03 96 03 97 03 97 03 98
03
  96 03
97 03 97 03 97 03
 The program is simply printing the raw data of each packet
received
  from
the serial port.

 Before continuning, execute unset MOTECOM to avoid forcing all
java
applications to use the serial port to get packets. If you don't
have
  the
javax.comm package installed properly, then the program will
complain
  that
it can't find the serial port. If you do not see that data lines on
the
screen, you may have chosen the wrong COM port or the mote may not
be
correctly connected to the computer. 



 I have followed what it tells me to do, but when I use the command
I
  only
see
 % java net.tinyos.tools.Listen
 [EMAIL PROTECTED]:19200: resynchronising
 There's no the data line 7e 00 7d  show up, it keeps
listening,
  but
listen nothing. Can anyone tell me what I did wrong please? Here is
what
  I
did:

 Noted: I have no mote plug

Re: [Tinyos-help] How can I write my own .nc file?

2007-04-10 Thread Tarun Bansal

Please check the tutorial available at:
http://www.tinyos.net/tinyos-1.x/doc/tutorial/index.html

Tarun

On 4/10/07, Greg Turnipseed [EMAIL PROTECTED] wrote:


 Along the lines of this question, once you've got the .nc file, how do you
compile it?  What are the commands to do that, and then what are the
commands to write it to the mote?

 Thanks,
 Greg Turnipseed


 
From: Nicholas Beck [EMAIL PROTECTED]
 Date: Tue, 10 Apr 2007 15:15:29 +0100
 To: noahtech213 [EMAIL PROTECTED], tinyos-help
tinyos-help@Millennium.Berkeley.EDU
 Subject: Re: [Tinyos-help] How can I write my own .nc file?

 You can use any text editor that you like, but if you are familiar with
eclipse then there is a TinyOS plugin available at
http://www.dcg.ethz.ch/~rschuler/ which may increase
productivity.

 There is the capability to build TinyOS applications from within the
eclipse IDE, but I personally use the bash shell for compilation so cannot
comment on this feature.

 HTH,
 Nicholas Beck


 - Original Message -

 From:  noahtech213 mailto:[EMAIL PROTECTED]

 To: tinyos-help
mailto:tinyos-help@Millennium.Berkeley.EDU

 Sent: Tuesday, April 10, 2007 2:40  PM

 Subject: [Tinyos-help] How can I write my  own .nc file?



 Hi,everyone,

 At first I want to say Thank you to those kind people who helped me.The
Tinyviz problem has been solved .Well,I am studying the nesC now.I want  to
design my own application,but I don't know where the editor is.How can I
write my own .nc file? My system is Windows 2000,and the tinyos system
edition is

 1.0.Any reply will be appreciated.





 
 远离垃圾邮件?免费帮你过滤98%的垃圾邮件! www.126.com   http://www.126.com/

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

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



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


[Tinyos-help] MTS310 Accelerometer reading affected by Magnetic Field?

2007-04-09 Thread Tarun Bansal

Hi

I was working on the Crossbow Micaz Motes (MTS310 sensor board) with
Accelerometer (ADXL202JE ). I am using Surge and TOSBase to get the
readings at the computer. However I noticed a strange thing that
accelerometer readings change when a magnetic field is brought near
the sensor board. Is this behavior normal or there is some error on my
side?

I went through the technical data-sheet of the sensor at Analog
Devices (manufacturer of ADXL202JE) website. However, I could not get
any clue.

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


[Tinyos-help] MTS310 Accelerometer reading affected by Magnetic Field?

2007-04-07 Thread Tarun Bansal

Hi

I was working on the Crossbow Micaz Motes (MTS310 sensor board) with
Accelerometer (ADXL202JE ). I am using Surge and TOSBase to get the
readings at the computer. However I noticed a strange thing that
accelerometer readings change when a magnetic field is brought near
the sensor board. Is this behavior normal or there is some error on my
side?

I went through the technical data-sheet of the sensor at Analog
Devices (manufacturer of ADXL202JE) website. However, I could not get
any clue.

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


Re: [Tinyos-help] Usual readings for Accelerometer

2007-04-05 Thread Tarun Bansal

The readings are in mg and you need to calibrate the sensors first by
aligning them towards and against gravity.

Tarun Bansal

On 4/5/07, Giri Baleri [EMAIL PROTECTED] wrote:



I'm not sure if the Surge is supposed to report acceleration in g or mg, but
the accelerometers on MTS310s are not individually calibrated. In order to
get more accurate acceleration reading, you will need to estimate the bias
and sensitivity by orienting each accelerometer axis towards the gravity
axis (+1g and -1g) and then use those calibration constants in the xlisten
parser/converter.

Regards,
Giri

 
 From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of sougata sen
Sent: Thursday, April 05, 2007 12:03 AM
To: tinyos help
Subject: [Tinyos-help] Usual readings for Accelerometer


Hi

We aee using crossbow micaz motes (with sensor board MTS 310). We are using
unmodified Surge and xlisten to view the sensor readings. A sample output
is:

SURGE [sensor data converted to engineering units]:
   health:  node id=5  parent=65535  seq_no=525
   battery = 2878 mv
   temperature = 25.35 degC
   light:  = 663 ADC mv
   AccelX: = 1160.00 g, AccelY: = 1000.00 g
   MagX:   = 12.69 mgauss, MagY:   = 15.26 mgauss


The accelaration given by sensor is 1160g. Is it 1160 times gravity?

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


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


[Tinyos-help] Reposting: Is my mote damaged?

2007-03-06 Thread Tarun Bansal

I am using USB programming board (mib 520), MicaZ motes and tinyos
1.1.15. When I try to install program into one of my motes, I get the
following error:

ERROR START**
$ make micaz reinstall,4 mib510,COM3
whoami: cannot find username for UID 46570
set-mote-id build/micaz/main.srec build/micaz/main.srec.out-4 4
   installing micaz binary using mib510
uisp -dprog=mib510 -dserial=COM3 --wr_fuse_h=0xd9 -dpart=ATmega128
--wr_fuse_e=ff  --erase --upload if=build/micaz/main.srec.out-4
Firmware Version: 1.8
An error has occurred during the AVR initialization.
* Target status:
  Vendor Code = 0xff, Part Family = 0xff, Part Number = 0xff

Probably the wiring is incorrect or target might be `damaged'.
make: *** [program] Error 2

ERROR END*

However if I replace this mote with some other micaz mote (everything
else remaining same), everything works fine.
Is my mote damaged?  How did that happen? Is there any way to correct it?

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


[Tinyos-help] Is my mote damaged?

2007-03-04 Thread Tarun Bansal

I am using USB programming board (mib 520), MicaZ motes and tinyos
1.1.15. When I try to install program into one of my motes, I get the
following error:

ERROR START**
$ make micaz reinstall,4 mib510,COM3
whoami: cannot find username for UID 46570
set-mote-id build/micaz/main.srec build/micaz/main.srec.out-4 4
   installing micaz binary using mib510
uisp -dprog=mib510 -dserial=COM3 --wr_fuse_h=0xd9 -dpart=ATmega128
--wr_fuse_e=ff  --erase --upload if=build/micaz/main.srec.out-4
Firmware Version: 1.8
An error has occurred during the AVR initialization.
* Target status:
  Vendor Code = 0xff, Part Family = 0xff, Part Number = 0xff

Probably the wiring is incorrect or target might be `damaged'.
make: *** [program] Error 2

ERROR END*

However if I replace this mote with some other micaz mote (everything
else remaining same), everything works fine.
Is my mote damaged?  How did that happen? Is there any way to correct it?

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


Re: [Tinyos-help] Diff. Sampling--Base station

2007-02-26 Thread Tarun Bansal

On 2/26/07, siva prasad [EMAIL PROTECTED] wrote:

Hi all...

-- can i have no of nodes with different sampling times and still sending
the data to the same base station ..???


Yes you can

-- can i set this sampling rate by sending any command from the Base
station..???


If you are using MoteView, then sampling rate can be easily changed
dynamically. In case you are writing your own code from scratch, then
also you can do that (only that it will be comparatively tough)

Tarun



please answer these questions ...i am really struggling with these two
questions ..any help would be greatly appreciated..!!!

Thanks for ur time..!!!
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


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


Re: [Tinyos-help] Program flow

2007-02-13 Thread Tarun Bansal

Nothing gets executed...There is nothing like background idle process
running continuously. So the node wont do anything except listening at
the radio.

Tarun
http://bansal.tarun.googlepages.com/

On 2/14/07, Aditya Bhave [EMAIL PROTECTED] wrote:

Hello,

SO suppose both of my init's and start's do some variable setting and return
SUCCESS.
What code gets exceuted next?

In my application, my mote does something only when it receives the first
packet over the radio. SO my start and init just set some state variables
and then I wait for ReceiveMsg.receive to be called.

While my mote is waiting, what code gets exceuted on the processor. Is there
some system idle process that gets executed and if so, where and what is the
name of the corresponding component?

Thanks for your help


On 2/13/07, Philip Levis [EMAIL PROTECTED] wrote:
 On Feb 13, 2007, at 1:01 PM, Ankur Kamthe wrote:

  Read this
http://www.tinyos.net/tinyos-2.x/doc/html/tep107.html for
  more details
  But from what I gather, its initialization first then the start
  routines are called sequentially.
  So, its init, init, start, start


 TEP 107 is about TinyOS 2.x, not 1.x.

 But your conclusion is correct. A fan-out does not make calls in
 parallel (it can't, given there is a single thread of execution); it
 calls each one in an unspecified order.

 Phil
 ___
 Tinyos-help mailing list
 Tinyos-help@Millennium.Berkeley.EDU

https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help




--
regards,
Aditya Bhave
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


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


Re: [Tinyos-help] how to get a random float number

2007-02-13 Thread Tarun Bansal

Use rand_no = random();
This would return an integral random number between 0 to RAND_MAX. So
you can divide the result by RAND_MAX to get a floating number between
0 and 1 (It won't be a real floating point random number as the set of
floating numbers that you get here is limited)

To generate better floating point numbers, I generate two random
numbers. Scale first of them to 0-1 and second to 0- (1/RAND_MAX) .
Then use second to add small amount of noise to the first number by
adding them up.


Tarun
http://bansal.tarun.googlepages.com/


On 2/14/07, Shen Ke [EMAIL PROTECTED] wrote:



How can I get a random floating number between 0~1?

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


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


Re: [Tinyos-help] SounderControl.start()

2007-02-12 Thread Tarun Bansal

It should remain on until you call SounderControl.stop(). Check your
hardware or post your code to the mailing list


Tarun

On 2/12/07, Conard, Andrew [EMAIL PROTECTED] wrote:




Hi,

 I was wondering how this method works exactly. When called once, is it only
supposed to chirp? Or when you call it, does the sounder stay on until the
SounderControl.stop() is called? For some reason, we have a program where
the sounder is supposed to stay on for two seconds once a timer is set off,
but it only chirps every time. Any help is appreciated.

 Thanks,
 Andrew

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


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


Re: [Tinyos-help] how to specify the address of ndoes

2007-02-12 Thread Tarun Bansal

The address of the mote is specified when uploading the program onto
that particular mote.  Check Device Addressing section at
http://www.tinyos.net/tinyos-1.x/doc/tutorial/programmers.html

If you are using TOSSIM, then addresses are allocated by default from 0 to N-1

Tarun
http://bansal.tarun.googlepages.com/

On 2/12/07, qin zhao [EMAIL PROTECTED] wrote:

Hi,

I'm new to TinyOS. I started programming for a simple application with two
nodes. One is the master and the other one is the slave. My question is that
how to specify the address of the two nodes. What I did is that I use
TOS_LOCAL_ADDRESS and compare it's value with 0.

event result_t Timer.fired()
{
   if (TOS_LOCAL_ADDRESS == 0)
// this is a master, send a beacon
  else
// this is a slave, receive a beacon

}

But during debugging with TOSSIM, the value of TOS_LOCAL_ADDRESS is always
0. Can someone tell me where is TOS_LOCAL_ADDRESS originally defined? Why it
is always 0? What are the better ways to implement? Thanks a lot.

Best Regards,
Redmuts

_
Live Search, for accurate results! http://www.live.nl

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


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


Re: [Tinyos-help] javac error

2007-01-24 Thread Tarun Bansal

Your javac is correctly installed.

Try doing make -B in
/opt/tinyos-1.x/tools/java

Tarun Bansal
http://bansal.tarun.googlepages.com/


On 1/24/07, preeti k [EMAIL PROTECTED] wrote:

Hello,
I 've installed tinyos2.x on cygwin. The Blink application runs fine but
RadioCountToLeds doesn't. The reason is the javac path is not set. I looked
into a thread that discusses this and set the path accordingly. And now when
i say
'type javac' i get the correct path. But when i say 'printenv CLASSPATH' i
get the following o/p
**
C:tinyoscygwinopttinyos-2.xsupportsdkjavatinyos.jar
*
ie the path without the slashes(/). I exported the classpath as given in the
installation document(with cygpath -w  etc etc)
Can anyone let me know how do i get this working?
Because of this i suppose () i get  following errors when i compile
RadioCountToLeds
**
$ make micaz sim
mkdir -p build/micaz
javac RadioCountMsg.java
RadioCountMsg.java:7: package net.tinyos.message does not exist
public class RadioCountMsg extends net.tinyos.message.Message {
 ^
RadioCountMsg.java:67: package net.tinyos.message does not exist
public RadioCountMsg(net.tinyos.message.Message msg, int base_offset) {
   ^
RadioCountMsg.java:67: RadioCountMsg(byte[],int) is already defined in
RadioCoun
tMsg
public RadioCountMsg(net.tinyos.message.Message msg, int base_offset) {
   ^
RadioCountMsg.java:76: package net.tinyos.message does not exist
public RadioCountMsg(net.tinyos.message.Message msg, int base_offset,
int da
ta_length) {
   ^
.

Can anyone please help me with this?
Thanks
-Preeti

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



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


Re: [Tinyos-help] MICA2: Signal Strength

2007-01-14 Thread Tarun Bansal

There is no need to install surge_reliable. All receiving nodes can
check that value by accessing TOS_Msg - strength

Regards
Tarun Bansal

On 1/15/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Hello,

To detect the current signal strength on MICA2 of an incoming packet
from another MICA2 does the surge_reliable routing need to be
installed on all the motes or can this information be accessed even
without it, if so how?

Thanks

--
Regards,
Hamdi






This message was sent using IMP, the Internet Messaging Program.

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


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


Re: [Tinyos-help] Tutorial Question

2007-01-10 Thread Tarun Bansal

This tutorial works for MICAZ, MICA2 and MICAdot
I am not sure about MICA motes

Regards
Tarun Bansal


On 1/10/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Hello,

I am just curious if the tutorial:
http://www.tinyos.net/tinyos-1.x/doc/tutorial/lesson6.html

Applies to and can be used for the MICA2 motes.  I know it does for
the older MICA motes.
--
Regards,
Hamdi






This message was sent using IMP, the Internet Messaging Program.

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


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


Re: [Tinyos-help] Battery Voltage and RSSI in mica2

2007-01-10 Thread Tarun Bansal

Check page no 25 of
http://www.xbow.com/Support/Support_pdf_files/MPR-MIB_Series_Users_Manual.pdf
for help

You can wire Voltage to your own Pong application to use the
functionality provided.  If you don't know the concept of wiring,
you can refer tinyos docs.

Tarun

On 1/10/07, Termodonte [EMAIL PROTECTED] wrote:



Hello,

i would like to get the battery voltage of mica2 motes and use it while i
calculate the rssi valor (dBm). I'm using the Pong application but i can't
take the ADC count of battery voltage because i'm pretty new to nesC and i
don't know what to do. i read the manuals and i found that the battery
voltage valor is placed in channel 7 of ADC count and that there is an
application called VoltageC (in opt\tinyos-1.x\tos\system folder) linked to
VoltageM (in platform\mica2 folder) that take the ADC count and convert it
to the real voltage of battery (mV).
So the main problem is: how can i get the battery voltage information and
put it in the Pong application? And then, how can i put this ADC count valor
into the pong packets to calculate (with the java application associated)
the exact valor of RSSI (dBm)?

Hope you can help me,

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



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


Re: [Tinyos-help] Re: Tinyos-help Digest, Vol 44, Issue 66

2006-12-21 Thread Tarun Bansal

You can specify mote-serial in the Mote communications field. Serial
Forwarder will then connect TOSSIM's base station's UART channel to
TCP port. This way you can communicate with TOSSIM's motes via TCP
port.

Tarun

On 12/21/06, Firat TARAKTAS [EMAIL PROTECTED] wrote:


Hi Tansal,

Is your suggestion makes connection with TOSSIM!!? You are right in a
realtime running mote case. But i have doubts about running TOSSIM on PC?


Firat TARAKTAS
Project Engineer
GENETLABINFORMATION TECHNOLOGIES
Kayisdagi Caddesi Kar Plaza D Blok Kat:3 34752
Icerenkoy/ Istanbul / TURKIYE
Tel: +90 (216) 573 00 85 (int. 354)
Fax:+90 (216) 469 85 07
[EMAIL PROTECTED]
www.genetlab.com
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tarun
Bansal
Sent: Thursday, December 21, 2006 8:26 AM
To: tinyos-help@Millennium.Berkeley.EDU
Subject: [Tinyos-help] Re: Tinyos-help Digest, Vol 44, Issue 66

You can use Serial Forwarder for this purpose. That will create a pipe
from a specified serial port to TCP port of your choice.

check:
http://www.tinyos.net/tinyos-1.x/doc/tutorial/lesson6.html


Tarun Bansal



 Message: 6
 Date: Wed, 20 Dec 2006 17:42:32 +
 From: olcay çelik [EMAIL PROTECTED]
 Subject: [Tinyos-help] Tossim TCP connection
 To: tinyos-help@Millennium.Berkeley.EDU
 Message-ID: [EMAIL PROTECTED]
 Content-Type: text/plain; format=flowed

 Hello i want to ask a simple question. Is it possible to make a tcp
 connection to TOSSIM to recieve datas. ? If possible How ? any document
 relating to this plese share your experience

 Thanks.

 Kind Regards..
 Mahmut Olcay Celik

 _
 Think you're a film buff? Play the Movie Mogul quiz and win fantastic
 prizes!  http://www.msnmoviemogul.com




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




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


[Tinyos-help] Re: Tinyos-help Digest, Vol 44, Issue 66

2006-12-20 Thread Tarun Bansal

You can use Serial Forwarder for this purpose. That will create a pipe
from a specified serial port to TCP port of your choice.

check:
http://www.tinyos.net/tinyos-1.x/doc/tutorial/lesson6.html


Tarun Bansal




Message: 6
Date: Wed, 20 Dec 2006 17:42:32 +
From: olcay çelik [EMAIL PROTECTED]
Subject: [Tinyos-help] Tossim TCP connection
To: tinyos-help@Millennium.Berkeley.EDU
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; format=flowed

Hello i want to ask a simple question. Is it possible to make a tcp
connection to TOSSIM to recieve datas. ? If possible How ? any document
relating to this plese share your experience

Thanks.

Kind Regards..
Mahmut Olcay Celik

_
Think you're a film buff? Play the Movie Mogul quiz and win fantastic
prizes!  http://www.msnmoviemogul.com





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


Re: [Tinyos-help] Why is sendDone() called twice?

2006-11-08 Thread Tarun Bansal

OK.

Also is there anyone in the group who has/hasn't noticed the same phenomenon ?

Tarun

On 11/8/06, Philip Levis [EMAIL PROTECTED] wrote:

On Nov 7, 2006, at 1:57 AM, Tarun Bansal wrote:

 I am using TOSSIM environment with TinyOS 1.1.11 and CC1000 stack

I have no idea what the problem might be; IIRC, the CC1000 stack was
written by Victor Shnayder at Harvard.

Phil


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


[Tinyos-help] Why is sendDone() called twice?

2006-11-07 Thread Tarun Bansal

I was examining the behavior of sendDone() after sending a packet over
radio (in TOSSIM environment). I noticed that it is being called twice
for every packet sent.

If I send the pkt to an actual address, both sendDone()'s  have their
ack flag up.
However if the pkt is sent to a fictitious mote, the flag is first up
and second time down.

Can you please explain this behaviour and how do I interpret these readings?
Also should I expect the same behaviour on real Mica2 motes?

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


Re: [Tinyos-help] Why is sendDone() called twice?

2006-11-07 Thread Tarun Bansal

I am using TOSSIM environment with TinyOS 1.1.11 and CC1000 stack

Tarun

On 11/7/06, Philip Levis [EMAIL PROTECTED] wrote:

On Nov 7, 2006, at 12:10 AM, Tarun Bansal wrote:

 I was examining the behavior of sendDone() after sending a packet over
 radio (in TOSSIM environment). I noticed that it is being called twice
 for every packet sent.

 If I send the pkt to an actual address, both sendDone()'s  have their
 ack flag up.
 However if the pkt is sent to a fictitious mote, the flag is first up
 and second time down.

 Can you please explain this behaviour and how do I interpret these
 readings?
 Also should I expect the same behaviour on real Mica2 motes?

TinyOS 1.x or 2.x?

If 1.x, default radio stack, CC1000 stack or CC2420 stack?

Phil


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


[Tinyos-help] WSN in presence of dense WLAN

2006-10-05 Thread Tarun Bansal

We have a dense WLAN (802.11g) running at our place (a closed room).
When we try to run our micaz motes (working at 2.405 Ghz) - most of
the packets are dropped midway. Is it because of the dense WLAN at the
same place? If yes, then is there any solution (apart from switching
off the WLAN, of course)

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


[Tinyos-help] Any Java application for Listen

2006-09-24 Thread Tarun Bansal

Ypu can try Ocilloscope Application. Its base-station end (which runs
on computer, not motes) is coded in Java.
see http://www.tinyos.net/tinyos-1.x/doc/tutorial/lesson6.html
However, you have to modify the code slightly to display the bits of
the message before typecasting it.


I am trying to generate a simple GUI using ListenRaw which will print
contents of sniffed packets in an organised (tabular) form for users. I am
trying to use Applets so that I can update them on fly but right now my
applet is showing some wierd errors with whom I am struggling now.

I am just wondering if there is already inbuilt application which shows
sniffed packets (using some GUI tool) in some sort of organized way so that
I can use it and modify to my needs. If so then please tell. Also, if
someone has any idea how to use ListenRaw or Listen to built other
applications then please advice.

Regards,
Sumit

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


[Tinyos-help] installation query

2006-09-10 Thread Tarun Bansal

Have you gone through these tests:
http://www.tinyos.net/tinyos-1.x/doc/tutorial/verifyhw.html

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


[Tinyos-help] Displaying RSSI value in TOSSIM using TinyViz

2006-09-05 Thread Tarun Bansal

I am trying to get RSSI value in TOSSIM (version is 1.1.11-3). The
code that I am using is:

event TOS_MsgPtr ReceiveRUmsg.receive(TOS_MsgPtr m) {
uint16_t RSSI = m-strength;
dbg(DBG_USR2, Receive signal strength as 
%d\n,(int)RSSI);
}

This doesnt seem to work as it shows value as 0. Looking at the
archives I see that TinyOS versions 1.x doesnt support this. But

1. Does 2.x support this?
2. Is it possible to make some plugin in TinyViz (knowing the location
of the nodes) to get some approximate value of RSSI?? (I think this
should not be difficult)

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


[Tinyos-help] Displaying RSSI value in TOSSIM using TinyViz

2006-09-05 Thread Tarun Bansal

Right...The simple path loss model:

PowerReceived  = PowerTransmitted / PathLoss
where PathLoss  = (4*pi*distance/Wavelength)^(path loss exponent)

won't be sufficient in all cases.

Some other exhaustive path loss model will have to be used. A lot of
such models should be already available in Communications..
That would be sufficient

Tarun



On 9/5/06, Hui KANG [EMAIL PROTECTED] wrote:


Before you display the RSSI value, you should create a model that can
simulate the transmission condition such as distance, power, etc.

On 9/5/2006, Tarun Bansal [EMAIL PROTECTED] wrote:

What I meant was that whether some Plug-in can be developed in TinyViz
without the underlying support offered by TOSSIM. This for example,
can be done like:
1. There is some plug-in in TinyViz which knows the location of all nodes
2. You can find out at what power transmitter is transmitting
3. Based on the distance between the nodes, transmitted power and Path
Loss Exponent, the received power can be determined APPROXIMATELY
using simple calculations.

Am I right??
Tarun


On 9/5/06, Philip Levis [EMAIL PROTECTED] wrote:
 On Sep 5, 2006, at 6:37 AM, Tarun Bansal wrote:

  I am trying to get RSSI value in TOSSIM (version is 1.1.11-3). The
  code that I am using is:
 
  event TOS_MsgPtr ReceiveRUmsg.receive(TOS_MsgPtr m) {
uint16_t RSSI = m-strength;
dbg(DBG_USR2, Receive signal strength as 
%d\n,(int)RSSI);
  }
 
  This doesnt seem to work as it shows value as 0. Looking at the
  archives I see that TinyOS versions 1.x doesnt support this. But
 
  1. Does 2.x support this?

 2.x currently does not support this, for two reasons:

 1) The exact radio metadata interfaces have not been determined yet
 (i.e., should RSSI readings be hardware independent or hardware
 dependent).
 2) The code hasn't been written.

 Since the 2.x radio model is based on RSSI, once 1) is determined, 2)
 will be very easy to do. Then, you will be able to access RSSI
 readings. I am not sure whether this will be ready by the first 2.0
 release.

 Phil

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


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


[Tinyos-help] HPLPowerManagement Issues

2006-08-09 Thread tarun bansal

TinyOS via HPLPowerManagement relives the programmer of keeping track
of hardware devices for power managament.

However I want to know if there are any disadvantages of using this
approach? Giving the tinyos freedom to switch off the devices may be
harmful in some cases. e.g. if the programmer wants to synchronise the
nodes tightly, then this scheme might prove harmful.

1. What are the other such cases where HPLPowerManagement should not be used ?
2. If there are no problems, then why is this option off by default?

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


[Tinyos-help] Error on compiling Tutorial 1

2006-08-07 Thread tarun bansal

Have you tried h/w and s/w verification as given on:
http://www.tinyos.net/tinyos-1.x/doc/tutorial/verifyhw.html
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help