[Tinyos-help] Tossim problem

2007-09-03 Thread b m
The following error occured :
   
  [EMAIL PROTECTED] Blink]# make micaz sim
  /opt/tinyos-2.x/support/make/Makerules:164: ***
   
  Usage:  make target extras
  make target help
   
  Valid targets:
  Valid extras:
   
   Welcome to the TinyOS make system!
   
   You must specify one of the valid targets and possibly some combination of
   the extra options.  Many targets have custom extras and extended help, so be
   sure to try make target help to learn of all the available features.
   
   Global extras:
   
 docs: compile additional nescdoc documentation
 tinysec : compile with TinySec secure communication
   
  ERROR, micaz sim tos-ident-flags tos_image does not specify a valid target. 
 Stop.
  [EMAIL PROTECTED] Blink]#
 
  what is the problem? , with the knowledge that i use RedHat 9.
   
  Thank you.
   

   
-
Choose the right car based on your needs.  Check out Yahoo! Autos new Car 
Finder tool.___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] visualizing mesh network topology?

2007-09-03 Thread Philip Levis

On Sep 2, 2007, at 4:50 AM, Ákos Maróy wrote:


Kevin Klues wrote:
In TinyOS 1.x this was the surge application.  In T2 its the Mviz  
application.


thanks. I looked at MViz, and I found two shortcomings in the java
application:

- it unbearingly overloads the X server on Linux
- it's 'write-only': any node or link ever entering the vizualization
app remains there forever

the first issue can be sort of remedied by make DNavigate less
frequently. at every 2 seconds sort of feels OK. but still it is slow


It turns out this depends on what VM you're using. Some have no  
problem, others are CPU bound.




I change the application to remove motes / links that are unheard  
of for
some time. I could send a patch over if you guys find this  
interesting.


That would be great.

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


Re: [Tinyos-help] visualizing mesh network topology?

2007-09-03 Thread Ákos Maróy
Philip Levis wrote:
 It turns out this depends on what VM you're using. Some have no problem,
 others are CPU bound.

this still means that there is some issue within the application.

I ran it under the JBM JDK, on Gentoo Linux (64 bit)

 I change the application to remove motes / links that are unheard of for
 some time. I could send a patch over if you guys find this interesting.
 
 That would be great.

see attached.

BTW, the line endings on some of the source files are incostitent. it's
not that it's either DOS or UNIX, but just bad :(


Akos

diff -Naur tinyos-2.0.2/opt/tinyos-2.x/support/sdk/java/net/tinyos/mviz/DDocument.java tinyos-2.0.2-mvizfix/opt/tinyos-2.x/support/sdk/java/net/tinyos/mviz/DDocument.java
--- tinyos-2.0.2/opt/tinyos-2.x/support/sdk/java/net/tinyos/mviz/DDocument.java	2006-11-06 12:57:01.0 +0100
+++ tinyos-2.0.2-mvizfix/opt/tinyos-2.x/support/sdk/java/net/tinyos/mviz/DDocument.java	2007-09-01 16:49:42.0 +0200
@@ -74,6 +74,9 @@
 private JTextField jText;
 private DrawTableModel tableModel;
 private JTable jTable;
+
+// make motes expire after 10 seconds of not hearing from them
+private static final long MAX_MOTE_AGE = 60 * 1000;
 	
 private String[] toStringArray(Vector v) {
 	String[] array = new String[v.size()];
@@ -196,6 +199,18 @@
 	navigator.addMote(m);
 	return m;
 }
+
+private void deleteMote(int moteId) {
+DMoteModel mote = (DMoteModel) moteIndex.get(moteId);
+if (mote == null) {
+return;
+}
+navigator.removeMote(mote);
+tableModel.remove(mote);
+
+moteIndex.remove(moteId);
+motes.remove(mote);
+}
 
 public void setMoteValue(int moteID, String name, int value) {
 	ValueSetEvent vsv = new ValueSetEvent(this, moteID, name, value);
@@ -211,13 +226,73 @@
 	return dl;
 }
 
+private void deleteLink(String linkId) {
+DLinkModel link = (DLinkModel) linkIndex.get(linkId);
+if (link == null) {
+return;
+}
+
+linkIndex.remove(linkId);
+links.remove(link);
+}
+
 public void setLinkValue(int startMote, int endMote, String name, int value) {
 	LinkSetEvent lsv = new LinkSetEvent(this, name, value, startMote, endMote);
 	EventQueue eq = Toolkit.getDefaultToolkit().getSystemEventQueue();
 	eq.postEvent(lsv);
 }
 
+protected void removeStaleMotes() {
+long   now  = (new Date()).getTime();
+Vector staleMoteIds = new Vector();
+
+for (Iterator it = moteIndex.entrySet().iterator();
+ it.hasNext(); ) {
+
+Map.Entry  entry = (Map.Entry) it.next();
+DMoteModel mote  = (DMoteModel) entry.getValue();
+if (now - mote.getLastReading()  MAX_MOTE_AGE) {
+staleMoteIds.add(entry.getKey());
+}
+}
+
+for (Iterator it = staleMoteIds.iterator();
+it.hasNext(); ) {
+
+Integer moteId = (Integer) it.next();
+System.out.println(removing mote  + moteId); 
+deleteMote(moteId);
+}
+}
+
+protected void removeStaleLinks() {
+long   now  = (new Date()).getTime();
+Vector staleLinkIds = new Vector();
+
+for (Iterator it = linkIndex.entrySet().iterator();
+ it.hasNext(); ) {
+
+Map.Entry  entry = (Map.Entry) it.next();
+DLinkModel link  = (DLinkModel) entry.getValue();
+if (now - link.getLastReading()  MAX_MOTE_AGE) {
+staleLinkIds.add(entry.getKey());
+}
+}
+
+for (Iterator it = staleLinkIds.iterator();
+it.hasNext(); ) {
+
+String linkId = (String) it.next();
+System.out.println(removing link  + linkId); 
+deleteLink(linkId);
+}
+}
+
 protected void processEvent(AWTEvent event) {
+removeStaleMotes();
+removeStaleLinks();
+long now = (new Date()).getTime();
+
 	if (event instanceof ValueSetEvent) {
 	ValueSetEvent vsv = (ValueSetEvent)event;
 	String name = vsv.name();
@@ -229,6 +304,7 @@
 	}
 	//System.out.println(Set  + moteID + : + name +  to  + value);
 	m.setMoteValue(name, value);
+m.setLastReading(now);
 	navigator.redrawAllLayers();
 	}
 	else if (event instanceof LinkSetEvent) {
@@ -252,6 +328,9 @@
 	}
 	//System.out.println(Setting  + name +   + startMote +  -  + endMote +  to  + value);
 	dl.setLinkValue(name, value);
+dl.setLastReading(now);
+m.setLastReading(now);
+m2.setLastReading(now);
 	navigator.redrawAllLayers();
 	}
 	else {
@@ -371,6 +450,7 @@
 	//-o
 	public void remove(DMoteModel model){
 	int row = findModel(model);
+System.out.println(found row:  + row);
 	if (row != -1) fireTableRowsDeleted(row, row);	
 	}
 	//-o
diff -Naur 

[Tinyos-help] Matlab

2007-09-03 Thread Iyad tumar
Hi all can we use MATLAB for simulation instead of
TOSSIM with Tinyos2, if yes is there documents to show
how to deal with this issue?

Regards.
Iyad Tumar
Jacobs University Bremen
Germany



   

Need a vacation? Get great deals
to amazing places on Yahoo! Travel.
http://travel.yahoo.com/
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Fwd: [tinyos-help] clarifications about serial communication

2007-09-03 Thread Mayur Maheshwari
-- Forwarded message --
From: Romain Thouvenin [EMAIL PROTECTED]
Date: Sep 3, 2007 2:15 PM
Subject: Re: [tinyos-help] clarifications about serial communication
To: Mayur Maheshwari [EMAIL PROTECTED]

Hello Mayur,

I am afraid I cannot help you. I didn't manage to get rid of this
problem, my only solution was to restart the mote, which seems to
confirm that the problem is from the mote, but it can also be the USB
driver.
Right now I don't work with motes anymore, so I cannot try anything.

I hope you'll find something out, I remember that it was a rather
frustrating problem.
Good luck,

Romain

On 9/2/07, Mayur Maheshwari [EMAIL PROTECTED] wrote:
 Hi Romain

 This is regarding the problem which you faced while sending the data to
the
 BaseStation from SerialForwarder(SF) when it continuously gives the Write
 Failed event. Let me know if you got any success with that.

 I did few things and later found that the problem lies in the mote:

 1. I stopped the SF, removed the modules controlling my mote from the
linux
 kernel i.e. usbserial and ftdi-sio while the mote is still plugged in. I
 restarted all the components and the sitaution was the same. However, the
 mote was getting continous power from the USB all the time.

 2. While the SF was running and Write Failed event coming up on every
 attempt to send data, I pushed the reset button on the telosB. This was
a
 mild success as the SF app was able to send the data after this.

 Right now I am thinking in a direction that the mote should stop and
restart
 the radio and the UART if such an event occurs. This is not a good
technique
 but does help in automating the reset scenario.

 Do let me know fi you were able to get rid of this error completely.

 Regards
 --
 Mayur Maheshwari([EMAIL PROTECTED])

 Karmanye Vadhikaraste Ma Phaleshu Kadachana,
 Ma Karma Phala Hetur Bhurmatey Sangostva Akarmani


-- 
Mayur Maheshwari([EMAIL PROTECTED])

Karmanye Vadhikaraste Ma Phaleshu Kadachana,
Ma Karma Phala Hetur Bhurmatey Sangostva Akarmani
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Lesson 10: what is a platform port?

2007-09-03 Thread sergio mena doce
We would like to know what is exactly a the concept of platform port, because 
lesson 10 of tutorial tinyos 2.x tells about platform but doesn't define the 
platform port concept.


_
Consigue el nuevo Windows Live Messenger
http://get.live.com/messenger/overview___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] PowerTOSSIM

2007-09-03 Thread bou ahm
HELLO
  please where I can  download PowerTOSSIM
  THANKYOU

   
-
 Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail ___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Trouble with Oscilloscope GUI java application in tinyOS-2.x

2007-09-03 Thread Jose Lopez
Hi to all.


We are two students of the Technical University of Catalonia (UPC).


We're getting started in the tinyOS environment. The situation is the
following: we are working with tinyOS 2x (Beta version) under Ubuntu
7.04Operative System. We are doing the tutorials of tinyOS 2x (tinyOS
web page)
and we've arrived to the lesson 5 and we have a problem at the end of the
lesson.

As first step we've compiled  Oscilloscope application:


[EMAIL PROTECTED]:/opt/tinyos-2.x/apps/Oscilloscope$ make telosb

mkdir -p build/telosb

compiling OscilloscopeAppC to a telosb binary

ncc -o build/telosb/main.exe -Os -O -mdisable-hwmul -Wall -Wshadow
-DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=telosb
-fnesc-cfile=build/telosb/app.c -board=   OscilloscopeAppC.nc -lm

compiled OscilloscopeAppC to build/telosb/main.exe

   14660 bytes in ROM

 380 bytes in RAM

msp430-objcopy --output-target=ihex build/telosb/main.exe
build/telosb/main.ihex

writing TOS image


And we've installed the Oscilloscope application in three motes:

[EMAIL PROTECTED]:/opt/tinyos-2.x/apps/Oscilloscope$ make telosb reinstall,n

tos-set-symbols --objcopy msp430-objcopy --objdump msp430-objdump --target
ihex build/telosb/main.ihex build/telosb/main.ihex.out-1 TOS_NODE_ID=1
ActiveMessageAddressC$addr=1

found mote on /dev/ttyUSB0 (using bsl,auto)

installing telosb binary using bsl

tos-bsl --telosb -c /dev/ttyUSB0 -r -e -I -p build/telosb/main.ihex.out-1

MSP430 Bootstrap Loader Version: 1.39-telos-8

Mass Erase...

Transmit default password ...

Invoking BSL...

Transmit default password ...

Current bootstrap loader version: 1.61 (Device ID: f16c)

Changing baudrate to 38400 ...

Program ...

14692 bytes programmed.

Reset device ...

rm -f build/telosb/main.exe.out-1 build/telosb/main.ihex.out-1


In a fourth mote we've installed the BaseStation application and we've
started the SerialForwarder like tells the tutorial:



java net.tinyos.sf.SerialForwarder -comm serial@/dev/ttyUSB0:telosb



Next we've compiled the java application and we obtain seven warnings:

[EMAIL PROTECTED]:/opt/tinyos-2.x/apps/Oscilloscope/java$ make

javac *.java

--

1. WARNING in ColorCellEditor.java (at line 17)

public class ColorCellEditor extends AbstractCellEditor

 ^^^

The serializable class ColorCellEditor does not declare a static final
serialVersionUID field of type long

--

--

2. WARNING in Data.java (at line 11)

import java.util.*;

   ^

The import java.util is never used

--

--

3. WARNING in Graph.java (at line 13)

import java.awt.event.*;

   ^^

The import java.awt.event is never used

--

4. WARNING in Graph.java (at line 16)

import java.util.*;

   ^

The import java.util is never used

--

5. WARNING in Graph.java (at line 19)

class Graph extends JPanel

  ^

The serializable class Graph does not declare a static final
serialVersionUID field of type long

--

--

6. WARNING in Window.java (at line 38)

class MoteTableModel extends AbstractTableModel {

  ^^

The serializable class MoteTableModel does not declare a static final
serialVersionUID field of type long

--

7. WARNING in Window.java (at line 108)

static class MoteColor extends JLabel implements TableCellRenderer {

 ^

The serializable class MoteColor does not declare a static final
serialVersionUID field of type long

--

7 problems (7 warnings)jar cf oscilloscope.jar *.class



Finally we've tried to run the Oscilloscope GUI application and we have
several errors whose reason we don't understand and we're not able to solve:



[EMAIL PROTECTED]:/opt/tinyos-2.x/apps/Oscilloscope/java$ ./run

Exception in thread main java.awt.AWTError: No suitable parent found for
Component.

   at javax.swing.JColorChooser.createDialog(libgcj.so.70)

   at ColorCellEditor.init(ColorCellEditor.java:25)

   at Window.setup(Window.java:160)

   at Oscilloscope.run(Oscilloscope.java:54)

   at Oscilloscope.main(Oscilloscope.java:126)

 What is the problem?

What can we do to solve this?

We would very grateful for your help.
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Time-delay between Matlab and Mica2dot

2007-09-03 Thread Michael . Knox
I am trying to implement a simple wireless control network using the 
Mica2dot(433mhz)  and the MIB510 base board. I have Interfaced the motes to 
Matlab via a serial connection, through the Serial Forwarder, using Kamins 
Matlab functions and TinyOs 1.1. 

The problem is that the return delay of the feedback system is greater than 
200ms which is much too slow for my application. I am wondering if anybody 
knows approximately the time it takes for data transmission between Mat lab, 
the serial forwarder and the Mica2dot, for a packet of 29 bytes.

Any previous experiences with similar setups would be of great help. I need to 
get reduce the delay by at least a half.

Cheers 
Mike

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


[Tinyos-help] TOS_Msg format of iMote2 is different than telosb?

2007-09-03 Thread WenZhan Song
Hi,

I run SurgeTelos or TOSBase on iMote2 and run the Listen program to
listen data from it, but I got following errors - looks like iMote2
use different TOS_msg format definition (like MicAZ vs. TelosB)?

[EMAIL PROTECTED]:115200 java net.tinyos.tools.Listen

[EMAIL PROTECTED]:115200: resynchronising
TOS_Msg length is invalid: header_length=260,real_length=30 ... modifying msg to
 fit
Received message:14 21 08 CA FF FF 7E 00 11 7D 9C 00 00 00 C5 08 0F 09 02 00 00
00 3F 00 01 00 68 06 00 00
14 21 08 CA 19 FF 7E 00 11 7D 9C 00 00 00 C5 08 0F 09 02 00 00 00 3F 00 01 00 68
 06 00 00
TOS_Msg length is invalid: header_length=260,real_length=30 ... modifying msg to
 fit
Received message:14 21 08 CB FF FF 7E 00 11 7D 9C 00 01 00 C6 08 C6 08 01 00 00
00 3F 00 9C 00 68 06 00 00
14 21 08 CB 19 FF 7E 00 11 7D 9C 00 01 00 C6 08 C6 08 01 00 00 00 3F 00 9C 00 68
 06 00 00
TOS_Msg length is invalid: header_length=5,real_length=32 ... modifying msg to f
it
Received message:16 00 00 00 00 00 7E 00 11 7D 9C 00 9C 00 00 00 00 00 00 00 00
00 3F 00 7E 00 00 00 05 00 00 00
16 00 00 00 00
TOS_Msg length is invalid: header_length=260,real_length=30 ... modifying msg to
 fit
Received message:14 21 08 CC FF FF 7E 00 11 7D 9C 00 00 00 C7 08 10 09 02 00 00
00 3F 00 01 00 69 06 00 00
14 21 08 CC 19 FF 7E 00 11 7D 9C 00 00 00 C7 08 10 09 02 00 00 00 3F 00 01 00 69
 06 00 00
TOS_Msg length is invalid: header_length=260,real_length=30 ... modifying msg to
 fit
Received message:14 21 08 CD FF FF 7E 00 11 7D 9C 00 01 00 C8 08 C8 08 01 00 00
00 3F 00 9C 00 69 06 00 00
14 21 08 CD 19 FF 7E 00 11 7D 9C 00 01 00 C8 08 C8 08 01 00 00 00 3F 00 9C 00 69
 06 00 00
TOS_Msg length is invalid: header_length=5,real_length=32 ... modifying msg to f
it
Received message:16 00 00 00 00 00 7E 00 11 7D 9C 00 9C 00 00 00 00 00 00 00 00
00 3F 00 7E 00 00 00 06 00 00 00
16 00 00 00 00
TOS_Msg length is invalid: header_length=260,real_length=30 ... modifying msg to
 fit
Received message:14 21 08 0E FF FF 7E 00 11 7D 9C 00 00 00 11 09 11 09 01 00 00
00 3F 00 9C 00 6A 06 00 00
14 21 08 0E 19 FF 7E 00 11 7D 9C 00 00 00 11 09 11 09 01 00 00 00 3F 00 9C 00 6A
 06 00 00
TOS_Msg length is invalid: header_length=260,real_length=30 ... modifying msg to
 fit
Received message:14 21 08 CE FF FF 7E 00 11 7D 9C 00 01 00 C9 08 C9 08 01 00 00
00 3F 00 9C 00 6A 06 00 00
14 21 08 CE 19 FF 7E 00 11 7D 9C 00 01 00 C9 08 C9 08 01 00 00 00 3F 00 9C 00 6A
 06 00 00
TOS_Msg length is invalid: header_length=5,real_length=32 ... modifying msg to f
it
Received message:16 00 00 00 00 00 7E 00 11 7D 9C 00 9C 00 00 00 01 00 00 00 00
00 3F 00 7E 00 00 00 07 00 00 00
16 00 00 00 00

On 8/31/07, WenZhan Song [EMAIL PROTECTED] wrote:
 Hi,

 It seems like iMote 2 does not support assigning ID during install
 time, and also does not support to install multiple Imote 2 at same
 time by specifying port number. Does anyone try to fix this?  This is
 very inconvenient in a testbed.

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


[Tinyos-help] RE: [intel-mote2-community] TOS_Msg format of iMote2 is different than telosb?

2007-09-03 Thread Adler, Robert P
Yes, the checked in version of platform/imote2/AM.h adds two uint32_t
fields at the end of the TOS_Msg structure for the purposes of running a
time synchronization algorithm.  If you think they are causing an issue
here, feel free to remove/comment them out or place them within ifdef's
(they probably should be within ifdefs in the first place).
 
-Robbie



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of WenZhan Song
Sent: Friday, August 31, 2007 12:53 PM
To: [EMAIL PROTECTED]
Cc: tinyos-help@millennium.berkeley.edu
Subject: [intel-mote2-community] TOS_Msg format of iMote2 is different
than telosb?



Hi,

I run SurgeTelos or TOSBase on iMote2 and run the Listen program to
listen data from it, but I got following errors - looks like iMote2
use different TOS_msg format definition (like MicAZ vs. TelosB)?

[EMAIL PROTECTED]:115200 java net.tinyos.tools.Listen

[EMAIL PROTECTED]:115200: resynchronising
TOS_Msg length is invalid: header_length=260,real_length=30 ...
modifying msg to
fit
Received message:14 21 08 CA FF FF 7E 00 11 7D 9C 00 00 00 C5 08 0F 09
02 00 00
00 3F 00 01 00 68 06 00 00
14 21 08 CA 19 FF 7E 00 11 7D 9C 00 00 00 C5 08 0F 09 02 00 00 00 3F 00
01 00 68
06 00 00
TOS_Msg length is invalid: header_length=260,real_length=30 ...
modifying msg to
fit
Received message:14 21 08 CB FF FF 7E 00 11 7D 9C 00 01 00 C6 08 C6 08
01 00 00
00 3F 00 9C 00 68 06 00 00
14 21 08 CB 19 FF 7E 00 11 7D 9C 00 01 00 C6 08 C6 08 01 00 00 00 3F 00
9C 00 68
06 00 00
TOS_Msg length is invalid: header_length=5,real_length=32 ... modifying
msg to f
it
Received message:16 00 00 00 00 00 7E 00 11 7D 9C 00 9C 00 00 00 00 00
00 00 00
00 3F 00 7E 00 00 00 05 00 00 00
16 00 00 00 00
TOS_Msg length is invalid: header_length=260,real_length=30 ...
modifying msg to
fit
Received message:14 21 08 CC FF FF 7E 00 11 7D 9C 00 00 00 C7 08 10 09
02 00 00
00 3F 00 01 00 69 06 00 00
14 21 08 CC 19 FF 7E 00 11 7D 9C 00 00 00 C7 08 10 09 02 00 00 00 3F 00
01 00 69
06 00 00
TOS_Msg length is invalid: header_length=260,real_length=30 ...
modifying msg to
fit
Received message:14 21 08 CD FF FF 7E 00 11 7D 9C 00 01 00 C8 08 C8 08
01 00 00
00 3F 00 9C 00 69 06 00 00
14 21 08 CD 19 FF 7E 00 11 7D 9C 00 01 00 C8 08 C8 08 01 00 00 00 3F 00
9C 00 69
06 00 00
TOS_Msg length is invalid: header_length=5,real_length=32 ... modifying
msg to f
it
Received message:16 00 00 00 00 00 7E 00 11 7D 9C 00 9C 00 00 00 00 00
00 00 00
00 3F 00 7E 00 00 00 06 00 00 00
16 00 00 00 00
TOS_Msg length is invalid: header_length=260,real_length=30 ...
modifying msg to
fit
Received message:14 21 08 0E FF FF 7E 00 11 7D 9C 00 00 00 11 09 11 09
01 00 00
00 3F 00 9C 00 6A 06 00 00
14 21 08 0E 19 FF 7E 00 11 7D 9C 00 00 00 11 09 11 09 01 00 00 00 3F 00
9C 00 6A
06 00 00
TOS_Msg length is invalid: header_length=260,real_length=30 ...
modifying msg to
fit
Received message:14 21 08 CE FF FF 7E 00 11 7D 9C 00 01 00 C9 08 C9 08
01 00 00
00 3F 00 9C 00 6A 06 00 00
14 21 08 CE 19 FF 7E 00 11 7D 9C 00 01 00 C9 08 C9 08 01 00 00 00 3F 00
9C 00 6A
06 00 00
TOS_Msg length is invalid: header_length=5,real_length=32 ... modifying
msg to f
it
Received message:16 00 00 00 00 00 7E 00 11 7D 9C 00 9C 00 00 00 01 00
00 00 00
00 3F 00 7E 00 00 00 07 00 00 00
16 00 00 00 00

On 8/31/07, WenZhan Song [EMAIL PROTECTED]
mailto:wenzhan.song%40gmail.com  wrote:
 Hi,

 It seems like iMote 2 does not support assigning ID during install
 time, and also does not support to install multiple Imote 2 at same
 time by specifying port number. Does anyone try to fix this? This is
 very inconvenient in a testbed.



__._,_.___ 
Messages in this topic
http://groups.yahoo.com/group/intel-mote2-community/message/494;_ylc=X3
oDMTMzMmNmNTBuBF9TAzk3MzU5NzE0BGdycElkAzE3NTI1MjAzBGdycHNwSWQDMTcwNTExNT
M4NgRtc2dJZAM0OTQEc2VjA2Z0cgRzbGsDdnRwYwRzdGltZQMxMTg4NTkwMDc0BHRwY0lkAz
Q5NA-- (1) Reply (via web post)
http://groups.yahoo.com/group/intel-mote2-community/post;_ylc=X3oDMTJwN
XBsYmg5BF9TAzk3MzU5NzE0BGdycElkAzE3NTI1MjAzBGdycHNwSWQDMTcwNTExNTM4NgRtc
2dJZAM0OTQEc2VjA2Z0cgRzbGsDcnBseQRzdGltZQMxMTg4NTkwMDc0?act=replymessag
eNum=494 | Start a new topic
http://groups.yahoo.com/group/intel-mote2-community/post;_ylc=X3oDMTJmY
XI2OHMzBF9TAzk3MzU5NzE0BGdycElkAzE3NTI1MjAzBGdycHNwSWQDMTcwNTExNTM4NgRzZ
WMDZnRyBHNsawNudHBjBHN0aW1lAzExODg1OTAwNzQ- 
Messages
http://groups.yahoo.com/group/intel-mote2-community/messages;_ylc=X3oDM
TJmYWJhdm5mBF9TAzk3MzU5NzE0BGdycElkAzE3NTI1MjAzBGdycHNwSWQDMTcwNTExNTM4N
gRzZWMDZnRyBHNsawNtc2dzBHN0aW1lAzExODg1OTAwNzQ-  | Files
http://groups.yahoo.com/group/intel-mote2-community/files;_ylc=X3oDMTJn
NGJsZGxxBF9TAzk3MzU5NzE0BGdycElkAzE3NTI1MjAzBGdycHNwSWQDMTcwNTExNTM4NgRz
ZWMDZnRyBHNsawNmaWxlcwRzdGltZQMxMTg4NTkwMDc0  | Photos
http://groups.yahoo.com/group/intel-mote2-community/photos;_ylc=X3oDMTJ
mZXRpdDVvBF9TAzk3MzU5NzE0BGdycElkAzE3NTI1MjAzBGdycHNwSWQDMTcwNTExNTM4NgR
zZWMDZnRyBHNsawNwaG90BHN0aW1lAzExODg1OTAwNzQ-  | Links

[Tinyos-help] Re: [intel-mote2-community] TOS_Msg format of iMote2 is different than telosb?

2007-09-03 Thread WenZhan Song
Thank you, Robbie,

This might related. At the same time, do we suppose to add something in
toos/java/net/tinyos/message?
To enable something like [EMAIL PROTECTED]:imote2 ?


On 8/31/07, Adler, Robert P [EMAIL PROTECTED] wrote:

Yes, the checked in version of platform/imote2/AM.h adds two uint32_t
 fields at the end of the TOS_Msg structure for the purposes of running a
 time synchronization algorithm.  If you think they are causing an issue
 here, feel free to remove/comment them out or place them within ifdef's
 (they probably should be within ifdefs in the first place).

 -Robbie

  --
 *From:* [EMAIL PROTECTED] [mailto:intel-
 [EMAIL PROTECTED] *On Behalf Of *WenZhan Song
 *Sent:* Friday, August 31, 2007 12:53 PM
 *To:* [EMAIL PROTECTED]
 *Cc:* tinyos-help@millennium.berkeley.edu
 *Subject:* [intel-mote2-community] TOS_Msg format of iMote2 is different
 than telosb?



 Hi,

 I run SurgeTelos or TOSBase on iMote2 and run the Listen program to
 listen data from it, but I got following errors - looks like iMote2
 use different TOS_msg format definition (like MicAZ vs. TelosB)?

 [EMAIL PROTECTED]:115200 java net.tinyos.tools.Listen

 [EMAIL PROTECTED]:115200: resynchronising
 TOS_Msg length is invalid: header_length=260,real_length=30 ... modifying
 msg to
 fit
 Received message:14 21 08 CA FF FF 7E 00 11 7D 9C 00 00 00 C5 08 0F 09 02
 00 00
 00 3F 00 01 00 68 06 00 00
 14 21 08 CA 19 FF 7E 00 11 7D 9C 00 00 00 C5 08 0F 09 02 00 00 00 3F 00 01
 00 68
 06 00 00
 TOS_Msg length is invalid: header_length=260,real_length=30 ... modifying
 msg to
 fit
 Received message:14 21 08 CB FF FF 7E 00 11 7D 9C 00 01 00 C6 08 C6 08 01
 00 00
 00 3F 00 9C 00 68 06 00 00
 14 21 08 CB 19 FF 7E 00 11 7D 9C 00 01 00 C6 08 C6 08 01 00 00 00 3F 00 9C
 00 68
 06 00 00
 TOS_Msg length is invalid: header_length=5,real_length=32 ... modifying
 msg to f
 it
 Received message:16 00 00 00 00 00 7E 00 11 7D 9C 00 9C 00 00 00 00 00 00
 00 00
 00 3F 00 7E 00 00 00 05 00 00 00
 16 00 00 00 00
 TOS_Msg length is invalid: header_length=260,real_length=30 ... modifying
 msg to
 fit
 Received message:14 21 08 CC FF FF 7E 00 11 7D 9C 00 00 00 C7 08 10 09 02
 00 00
 00 3F 00 01 00 69 06 00 00
 14 21 08 CC 19 FF 7E 00 11 7D 9C 00 00 00 C7 08 10 09 02 00 00 00 3F 00 01
 00 69
 06 00 00
 TOS_Msg length is invalid: header_length=260,real_length=30 ... modifying
 msg to
 fit
 Received message:14 21 08 CD FF FF 7E 00 11 7D 9C 00 01 00 C8 08 C8 08 01
 00 00
 00 3F 00 9C 00 69 06 00 00
 14 21 08 CD 19 FF 7E 00 11 7D 9C 00 01 00 C8 08 C8 08 01 00 00 00 3F 00 9C
 00 69
 06 00 00
 TOS_Msg length is invalid: header_length=5,real_length=32 ... modifying
 msg to f
 it
 Received message:16 00 00 00 00 00 7E 00 11 7D 9C 00 9C 00 00 00 00 00 00
 00 00
 00 3F 00 7E 00 00 00 06 00 00 00
 16 00 00 00 00
 TOS_Msg length is invalid: header_length=260,real_length=30 ... modifying
 msg to
 fit
 Received message:14 21 08 0E FF FF 7E 00 11 7D 9C 00 00 00 11 09 11 09 01
 00 00
 00 3F 00 9C 00 6A 06 00 00
 14 21 08 0E 19 FF 7E 00 11 7D 9C 00 00 00 11 09 11 09 01 00 00 00 3F 00 9C
 00 6A
 06 00 00
 TOS_Msg length is invalid: header_length=260,real_length=30 ... modifying
 msg to
 fit
 Received message:14 21 08 CE FF FF 7E 00 11 7D 9C 00 01 00 C9 08 C9 08 01
 00 00
 00 3F 00 9C 00 6A 06 00 00
 14 21 08 CE 19 FF 7E 00 11 7D 9C 00 01 00 C9 08 C9 08 01 00 00 00 3F 00 9C
 00 6A
 06 00 00
 TOS_Msg length is invalid: header_length=5,real_length=32 ... modifying
 msg to f
 it
 Received message:16 00 00 00 00 00 7E 00 11 7D 9C 00 9C 00 00 00 01 00 00
 00 00
 00 3F 00 7E 00 00 00 07 00 00 00
 16 00 00 00 00

 On 8/31/07, WenZhan Song [EMAIL PROTECTED]wenzhan.song%40gmail.com
 wrote:
  Hi,
 
  It seems like iMote 2 does not support assigning ID during install
  time, and also does not support to install multiple Imote 2 at same
  time by specifying port number. Does anyone try to fix this? This is
  very inconvenient in a testbed.
 

 __._,_.___ Messages in this topic
 http://groups.yahoo.com/group/intel-mote2-community/message/494;_ylc=X3oDMTMzbTc0bjViBF9TAzk3MzU5NzE0BGdycElkAzE3NTI1MjAzBGdycHNwSWQDMTcwNTExNTM4NgRtc2dJZAM0OTUEc2VjA2Z0cgRzbGsDdnRwYwRzdGltZQMxMTg4NTkwNDU3BHRwY0lkAzQ5NA--
 (0) Reply (via web post)
 http://groups.yahoo.com/group/intel-mote2-community/post;_ylc=X3oDMTJwYXUydDl1BF9TAzk3MzU5NzE0BGdycElkAzE3NTI1MjAzBGdycHNwSWQDMTcwNTExNTM4NgRtc2dJZAM0OTUEc2VjA2Z0cgRzbGsDcnBseQRzdGltZQMxMTg4NTkwNDU3?act=replymessageNum=495|
 Start a new topic
 http://groups.yahoo.com/group/intel-mote2-community/post;_ylc=X3oDMTJmaXZxMWQwBF9TAzk3MzU5NzE0BGdycElkAzE3NTI1MjAzBGdycHNwSWQDMTcwNTExNTM4NgRzZWMDZnRyBHNsawNudHBjBHN0aW1lAzExODg1OTA0NTc-
 Messageshttp://groups.yahoo.com/group/intel-mote2-community/messages;_ylc=X3oDMTJmYm5lYWg5BF9TAzk3MzU5NzE0BGdycElkAzE3NTI1MjAzBGdycHNwSWQDMTcwNTExNTM4NgRzZWMDZnRyBHNsawNtc2dzBHN0aW1lAzExODg1OTA0NTc-|
 

[Tinyos-help] Difficulty with Stanford repo?

2007-09-03 Thread Andrew
Hello. I am attempting to install the TinyOS source tree and toolchain 
from the Stanford ubuntu repository. The packages show up fine (in 
synaptic), but it seems that one package cannot be located: 
msp430tools-gcc . There appears to be an available package called 
msp430tools-gcc-tinyos, which I would assume is the same thing, but 
with a slightly modified name?

Is this the case, and if so, is there a workaround?

Thanks,
Andrew Pullin
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Turn mote off

2007-09-03 Thread Marek Jawurek
Hi,

is there a way to turn off a mote by command ? 

Marek

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


Re: [Tinyos-help] Tossim problem

2007-09-03 Thread Roberto
I had the same problem some days ago.
I solved the problem installing g++
bye

 The following error occured :
  
 [EMAIL PROTECTED] Blink]# make micaz sim
 /opt/tinyos-2.x/support/make/Makerules:164: ***
  
 Usage:  make target extras
 make target help
  
 Valid targets:
 Valid extras:
  
  Welcome to the TinyOS make system!
  
  You must specify one of the valid targets and possibly some
 combination of
  the extra options.  Many targets have custom extras and extended
 help, so be
  sure to try make target help to learn of all the available
 features.
  
  Global extras:
  
docs: compile additional nescdoc documentation
tinysec : compile with TinySec secure communication
  
 ERROR, micaz sim tos-ident-flags tos_image does not specify a valid
 target.  Stop.
 [EMAIL PROTECTED] Blink]#

 what is the problem? , with the knowledge that i use RedHat 9.
  
 Thank you.
  
 
 __
 Choose the right car based on your needs. Check out Yahoo! Autos new
 Car Finder tool. 
 ___
 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] How send a float number in message_t struct

2007-09-03 Thread Federico Fiorentin
Hello, I'm a student and I'm using TinyOs2 in my project.
I do not know how to send float numbers in the message_t. I need a
float field because
my application has to transmit a precise rational value.


I couldn't find better way to split the float in 2 int variables,but
the solution isn't working fine.

Do you have any solution for this problem?

I am using the following message payload struct:



nx_struct{
   nx_int8 val;
   ...
   // here I want to have a float field
}

I tried to search a solution but I didn't find neither docs or help in
the mailing list.

I tried nx_float but that does not exist.
Do you have suggestions?
Where could I find a detailed syntax/grammar for nesC?


Best Regards,
FF
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Trouble with Oscilloscope GUI java application in tinyOS-2.x

2007-09-03 Thread Philip Levis

On Aug 27, 2007, at 10:18 AM, Jose Lopez wrote:



Finally we've tried to run the Oscilloscope GUI application and we  
have several errors whose reason we don't understand and we're not  
able to solve:



[EMAIL PROTECTED]:/opt/tinyos-2.x/apps/Oscilloscope/java$ ./run

Exception in thread main java.awt.AWTError: No suitable parent  
found for Component.


   at javax.swing.JColorChooser.createDialog(libgcj.so.70)

   at ColorCellEditor.init(ColorCellEditor.java:25)

   at Window.setup(Window.java:160)

   at Oscilloscope.run(Oscilloscope.java:54)

   at Oscilloscope.main(Oscilloscope.java:126)

 What is the problem?

What can we do to solve this?

We would very grateful for your help.


Well, what version of Java are you using?

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


Re: [Tinyos-help] Lesson 10: what is a platform port?

2007-09-03 Thread John Griessen

sergio mena doce wrote:
We would like to know what is exactly a the concept of platform port, 


because lesson 10 of tutorial tinyos 2.x tells about platform but

doesn't define the platform port concept.

I think they mean creating a new one.
I wrote a tutorial that will go on the wiki when that is ready.

See http://ecosensory.com/tinyos-2.x/doc/html/tutorial/lesson10a.html

John Griessen

--
Ecosensory
tinyOS devel on:  ubuntu Linux;   tinyOS v2.0.2;   telosb ecosens1
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] help using MSP430Adc12MultiChannel

2007-09-03 Thread John Griessen
I made a component that reads three channels, and I can't get configure 
to return SUCCESS yet.  If you would take a look and see if youspot 
anything, or suggest a debugging method, I would appreciate it.


For debugging, I just turn on leds to see what places the program runs.

There is a module for a sensorboard that just is a wrapper for 
MSP430Adc12MultiChannel without using a generic module.  I use it

in a sensorboard dir called ch12Adc containing:
http://www.ecosensory.com/ch12Adc.h
http://www.ecosensory.com/ch12AdcP.nc
http://www.ecosensory.com/ch12AdcC.nc

I run a test program from a dir called Testch12Adc containing:
http://www.ecosensory.com/Testch12AdcC.nc
http://www.ecosensory.com/Testch12AdcP.nc
Makefile  with  COMPONENT=Testch12AdcC  SENSORBOARD=ch12Adc

Testch12AdcP.nc has a Boot.booted event that does 
AdcConfigure.getConfiguration()
then ch12Adc.configure(defaultconfig, memctl, numMemctl, buffer, 
bufferlen, jiffies)


and in the module for  Msp430Adc12MultiChannel as ch12Adc
I turn on leds at the getConfiguration() command and at the
start of ch12Adc.configure, but the program does not go to
the line where that call == SUCCESS.

Any ideas for simplifying the configure some way until it works
or better debug methods will be appreciated.  It is very close to the 
partial code sent by Nicolas Esteves 3aug07



John Griessen



--
Ecosensory
tinyOS devel on:  ubuntu Linux;   tinyOS v2.0.2;   telosb ecosens1
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Problem with Ctp

2007-09-03 Thread [EMAIL PROTECTED]
Hi, I am a student at Catania University.

I would like to implement in 
TinyOS 2 a mechanism of random routing.  
I thought to change the 
behavior of the application TestNetwork, through the modification of 
the file CtpRoutingEngineP, relatively to 
task void updateRouteTask ()
  but when I execute the application TestNetwork, I realized that the 
RoutingTable does not contain exact values.  Infact through this code:
…….
task void updateRouteTask() {
uint8_t i;

routing_table_entry* entry;
routing_table_entry* best;

uint16_t minEtx;
uint16_t currentEtx;
uint16_t linkEtx, 
pathEtx;
if (state_is_root)
return;
   
best = NULL;
/* Minimum etx found among neighbors, initially 
infinity */
minEtx = MAX_METRIC;
/* Metric through 
current parent, initially infinity */
currentEtx = MAX_METRIC;

//dbg(TreeRouting,%s\n,__FUNCTION__);



for (i = 0; i  10; i++) {
entry = 
routingTable[i];

dbg(TreeRouting, routingTable[%d]: neighbor: [id: 
%d parent: %d]\n,i, entry-neighbor, entry-info.parent);
}

……..

 I noted that all elements of the routingTable are equal 
to 0.  

This is the output 

$ python test.py output.txt
….

Booting  0  at time  66239565822
Booting  1  at time  65903208580
Booting  2  at time  74918631651
Booting  3  at time  62765650646
Starting simulation.
DEBUG (3): clientPtrs[0] = 0x84e9d8
DEBUG (3): 
TestNetworkC: Timer fired.
DEBUG (3): CtpForwardingEngineP$0$Send$send: 
sending packet from client 0: 69255e, len 15
DEBUG (3): 
CtpForwardingEngineP$0$Send$send: queue entry for 0 is 0 deep
DEBUG 
(3): QueueC$0$Queue$enqueue: size is 0
DEBUG (3): head -[d8e98400] - 
tail
DEBUG (3): TestNetworkC$sendMessage: Transmission succeeded.
DEBUG 
(3): CtpForwardingEngineP$0$sendTask$runTask: Trying to send a packet. 
Queue size is 1.
DEBUG (3): CtpForwardingEngineP$0$sendTask$runTask: no 
route, don't send, start retry timer
DEBUG (3): QueueC$2$Queue$enqueue: 
size is 0
DEBUG (3): head -[4cb07300] - tail
DEBUG (3): 
QueueC$2$Queue$dequeue: size is 1
DEBUG (3): head -- tail
DEBUG (1): 
clientPtrs[0] = 0x84e9c8
DEBUG (0): clientPtrs[0] = 0x84e9c0
DEBUG (0): 
CtpRoutingEngineP$0$RootControl$setRoot I'm a root now!
DEBUG (0): 
QueueC$2$Queue$enqueue: size is 0
DEBUG (0): head -[60ab7300] - tail
DEBUG (0): CtpForwardingEngineP$0$sendTask$runTask: Trying to send a 
packet. Queue size is 0.
DEBUG (0): 
CtpForwardingEngineP$0$sendTask$runTask: queue empty, don't send
DEBUG 
(0): QueueC$2$Queue$enqueue: size is 1
DEBUG (0): head -[60ab7300] 
[8aab7300] - tail
DEBUG (0): QueueC$2$Queue$dequeue: size is 2
DEBUG 
(0): head -[8aab7300] - tail
DEBUG (0): QueueC$2$Queue$dequeue: size 
is 1
DEBUG (0): head -- tail
DEBUG (0): TestNetworkC: Timer fired.
DEBUG (0): CtpForwardingEngineP$0$Send$send: sending packet from client 
0: 6924e0, len 15
DEBUG (0): CtpForwardingEngineP$0$Send$send: queue 
entry for 0 is 0 deep
DEBUG (0): QueueC$0$Queue$enqueue: size is 0
DEBUG (0): head -[c0e98400] - tail
DEBUG (0): 
TestNetworkC$sendMessage: Transmission succeeded.
DEBUG (0): 
CtpForwardingEngineP$0$sendTask$runTask: Trying to send a packet. Queue 
size is 1.
DEBUG (0): Sending queue entry 0x84e9c0
DEBUG (0): 
CtpForwardingEngineP$0$sendTask$runTask: I'm a root, so loopback and 
signal receive.
DEBUG (0): Received packet at 0:0:6.664972237 from node 
0.
DEBUG (0): QueueC$1$Queue$enqueue: size is 0
DEBUG (0): head -
[50077300] - tail
DEBUG (0): CtpForwardingEngineP$0$SubSend$sendDone 
to 0 and 0
DEBUG (0): CtpForwardingEngineP$0$SubSend$sendDone: our 
packet for client 0, remove 0x84e9c0 from queue
DEBUG (0): 
QueueC$2$Queue$enqueue: size is 0
DEBUG (0): head -[b4ab7300] - tail
DEBUG (0): QueueC$0$Queue$dequeue: size is 1
DEBUG (0): head -- tail
DEBUG (0): Send completed.
DEBUG (0): Rexmit timer will fire in 24 ms
DEBUG (0): Sending packet to UART.
DEBUG (0): QueueC$1$Queue$dequeue: 
size is 1
DEBUG (0): head -- tail
DEBUG (0): Sending packet to UART.
DEBUG (0): QueueC$2$Queue$enqueue: size is 1
DEBUG (0): head -
[b4ab7300] [deab7300] - tail
DEBUG (0): QueueC$2$Queue$dequeue: size 
is 2
DEBUG (0): head -[deab7300] - tail
DEBUG (0): 
QueueC$2$Queue$dequeue: size is 1
DEBUG (0): head -- tail
DEBUG (0): 
Sono prima di if
DEBUG (0): CtpRoutingEngineP$0$sendBeaconTask$runTask 
parent: 0 etx: 0
DEBUG (0): QueueC$2$Queue$enqueue: size is 0
DEBUG 
(0): head -[08ac7300] - tail
DEBUG (0): AM: Sending packet (id=24, 
len=7) to 65535
DEBUG (0): QueueC$2$Queue$dequeue: size is 1
DEBUG (0): 
head -- tail
DEBUG (1): TestNetworkC: Timer fired.
DEBUG (1): 
CtpForwardingEngineP$0$Send$send: sending packet from client 0: 69250a, 
len 15
DEBUG (1): CtpForwardingEngineP$0$Send$send: queue entry for 0 
is 0 deep
DEBUG (1): QueueC$0$Queue$enqueue: size is 0
DEBUG (1): head 
-[c8e98400] - tail
DEBUG (1): TestNetworkC$sendMessage: Transmission 
succeeded.
DEBUG (1): 

[Tinyos-help] TOSSIM and Serial Forwarder

2007-09-03 Thread Iñigo Urteaga
Hi all,

I am Iñigo and I am doing research with Wireless Sensor Networks. I
want to simulate different applications and protocols, so I am
planning to use TOSSIM and TinyOS 2.x. However, I have some questions:

1.- Is it possible to connect SerialForwarder to TOSSIM 2.x??

2.- The SerialForwarder tool is only implemented in Java or can be
implemented also in Python?

I would really appreciate any answer,

Thanks in advance,

Iñigo

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


re: [Tinyos-help] How send a float number in message_t struct

2007-09-03 Thread Daniel Widyanto

Hi,

Cast your double/float variables into nx_uint16_t/nx_uint32_t

Then re-cast it again to double/float when you receive it (actually it's 
not re-cast, but read the integer value using double/float format. Something
that you can done by scanf(%f,value) ).

Regards,

-daniel

 Original Message 
 From: Federico Fiorentin [EMAIL PROTECTED]
 Sent: Tuesday, September 04, 2007 1:10 AM
 To: tinyos-help@Millennium.Berkeley.EDU
 Subject: [Tinyos-help] How send a float number in message_t struct
 
 Hello, I'm a student and I'm using TinyOs2 in my project.
 I do not know how to send float numbers in the message_t. I need a
 float field because
 my application has to transmit a precise rational value.
 
 
 I couldn't find better way to split the float in 2 int variables,but
 the solution isn't working fine.
 
 Do you have any solution for this problem?
 
 I am using the following message payload struct:
 
 
 
 nx_struct{
nx_int8 val;
...
// here I want to have a float field
 }
 
 I tried to search a solution but I didn't find neither docs or help in
 the mailing list.
 
 I tried nx_float but that does not exist.
 Do you have suggestions?
 Where could I find a detailed syntax/grammar for nesC?
 
 
 Best Regards,
 FF




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


re: [Tinyos-help] Time-delay between Matlab and Mica2dot

2007-09-03 Thread Daniel Widyanto

Hi,

I'm not sure whether TinyOS really suitable for your application. 
The WSN in TinyOS is used to monitoring vast area, long period 
(1min - 1day/sampling), and long term (6 months until years 
without replacing the battery). 200 ms probably is very fast (though 
it's not the fastest one).

Anyway, I think you can reduce the delay, by reducing the Matlab's 
serial buffer. 

Regards,
-daniel

 Original Message 
 From: [EMAIL PROTECTED]
 Sent: Monday, September 03, 2007 10:09 PM
 To: tinyos-help@Millennium.Berkeley.EDU, tinyos-help@Millennium.Berkeley.EDU
 Subject: [Tinyos-help] Time-delay between Matlab and Mica2dot
 
 I am trying to implement a simple wireless control network using the 
 Mica2dot(433mhz)  and the MIB510 base board. I have Interfaced the motes to 
 Matlab via a serial connection, through the Serial Forwarder, using Kamins 
 Matlab functions and TinyOs 1.1. 
 
 The problem is that the return delay of the feedback system is greater than 
 200ms which is much too slow for my application. I am wondering if anybody 
 knows approximately the time it takes for data transmission between Mat lab, 
 the serial forwarder and the Mica2dot, for a packet of 29 bytes.
 
 Any previous experiences with similar setups would be of great help. I need 
 to get reduce the delay by at least a half.
 
 Cheers 
 Mike




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