ivi610 | 1 Dec 10:47 2008
Picon

tinyos.jar missing some classes : bug?

Hello,
i still have issues with java and Oscilloscope application under tinyos2.1
It seems it misses net.tinyos.message in the tinyos.jar.
See below.
Moreover, i can't compile tinyos.jar it gives me some errors when i type "make" under opt/tinyos 2.x/support/sdk/java.
Does Tinyos2.1 have a bug with tinyos.jar or is there something i missed??
How can i regenerate tinyos.jar?
Thanks


###################################################################
 nguyenvp <at> mi2500961 /cygdrive/c/tinyos/cygwin/opt/tinyos-2.x/support/sdk/java
$ jar tvf tinyos.jar
     0 Sat Aug 09 13:18:24 CEST 2008 META-INF/
    71 Sat Aug 09 13:18:24 CEST 2008 META-INF/MANIFEST.MF
  1491 Sat Aug 09 13:18:18 CEST 2008 net/tinyos/comm/ByteQueue.class
  3877 Sat Aug 09 13:18:18 CEST 2008 net/tinyos/comm/NativeSerial.class
   940 Sat Aug 09 13:18:18 CEST 2008 net/tinyos/comm/SerialPort.class
   824 Sat Aug 09 13:18:18 CEST 2008 net/tinyos/comm/SerialPortEvent.class
   194 Sat Aug 09 13:18:18 CEST 2008 net/tinyos/comm/SerialPortListener.class
  1374 Sat Aug 09 13:18:18 CEST 2008 net/tinyos/comm/TOSCommJNI.class
   713 Sat Aug 09 13:18:18 CEST 2008 net/tinyos/comm/TOSCommLibraryLoader.class
  2049 Sat Aug 09 13:18:20 CEST 2008 net/tinyos/comm/TOSSerial$EventDispatcher.class
  1024 Sat Aug 09 13:18:20 CEST 2008 net/tinyos/comm/TOSSerial$SerialInputStream.class
   697 Sat Aug 09 13:18:20 CEST 2008 net/tinyos/comm/TOSSerial$SerialOutputStream.class
  3614 Sat Aug 09 13:18:20 CEST 2008 net/tinyos/comm/TOSSerial.class
   345 Sat Aug 09 13:18:18 CEST 2008 net/tinyos/comm/UnsupportedCommOperationException.class
  4262 Sat Aug 09 11:43:18 CEST 2008 net/tinyos/mviz/images/tmote_sky.gif
142143 Sat Aug 09 11:43:18 CEST 2008 net/tinyos/mviz/images/tmote_sky.jpg
  1636 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/AbstractSource.class
  5234 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/BuildSource.class
   195 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/PacketListenerIF.class
   370 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/PacketSource.class
   795 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/ParseArgs.class
   166 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/PhoenixError.class
  1114 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/PhoenixSource$1.class
  3777 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/PhoenixSource.class
  1099 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/Platform.class
  1536 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/SFProtocol.class
  1129 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/SFSource.class
   618 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SerialForwarder$SFMessenger.class
  4406 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SerialForwarder.class
  3337 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFClient.class
  1992 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFConsoleRenderer.class
  4103 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFListen.class
   580 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFNullRenderer.class
   292 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFRenderer.class
   561 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFWindow$1.class
   561 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFWindow$2.class
   820 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFWindow$3.class
   903 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFWindow$4.class
   864 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFWindow$5.class
  7480 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFWindow.class
   894 Sat Aug 09 13:18:20 CEST 2008 net/tinyos/sim/InputVariables.class
 11411 Sat Aug 09 13:18:22 CEST 2008 net/tinyos/sim/LinkLayerModel.class
   454 Sat Aug 09 13:18:20 CEST 2008 net/tinyos/sim/OutputVariables.class
  1179 Sat Aug 09 13:18:22 CEST 2008 net/tinyos/util/Crc.class
  7461 Sat Aug 09 13:18:24 CEST 2008 net/tinyos/util/DiagMsg.class
  1269 Sat Aug 09 13:18:24 CEST 2008 net/tinyos/util/Dump.class
   842 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/util/Env.class
   157 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/util/Messenger.class
   701 Sat Aug 09 13:18:24 CEST 2008 net/tinyos/util/PrintStreamMessenger.class
##################################################################

Cyril


<div>
<div>Hello,<br>i still have issues with java and Oscilloscope application under tinyos2.1<br>It seems it misses net.tinyos.message in the tinyos.jar.<br>See below.<br>Moreover, i can't compile tinyos.jar it gives me some errors when i type "make" under opt/tinyos 2.x/support/sdk/java.<br>Does Tinyos2.1 have a bug with tinyos.jar or is there something i missed??<br>How can i regenerate tinyos.jar?<br>Thanks<br><br><br>###################################################################<br><div>&nbsp;nguyenvp <at> mi2500961 /cygdrive/c/tinyos/cygwin/opt/tinyos-2.x/support/sdk/java<br>$ jar tvf tinyos.jar<br>&nbsp;&nbsp;&nbsp;&nbsp; 0 Sat Aug 09 13:18:24 CEST 2008 META-INF/<br>&nbsp;&nbsp;&nbsp; 71 Sat Aug 09 13:18:24 CEST 2008 META-INF/MANIFEST.MF<br>&nbsp; 1491 Sat Aug 09 13:18:18 CEST 2008
 net/tinyos/comm/ByteQueue.class<br>&nbsp; 3877 Sat Aug 09 13:18:18 CEST 2008 net/tinyos/comm/NativeSerial.class<br>&nbsp;&nbsp; 940 Sat Aug 09 13:18:18 CEST 2008 net/tinyos/comm/SerialPort.class<br>&nbsp;&nbsp; 824 Sat Aug 09 13:18:18 CEST 2008 net/tinyos/comm/SerialPortEvent.class<br>&nbsp;&nbsp; 194 Sat Aug 09 13:18:18 CEST 2008 net/tinyos/comm/SerialPortListener.class<br>&nbsp; 1374 Sat Aug 09 13:18:18 CEST 2008 net/tinyos/comm/TOSCommJNI.class<br>&nbsp;&nbsp; 713 Sat Aug 09 13:18:18 CEST 2008 net/tinyos/comm/TOSCommLibraryLoader.class<br>&nbsp; 2049 Sat Aug 09 13:18:20 CEST 2008 net/tinyos/comm/TOSSerial$EventDispatcher.class<br>&nbsp; 1024 Sat Aug 09 13:18:20 CEST 2008 net/tinyos/comm/TOSSerial$SerialInputStream.class<br>&nbsp;&nbsp; 697 Sat Aug 09 13:18:20 CEST 2008 net/tinyos/comm/TOSSerial$SerialOutputStream.class<br>&nbsp; 3614 Sat Aug 09 13:18:20 CEST 2008 net/tinyos/comm/TOSSerial.class<br>&nbsp;&nbsp; 345 Sat Aug 09 13:18:18 CEST 2008
 net/tinyos/comm/UnsupportedCommOperationException.class<br>&nbsp; 4262 Sat Aug 09 11:43:18 CEST 2008 net/tinyos/mviz/images/tmote_sky.gif<br>142143 Sat Aug 09 11:43:18 CEST 2008 net/tinyos/mviz/images/tmote_sky.jpg<br>&nbsp; 1636 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/AbstractSource.class<br>&nbsp; 5234 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/BuildSource.class<br>&nbsp;&nbsp; 195 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/PacketListenerIF.class<br>&nbsp;&nbsp; 370 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/PacketSource.class<br>&nbsp;&nbsp; 795 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/ParseArgs.class<br>&nbsp;&nbsp; 166 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/PhoenixError.class<br>&nbsp; 1114 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/PhoenixSource$1.class<br>&nbsp; 3777 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/PhoenixSource.class<br>&nbsp; 1099 Sat Aug 09 13:18:16 CEST 2008
 net/tinyos/packet/Platform.class<br>&nbsp; 1536 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/SFProtocol.class<br>&nbsp; 1129 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/SFSource.class<br>&nbsp;&nbsp; 618 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SerialForwarder$SFMessenger.class<br>&nbsp; 4406 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SerialForwarder.class<br>&nbsp; 3337 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFClient.class<br>&nbsp; 1992 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFConsoleRenderer.class<br>&nbsp; 4103 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFListen.class<br>&nbsp;&nbsp; 580 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFNullRenderer.class<br>&nbsp;&nbsp; 292 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFRenderer.class<br>&nbsp;&nbsp; 561 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFWindow$1.class<br>&nbsp;&nbsp; 561 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFWindow$2.class<br>&nbsp;&nbsp; 820 Sat Aug 09
 13:18:16 CEST 2008 net/tinyos/sf/SFWindow$3.class<br>&nbsp;&nbsp; 903 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFWindow$4.class<br>&nbsp;&nbsp; 864 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFWindow$5.class<br>&nbsp; 7480 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFWindow.class<br>&nbsp;&nbsp; 894 Sat Aug 09 13:18:20 CEST 2008 net/tinyos/sim/InputVariables.class<br>&nbsp;11411 Sat Aug 09 13:18:22 CEST 2008 net/tinyos/sim/LinkLayerModel.class<br>&nbsp;&nbsp; 454 Sat Aug 09 13:18:20 CEST 2008 net/tinyos/sim/OutputVariables.class<br>&nbsp; 1179 Sat Aug 09 13:18:22 CEST 2008 net/tinyos/util/Crc.class<br>&nbsp; 7461 Sat Aug 09 13:18:24 CEST 2008 net/tinyos/util/DiagMsg.class<br>&nbsp; 1269 Sat Aug 09 13:18:24 CEST 2008 net/tinyos/util/Dump.class<br>&nbsp;&nbsp; 842 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/util/Env.class<br>&nbsp;&nbsp; 157 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/util/Messenger.class<br>&nbsp;&nbsp; 701 Sat Aug 09 13:18:24 CEST 2008
 net/tinyos/util/PrintStreamMessenger.class<br>##################################################################<br><br>
</div>Cyril<div><br></div>
</div>
<br>
</div>
João Carlos Giacomin | 1 Dec 11:28 2008
Picon

Re: AMsend/Timer issue

Try to use longer times and observe if the problem persists.

It probably is related to hardware limitations.

*****************
 João Giacomin
 Prof-DCC-UFLA
*****************

---------- Original Message -----------
From: Ruben Catteeuw <rubencatteeuw <at> hotmail.com>
To: <tinyos-help <at> millennium.berkeley.edu>
Sent: Sat, 29 Nov 2008 16:09:13 +0000
Subject: [Tinyos-help] AMsend/Timer issue

> Hello,
>
> I'm having some problems with the AMsend interface in an application of mine (on Tmote),
> some info:
>
> A mote is receiving an avarage of 6 packets per second from different motes in a network
> (20 motes send once per 3 seconds at random times), the source adress of this packet is
> queued.
> Everytime a packet is received a timer of 200 ms is started and when this timer expires a
> reply is sent to the first address in the FIFO queue.
>
> All the requests are received, all the timers are started, but some 15% of the calls to
> AMsend are unsuccesfull. At any given time the maximum expire-rate of the timers is 6 per
> 200 ms. I can't figure out why 15% of the calls won't return SUCCESS.
>
> thx in advance for everyone who can offer some advice
>
> Ruben />
>

Vanaf nu heb je je vrienden overal bij! Messenger voor Mobile
------- End of Original Message -------

<div>

<p>Try to use longer times and observe if the problem persists.</p>

<p>It probably is related to hardware limitations.
<br><br>***************** 
<br>&nbsp;Jo&atilde;o Giacomin 
<br>&nbsp;Prof-DCC-UFLA 
<br>*****************
<br><br>---------- Original Message -----------
<br>From: Ruben Catteeuw &lt;rubencatteeuw <at> hotmail.com&gt; 
<br>To: &lt;tinyos-help <at> millennium.berkeley.edu&gt; 
<br>Sent: Sat, 29 Nov 2008 16:09:13 +0000 
<br>Subject: [Tinyos-help] AMsend/Timer issue 
<br><br>&gt; Hello,
<br>&gt; 
<br>&gt; I'm having some problems with the AMsend interface in an application of mine (on Tmote), 
<br>&gt; some info:
<br>&gt; 
<br>&gt; A mote is receiving an avarage of 6 packets per second from different motes in a network 
<br>&gt; (20 motes send once per 3 seconds at random times), the source adress of this packet is 
<br>&gt; queued.
<br>&gt; Everytime a packet is received a timer of 200 ms is started and when this timer expires a 
<br>&gt; reply is sent to the first address in the FIFO queue.
<br>&gt; 
<br>&gt; All the requests are received, all the timers are started, but some 15% of the calls to 
<br>&gt; AMsend are unsuccesfull. At any given time the maximum expire-rate of the timers is 6 per 
<br>&gt; 200 ms. I can't figure out why 15% of the calls won't return SUCCESS.
<br>&gt; 
<br>&gt; thx in advance for everyone who can offer some advice
<br>&gt; 
<br>&gt; Ruben /&gt;
<br>&gt; </p>

<p>
</p>
<p>Vanaf nu heb je je vrienden overal bij! <a href="http://www.windowslivemobile.msn.com/?mkt=nl-be" target="_new">Messenger voor Mobile</a> 
<br>------- End of Original Message -------
<br></p>

</div>
mbilloo | 1 Dec 14:54 2008
Picon

Porting MiniSec to TinyOS 2.x: TinyOS 2.x network stack ?


Hello, 

I would like to port MiniSec to TinyOS 2.x, which is a security protocol
similar to TinySec. MiniSec has been designed for TinyOS 1.x,  and the
authors of the protocol basically have redone the TinyOS 1.x network stack
to allow for encryption and decryption so that the packet is encrypted right
before it is sent to the radio  (via BareSendMsg), instead of sending a
packet directly to the radio. So, basically, like this: 

Standard TinyOS 1.x stack:
AMStandard -> BareSendMsg (as RadioSend) 

MiniSec stack:
AMStandard -> Encrypt data -> BareSendMsg (as RadioSend)

I have looked at the TinyOS 2.x network stack, and am I correct in saying
that I would only need to copy & paste the MiniSec code into
AMQueueEntryP.nc where AMSend.send is defined, right before a call is made
to Send.send ? Is it correct to make the changes here or am I missing
something ?

I am slightly confused at how the fields in the packet are specified in
TinyOS 2.x, where a packet is formulated before being sent to the radio (or
link layer) ? Are all network layer operations on the packet completed when
a call is made to Send.send and the  packet is sent to the link layer (or
radio) ? If not, in which component are final packet operations done, right
before the packet is sent to the radio or link layer ? Is it in
CC2420ActiveMessageC ? 

Thank you 
Mohammed
--

-- 
View this message in context: http://www.nabble.com/Porting-MiniSec-to-TinyOS-2.x%3A-TinyOS-2.x-network-stack---tp20764853p20764853.html
Sent from the TinyOS - Help mailing list archive at Nabble.com.

Janos Sallai | 1 Dec 17:33 2008
Picon

Re: tinyos.jar missing some classes : bug?

The tinyos.jar file seems to be OK in the CVS:
http://tinyos.cvs.sourceforge.net/viewvc/*checkout*/tinyos/tinyos-2.x/support/sdk/java/tinyos.jar?revision=1.12

Can you compare yours with the one above? If they aren't identical, please let me know where the bad file came from (i.e. what method you used to install tinyos), so that we know what to fix.

Janos

On Mon, Dec 1, 2008 at 3:47 AM, ivi610 <ivi610 <at> yahoo.fr> wrote:
Hello,
i still have issues with java and Oscilloscope application under tinyos2.1
It seems it misses net.tinyos.message in the tinyos.jar.
See below.
Moreover, i can't compile tinyos.jar it gives me some errors when i type "make" under opt/tinyos 2.x/support/sdk/java.
Does Tinyos2.1 have a bug with tinyos.jar or is there something i missed??
How can i regenerate tinyos.jar?
Thanks


###################################################################
 nguyenvp <at> mi2500961 /cygdrive/c/tinyos/cygwin/opt/tinyos-2.x/support/sdk/java
$ jar tvf tinyos.jar
     0 Sat Aug 09 13:18:24 CEST 2008 META-INF/
    71 Sat Aug 09 13:18:24 CEST 2008 META-INF/MANIFEST.MF
  1491 Sat Aug 09 13:18:18 CEST 2008 net/tinyos/comm/ByteQueue.class
  3877 Sat Aug 09 13:18:18 CEST 2008 net/tinyos/comm/NativeSerial.class
   940 Sat Aug 09 13:18:18 CEST 2008 net/tinyos/comm/SerialPort.class
   824 Sat Aug 09 13:18:18 CEST 2008 net/tinyos/comm/SerialPortEvent.class
   194 Sat Aug 09 13:18:18 CEST 2008 net/tinyos/comm/SerialPortListener.class
  1374 Sat Aug 09 13:18:18 CEST 2008 net/tinyos/comm/TOSCommJNI.class
   713 Sat Aug 09 13:18:18 CEST 2008 net/tinyos/comm/TOSCommLibraryLoader.class
  2049 Sat Aug 09 13:18:20 CEST 2008 net/tinyos/comm/TOSSerial$EventDispatcher.class
  1024 Sat Aug 09 13:18:20 CEST 2008 net/tinyos/comm/TOSSerial$SerialInputStream.class
   697 Sat Aug 09 13:18:20 CEST 2008 net/tinyos/comm/TOSSerial$SerialOutputStream.class
  3614 Sat Aug 09 13:18:20 CEST 2008 net/tinyos/comm/TOSSerial.class
   345 Sat Aug 09 13:18:18 CEST 2008 net/tinyos/comm/UnsupportedCommOperationException.class
  4262 Sat Aug 09 11:43:18 CEST 2008 net/tinyos/mviz/images/tmote_sky.gif
142143 Sat Aug 09 11:43:18 CEST 2008 net/tinyos/mviz/images/tmote_sky.jpg
  1636 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/AbstractSource.class
  5234 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/BuildSource.class
   195 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/PacketListenerIF.class
   370 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/PacketSource.class
   795 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/ParseArgs.class
   166 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/PhoenixError.class
  1114 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/PhoenixSource$1.class
  3777 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/PhoenixSource.class
  1099 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/Platform.class
  1536 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/SFProtocol.class
  1129 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/SFSource.class
   618 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SerialForwarder$SFMessenger.class
  4406 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SerialForwarder.class
  3337 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFClient.class
  1992 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFConsoleRenderer.class
  4103 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFListen.class
   580 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFNullRenderer.class
   292 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFRenderer.class
   561 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFWindow$1.class
   561 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFWindow$2.class
   820 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFWindow$3.class
   903 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFWindow$4.class
   864 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFWindow$5.class
  7480 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFWindow.class
   894 Sat Aug 09 13:18:20 CEST 2008 net/tinyos/sim/InputVariables.class
 11411 Sat Aug 09 13:18:22 CEST 2008 net/tinyos/sim/LinkLayerModel.class
   454 Sat Aug 09 13:18:20 CEST 2008 net/tinyos/sim/OutputVariables.class
  1179 Sat Aug 09 13:18:22 CEST 2008 net/tinyos/util/Crc.class
  7461 Sat Aug 09 13:18:24 CEST 2008 net/tinyos/util/DiagMsg.class
  1269 Sat Aug 09 13:18:24 CEST 2008 net/tinyos/util/Dump.class
   842 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/util/Env.class
   157 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/util/Messenger.class
   701 Sat Aug 09 13:18:24 CEST 2008 net/tinyos/util/PrintStreamMessenger.class
##################################################################

Cyril



_______________________________________________
Tinyos-help mailing list
Tinyos-help <at> millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

<div>
<p>The tinyos.jar file seems to be OK in the CVS:<br><a href="http://tinyos.cvs.sourceforge.net/viewvc/*checkout*/tinyos/tinyos-2.x/support/sdk/java/tinyos.jar?revision=1.12">http://tinyos.cvs.sourceforge.net/viewvc/*checkout*/tinyos/tinyos-2.x/support/sdk/java/tinyos.jar?revision=1.12</a><br><br>Can you compare yours with the one above? If they aren't identical, please let me know where the bad file came from (i.e. what method you used to install tinyos), so that we know what to fix. <br><br>Janos<br><br></p>
<div class="gmail_quote">On Mon, Dec 1, 2008 at 3:47 AM, ivi610 <span dir="ltr">&lt;<a href="mailto:ivi610 <at> yahoo.fr">ivi610 <at> yahoo.fr</a>&gt;</span> wrote:<br><blockquote class="gmail_quote">
<div>
<div>Hello,<br>i still have issues with java and Oscilloscope application under tinyos2.1<br>It seems it misses net.tinyos.message in the tinyos.jar.<br>
See below.<br>Moreover, i can't compile tinyos.jar it gives me some errors when i type "make" under opt/tinyos 2.x/support/sdk/java.<br>Does Tinyos2.1 have a bug with tinyos.jar or is there something i missed??<br>
How can i regenerate tinyos.jar?<br>Thanks<br><br><br>###################################################################<br><div>&nbsp;nguyenvp <at> mi2500961 /cygdrive/c/tinyos/cygwin/opt/tinyos-2.x/support/sdk/java<br>$ jar tvf tinyos.jar<br>
&nbsp;&nbsp;&nbsp;&nbsp; 0 Sat Aug 09 13:18:24 CEST 2008 META-INF/<br>&nbsp;&nbsp;&nbsp; 71 Sat Aug 09 13:18:24 CEST 2008 META-INF/MANIFEST.MF<br>&nbsp; 1491 Sat Aug 09 13:18:18 CEST 2008
 net/tinyos/comm/ByteQueue.class<br>&nbsp; 3877 Sat Aug 09 13:18:18 CEST 2008 net/tinyos/comm/NativeSerial.class<br>&nbsp;&nbsp; 940 Sat Aug 09 13:18:18 CEST 2008 net/tinyos/comm/SerialPort.class<br>&nbsp;&nbsp; 824 Sat Aug 09 13:18:18 CEST 2008 net/tinyos/comm/SerialPortEvent.class<br>
&nbsp;&nbsp; 194 Sat Aug 09 13:18:18 CEST 2008 net/tinyos/comm/SerialPortListener.class<br>&nbsp; 1374 Sat Aug 09 13:18:18 CEST 2008 net/tinyos/comm/TOSCommJNI.class<br>&nbsp;&nbsp; 713 Sat Aug 09 13:18:18 CEST 2008 net/tinyos/comm/TOSCommLibraryLoader.class<br>
&nbsp; 2049 Sat Aug 09 13:18:20 CEST 2008 net/tinyos/comm/TOSSerial$EventDispatcher.class<br>&nbsp; 1024 Sat Aug 09 13:18:20 CEST 2008 net/tinyos/comm/TOSSerial$SerialInputStream.class<br>&nbsp;&nbsp; 697 Sat Aug 09 13:18:20 CEST 2008 net/tinyos/comm/TOSSerial$SerialOutputStream.class<br>
&nbsp; 3614 Sat Aug 09 13:18:20 CEST 2008 net/tinyos/comm/TOSSerial.class<br>&nbsp;&nbsp; 345 Sat Aug 09 13:18:18 CEST 2008
 net/tinyos/comm/UnsupportedCommOperationException.class<br>&nbsp; 4262 Sat Aug 09 11:43:18 CEST 2008 net/tinyos/mviz/images/tmote_sky.gif<br>142143 Sat Aug 09 11:43:18 CEST 2008 net/tinyos/mviz/images/tmote_sky.jpg<br>&nbsp; 1636 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/AbstractSource.class<br>
&nbsp; 5234 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/BuildSource.class<br>&nbsp;&nbsp; 195 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/PacketListenerIF.class<br>&nbsp;&nbsp; 370 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/PacketSource.class<br>
&nbsp;&nbsp; 795 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/ParseArgs.class<br>&nbsp;&nbsp; 166 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/PhoenixError.class<br>&nbsp; 1114 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/PhoenixSource$1.class<br>
&nbsp; 3777 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/PhoenixSource.class<br>&nbsp; 1099 Sat Aug 09 13:18:16 CEST 2008
 net/tinyos/packet/Platform.class<br>&nbsp; 1536 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/SFProtocol.class<br>&nbsp; 1129 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/SFSource.class<br>&nbsp;&nbsp; 618 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SerialForwarder$SFMessenger.class<br>
&nbsp; 4406 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SerialForwarder.class<br>&nbsp; 3337 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFClient.class<br>&nbsp; 1992 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFConsoleRenderer.class<br>
&nbsp; 4103 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFListen.class<br>&nbsp;&nbsp; 580 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFNullRenderer.class<br>&nbsp;&nbsp; 292 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFRenderer.class<br>&nbsp;&nbsp; 561 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFWindow$1.class<br>
&nbsp;&nbsp; 561 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFWindow$2.class<br>&nbsp;&nbsp; 820 Sat Aug 09
 13:18:16 CEST 2008 net/tinyos/sf/SFWindow$3.class<br>&nbsp;&nbsp; 903 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFWindow$4.class<br>&nbsp;&nbsp; 864 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFWindow$5.class<br>&nbsp; 7480 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFWindow.class<br>
&nbsp;&nbsp; 894 Sat Aug 09 13:18:20 CEST 2008 net/tinyos/sim/InputVariables.class<br>&nbsp;11411 Sat Aug 09 13:18:22 CEST 2008 net/tinyos/sim/LinkLayerModel.class<br>&nbsp;&nbsp; 454 Sat Aug 09 13:18:20 CEST 2008 net/tinyos/sim/OutputVariables.class<br>
&nbsp; 1179 Sat Aug 09 13:18:22 CEST 2008 net/tinyos/util/Crc.class<br>&nbsp; 7461 Sat Aug 09 13:18:24 CEST 2008 net/tinyos/util/DiagMsg.class<br>&nbsp; 1269 Sat Aug 09 13:18:24 CEST 2008 net/tinyos/util/Dump.class<br>&nbsp;&nbsp; 842 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/util/Env.class<br>
&nbsp;&nbsp; 157 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/util/Messenger.class<br>&nbsp;&nbsp; 701 Sat Aug 09 13:18:24 CEST 2008
 net/tinyos/util/PrintStreamMessenger.class<br>##################################################################<br><br>
</div>Cyril<div><br></div>
</div>
<br>
</div>
<br>_______________________________________________<br>
Tinyos-help mailing list<br><a href="mailto:Tinyos-help <at> millennium.berkeley.edu">Tinyos-help <at> millennium.berkeley.edu</a><br><a href="https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help" target="_blank">https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help</a><br>
</blockquote>
</div>
<br>
</div>
wolfgangmi@gmail.com | 1 Dec 18:01 2008
Picon

Using GPS module on MTS420CA

Hi,

 

I want to use the GPS module of MTS420CA with MICAz on TinyOS 1.1.15. Is there existing driver for this module in the community? I wonder if anyone had previous experience on getting GPS data from MTS420CA and could give me some help.

 

Thanks a lot!

 

Regards,

Qi

 

<div>
<p class="MsoNormal">Hi,</p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal">I want to use the GPS module of MTS420CA with MICAz on TinyOS <a href="http://1.1.15.">1.1.15.</a> Is there existing driver for this module in the community? I wonder if anyone had previous experience on getting GPS data from MTS420CA and could give me some help.</p>

<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal">Thanks a lot!</p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal">Regards,</p>
<p class="MsoNormal">Qi</p>
<p>&nbsp;</p>
</div>
h s | 1 Dec 23:49 2008
Picon

Import error TOSSIMmodule.so : Undefined symbol

Hello all,
I have made my own application called "Routing" in which I am trying to change the default MAC protocol used in TOSSIM (which is CSMA). I have modified the file TossimPacketModelC.nc a bit and some interfaces too it. The application compiles fine as is shown by the output of make below:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
bash-3.2$ make micaz sim
mkdir -p simbuild/micaz
  placing object files in simbuild/micaz
  writing XML schema to app.xml
  compiling RoutingAppC to object file sim.o
ncc -c -shared -fPIC -o simbuild/micaz/sim.o -g -O0 -tossim -fnesc-nido-tosnodes=1000 -fnesc-simulate -fnesc-nido-motenumber=sim_node\(\)   -Wall -Wshadow -Wnesc-all -target=micaz -fnesc-cfile=simbuild/micaz/app.c -board=micasb -DDEFINED_TOS_AM_GROUP=0x22 --param max-inline-insns-single=100000 -DIDENT_APPNAME=\"RoutingAppC\" -DIDENT_USERNAME=\"hsahota\" -DIDENT_HOSTNAME=\"co3208-2.ece.ia\" -DIDENT_USERHASH=0xf3c75442L -DIDENT_TIMESTAMP=0x49346931L -DIDENT_UIDHASH=0xa37fa72cL -I/usr/include/python2.4 -Wno-nesc-data-race RoutingAppC.nc   -fnesc-dump=components -fnesc-dump=variables -fnesc-dump=constants -fnesc-dump=typedefs -fnesc-dump=interfacedefs -fnesc-dump=tags -fnesc-dumpfile=app.xml
In file included from /opt/tinyos-2.x/tos/lib/tossim/ActiveMessageC.nc:53,
                 from /opt/tinyos-2.x/tos/system/AMQueueP.nc:43,
                 from /opt/tinyos-2.x/tos/system/AMSenderC.nc:50,
                 from RoutingAppC.nc:9:
In component `GainInterferenceModelC':
/opt/tinyos-2.x/tos/lib/tossim/GainInterferenceModelC.nc: In function `heardSignal':
/opt/tinyos-2.x/tos/lib/tossim/GainInterferenceModelC.nc:78: warning: declaration of `localNoise' shadows global declaration
/opt/tinyos-2.x/tos/lib/tossim/sim_gain.c:10: warning: location of shadowed declaration
/opt/tinyos-2.x/tos/lib/tossim/PacketModelC.nc: In function 'PacketModelC$Packet$send':
/opt/tinyos-2.x/tos/lib/tossim/PacketModelC.nc:152: warning: control reaches end of non-void function
/opt/tinyos-2.x/tos/lib/tossim/PacketModelC.nc: In function 'PacketModelC$Packet$startReceiving':
/opt/tinyos-2.x/tos/lib/tossim/PacketModelC.nc:385: warning: no return statement in function returning non-void
RoutingC.nc: In function 'RoutingC$setTaskTimer':
RoutingC.nc:67: warning: unused variable 'j'
  compiling Python support and C libraries into pytossim.o, tossim.o, and c-support.o
g++ -c  -shared -fPIC -o simbuild/micaz/pytossim.o -g -O0 -DIDENT_APPNAME=\"RoutingAppC\" -DIDENT_USERNAME=\"hsahota\" -DIDENT_HOSTNAME=\"co3208-2.ece.ia\" -DIDENT_USERHASH=0xf3c75442L -DIDENT_TIMESTAMP=0x49346931L -DIDENT_UIDHASH=0xa37fa72cL -I/usr/include/python2.4 /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx -I/usr/include/python2.5 -I/opt/tinyos-2.x/tos/lib/tossim -DHAVE_CONFIG_H
g++ -c  -shared -fPIC -o simbuild/micaz/tossim.o -g -O0 -DIDENT_APPNAME=\"RoutingAppC\" -DIDENT_USERNAME=\"hsahota\" -DIDENT_HOSTNAME=\"co3208-2.ece.ia\" -DIDENT_USERHASH=0xf3c75442L -DIDENT_TIMESTAMP=0x49346931L -DIDENT_UIDHASH=0xa37fa72cL -I/usr/include/python2.4 /opt/tinyos-2.x/tos/lib/tossim/tossim.c -I/usr/include/python2.5 -I/opt/tinyos-2.x/tos/lib/tossim
g++ -c  -shared -fPIC -o simbuild/micaz/c-support.o -g -O0 -DIDENT_APPNAME=\"RoutingAppC\" -DIDENT_USERNAME=\"hsahota\" -DIDENT_HOSTNAME=\"co3208-2.ece.ia\" -DIDENT_USERHASH=0xf3c75442L -DIDENT_TIMESTAMP=0x49346931L -DIDENT_UIDHASH=0xa37fa72cL -I/usr/include/python2.4 /opt/tinyos-2.x/tos/lib/tossim/hashtable.c -I/usr/include/python2.5 -I/opt/tinyos-2.x/tos/lib/tossim
  linking into shared object ./_TOSSIMmodule.so
g++ -shared -fPIC  simbuild/micaz/pytossim.o simbuild/micaz/sim.o simbuild/micaz/tossim.o simbuild/micaz/c-support.o -lstdc++  -o _TOSSIMmodule.so
  copying Python script interface TOSSIM.py from lib/tossim to local directory
 
*** Successfully built micaz TOSSIM library.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

However, while trying to run the simulation using python test.py (which only contains the line (from TOSSIM import *), I get the following error. I tried to search the Tinyos help list and found a similar problem faced by someone before but I couldn't find a solution posted to it.

%%%%%%%%%%%%%%%%%%
bash-3.2$ python test.py
Traceback (most recent call last):
  File "test.py", line 1, in ?
    from TOSSIM import *
  File "/opt/tinyos-2.x/apps/Routing/TOSSIM.py", line 4, in ?
    import _TOSSIM
ImportError: /opt/tinyos-2.x/apps/Routing/_TOSSIMmodule.so: undefined symbol: send_csma_sample_channel
%%%%%%%%%%%%%%%%%%%

Any help in this regard is appreciated.
Thanks,
HS.

<div><p>Hello all,<br>I have made my own application called "Routing" in which I am trying to change the default MAC protocol used in TOSSIM (which is CSMA). I have modified the file TossimPacketModelC.nc a bit and some interfaces too it. The application compiles fine as is shown by the output of make below:<br><br>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br>bash-3.2$ make micaz sim<br>mkdir -p simbuild/micaz<br>&nbsp; placing object files in simbuild/micaz<br>&nbsp; writing XML schema to app.xml<br>&nbsp; compiling RoutingAppC to object file sim.o<br>ncc -c -shared -fPIC -o simbuild/micaz/sim.o -g -O0 -tossim -fnesc-nido-tosnodes=1000 -fnesc-simulate -fnesc-nido-motenumber=sim_node\(\)&nbsp;&nbsp; -Wall -Wshadow -Wnesc-all -target=micaz -fnesc-cfile=simbuild/micaz/app.c -board=micasb -DDEFINED_TOS_AM_GROUP=0x22 --param max-inline-insns-single=100000 -DIDENT_APPNAME=\"RoutingAppC\" -DIDENT_USERNAME=\"hsahota\" -DIDENT_HOSTNAME=\"co3208-2.ece.ia\" -DIDENT_USERHASH=0xf3c75442L -DIDENT_TIMESTAMP=0x49346931L -DIDENT_UIDHASH=0xa37fa72cL -I/usr/include/python2.4 -Wno-nesc-data-race 
 RoutingAppC.nc&nbsp;&nbsp; -fnesc-dump=components -fnesc-dump=variables -fnesc-dump=constants -fnesc-dump=typedefs -fnesc-dump=interfacedefs -fnesc-dump=tags -fnesc-dumpfile=app.xml<br>
In file included from /opt/tinyos-2.x/tos/lib/tossim/ActiveMessageC.nc:53,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /opt/tinyos-2.x/tos/system/AMQueueP.nc:43,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /opt/tinyos-2.x/tos/system/AMSenderC.nc:50,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from RoutingAppC.nc:9:<br>
In component `GainInterferenceModelC':<br>/opt/tinyos-2.x/tos/lib/tossim/GainInterferenceModelC.nc: In function `heardSignal':<br>/opt/tinyos-2.x/tos/lib/tossim/GainInterferenceModelC.nc:78: warning: declaration of `localNoise' shadows global declaration<br>
/opt/tinyos-2.x/tos/lib/tossim/sim_gain.c:10: warning: location of shadowed declaration<br>/opt/tinyos-2.x/tos/lib/tossim/PacketModelC.nc: In function 'PacketModelC$Packet$send':<br>/opt/tinyos-2.x/tos/lib/tossim/PacketModelC.nc:152: warning: control reaches end of non-void function<br>
/opt/tinyos-2.x/tos/lib/tossim/PacketModelC.nc: In function 'PacketModelC$Packet$startReceiving':<br>/opt/tinyos-2.x/tos/lib/tossim/PacketModelC.nc:385: warning: no return statement in function returning non-void<br>RoutingC.nc: In function 'RoutingC$setTaskTimer':<br>
RoutingC.nc:67: warning: unused variable 'j'<br>&nbsp; compiling Python support and C libraries into pytossim.o, tossim.o, and c-support.o<br>g++ -c&nbsp; -shared -fPIC -o simbuild/micaz/pytossim.o -g -O0 -DIDENT_APPNAME=\"RoutingAppC\" -DIDENT_USERNAME=\"hsahota\" -DIDENT_HOSTNAME=\"co3208-2.ece.ia\" -DIDENT_USERHASH=0xf3c75442L -DIDENT_TIMESTAMP=0x49346931L -DIDENT_UIDHASH=0xa37fa72cL -I/usr/include/python2.4 /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx -I/usr/include/python2.5 -I/opt/tinyos-2.x/tos/lib/tossim -DHAVE_CONFIG_H <br>
g++ -c&nbsp; -shared -fPIC -o simbuild/micaz/tossim.o -g -O0 -DIDENT_APPNAME=\"RoutingAppC\" -DIDENT_USERNAME=\"hsahota\" -DIDENT_HOSTNAME=\"co3208-2.ece.ia\" -DIDENT_USERHASH=0xf3c75442L -DIDENT_TIMESTAMP=0x49346931L -DIDENT_UIDHASH=0xa37fa72cL -I/usr/include/python2.4 /opt/tinyos-2.x/tos/lib/tossim/tossim.c -I/usr/include/python2.5 -I/opt/tinyos-2.x/tos/lib/tossim<br>
g++ -c&nbsp; -shared -fPIC -o simbuild/micaz/c-support.o -g -O0 -DIDENT_APPNAME=\"RoutingAppC\" -DIDENT_USERNAME=\"hsahota\" -DIDENT_HOSTNAME=\"co3208-2.ece.ia\" -DIDENT_USERHASH=0xf3c75442L -DIDENT_TIMESTAMP=0x49346931L -DIDENT_UIDHASH=0xa37fa72cL -I/usr/include/python2.4 /opt/tinyos-2.x/tos/lib/tossim/hashtable.c -I/usr/include/python2.5 -I/opt/tinyos-2.x/tos/lib/tossim<br>
&nbsp; linking into shared object ./_TOSSIMmodule.so<br>g++ -shared -fPIC&nbsp; simbuild/micaz/pytossim.o simbuild/micaz/sim.o simbuild/micaz/tossim.o simbuild/micaz/c-support.o -lstdc++&nbsp; -o _TOSSIMmodule.so<br>&nbsp; copying Python script interface TOSSIM.py from lib/tossim to local directory<br>
&nbsp;<br>*** Successfully built micaz TOSSIM library. <br>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br><br>However, while trying to run the simulation using python test.py (which only contains the line (from TOSSIM import *), I get the following error. I tried to search the Tinyos help list and found a similar problem faced by someone before but I couldn't find a solution posted to it.<br><br>%%%%%%%%%%%%%%%%%%<br>bash-3.2$ python test.py <br>Traceback (most recent call last):<br>&nbsp; File "test.py", line 1, in ?<br>&nbsp;&nbsp;&nbsp; from TOSSIM import *<br>&nbsp; File "/opt/tinyos-2.x/apps/Routing/TOSSIM.py", line 4, in ?<br>
&nbsp;&nbsp;&nbsp; import _TOSSIM<br>ImportError: /opt/tinyos-2.x/apps/Routing/_TOSSIMmodule.so: undefined symbol: send_csma_sample_channel<br>%%%%%%%%%%%%%%%%%%%<br><br>Any help in this regard is appreciated.<br>Thanks,<br>HS.<br></p></div>
ivi610 | 2 Dec 08:03 2008
Picon

Re : tinyos.jar missing some classes : bug?

Hello
i upgraded my tinyos from 2.0.2 to 2.1 from this page :
http://docs.tinyos.net/index.ph/Installing_TinyOS_2.1#Manual_installation_on_your_host_OS_with_RPMs
Furthermore, it seems there is another bug as the tool "tos-install-jni" looks for "*-32.dll" files although there are not.
Best regards
Cyril


De : Janos Sallai <sallai <at> isis.vanderbilt.edu>
À : ivi610 <ivi610 <at> yahoo.fr>; tinyos-help <at> millennium.berkeley.edu
Envoyé le : Lundi, 1 Décembre 2008, 17h33mn 48s
Objet : Re: [Tinyos-help] tinyos.jar missing some classes : bug?

The tinyos.jar file seems to be OK in the CVS:
http://tinyos.cvs.sourceforge.net/viewvc/*checkout*/tinyos/tinyos-2.x/support/sdk/java/tinyos.jar?revision=1.12

Can you compare yours with the one above? If they aren't identical, please let me know where the bad file came from (i.e. what method you used to install tinyos), so that we know what to fix.

Janos

On Mon, Dec 1, 2008 at 3:47 AM, ivi610 <ivi610 <at> yahoo.fr> wrote:
Hello,
i still have issues with java and Oscilloscope application under tinyos2.1
It seems it misses net.tinyos.message in the tinyos.jar.
See below.
Moreover, i can't compile tinyos.jar it gives me some errors when i type "make" under opt/tinyos 2.x/support/sdk/java.
Does Tinyos2.1 have a bug with tinyos.jar or is there something i missed??
How can i regenerate tinyos.jar?
Thanks


###################################################################
 nguyenvp <at> mi2500961 /cygdrive/c/tinyos/cygwin/opt/tinyos-2.x/support/sdk/java
$ jar tvf tinyos.jar
     0 Sat Aug 09 13:18:24 CEST 2008 META-INF/
    71 Sat Aug 09 13:18:24 CEST 2008 META-INF/MANIFEST.MF
  1491 Sat Aug 09 13:18:18 CEST 2008 net/tinyos/comm/ByteQueue.class
  3877 Sat Aug 09 13:18:18 CEST 2008 net/tinyos/comm/NativeSerial.class
   940 Sat Aug 09 13:18:18 CEST 2008 net/tinyos/comm/SerialPort.class
   824 Sat Aug 09 13:18:18 CEST 2008 net/tinyos/comm/SerialPortEvent.class
   194 Sat Aug 09 13:18:18 CEST 2008 net/tinyos/comm/SerialPortListener.class
  1374 Sat Aug 09 13:18:18 CEST 2008 net/tinyos/comm/TOSCommJNI.class
   713 Sat Aug 09 13:18:18 CEST 2008 net/tinyos/comm/TOSCommLibraryLoader.class
  2049 Sat Aug 09 13:18:20 CEST 2008 net/tinyos/comm/TOSSerial$EventDispatcher.class
  1024 Sat Aug 09 13:18:20 CEST 2008 net/tinyos/comm/TOSSerial$SerialInputStream.class
   697 Sat Aug 09 13:18:20 CEST 2008 net/tinyos/comm/TOSSerial$SerialOutputStream.class
  3614 Sat Aug 09 13:18:20 CEST 2008 net/tinyos/comm/TOSSerial.class
   345 Sat Aug 09 13:18:18 CEST 2008 net/tinyos/comm/UnsupportedCommOperationException.class
  4262 Sat Aug 09 11:43:18 CEST 2008 net/tinyos/mviz/images/tmote_sky.gif
142143 Sat Aug 09 11:43:18 CEST 2008 net/tinyos/mviz/images/tmote_sky.jpg
  1636 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/AbstractSource.class
  5234 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/BuildSource.class
   195 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/PacketListenerIF.class
   370 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/PacketSource.class
   795 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/ParseArgs.class
   166 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/PhoenixError.class
  1114 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/PhoenixSource$1.class
  3777 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/PhoenixSource.class
  1099 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/Platform.class
  1536 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/SFProtocol.class
  1129 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/SFSource.class
   618 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SerialForwarder$SFMessenger.class
  4406 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SerialForwarder.class
  3337 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFClient.class
  1992 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFConsoleRenderer.class
  4103 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFListen.class
   580 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFNullRenderer.class
   292 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFRenderer.class
   561 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFWindow$1.class
   561 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFWindow$2.class
   820 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFWindow$3.class
   903 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFWindow$4.class
   864 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFWindow$5.class
  7480 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFWindow.class
   894 Sat Aug 09 13:18:20 CEST 2008 net/tinyos/sim/InputVariables.class
 11411 Sat Aug 09 13:18:22 CEST 2008 net/tinyos/sim/LinkLayerModel.class
   454 Sat Aug 09 13:18:20 CEST 2008 net/tinyos/sim/OutputVariables.class
  1179 Sat Aug 09 13:18:22 CEST 2008 net/tinyos/util/Crc.class
  7461 Sat Aug 09 13:18:24 CEST 2008 net/tinyos/util/DiagMsg.class
  1269 Sat Aug 09 13:18:24 CEST 2008 net/tinyos/util/Dump.class
   842 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/util/Env.class
   157 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/util/Messenger.class
   701 Sat Aug 09 13:18:24 CEST 2008 net/tinyos/util/PrintStreamMessenger.class
##################################################################

Cyril



_______________________________________________
Tinyos-help mailing list
Tinyos-help <at> millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


<div>
<div>Hello<br>i upgraded my tinyos from 2.0.2 to 2.1 from this page :<br>http://docs.tinyos.net/index.ph/Installing_TinyOS_2.1#Manual_installation_on_your_host_OS_with_RPMs<br>Furthermore, it seems there is another bug as the tool "tos-install-jni" looks for "*-32.dll" files although there are not.<br>Best regards<br>Cyril<div><br></div>
<div>
<br><div>
<span>De :</span> Janos Sallai &lt;sallai <at> isis.vanderbilt.edu&gt;<br><span>&Agrave; :</span> ivi610 &lt;ivi610 <at> yahoo.fr&gt;; tinyos-help <at> millennium.berkeley.edu<br><span>Envoy&eacute; le :</span> Lundi, 1 D&eacute;cembre 2008, 17h33mn 48s<br><span>Objet&nbsp;:</span> Re: [Tinyos-help] tinyos.jar missing some classes : bug?<br><br>The tinyos.jar file seems to be OK in the CVS:<br><a rel="nofollow" target="_blank" href="http://tinyos.cvs.sourceforge.net/viewvc/*checkout*/tinyos/tinyos-2.x/support/sdk/java/tinyos.jar?revision=1.12">http://tinyos.cvs.sourceforge.net/viewvc/*checkout*/tinyos/tinyos-2.x/support/sdk/java/tinyos.jar?revision=1.12</a><br><br>Can you compare yours with the one above? If they aren't identical, please let me know where the bad file came from (i.e. what method you used to install tinyos), so that we know what to fix. <br><br>Janos<br><br><div class="gmail_quote">On Mon, Dec 1, 2008 at 3:47 AM, ivi610 <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:ivi610 <at> yahoo.fr" target="_blank" href="mailto:ivi610 <at> yahoo.fr">ivi610 <at> yahoo.fr</a>&gt;</span> wrote:<br><blockquote class="gmail_quote">
<div>
<div>Hello,<br>i still have issues with java and Oscilloscope application under tinyos2.1<br>It seems it misses net.tinyos.message in the tinyos.jar.<br>
See below.<br>Moreover, i can't compile tinyos.jar it gives me some errors when i type "make" under opt/tinyos 2.x/support/sdk/java.<br>Does Tinyos2.1 have a bug with tinyos.jar or is there something i missed??<br>
How can i regenerate tinyos.jar?<br>Thanks<br><br><br>###################################################################<br><div>&nbsp;nguyenvp <at> mi2500961 /cygdrive/c/tinyos/cygwin/opt/tinyos-2.x/support/sdk/java<br>$ jar tvf tinyos.jar<br>
&nbsp;&nbsp;&nbsp;&nbsp; 0 Sat Aug 09 13:18:24 CEST 2008 META-INF/<br>&nbsp;&nbsp;&nbsp; 71 Sat Aug 09 13:18:24 CEST 2008 META-INF/MANIFEST.MF<br>&nbsp; 1491 Sat Aug 09 13:18:18 CEST 2008
 net/tinyos/comm/ByteQueue.class<br>&nbsp; 3877 Sat Aug 09 13:18:18 CEST 2008 net/tinyos/comm/NativeSerial.class<br>&nbsp;&nbsp; 940 Sat Aug 09 13:18:18 CEST 2008 net/tinyos/comm/SerialPort.class<br>&nbsp;&nbsp; 824 Sat Aug 09 13:18:18 CEST 2008 net/tinyos/comm/SerialPortEvent.class<br>
&nbsp;&nbsp; 194 Sat Aug 09 13:18:18 CEST 2008 net/tinyos/comm/SerialPortListener.class<br>&nbsp; 1374 Sat Aug 09 13:18:18 CEST 2008 net/tinyos/comm/TOSCommJNI.class<br>&nbsp;&nbsp; 713 Sat Aug 09 13:18:18 CEST 2008 net/tinyos/comm/TOSCommLibraryLoader.class<br>
&nbsp; 2049 Sat Aug 09 13:18:20 CEST 2008 net/tinyos/comm/TOSSerial$EventDispatcher.class<br>&nbsp; 1024 Sat Aug 09 13:18:20 CEST 2008 net/tinyos/comm/TOSSerial$SerialInputStream.class<br>&nbsp;&nbsp; 697 Sat Aug 09 13:18:20 CEST 2008 net/tinyos/comm/TOSSerial$SerialOutputStream.class<br>
&nbsp; 3614 Sat Aug 09 13:18:20 CEST 2008 net/tinyos/comm/TOSSerial.class<br>&nbsp;&nbsp; 345 Sat Aug 09 13:18:18 CEST 2008
 net/tinyos/comm/UnsupportedCommOperationException.class<br>&nbsp; 4262 Sat Aug 09 11:43:18 CEST 2008 net/tinyos/mviz/images/tmote_sky.gif<br>142143 Sat Aug 09 11:43:18 CEST 2008 net/tinyos/mviz/images/tmote_sky.jpg<br>&nbsp; 1636 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/AbstractSource.class<br>
&nbsp; 5234 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/BuildSource.class<br>&nbsp;&nbsp; 195 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/PacketListenerIF.class<br>&nbsp;&nbsp; 370 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/PacketSource.class<br>
&nbsp;&nbsp; 795 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/ParseArgs.class<br>&nbsp;&nbsp; 166 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/PhoenixError.class<br>&nbsp; 1114 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/PhoenixSource$1.class<br>
&nbsp; 3777 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/PhoenixSource.class<br>&nbsp; 1099 Sat Aug 09 13:18:16 CEST 2008
 net/tinyos/packet/Platform.class<br>&nbsp; 1536 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/SFProtocol.class<br>&nbsp; 1129 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/packet/SFSource.class<br>&nbsp;&nbsp; 618 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SerialForwarder$SFMessenger.class<br>
&nbsp; 4406 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SerialForwarder.class<br>&nbsp; 3337 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFClient.class<br>&nbsp; 1992 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFConsoleRenderer.class<br>
&nbsp; 4103 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFListen.class<br>&nbsp;&nbsp; 580 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFNullRenderer.class<br>&nbsp;&nbsp; 292 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFRenderer.class<br>&nbsp;&nbsp; 561 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFWindow$1.class<br>
&nbsp;&nbsp; 561 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFWindow$2.class<br>&nbsp;&nbsp; 820 Sat Aug 09
 13:18:16 CEST 2008 net/tinyos/sf/SFWindow$3.class<br>&nbsp;&nbsp; 903 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFWindow$4.class<br>&nbsp;&nbsp; 864 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFWindow$5.class<br>&nbsp; 7480 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/sf/SFWindow.class<br>
&nbsp;&nbsp; 894 Sat Aug 09 13:18:20 CEST 2008 net/tinyos/sim/InputVariables.class<br>&nbsp;11411 Sat Aug 09 13:18:22 CEST 2008 net/tinyos/sim/LinkLayerModel.class<br>&nbsp;&nbsp; 454 Sat Aug 09 13:18:20 CEST 2008 net/tinyos/sim/OutputVariables.class<br>
&nbsp; 1179 Sat Aug 09 13:18:22 CEST 2008 net/tinyos/util/Crc.class<br>&nbsp; 7461 Sat Aug 09 13:18:24 CEST 2008 net/tinyos/util/DiagMsg.class<br>&nbsp; 1269 Sat Aug 09 13:18:24 CEST 2008 net/tinyos/util/Dump.class<br>&nbsp;&nbsp; 842 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/util/Env.class<br>
&nbsp;&nbsp; 157 Sat Aug 09 13:18:16 CEST 2008 net/tinyos/util/Messenger.class<br>&nbsp;&nbsp; 701 Sat Aug 09 13:18:24 CEST 2008
 net/tinyos/util/PrintStreamMessenger.class<br>##################################################################<br><br>
</div>Cyril<div><br></div>
</div>
<br>
</div>
<br>_______________________________________________<br>
Tinyos-help mailing list<br><a rel="nofollow" ymailto="mailto:Tinyos-help <at> millennium.berkeley.edu" target="_blank" href="mailto:Tinyos-help <at> millennium.berkeley.edu">Tinyos-help <at> millennium.berkeley.edu</a><br><a rel="nofollow" target="_blank" href="https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help">https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
<br>
</div>
ivi610 | 2 Dec 08:06 2008
Picon

Re: Using GPS module on MTS420CA

Hello
there does exist the driver, in Moteworks for sure, and i remember i have seen another driver for the gps from another contributer.
Bye
Cyril


<div>
<div>Hello<br>there does exist the driver, in Moteworks for sure, and i remember i have seen another driver for the gps from another contributer.<br><div>Bye <br>
</div>Cyril<div><br></div>
</div>
<br>
</div>
Bo Zhu | 2 Dec 12:25 2008
Picon

the status of SPI is always 0xFF (have used Resource, CSN interfaces)

environment: micaz, tinyos 2.10, mib510, ubuntu 8.10

I am trying to write and read some ram data via SPI, and also perform some basic command such as SNOP to get the status of SPI.
But what I read from the SPI are all 0xFF, and the status of SPI is always 0xFF.
I have used the Resource interface to gain the access of SPI and pull down the CSN, just as follows:

event void SpiResource.granted() {
    cc2420_status_t status;
   
    call CSN.clr();
    status = call SNOP.strobe();
    call CSN.set();
    releaseSpiResource();

    printf("status = %X\n", status);
    printfflush();
}

Does anybody know why? Do I miss something important?

The attachment of this email is a full project for test (very simple, the main file has only 70 lines).
Could some help me take a look or have a try? (make install, run the printf.sh, and reset the micaz mote)

Thanks in advance.
Bo Zhu
Attachment (TestRead.zip): application/zip, 2074 bytes
<div>
<p>environment: micaz, tinyos 2.10, mib510, ubuntu 8.10<br><br>I am trying to write and read some ram data via SPI, and also perform some basic command such as SNOP to get the status of SPI.<br>But what I read from the SPI are all 0xFF, and the status of SPI is always 0xFF.<br>
I have used the Resource interface to gain the access of SPI and pull down the CSN, just as follows:<br><br></p>
<div>event void SpiResource.granted() {<br>&nbsp;&nbsp;&nbsp; cc2420_status_t status;<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; call CSN.clr();<br>
&nbsp;&nbsp;&nbsp; status = call SNOP.strobe();<br>&nbsp;&nbsp;&nbsp; call CSN.set();<br>&nbsp;&nbsp;&nbsp; releaseSpiResource();<br><br>&nbsp;&nbsp;&nbsp; printf("status = %X\n", status);<br>&nbsp;&nbsp;&nbsp; printfflush();<br>}<br>
</div>
<br>Does anybody know why? Do I miss something important?<br><br>The attachment of this email is a full project for test (very simple, the main file has only 70 lines).<br>Could some help me take a look or have a try? (make install, run the printf.sh, and reset the micaz mote)<br><br>
Thanks in advance.<br>Bo Zhu<br>
</div>
Victor Cionca | 2 Dec 13:41 2008
Picon

Possible TinySec byteReceived bug

Hello,

I was examining the TinySec code and I stumbled on what I think is a
bug. Please correct me if I'm wrong.

In TinySecM, in TinySecRadio.byteReceived we have this code:

698   async event result_t TinySecRadio.byteReceived(uint8_t byte) {
  699     int8_t macRecCount=-1, decryptRecCount=-1;
  700     if(RxByteCnt < rxlength) {
  701       // this branch statement is a hack for when we skip
  702       // over the IV for non-encrypted packets. we add the TINYSEC_IV_SIZE
  703       if(RxByteCnt == offsetof(struct TinySec_Msg,iv) && !rxdecrypt) {
  704 	       RxByteCnt += TINYSEC_IV_LENGTH;
  705 	       ((uint8_t *) ciphertext_rec_ptr)[(int)RxByteCnt] = byte;
  706 	       RxByteCnt++;
  707 	       macRecCount = ((RxByteCnt - TINYSEC_IV_LENGTH) & (blockSize-1)) +
  708 	       TINYSEC_IV_LENGTH;
  709 	       decryptRecCount = RxByteCnt - offsetof(struct TinySec_Msg,enc);
  710       } else {
  711 	       ((uint8_t *) ciphertext_rec_ptr)[(int)RxByteCnt] = byte;
  712 	       RxByteCnt++;
  713 	       macRecCount = RxByteCnt & (blockSize-1);
  714 	       decryptRecCount = RxByteCnt - offsetof(struct TinySec_Msg,enc);
  715       }
  716     } else if(RxByteCnt < rxlength + TINYSEC_IV_LENGTH) {
  717          ciphertext_rec_ptr->mac[RxByteCnt-rxlength] = byte;
  718          RxByteCnt++;
  719     }

On line 716 we check to see if we passed the payload part and should
start receiving the MAC. rxlength is computed as 

rxlength = TINYSEC_MSG_DATA_SIZE-TINYSEC_MAC_LENGTH;

The test on line 716 will allow copying TINYSEC_IV_LENGTH bytes into the
mac. Because MAC and IV are both 4 bytes, this does not pose any
problems. However, if we use a MAC longer than than 4 bytes we will have
errors.

I think it should be 

716 } else if(RxByteCnt < rxlength + TINYSEC_MAC_LENGTH) {

This repeats on line 814 of the same function which tests if the entire
MAC is received and ready to be verified against the computed MAC.

Again, forgive me if I am wrong.

Best regards,
Victor Cionca


Gmane