[Tinyos-help] Reg:Moteview Error

2010-11-01 Thread SHIVASANKAR GANESAN
Hi
While connecting to node (with MDA100CB sensor) to PC Moteview
(through MIB520) in Live mode, I am getting


Serve Message:

Starting xserve:

  xserve -s=COM3 -b=57600 -l
-xmlfile=XmlStream.xml -xmlp -xmlport=9005

 

XSERVE 2.0.E: $Id:
xserve.c,v 1.8.2.3 2007/02/02 17:45:01 rkapur Exp $

Warning: Converting
Windows COM3 device to Cygwin device.

Using params: [db
parsed] [xml parsed] [server port=9001]

Opening serial device: /dev/ttyS2 @ 57600


Error Message:

System.NullReferenceException:
Object reference not set to an instance of an object.

   at
XBow.Plugin.Topology.MoteMapIsoBar.DrawMoteGlow(UInt16 nodeid, String sensor)

 

And I am not getting any data or Node health in Moteview.

Do I need to set anything in Moteview. Help me to view data
in Moteview.   With regards  Sivasankar  

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

Re: [Tinyos-help] CTP neighbor eviction procedure

2010-11-01 Thread wasif masood
Yes, I think it would be troublesome if one neighbor completely vanishes
from the vicinity of a node because in that case node will always be
transmitting 3 byte additional overhead in terms of the reverse link
neighbour quality.


On Fri, Oct 29, 2010 at 8:59 PM, Omprakash Gnawali
gnaw...@cs.stanford.eduwrote:

 On Thu, Oct 28, 2010 at 6:16 AM, wasif masood rwmas...@gmail.com wrote:
 
 
  I am wondering how CTP evicts a complelety dead neighbor? because the
 normal
  procedure is this:
 
  1-
  if (curr_seq - pre_seq  10)
remove the neighbor
 
  if(nieghbortable full)
remove the most loss neighbor
 
  now what will happen, if there is still some space in NeighborTable and
 its
  not possible to receive any packet from a neighbor because this case does
  not hold for any above conditions

 You will keep the node around. Do you see any problem with this?

 - om_p




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

Re: [Tinyos-help] Reg:MDA 100CB in Micaz mote (SHIVASANKAR GANESAN)

2010-11-01 Thread Abhishek Singh
hi,
you are trying to connect through a wrong COM port that i suppose as finding
COM3 as higher port is near to impossible in windows, in normal cases you
will get some port between 9 to 15.Check your port number in
MyComputer-manage-PORT and use the higher port allotted to MIB520 in
MoteView.

have a detailed tutorial to workout step by step.If you need give me a your
mail id.And one more thing are you sure you are using Micaz as crossbow
supplies normally IRIS motes with MIB520.

Regards
Abhishek Singh

On Mon, Nov 1, 2010 at 3:23 PM, tinyos-help-requ...@millennium.berkeley.edu
 wrote:

 Send Tinyos-help mailing list submissions to
tinyos-help@millennium.berkeley.edu

 To subscribe or unsubscribe via the World Wide Web, visit

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

 or, via email, send a message with subject or body 'help' to
tinyos-help-requ...@millennium.berkeley.edu

 You can reach the person managing the list at
tinyos-help-ow...@millennium.berkeley.edu

 When replying, please edit your Subject line so it is more specific
 than Re: Contents of Tinyos-help digest...


 Today's Topics:

   1. Documentation generator for nesc code (Yi Tang)
   2. Reg:MDA 100CB in Micaz mote (SHIVASANKAR GANESAN)
   3. Re: Deluge sample (Chieh-Jan (Mike) Liang)
   4. Reg:No rule to target Micaz (SHIVASANKAR GANESAN)
   5. Reg:Moteview Error (SHIVASANKAR GANESAN)
   6. Re: CTP neighbor eviction procedure (wasif masood)


 --

 Message: 1
 Date: Sun, 31 Oct 2010 18:25:42 -0400
 From: Yi Tang yitan...@gmail.com
 Subject: [Tinyos-help] Documentation generator for nesc code
 To: tinyos-help tinyos-help@millennium.berkeley.edu
 Message-ID:
aanlkti=qeitbvypsqxy4k0y8uxq6bg9yqzvo1l2q8...@mail.gmail.com
 Content-Type: text/plain; charset=iso-8859-1

 Hey All,

 I'm trying to find a nesc code documentation generator or nesc extensions
 for popular generator (Doxygen, etc.). Anyone has ideas of this?

 Thanks!

 Yi
 --
 Yi Tang
 Laboratory of Secure  HIgh-performance NEtworks (SHINE)
 Bradley Department of Electrical and Computer Engineering
 Virginia Tech
 -- next part --
 An HTML attachment was scrubbed...
 URL:
 https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20101031/206e5b3d/attachment-0001.htm

 --

 Message: 2
 Date: Mon, 1 Nov 2010 10:05:40 +0530 (IST)
 From: SHIVASANKAR GANESAN tata...@yahoo.co.in
 Subject: [Tinyos-help] Reg:MDA 100CB in Micaz mote
 To: Berekely univ tinyos-help@millennium.berkeley.edu
 Message-ID: 929147.19635...@web137401.mail.in.yahoo.com
 Content-Type: text/plain; charset=utf-8




 Hi,

 ?

 ?I am using two MicaZ (2.4GHz)
 with MDA100CB sensor boards and programmed via

 MIB520 and trying to use MoteView to monitor the motes. I didn?t get
 any sensor data in Moteview.

 ?

 Serve Message:

 XSERVE 2.0.E: $Id: xserve.c,v 1.8.2.3 2007/02/02 17:45:01 rkapur
 Exp $

 Warning: Converting Windows COM3 device to Cygwin device.

 Using params: [db parsed] [xml parsed] [server port=9001]

 Opening serial device: /dev/ttyS2 @ 57600

 Process aborted: xserve2/bin/xserve.exe

 Error Message:

 System.NullReferenceException: Object reference not set to an
 instance of an object.

 ?? at
 XBow.Plugin.Topology.MoteMapIsoBar.DrawMoteGlow(UInt16 nodeid, String
 sensor)

 ?

 I am struggling with it for a period time trying to figure out
 what is the problem.

 ?

 Thanks a lot.

 ?

 ?With regards  Sivasankar

 -- next part --
 An HTML attachment was scrubbed...
 URL:
 https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20101101/54930ecb/attachment-0001.htm

 --

 Message: 3
 Date: Mon, 1 Nov 2010 00:44:35 -0400
 From: Chieh-Jan (Mike) Liang clia...@cs.jhu.edu
 Subject: Re: [Tinyos-help] Deluge sample
 To: Puya Ghazizadeh ghp...@gmail.com
 Cc: tinyos-help@millennium.berkeley.edu
 Message-ID: 827ebd37-c2ed-4f18-b47c-279c48b38...@cs.jhu.edu
 Content-Type: text/plain; charset=us-ascii

 $TOSROOT is a shell variable pointing to the root of your TinyOS directory.
 You probably have already set it up during installation.

 Mike

 On Oct 31, 2010, at 12:28 PM, Puya Ghazizadeh wrote:

  I have tinyos 2.1.0. I want to run Deluge sample on iris motes. Base on
 manual in http://docs.tinyos.net/index.php/Deluge_T2 first step is:
   % cd $TOSROOT/tools
   % ./Bootstrap
   ...
   % ./configure
   ...
   % cd tinyos/misc
   % make ; make install
  but I can find $TOSROOT folder in my tinyos folder!
  Where is that folder?
  Thanks,
  Puya
 
  ___
  Tinyos-help mailing list
  Tinyos-help@millennium.berkeley.edu
  https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help




 --

 Message: 4
 Date: Mon, 1 Nov 2010 11:11:19 +0530 (IST)
 From: SHIVASANKAR GANESAN

Re: [Tinyos-help] SerialForwarder tossim-serial option

2010-11-01 Thread Jose Francisco Mingorance Puga
I have not been able to solve the problem, however I found out that tinyos
1.x has this class and I put it in my tree but there are still some clasess
missing that are neither in tinyos 2.x nor in tinyos 1.x ...

Any new on your side ?

On Sun, Oct 31, 2010 at 18:30, Jose jose.mingora...@gmail.com wrote:


 Jatindera Walia jatinderasingh at gmail.com writes:

 
  Tried to run sf with tossim-serial option and got the error : Couldn't
  instantiate tossim packet source. Did you compile tossim?
 
  Traced it to net.tinyos.packet.BuildSource.java function
  private static PacketSource makeTossimSource(String name, String host) ;
 
  It is looking for net.tinyos.sim.packet.TossimSerialSource class.
 
  Any ideas on the location of corresponding java file?
 
  Thanks
  Jay
 


 Exact same problem here, any solution?


 -
 -
 -
 -
 -
 -
 -
 -
 -
 -
 -
 -
 -
 -
 -
 -
 -
 -









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

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

[Tinyos-help] message received

2010-11-01 Thread lucky eyes


Hi all,

event TOS_MsgPtr ReceiveMsg.receive(TOS_MsgPtr m) {
CounterMessage *message = (CounterMessage*)m-data;

   message-value1 = D1;
  
  message-value2 =D2   ;
  message-value3 = D3;
 
return m;
  }

D1,D2 and D3 are sent via broadcast in a message.Is it possible to
assign these values in  value1,value2 and value3?

I tried it and there is no error but i don't know It is assigned or not.


Best Wishes

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

Re: [Tinyos-help] message received

2010-11-01 Thread Urs Hunkeler
Hi,

I'm not sure what exactly you want to do here. In the receive method you 
get a pointer to an object with data you just received. The value you 
received is e.g., message-value1. With the line message-value1 - 
D1; you are overwriting this value (you never read it). Finally, you 
return the pointer to the object with the data, and it will be 
overwritten in the future when the system receives more messages. This 
will compile, but has no visible effect.

If you want to store the data you received into the variable D1, you'll 
have to write D1 = message-value1;. This will change the value of D1 
to the value that you received in the broadcast message.

Cheers,
Urs


On 11/01/2010 03:21 PM, lucky eyes wrote:

 Hi all,

 event TOS_MsgPtr ReceiveMsg.receive(TOS_MsgPtr m) {
 CounterMessage *message = (CounterMessage*)m-data;

 message-value1 = D1;

 message-value2 =D2 ;
 message-value3 = D3;

 return m;
 }

 D1,D2 and D3 are sent via broadcast in a message.Is it possible to
 assign these values in value1,value2 and value3?

 I tried it and there is no error but i don't know It is assigned or not.


 Best Wishes

 AQAnsari



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

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


[Tinyos-help] Forwarding Msg

2010-11-01 Thread ¯`•._.•Lance•._.•´¯
Hi all,

Currently i am working on a project : is about tracking the target inside
the mesh network.I will have three types  of node ..

1) *Target *: Only board casting the message which contain  Hop count , node
i d, and temperature

2,)*Relay * : Received the bcast  and check the Node it ..if the Id is from
the target  increase the hop count  if the ID is from  other relay  increase
the hop count inside the msg by 1  and re boardcast the msg.

3)*Ancho*r : Received the bcast and check the node  ID just like the realy
.. but this time the anchor will send the msg directly to the base satation
which is within the transmisssion range by fixing the address in the msg.
*
Implementation... *
Assume we have four anchors( position is alrady known) arrange into square
form.the distance between the any two anchor is two transmisssion range
distance , Some realy node in between . Forming a mesh network and  track
the target by looking at the hop count from each Anchor.

Now my problem is that if i put the base station close to one of the Anchor
(A1) .then i am not able to receive the infromation from the rest of the
anchor A2,A3,A4.  SO now i wan to  forward the information from Each anchor
back to the base without changing any information. IS that possibile?

Currently my program code is working fine for every anchor just that i don't
know how to forward the message back to station .

HOpe you can understand what i mean..I really need ur value advices.

Pls help  me and looking forward to ur reply.

Thanks for ur time.
Regards,
lance
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] message received

2010-11-01 Thread lucky eyes


Thanks Sir, I am clear now.

 Date: Mon, 1 Nov 2010 15:52:58 +0100
 From: urs.hunke...@epfl.ch
 To: engr_aqans...@hotmail.com
 CC: tinyos-help@millennium.berkeley.edu
 Subject: Re: [Tinyos-help] message received
 
 Hi,
 
 I'm not sure what exactly you want to do here. In the receive method you 
 get a pointer to an object with data you just received. The value you 
 received is e.g., message-value1. With the line message-value1 - 
 D1; you are overwriting this value (you never read it). Finally, you 
 return the pointer to the object with the data, and it will be 
 overwritten in the future when the system receives more messages. This 
 will compile, but has no visible effect.
 
 If you want to store the data you received into the variable D1, you'll 
 have to write D1 = message-value1;. This will change the value of D1 
 to the value that you received in the broadcast message.
 
 Cheers,
 Urs
 
 
 On 11/01/2010 03:21 PM, lucky eyes wrote:
 
  Hi all,
 
  event TOS_MsgPtr ReceiveMsg.receive(TOS_MsgPtr m) {
  CounterMessage *message = (CounterMessage*)m-data;
 
  message-value1 = D1;
 
  message-value2 =D2 ;
  message-value3 = D3;
 
  return m;
  }
 
  D1,D2 and D3 are sent via broadcast in a message.Is it possible to
  assign these values in value1,value2 and value3?
 
  I tried it and there is no error but i don't know It is assigned or not.
 
 
  Best Wishes
 
  AQAnsari
 
 
 
  ___
  Tinyos-help mailing list
  Tinyos-help@millennium.berkeley.edu
  https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
 
  ___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] uninstall tinyos 2.1.0 on ubuntu and install tinyos 2.1.1

2010-11-01 Thread Pipo
I want to uninstall tinyos 2.1.0 on ubuntu and install tinyos 2.1.1
what is the command for unistall?
where can I install tinyos 2.1.1?

Thanks,

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

Re: [Tinyos-help] uninstall tinyos 2.1.0 on ubuntu and install tinyos 2.1.1

2010-11-01 Thread wasif masood
take a backup of your tinyos.2.1.0 using mv command, then follow these
instructions:

there is no specific command needed, just follow this link:

http://docs.tinyos.net/index.php/Installing_TinyOS_2.1.1#Manual_installation_on_your_host_OS_with_RPMs


use the method stated as : its simple.
Two-step install on your host OS with Debian packages

On Mon, Nov 1, 2010 at 7:31 PM, Pipo cslab...@gmail.com wrote:

 I want to uninstall tinyos 2.1.0 on ubuntu and install tinyos 2.1.1
 what is the command for unistall?
 where can I install tinyos 2.1.1?

 Thanks,

 Pipo

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




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

Re: [Tinyos-help] CTP neighbor eviction procedure

2010-11-01 Thread Omprakash Gnawali
On Mon, Nov 1, 2010 at 2:52 AM, wasif masood rwmas...@gmail.com wrote:

 Yes, I think it would be troublesome if one neighbor completely vanishes
 from the vicinity of a node because in that case node will always be
 transmitting 3 byte additional overhead in terms of the reverse link
 neighbour quality.

Good point! If you want to fix that, you should expire the
entry after a certain number of maximum Trickle intervals. I don't
know how big of a problem this is so I am not convinced yet if we
should make this change.

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


[Tinyos-help] Bug with the avr-gcc, how to udpate to the last version on ubuntu

2010-11-01 Thread Pfister Loic
Hello everybody,

When I tried to compile my tinyos code where there is some machine code. I have 
the following error :
BintM.nc:394: error: can't find a register in class 'BASE_POINTER_REGS' while 
reloading 'asm'

Where the problem come from the fact there is some asm volatile
asm volatile (
   push r2 \n
   push r3 \n
   push r26\n
   push r27\n
   push r30\n
   push r31\n
1: \n
   ld r2, Z+   \n
   ld r3, X\n
   lsr %0  \n
   sbc r3, r2  \n
   rol %0  \n
   st X+, r3   \n
   dec %1  \n
   brne 1b \n
   pop r31 \n
   pop r30 \n
   pop r27 \n
   pop r26 \n
   pop r3  \n
   pop r2  \n
:+r(borrow), +r(nwords)
:z(a), x(b)
:r2, r3
);


I search the web for the bug and I found it
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31786

This bug has been solve since the version 4.4 of avr-gcc

The problem is I have the version 4.1.2
/usr/lib/gcc/avr/4.1.2

And I am using ubuntu and I install the debian package for tinyos.




How can I update the gcc avr to the version 4.4 ?


Thanks a lot :)

Best

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

Re: [Tinyos-help] CTP: CtpForwardingEngineP component error

2010-11-01 Thread Dongyu Yang
Hello!

The return value is EBUSY. The AM layer do not promise signal
AMSend.sendDone
event, if the return value is not SUCCESS when call AMSend.send().
 Because in the component AMQueueImplP, when call Send.send() it may
return
EBUSY in two place, as show below:

generic module AMQueueImplP(int numClients) @safe() {
  provides interface Send[uint8_t client];
  uses{
interface AMSend[am_id_t id];
interface AMPacket;
interface Packet;
  }
}implementation {
  ..
  command error_t Send.send[uint8_t clientId](message_t* msg, uint8_t
len) {
if (clientId = numClients) {
  return FAIL;
}
if (queue[clientId].msg != NULL) {
return EBUSY; //
.(1)
}
dbg(AMQueue, AMQueue: request to send from %hhu (%p): passed
checks\n, clientId, msg);

queue[clientId].msg = msg;
call Packet.setPayloadLength(msg, len);

if (current = numClients) { // queue empty
  error_t err;
  am_id_t amId = call AMPacket.type(msg);
  am_addr_t dest = call AMPacket.destination(msg);

  dbg(AMQueue, %s: request to send from %hhu (%p): queue
empty\n, __FUNCTION__, clientId, msg);
  current = clientId;

  err = call AMSend.send[amId](dest, msg,
len);//.(2)
  if (err != SUCCESS) {
dbg(AMQueue, %s: underlying send failed.\n,
__FUNCTION__);
current = numClients;
queue[clientId].msg = NULL;

  }
  return err;
}
else {
  dbg(AMQueue, AMQueue: request to send from %hhu (%p):
queue not empty\n, clientId, msg);
}
return SUCCESS;
  }
 ..
}

 If the EBUSY is returned from (1), it is OK, and the Send.sendDone
event will be
signaled for the client who call it later; but if the EBUSY is returned from
(2), the
problem arise, it do not signal the Send.sendDone event for the client who
call it, but
it will only signal the Send.sendDone event for another client whose AM ID
is different
from the current client later.
I find this phenomenon arises when the EBUSY value return from (2). So
it may be
the component AMQueueImplP have some problem, it can not guarantee the same
semantic for the EBUSY.


Best regards!



2010/10/30 Omprakash Gnawali gnaw...@cs.stanford.edu

 On Sat, Oct 23, 2010 at 12:25 AM, Dongyu Yang yangdy.n...@gmail.com
 wrote:
   I have tested this: when one Node (A) happened this phenomenon, I reduce
  the dissemination rate
  to once ever 10 seconds, and stop the other Nodes, this phenomenon exist
  still, the Node (A) can
  only receive the dissemination command, but can never send out data!
  I think it is not cased by the channel capacity, but because in
 Send.send()
  the
  clientPtrs[client]  be set NULL;
 
  command error_t Send.send[uint8_t client](message_t* msg, uint8_t len) {
  ..
if (call SendQueue.enqueue(qe) == SUCCESS) {
  if (radioOn  !call RetxmitTimer.isRunning()) {
post sendTask();
  }
  clientPtrs[client] = NULL;
  return SUCCESS;
}
  ..
  }
  if it do not deal with the EBUSY and FAIL state in the else condition, it
  will remain NULL. So the
  next when call Send.send() it return EBUSY, because the
 clientPtrs[client]
  only be reseted
  in the void packetComplete() function  which be called in the event
 void
  SubSend.sendDone()
  as below:
 
  command error_t Send.send[uint8_t client](message_t* msg, uint8_t len) {
 
..
 
if (clientPtrs[client] == NULL) {
  dbg(Forwarder, %s: send failed as client is busy.\n,
  __FUNCTION__);
  return EBUSY;
}
..
  }
 
 
  void packetComplete(fe_queue_entry_t* qe, message_t* msg, bool success) {
  
  if (qe-client  CLIENT_COUNT) {
  clientPtrs[qe-client] = qe;
 
  
 }
  
  }
  because the command SubSend.send() return not SUCCESS, so the  event
  SubSend.sendDone() will not signal, so the clientPtrs[client] remain
 NULL.

 The return value is either FAIL or EBUSY in that else block.
 If it is FAIL, we should wait until the condition that resulted in
 FAIL is repaired. If it is EBUSY, that means we should wait
 until sendDone.

 I think we are handing the EBUSY case properly.

 There is a possibility that we are not handing all the possible cases
 that can result in FAIL.

 I understand posting sendTask solved your problem but I want to
 understand why it works and if there is any FAIL condition that we do
 not handle properly before committing the fix. Do you know what return
 value you were 

[Tinyos-help] Broken Java SDK in Cygwin RPM

2010-11-01 Thread Romain Bornet
Hi all,

I'm new in TOS world and just installed a TOS environment on my Cygwin
environment. I could compile some basic application such as Blink but fail
to compile applications involving the tinyos.jar Java archive (e.g.
apps/MViz).

I installed from RPMs as described at
http://docs.tinyos.net/index.php/Installing_TinyOS_2.1.1#Manual_installation_on_your_host_OS_with_RPMs

The installed RPM for TOS is the one given in the step-by-step install
guide:
http://tinyos.stanford.edu/tinyos-rpms/tinyos-tools-1.4.0-3.cygwin.i386.rpm

When running *make telosb* in apps/MViz the make process terminates with a
bunch of errors:

v...@a05pc01-vb /opt/tinyos-2.x/apps/MViz
$ make telosb
mkdir -p build/telosb
javac MVizMsg.java
*MVizMsg.java:7: package net.tinyos.message does not exist*
public class MVizMsg extends net.tinyos.message.Message {
   ^
*MVizMsg.java:67: package net.tinyos.message does not exist*
public MVizMsg(net.tinyos.message.Message msg, int base_offset) {
 ^
MVizMsg.java:76: package net.tinyos.message does not exist
public MVizMsg(net.tinyos.message.Message msg, int base_offset, int
data_length) {
 ^
MVizMsg.java:18: cannot find symbol
symbol  : method amTypeSet(int)
location: class MVizMsg
amTypeSet(AM_TYPE);
^
...

My CLASSPATH is set correctly but the problem comes from the tinyos.jar
archive which effectively does not contain the message package...
A dump of the JAR content with $ jar tvf tinyos.jar shows that the
bet.tinyos.message package is missing (and perhaps others).

I then tried to rebuild myself the JAR with *make tinyos.jar*
in /opt/tinyos-2.x/support/sdk/java but this also fails (build log in
attached jar_build.txt).

I think that the available Cygwin RPM is somehow corrupt. What is the best
way to go on for me now without having to re-install everything? May I
simply replace my tinyos.jar with one downloaded from CVS ?

Thanks for your help!
Romain
... /opt/tinyos-2.x/support/sdk/java
make[1]: Entering directory `/opt/tinyos-2.x/support/sdk/java/net'
... /opt/tinyos-2.x/support/sdk/java/net
make[2]: Entering directory `/opt/tinyos-2.x/support/sdk/java/net/tinyos'
... /opt/tinyos-2.x/support/sdk/java/net/tinyos
make[3]: Entering directory `/opt/tinyos-2.x/support/sdk/java/net/tinyos/packet'
... /opt/tinyos-2.x/support/sdk/java/net/tinyos/packet
ncg -o Serial.java -java-classname=net.tinyos.packet.Serial java 
/opt/tinyos-2.x/tos/lib/serial/Serial.h Serial.h
javac Serial.java
javac AbstractSource.java
AbstractSource.java:37: package net.tinyos.util does not exist
import net.tinyos.util.*;
^
AbstractSource.java:46: cannot find symbol
symbol: class PacketSource
abstract public class AbstractSource implements PacketSource
^
AbstractSource.java:50: cannot find symbol
symbol  : class Messenger
location: class net.tinyos.packet.AbstractSource
protected Messenger messages;
  ^
AbstractSource.java:65: cannot find symbol
symbol  : class Messenger
location: class net.tinyos.packet.AbstractSource
synchronized public void open(Messenger messages) throws IOException {
  ^
4 errors
make[3]: *** [AbstractSource.class] Error 1
make[3]: Leaving directory `/opt/tinyos-2.x/support/sdk/java/net/tinyos/packet'
make[3]: Entering directory 
`/opt/tinyos-2.x/support/sdk/java/net/tinyos/message'
... /opt/tinyos-2.x/support/sdk/java/net/tinyos/message
mig -o SerialPacket.java -java-classname=net.tinyos.message.SerialPacket java 
/opt/tinyos-2.x/tos/lib/serial/Serial.h serial_packet 
-I/opt/tinyos-2.x/tos/types
warning: Cannot determine AM type for serial_packet
 (Looking for definition of AM_SERIAL_PACKET)
javac SerialPacket.java
SerialPacket.java:9: cannot find symbol
symbol  : class Message
location: package net.tinyos.message
public class SerialPacket extends net.tinyos.message.Message {
^
SerialPacket.java:69: cannot find symbol
symbol  : class Message
location: package net.tinyos.message
public SerialPacket(net.tinyos.message.Message msg, int base_offset) {
  ^
SerialPacket.java:78: cannot find symbol
symbol  : class Message
location: package net.tinyos.message
public SerialPacket(net.tinyos.message.Message msg, int base_offset, int 
data_length) {
  ^
SerialPacket.java:20: cannot find symbol
symbol  : method amTypeSet(int)
location: class net.tinyos.message.SerialPacket
amTypeSet(AM_TYPE);
^
SerialPacket.java:26: cannot find symbol
symbol  : method amTypeSet(int)
location: class net.tinyos.message.SerialPacket
amTypeSet(AM_TYPE);
^
SerialPacket.java:35: cannot find symbol
symbol  : method amTypeSet(int)
location: class net.tinyos.message.SerialPacket
amTypeSet(AM_TYPE);
^

[Tinyos-help] How to use DBG command in cygwin

2010-11-01 Thread Kiran Koneri
Hello Everyone,

I am using cywin - tos2.x
Could any one suggest me how to print dbg comments in cywin?
For example, dbg environment path setting and related commands.

Thank you,
with Regards
Kiran Kumar
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] unable to receive UART frame

2010-11-01 Thread Joarod

Hi again. First at all, thanks for your answer.

And first at all again, I haven't give enough data. Sorry for this.

I'm a Spanish student working in a thesis about sensors networks. The
hardware is a mote based on a ZigBit900 module from Atmel. You can find more
technical specifications at:

http://cv.uoc.edu/app/mediawiki14/wiki/P%C3%A0gina_principal
http://cv.uoc.edu/app/mediawiki14/wiki/Inici
http://cv.uoc.edu/app/mediawiki14/wiki/Hardware_COU_1_1

Trying to test Mote-PC communication and following the tutorial indications
for TestSerial, I cannot see any leds blinking (like Mario initially). Then,
when comment all lines of the event Receive.receive to ensure that only the
red led gets on, still no blinking. So I concluded that this event doesn't
execute.

Communication mote -- PC is ok. I can see the received packets on a
terminal. I cannot figure what's happen for the other way PC -- mote, and
why this event doesn't work normally. Are the mote discarding packets
because a CRC error, for example? It's a baudrate (57600) problem? May be a
problem about USB port?

I have seen that some people had this problem, but no solutions were
revealed.

I will appreciate any help.

Regards,
Joaquín


Urs Hunkeler-2 wrote:
 
 Hi,
 
 Why do you think you have the same problem? It is very important to 
 clearly identify the problem before you can solve it. The problem 
 described below was that Mario wrote his own interface program on the PC 
 and he was not sure about the exact data format on the serial port.
 
 What are you trying to do? Which code are you using? What hardware are 
 you using? Do you get any error messages? (If you are using the MIB510 
 programming board with mica or iris motes, make sure the switch on the 
 programming board is in the off position)
 
 Cheers,
 Urs
 
 
 On 10/30/10 1:26 PM, Joarod wrote:

 Hi,

 I have the same problem. Event receive doesn't work. How can I execute
 TestSerial succesfully without modifying internally the bytes sended
 within
 the frame?

 Thanks for any help.

 J


 Mario Riesner wrote:

 Hi Urs,

 you are right! Now my TestSerialC.nc code receives the signaled event.
 Inserting the 0x00 byte nr. 4 (TOS_SERIAL_ACTIVE_MESSAGE_ID) solved my
 problem.
 Thanks for your help.

 Cheers,
 Mario


 -Ursprüngliche Nachricht-
 Von: Urs Hunkeler [mailto:urs.hunke...@epfl.ch]
 Gesendet: Freitag, 22. Oktober 2010 14:10
 An: mariories...@gmx.de
 Cc: tinyos-help@Millennium.Berkeley.EDU
 Betreff: Re: AW: AW: AW: AW: [Tinyos-help] unable to receive UART frame

 Hi Mario,

 The default event is indeed only called if no wiring has been specified.
 This could have two reasons: (1) you have a wiring problem (as you
 suggested), or (2) or the type of the message (the value in the square
 brackets [] before the function parameters) is not the expected value.

 Personally, since this is not a value that you specify yourself in the
 code, I'd go with option (2). In SerialActiveMessageC the
 SerialDispatcherC.Receive is wired for TOS_SERIAL_ACTIVE_MESSAGE_ID,
 which is defined in Serial.h as 0. Without spending more time analyzing
 the code I think this means the following. The framing protocol used by
 the serial connection supports multiplexing different types of messages
 (why ever they would need this). The ID of the messages used for TinyOS
 communication is 0, your PC-based code could be sending a frame type
 different from 0.

 Ok, I looked a bit more into it:

 Byte 2 (Framer-level dispatch) is set to 0x45 = 69 =
 SERIAL_PROTO_PACKET_ACK, which is the only frame type that is handled
 (see SerialP.nc).

 Byte 3 (as expected in SerialP.nc) seems to be a sequence number (so
 make sure to increment it :-) ).

 (here you seem to miss a byte in your list)

 Byte 4  is the frame data type If my reading of the source code is
 correct, this value would need to be 0 (TOS_SERIAL_ACTIVE_MESSAGE_ID).

 Byte 5-6: destination address (see Serial.h, serial_header)

 Byte 7-8: source address (see Serial.h, serial_header)

 Byte 9: length (see Serial.h, serial_header)

 Byte 10 would be the group ID (see serial_header in Serial.h). The group
 ID is used to logically separate different sensor networks sharing the
 same radio channel.

 Byte 11: AM type (see Serial.h, serial_header)


 Let me know whether inserting the missing Byte 4 (frame data type) with
 a value of 0 solves your problems (you might need to update the
 checksum).

 Cheers,
 Urs


 On 10/22/2010 12:40 PM, Mario Riesner wrote:
 Hi Urs,

 the official baud rate is 57600 but the AVR ATMega1281 on my platform
 (Meshbean) should use double rate for the UART but the controller does
 not use double rate even though the flag is set (should be set??). I
 think the accuracy at 57600 is not high enough. Using the baud rate
 38400
 the error (jitter) is less and it works. The modules uses a RC
 oscillator
 instead of a crystal this circumstances affects less clock accuracy.

 Now the received data and the signaled event ends in the
 

[Tinyos-help] msp430-jtag is a tool and how to wirte tinyos-program to msp430 by usb-serial

2010-11-01 Thread 刘学
Hello,

May I ask some quetions?
I want to know whether this tool (msp430-jtag) is contained in tinyos-2.x. I 
have run the command make telosb jtag install,it returns msp430-jtag 
:command not found.

Regards,

David.L

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

[Tinyos-help] msp430-jtag

2010-11-01 Thread 刘学
Hello,

May I ask some quetions?
I want to know whether this tool (msp430-jtag) is contained in tinyos-2.x. I 
have run the command make telosb jtag install,it returns msp430-jtag 
:command not found.

Regards,

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

[Tinyos-help] how to distinguish between packets received at base station

2010-11-01 Thread manish chaturvedi
Hi,

I am working on RSSI based location tracking problem with micaz motes.

The scenario is as follows:
The moving node (whose location is to be tracked) broadcasts beacon signal
with seqnum, and nodeid .

There are four stationary nodes who receives this beacon packets and
extracts RSSI value from the packet.
They send the packet with RSSI value to base station which is connected to a
laptop to compute location of moving node.

The problem  I am facing is, the base station also receives the beacon
packet sent by moving node and tries to extract rssi from that packet. But
this packet do not have rssi value.

How can I distinguish between packets received from stationary node and
packet from moving node..

Thanking you,

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