[Tinyos-help] Serial Forwarder

2011-06-22 Thread naveen kumar
* Hi all,*>>**>>* When I try to run SerialForwarder, I receive the
following error:*>>**>>* The toscomm JNI library was not found.*>>*
Check that your tinyos-tools package is installed and try*>>*
rerunning tos-install-jni.*>>* Aborting.*>>**>>* And I when do run
sudo tos-install-jni, I get*>>* Installing 32-bit Java JNI code in
/usr/lib/i686 ...*>>* done.*>>* It seems that this is not the default
directory, since when I run*>>* serialForwarder again, it still says
that the package is not found. *>>* Any idea*>>* how I can let it find
the correct directory?*>>**>>* Thanks,*

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

Re: [Tinyos-help] serial forwarder error

2011-04-20 Thread roberto pagliari
never mind, it works now

On Tue, Apr 19, 2011 at 5:18 PM, roberto pagliari wrote:

> Apologies for the delay in my answer, I've been working on other projects
> recently.
>
> I can run the listener app now. Basestation is connected to ttyUSB0 in my
> case. However I do not see the packet on my computer. Here is what I do
>
>
> bob@bob-laptop:/opt/tinyos-2.1.1/apps/BaseStation$ export MOTECOM=serial@
> /dev/ttyUSB0:micaz
> bob@bob-laptop:/opt/tinyos-2.1.1/apps/BaseStation$ java
> net.tinyos.tools.Listen
> serial@/dev/ttyUSB0:57600: resynchronising
>
>
> and then nothing shows up (the other mote has BlinkToRadio on it, from the
> website).
>
>
>
> Thanks
>
>
>
>
>
> On Thu, Mar 31, 2011 at 11:59 AM, Michael Schippling wrote:
>
>> Check your CLASSPATH and the contents of the java tools or jar.
>> You are trying to run the "Listen" program -- which has nothing
>> to do with SerialForwarder or Oscilloscope -- and the main class
>> is not being found in your path.
>>
>> MS
>>
>> roberto pagliari wrote:
>>
>>> Hi All,
>>> I'm trying to use the Gui for Oscilloscope application. I get the
>>> following error while running serialforwarder
>>>
>>> bob@bob-laptop:/opt/tinyos-2.1.1/apps/Oscilloscope/java$ java
>>> net.tinyos.tools.Listen -comm serial@/dev/ttyUSB0 micaz
>>> Exception in thread "main" java.lang.NoClassDefFoundError:
>>> net/tinyos/tools/Listen
>>> Caused by: java.lang.ClassNotFoundException: net.tinyos.tools.Listen
>>>at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>>>at java.security.AccessController.doPrivileged(Native Method)
>>>at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>>>at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>>>at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>>>at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
>>> Could not find the main class: net.tinyos.tools.Listen.  Program will
>>> exit.
>>> bob@bob-laptop:/opt/tinyos-2.1.1/apps/Oscilloscope/java$
>>>
>>> do you know how to fix this?
>>>
>>>
>>> 
>>>
>>>
>>> ___
>>> Tinyos-help mailing list
>>> Tinyos-help@millennium.berkeley.edu
>>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>>
>>
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] serial forwarder error

2011-04-19 Thread roberto pagliari
Apologies for the delay in my answer, I've been working on other projects
recently.

I can run the listener app now. Basestation is connected to ttyUSB0 in my
case. However I do not see the packet on my computer. Here is what I do


bob@bob-laptop:/opt/tinyos-2.1.1/apps/BaseStation$ export MOTECOM=serial@
/dev/ttyUSB0:micaz
bob@bob-laptop:/opt/tinyos-2.1.1/apps/BaseStation$ java
net.tinyos.tools.Listen
serial@/dev/ttyUSB0:57600: resynchronising


and then nothing shows up (the other mote has BlinkToRadio on it, from the
website).



Thanks





On Thu, Mar 31, 2011 at 11:59 AM, Michael Schippling wrote:

> Check your CLASSPATH and the contents of the java tools or jar.
> You are trying to run the "Listen" program -- which has nothing
> to do with SerialForwarder or Oscilloscope -- and the main class
> is not being found in your path.
>
> MS
>
> roberto pagliari wrote:
>
>> Hi All,
>> I'm trying to use the Gui for Oscilloscope application. I get the
>> following error while running serialforwarder
>>
>> bob@bob-laptop:/opt/tinyos-2.1.1/apps/Oscilloscope/java$ java
>> net.tinyos.tools.Listen -comm serial@/dev/ttyUSB0 micaz
>> Exception in thread "main" java.lang.NoClassDefFoundError:
>> net/tinyos/tools/Listen
>> Caused by: java.lang.ClassNotFoundException: net.tinyos.tools.Listen
>>at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>>at java.security.AccessController.doPrivileged(Native Method)
>>at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>>at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>>at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>>at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
>> Could not find the main class: net.tinyos.tools.Listen.  Program will
>> exit.
>> bob@bob-laptop:/opt/tinyos-2.1.1/apps/Oscilloscope/java$
>>
>> do you know how to fix this?
>>
>>
>> 
>>
>>
>> ___
>> 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] Serial Forwarder died!

2011-04-02 Thread Geo Gkolfin
Hello everyone!
I am running the BlinkToRadio application (as described in the tinyos
tutorial) on an iris mote, connected to /dev/ttyUSB0. From /BlinkToRadio
directory I create a serial Forwarder:

*java net.tinyos.sf.SerialForwarder -comm serial@/dev/ttyUSB1:iris *

The first time I execute the command the window shown in the tutorial pops
up and counts packets normally, but the number of clients is set to zero
(shouldn't it be 1?). I quit and try to create a serial Forwarder again
using the exact same command, yet what I get to the serial forwarder window
is a periodically repeated message:

*Could not open /dev/ttyUSB1:TOSComm JNI Library Runtime error:open:No such
file or directory.*
*serial@/dev/ttyUSB1:57600 died - restarting*

I try to a different port:

*java net.tinyos.sf.SerialForwarder -port 9003 -comm serial@
/dev/ttyUSB1:iris*

and I get the exact same result (with the number of clients always set to
0).

Can you tell what the problem is?
Thank you all in advance,
Georgia
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] serial forwarder error

2011-03-31 Thread Michael Schippling
Check your CLASSPATH and the contents of the java tools or jar.
You are trying to run the "Listen" program -- which has nothing
to do with SerialForwarder or Oscilloscope -- and the main class
is not being found in your path.

MS

roberto pagliari wrote:
> Hi All,
> I'm trying to use the Gui for Oscilloscope application. I get the 
> following error while running serialforwarder
> 
> bob@bob-laptop:/opt/tinyos-2.1.1/apps/Oscilloscope/java$ java 
> net.tinyos.tools.Listen -comm serial@/dev/ttyUSB0 micaz
> Exception in thread "main" java.lang.NoClassDefFoundError: 
> net/tinyos/tools/Listen
> Caused by: java.lang.ClassNotFoundException: net.tinyos.tools.Listen
> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> Could not find the main class: net.tinyos.tools.Listen.  Program will exit.
> bob@bob-laptop:/opt/tinyos-2.1.1/apps/Oscilloscope/java$ 
> 
> 
> do you know how to fix this?
> 
> 
> 
> 
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] serial forwarder error

2011-03-31 Thread umut altun
Would be better to try the whole list: (you should put these at the end of
~/.bash_profile, beware the paths might be different in your case)

export TOSROOT="/opt/tinyos-2.x"
export TOSDIR="$TOSROOT/tos"
export CLASSPATH=".;C:/cygwin/opt/tinyos-2.x/support/sdk/java"
export
CLASSPATH="$CLASSPATH;C:\cygwin\opt\tinyos-2.x\support\sdk\java\tinyos.jar;."
export MAKERULES="$TOSROOT/support/make/Makerules"
export PATH="/opt/msp430/bin:/opt/jflashmm:$PATH"


UMUT ALTUN


2011/3/31 erhan uyar 

>  On 03/31/2011 02:51 AM, roberto pagliari wrote:
>
> Hi All,
> I'm trying to use the Gui for Oscilloscope application. I get the following
> error while running serialforwarder
>
>  bob@bob-laptop:/opt/tinyos-2.1.1/apps/Oscilloscope/java$ java
> net.tinyos.tools.Listen -comm serial@/dev/ttyUSB0 micaz
> Exception in thread "main" java.lang.NoClassDefFoundError:
> net/tinyos/tools/Listen
> Caused by: java.lang.ClassNotFoundException: net.tinyos.tools.Listen
> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> Could not find the main class: net.tinyos.tools.Listen.  Program will exit.
> bob@bob-laptop:/opt/tinyos-2.1.1/apps/Oscilloscope/java$
>
>
>  do you know how to fix this?
>
>
> ___
> Tinyos-help mailing 
> listTinyos-help@millennium.berkeley.eduhttps://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
>  Did you try this, it works for me
>
> export CLASSPATH=$TOSROOT/support/sdk/java/tinyos.jar:.
>
> also you should use USB1 not USB0 for listening. and ı think you forget : 
> before micaz
>  java net.tinyos.tools.Listen -comm serial@/dev/ttyUSB1:micaz
>
> try this maybe it will work
>
> ---
>
> Erhan UYAR - Computer Support Specialist
> +90(312)210 3363 - eu...@metu.edu.tr
>
> Middle East Technical University
> Computer Center
> User Support Group
>
>
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] serial forwarder error

2011-03-30 Thread erhan uyar

On 03/31/2011 02:51 AM, roberto pagliari wrote:

Hi All,
I'm trying to use the Gui for Oscilloscope application. I get the 
following error while running serialforwarder


bob@bob-laptop:/opt/tinyos-2.1.1/apps/Oscilloscope/java$ java 
net.tinyos.tools.Listen -comm serial@/dev/ttyUSB0 micaz
Exception in thread "main" java.lang.NoClassDefFoundError: 
net/tinyos/tools/Listen

Caused by: java.lang.ClassNotFoundException: net.tinyos.tools.Listen
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: net.tinyos.tools.Listen.  Program will 
exit.

bob@bob-laptop:/opt/tinyos-2.1.1/apps/Oscilloscope/java$


do you know how to fix this?


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

Did you try this, it works for me

export CLASSPATH=$TOSROOT/support/sdk/java/tinyos.jar:.

also you should use USB1 not USB0 for listening. and ? think you forget : 
before micaz

 java net.tinyos.tools.Listen -comm serial@/dev/ttyUSB1:micaz

try this maybe it will work

---

Erhan UYAR - Computer Support Specialist
+90(312)210 3363 - eu...@metu.edu.tr

Middle East Technical University
Computer Center
User Support Group

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

[Tinyos-help] serial forwarder error

2011-03-30 Thread roberto pagliari
Hi All,
I'm trying to use the Gui for Oscilloscope application. I get the following
error while running serialforwarder

bob@bob-laptop:/opt/tinyos-2.1.1/apps/Oscilloscope/java$ java
net.tinyos.tools.Listen -comm serial@/dev/ttyUSB0 micaz
Exception in thread "main" java.lang.NoClassDefFoundError:
net/tinyos/tools/Listen
Caused by: java.lang.ClassNotFoundException: net.tinyos.tools.Listen
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: net.tinyos.tools.Listen.  Program will exit.
bob@bob-laptop:/opt/tinyos-2.1.1/apps/Oscilloscope/java$


do you know how to fix this?
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Serial Forwarder help for a newbie

2010-12-16 Thread Eric Decker
Here is what I did to find the information you probably are looking for:

I went to TinyOS Docs Wiki .
Over on the left side is a search box.I searched for "serialforwarder".

The first 2 entries on the search page have what you are probably looking
for.  You most likely want to look at
the TOS 2.1.1 page because that is the current documentation for the latest
release.


On Mon, Dec 13, 2010 at 9:01 PM, Vineeth Mohan <
u4ece08...@students.amrita.ac.in> wrote:

> hi all,
> i am an undergraduate student and need some help with the serial forwarder.
> Can someone guide me through how to install and use the same? Is there any
> tutorial or guidebook for the same?
>
> thanks and regards
> --
> Vineeth Mohan
> PRO & Webmaster | IEEE SB
> Amrita Vishwa Vidyapeetham
> +91 9447362401
> www.amritaieee.wordpress.com
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



-- 
Eric B. Decker
Senior (over 50 :-) Researcher
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Serial Forwarder help for a newbie

2010-12-16 Thread Vineeth Mohan
hi all,
i am an undergraduate student and need some help with the serial forwarder. Can 
someone guide me through how to install and use the same? Is there any tutorial 
or guidebook for the same?

thanks and regards
-- 
Vineeth Mohan 
PRO & Webmaster | IEEE SB
Amrita Vishwa Vidyapeetham
+91 9447362401
www.amritaieee.wordpress.com
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] serial forwarder "bad packet" vs "bit CRC" in CC2420

2010-11-19 Thread Correo de Wacka

Hi all,

My last doubt is that, the "bad packet" that appears in the serial
forwarder has to match with the bit CRC (wrong) of the CC24020 (MicaZ)?I've
tested it, but I receive more wrongs CRC bits, that "bad packets"
appears in the serial forwarder window.

thanks for your time

David





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

[Tinyos-help] Serial Forwarder

2010-07-26 Thread Geetha S
Hello,

I am following the tutorial: mote-pc serial communication and serial
forwarder. I am able to get the listener to dump the packets. Howerver, when
I try to use serial forwarder, I just get a blank window. Can someone help
me. It is urgent!

I am on Ubuntu.

Thank you

2010/7/26 Miklos Maroti 

> Hi!
>
> 2010/7/22 徐经纬 :
> > Hi!
> > I have fixed my tinyos and I could compile everything. I have updated
> tinyos
> > tree and szte-wsn tree. But It still doesn't work.
> > The led0(red led) toggles and other leds didn't do anything..
>
> Strange. That means that the Send command fails for some reason. We
> use the MTS300 sensor board, but that should not cause this problem.
> We have never seen this behavior, and I still think that it can be a
> problem in your installation. Try reducing the sampling rate by
> changing
>
> call ReadStream.read(56);
>
> to
>
> call ReadStream.read(448);
>
> If that does not help, then you should try to figure out what error
> code des the call AMSend.send command return.
>
> Miklos
>
> >
> > 在 2010年7月20日 上午3:37,Miklos Maroti 写道:
> >>
> >> Hi!
> >>
> >> You have to set up your environment variables correctly. I use cygwin,
> >> and I have something like this set in my profile (or in a bash
> >> script):
> >>
> >> export TOSROOT="/cygdrive/c/tinyos/tinyos-2.x"
> >> export TOSROOTDOS="C:\\tinyos\\tinyos-2.x"
> >>
> >> export TOSDIR="$TOSROOT/tos"
> >> export MAKERULES="$TOSROOT/support/make/Makerules"
> >> export
> >> CLASSPATH="$CLASSPATH;$TOSROOTDOS\\support\\sdk\\java\\tinyos.jar;."
> >>
> >> export DEFAULT_PROGRAM=mib520
> >> export MIB520=com11
> >> export MOTECOM="ser...@com12:230400"
> >>
> >> export SZTETOSDIR="/cygdrive/c/tinyos/szte-wsn/tos"
> >>
> >> Search the archives, or look at how to install TinyOS. You should be
> >> able to compile the application, and if you edit some of the lib files
> >> (e.g. fastadc) to contain some incorrect code, then the compile should
> >> fail. This is a way to check that the right files are included in your
> >> app. Once you can compile everything, then let me know if it works.
> >>
> >> Best,
> >> Miklos
> >>
> >> 2010/7/19 徐经纬 :
> >> > Hi, I just updated szte-wsn tree and tinyos via CVS in the afternoon.
> >> > But it
> >> > make me tinyos broken...
> >> > when i type "make iris", the system tell me that error.
> >> >
> >> > Unknown target iris
> >> > Known targets for TinyOS directory /home/raz/local/src/tinyos-2.x/tos
> >> > and the specified include directories are:
> >> > none.
> >> > make: *** [exe0] Error 2
> >> >
> >> > what's happen to it? is that the szte-wsn codes just suit for cygwin?
>  I
> >> > think maybe my environment variable settings wrong?
> >> >
> >> > 在 2010年7月19日 下午4:06,Miklos Maroti 写道:
> >> >>
> >> >> Hi,
> >> >>
> >> >> You have to update the szte-wsn tree too, since it uses the
> fastserial
> >> >> an fastadc libraries (nothing more) and the application. I am always
> >> >> developing against the tinyos CVS tree.
> >> >>
> >> >> Miklos
> >> >>
> >> >> 2010/7/19 徐经纬 :
> >> >> > Ok, now I am updating my tinyos version vi CVS from sourceforge.
> and
> >> >> > szte-wsn must be updated? What's your tinyos version is? If i
> update
> >> >> > my
> >> >> > tinyos,th at program will works well?
> >> >> >
> >> >> > Thanks for your reply and having time to give some advice in my
> >> >> > trivial
> >> >> > question.
> >> >> >
> >> >> > 在 2010年7月19日 下午3:15,Miklos Maroti 写道:
> >> >> >>
> >> >> >> Then you have to download the latest version of both the
> tinyos-2.x
> >> >> >> tree and the szte-wsn tree from sourceforge. With tinyos-2.1.0 or
> >> >> >> 2.1.1 it will not work. You have to learn how to use the CVS.
> Miklos
> >> >> >>
> >> >> >> 2010/7/19 徐经纬 :
> >> >> >> > I change SZTETOSDIR to TOSDIR(refer to my tinyos.sh
> >> >> >> > file,/opt/tinyos2.1.0/tos)..   I am not sure my CVS is latest
> >> >> >> > version..
> >> >> >> > I use tinyos 2.1.0.
> >> >> >> >
> >> >> >> > 2010/7/19 Miklos Maroti 
> >> >> >> >>
> >> >> >> >> Hi!
> >> >> >> >>
> >> >> >> >> Are you using the latest CVS version of tinyos-2.x (and not
> >> >> >> >> tinyos-2.1.1 or whatever)? Did you set your SZTETOSDIR
> >> >> >> >> environment
> >> >> >> >> variable?
> >> >> >> >>
> >> >> >> >> Miklos
> >> >> >> >>
> >> >> >> >> On Sun, Jul 18, 2010 at 8:13 AM, 徐经纬 
> >> >> >> >> wrote:
> >> >> >> >> > Hi:
> >> >> >> >> > I want to use this application trying to sampling voice
> >> >> >> >> > information:
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> http://szte-wsn.cvs.sourceforge.net/viewvc/szte-wsn/tinyos/apps/MicReadStreamTest/
> >> >> >> >> >
> >> >> >> >> > I installed the program into my IRIS motes. But leds show
> that,
> >> >> >> >> > in
> >> >> >> >> > event
> >> >> >> >> > ReadStream.readDone, its result is not SUCCESS(led2 is always
> >> >> >> >> > off).
> >> >> >> >> > and led0
> >> >> >> >> > toggle, because AMSend.send() returns FALSE.
> >> >> >> >> >
> >> >> >> >> > What's the problem with the cod

Re: [Tinyos-help] serial forwarder

2010-07-26 Thread 胡智
You can try to copy getenv.dll and toscomm.dll from C:\cygwin\lib\tinyos to
your JRE's bin or lib directory, or to C:\Windows\System32.

2010/7/26 Yasser Zahedi 

> Hi all,
> I was using the serial forwarder to listen to the sensor and it was working
> well, but suddenly when I write the command  : (java
> net.tinyos.sf.SerialForwarder) the tinyos gives me the following error:
>
> (The toscomm JNI library was not found.
> Check that your tinyos-tools package is installed and try
> rerunning tos-install-jni.
> Aborting. )
>
> So, can anyone help me with this... Also I think the other commands that
> depend on java like (listen) give me errors.
>
> Thank you
>
>
>
> ___
> 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] serial forwarder

2010-07-25 Thread Yasser Zahedi
Hi all,
I was using the serial forwarder to listen to the sensor and it was working
well, but suddenly when I write the command  : (java
net.tinyos.sf.SerialForwarder) the tinyos gives me the following error:

(The toscomm JNI library was not found.
Check that your tinyos-tools package is installed and try
rerunning tos-install-jni.
Aborting. )

So, can anyone help me with this... Also I think the other commands that
depend on java like (listen) give me errors.

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

[Tinyos-help] Serial forwarder and Oscilloscope Blank window

2010-06-07 Thread chinmay lokesh
Hi,

OS : ubuntu 10.04
tinyos 2.1.1
IBM thinkpad t41

When i run Serial forwarder i get a blank window with no buttons or data.

However when i run with -no-gui option i see that the packets are received.

Please let me know why GUI apps like Serial forwarder and Oscilloscope are
showing blank windows.

Thanks,

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

[Tinyos-help] Serial forwarder and tossim-serial

2010-05-04 Thread Yusnaidi Md Yusof
Hi All,

I got a problem to use the tossim-serial in the SerialForwarder tool. I
intend to view packets reception at Node 0 (root of the CTP) in the MViz
program. I confused how to use the SerialForwarder with the tossim-serial as
a source?, since I couldn't find any tutorial on it even in the 'Mote-PC
serial communication and serial forwarder'  and the 'TOSSIM' tutorials of
the TinyOS Tutorials.

I have issued several command such as:
$java net.tinyos.sf.SerialForwarder -comm tossim-serial
$java net.tinyos.sf.SerialForwarder -comm tossim-ra...@hostname
$java net.tinyos.sf.SerialForwarder -comm tossim-ser...@hostname
$java net.tinyos.sf.SerialForwarder -comm tossim-ser...@hostname:9002

but all seems failed with the following error messages:

Couldn't instantiate tossim packet source
Did you compile tossim?
Serial Forwarder Exited Normally


In addition, I tried this combination:
1st: Running the MViz application with commands: $make micaz sim, $python
mviz.py (A script of my own created with 1 seconds sim time)
2nd: While MViz simulation running, I ran the serial forwarder tool: $java
net.tinyos.sf.SerialForwarder -comm s...@localhost:9002
3rd: While both the MViz application is running and the SerialForwarder tool
also running (1st and 2nd steps above): I issue command: $ tos-mviz -comm
s...@localhost:9002 MVizMsg

What I got were an MViz window opened but with no packets reading, and the
sf window keep on listening the 9002 port but also with zero 'Pckts read'
and 'Pckts wrttn'...

I am so confused what port I need to open, or what is the proper steps to do
in order to view the data reception on Node 0 (root) in MViz?

Please help me...

thanks

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

Re: [Tinyos-help] serial forwarder

2010-01-07 Thread John Khalil
Dear all

 

I am trying to use printf library and while I am trying to start
PrintfClient I got the following error 

 

$ java net.tinyos.tools.PrintfClient -comm ser...@com8:mib520

 

 

nullException in thread "main" java.lang.NullPointerException

at net.tinyos.message.MoteIF.init(MoteIF.java:119)

at net.tinyos.message.MoteIF.(MoteIF.java:110)

at net.tinyos.tools.PrintfClient.main(PrintfClient.java:78)

 

Any recommendations

 

John

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

[Tinyos-help] serial forwarder

2010-01-02 Thread John Khalil
 

Hi,

I am trying to use serial forwarder and I typed the command 

 

$ java net.tinyos.sf.SerialForwarder

And I got

 

The toscomm JNI library was not found.

Check that your tinyos-tools package is installed and try

rerunning tos-install-jni.

Aborting.

 

I tried 

 

$ tos-install-jni

 

 And I got it

Installing 32-bit Java JNI code in /cygdrive/c/Program
Files/Java/jdk1.6.0_17/jr

e/bin ...

install: cannot stat `/usr/lib/tinyos/*-32.dll': No such file or directory

 

Then I changed tosscom.dll file name to tosscom-32.dll and retry 

 

$ tos-install-jni

 

I got 

 

Installing 32-bit Java JNI code in /cygdrive/c/Program
Files/Java/jdk1.6.0_17/jr

e/bin ...

done.

 

However when I try

 

java net.tinyos.sf.SerialForwarder

 

I got the same error.

 

Any recommendation?

 

Thanks

John

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

Re: [Tinyos-help] Serial Forwarder

2009-12-02 Thread Arik Sapojnik
Nikos,

I don't entirely agree with you:

   1. "The BaseStation app will forward anything..." - but with what AM type
   to what destination address?
   2. I added printf in UartReceive.receive, and then sent the following:
   "0x01" - Nothing happened
   "0xFF" - the print worked
   I think that the reason is the first byte is the destination address
   (since the UART works with AM layer).
   3. I want to work with C and I couldn't find any examples working with
   MIG (only Java examples).


Arik



On Wed, Dec 2, 2009 at 11:52, Nikos Batalas  wrote:

> Hi Arik,
>
> I don't think you need to worry about the message format on the level of
> either the BaseStation or the SerialForwarder.
>
> The BaseStation app will forward anything it receives to serial forwarder,
> and so will the latter to whoever is connected with it.
>
> It should be your own application's responsibility (using the java sdk and
> mig-generated classes, for example) to make sense of what the bytes in the
> payload mean.
>
> Best Regards,
> Nikos
>
>
> Arik Sapojnik wrote:
>
>> Hi,
>>
>> I'd like to use Serial Forwarder + Base Station application in order to
>> connect my PC with my motes' network.
>> What should be the format of the message I send to SF?
>> It seems that it supposes to be message_t, but if so, does it mean I have
>> to implement the whole Packet interface? It can't be true :)
>>
>>
>> --
>> Best Regards,
>> Arik Sapojnik
>> sapoj...@gmail.com 
>> 
>>
>> ___
>> Tinyos-help mailing list
>> Tinyos-help@millennium.berkeley.edu
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>
>


-- 
Best Regards,
Arik Sapojnik
sapoj...@gmail.com
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Serial Forwarder

2009-12-02 Thread Nikos Batalas
Hi Arik,

I don't think you need to worry about the message format on the level of 
either the BaseStation or the SerialForwarder.

The BaseStation app will forward anything it receives to serial 
forwarder, and so will the latter to whoever is connected with it.

It should be your own application's responsibility (using the java sdk 
and mig-generated classes, for example) to make sense of what the bytes 
in the payload mean.

Best Regards,
Nikos


Arik Sapojnik wrote:
> Hi,
>
> I'd like to use Serial Forwarder + Base Station application in order 
> to connect my PC with my motes' network.
> What should be the format of the message I send to SF?
> It seems that it supposes to be message_t, but if so, does it mean I 
> have to implement the whole Packet interface? It can't be true :)
>
>
> -- 
> Best Regards,
> Arik Sapojnik
> sapoj...@gmail.com 
> 
>
> ___
> 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] Serial Forwarder

2009-12-02 Thread Arik Sapojnik
Hi,

I'd like to use Serial Forwarder + Base Station application in order to
connect my PC with my motes' network.
What should be the format of the message I send to SF?
It seems that it supposes to be message_t, but if so, does it mean I have to
implement the whole Packet interface? It can't be true :)


-- 
Best Regards,
Arik Sapojnik
sapoj...@gmail.com
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] serial forwarder and hyper terminal

2009-10-14 Thread Michael Schippling
...cc'ing back to the help list...

We just had a discussion of why you need to put a platform
name in your MOTECOM instead of a baudrate. W/o the name the
message format defaults to the original mica2 AM.h structure,
search back on this list a week or two.

ListenRaw is not so smart about ports so good luck with the -p thing.
Don't know why parity is false, although when I do it on Widows:
Opening port COM3
  baud rate: 57600
  data bits: 8
  stop bits: 1
  parity:0
I assume 0 is false, so I guess it's OK.

But the point was, do you get any data when you do ListenRaw?
If not there is something else strange going on.

MS


Farooq Sultan wrote:
> 
> 
> <http://www.flamingtext.com/hmail2.html>
> -Regarding the Motecom setting I am using the following command:
> java net.tinyos.tools.Listen -comm ser...@com1:57600
>  using the same port and COM1 I can receive data whn using Hypertrminal
> 
> - I tried using the ListenRaw command but when i type -p I do not get 
> the list of available ports. Also when I wrote this command:
> 
>   java net.tinyos.tools.ListenRaw COM1
>   Opening port COM1
>  baud rate: 57600
>  data bits: 8
>  stop bits: 0
> parity: false
> 
> I dont understand why the parity is false.
> Is there any way I can set these myself  for COM1?
> How do I change MOTECOM for a specific message format?
> 
> Thanks
>  > Date: Tue, 13 Oct 2009 11:20:20 -0600
>  > From: sc...@santafe.edu
>  > To: farooq...@hotmail.com
>  > CC: tinyos-help@millennium.berkeley.edu
>  > Subject: Re: [Tinyos-help] serial forwarder and hyper terminal
>  >
>  > Make sure you are using a MOTECOM setting that matches the
>  > baudrate and AM message header format that your node uses.
>  > Also try the ListenRaw program to see exactly what you are
>  > getting. Hyperterminal probably tries to interpret everything
>  > as ASCII whereas the message is binary.
>  >
>  > MS
>  >
>  > farooq_s wrote:
>  > > hi,
>  > >
>  > > when i connect my custom node with COM1, I can receive data in 
> hyperterminal
>  > > but cannot do so in tinyos. I have tried both the java
>  > > net.tinyos.tools.Listen and the serialforwarder but both display
>  > > resynchronizing and then nothing happens. What can i do to enable
>  > > communication using the Listen command in tinyos?
>  > >
>  > > I will be waiting for your replies!
>  > >
>  > > regards,
>  > > Farooq Sultan
> 
> 
> Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. Sign up 
> now. <http://clk.atdmt.com/GBL/go/171222985/direct/01/>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] serial forwarder and hyper terminal

2009-10-13 Thread Michael Schippling
Make sure you are using a MOTECOM setting that matches the
baudrate and AM message header format that your node uses.
Also try the ListenRaw program to see exactly what you are
getting. Hyperterminal probably tries to interpret everything
as ASCII whereas the message is binary.

MS

farooq_s wrote:
> hi,
> 
> when i connect my custom node with COM1, I can receive data in hyperterminal
> but cannot do so in tinyos. I have tried both the java
> net.tinyos.tools.Listen and the serialforwarder but both display
> resynchronizing and then nothing happens. What can i do to enable
> communication using the Listen command in tinyos?
> 
> I will be waiting for your replies!
> 
> regards,
> Farooq Sultan
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] serial forwarder and hyper terminal

2009-10-12 Thread farooq_s

hi,

when i connect my custom node with COM1, I can receive data in hyperterminal
but cannot do so in tinyos. I have tried both the java
net.tinyos.tools.Listen and the serialforwarder but both display
resynchronizing and then nothing happens. What can i do to enable
communication using the Listen command in tinyos?

I will be waiting for your replies!

regards,
Farooq Sultan
-- 
View this message in context: 
http://www.nabble.com/serial-forwarder-and-hyper-terminal-tp25867497p25867497.html
Sent from the TinyOS - Help mailing list archive at Nabble.com.

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


[Tinyos-help] Serial Forwarder in t1 and t2

2009-05-21 Thread Xiaogang Yang
I don't figure out the difference between Sf in tinyos 1 and tinyos 2., but
there is
problems when I use them to receive msg from t1 programmed mote and t2
programmed mote


-- 
Xiaogang Yang
Sensorweb Research Laboratory
http://sensorweb.vancouver.wsu.edu/
Washington State University Vancouver
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Serial forwarder, C compilation => integration with external 9script) programs

2009-03-20 Thread Symon Vezina

 

I've used an open source C serial listener/writer. The code is in attachement.

 

Hope this helps out.

Symon
 


Date: Thu, 19 Mar 2009 11:29:29 -0500
From: agnel...@gmail.com
To: tinyos-help@millennium.berkeley.edu
Subject: [Tinyos-help] Serial forwarder, C compilation => integration with 
external 9script) programs

Finally, I integrated the SerialForwarder option (C version, Debian OS, TinyOS 
2.1) with my base-station programs. For this, I only had to copy the T2 stuff 
to a directory and install a small JVM at the device for C compilation 
purposes. Now, I don't actually need the T2 stuff I copied to the device, 
except the C compiled codes related to the sf directory.  Also, I don't need to 
run the JVM anymore and my small device CPU capabilities thank for this 
resources savings.

I am using this solution to integrate multiple WSNs (MICA2, MICAz, TelosB, 
Iris, Imote2). I only tested for MICAz, but I think I will have no problems 
with the other platforms. I also need to have this solution for SunSPOT.

2 questions for the group:

1) Does anyone have any experience with a simple serial port listener software 
(C)? It is not for the TinyOS environment. Actually, I would like to use this 
capture program for the SunSPOT solution. Using the linux minicom software, I 
can also hear the messages from the SunSPOTs, but I need a C program to 
integrate it in my bash scripts.

2) Using the SF stuff (in my case, I am using sf and sflisten programs), the 
raw data is fine for me, because I can easily get my payload data from the T2 
messages. However, the integration of these programs with my linux scripts is 
not easy and I have 800-1100 ms of latency with the actual solution. Part of 
this latency is actually caused by the serial port speed bottleneck, but part 
is caused by the way I am solving the integration with the SF programs. Does 
anyone have any modified SF programs aiming integrating with external (script) 
programs?

Any suggestion is welcome !

MS: I did not understand your question about the radio reception. Actually, I 
developed my own T2 software to gather debugging/sensing data from each WSN. In 
a specific WSN, the nodes debugging/sensing data are transferred to their 
specific "WSN gateway", a mote that is USB-connected to the Linux-device I 
mentioned. This device has many "WSN gateways" attached to it. The software at 
this linux device transfers all messages, from all WSNs, to a PC-based server.

Regards,

Agnelo Rocha da Silva
Research Assistant - Wireless Sensor Networks Laboratory
University of Nebraska-Lincoln (UNL)



2009/3/16 Michael Schippling 

What's doing the radio reception?
MS

Agnelo Silva wrote:




I am using a small device (Linux-Debian embedded) which does not have any 
TinyOS software. This device will work as a base-station and I my intention is 
to avoid the addition of external packages, e.g. TinyOS.
My idea is to only use the Serial Forwarder (C version, TinyOS 2.x) on the 
device to interchange data with the WSN.
I would like to know what are the requirements for the compilation process, in 
other words, I need to install any TinyOS package for the solely functionality 
of the Serial Forwarder? Restrictions about the C compiler?


Regards,

Agnelo Rocha da Silva




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


-- 


_
Chat with the whole group, and bring everyone together.
http://go.microsoft.com/?linkid=9650735

adrport.c
Description: Binary data


adrport.h
Description: Binary data


adrserial.c
Description: Binary data
#Makefile

CC = gcc
OBJECTS = adrport.o adrserial.o
CFLAGS = -g -Wall

serial: $(OBJECTS)
$(CC) -o $...@.out $+

clean:
rm -rf *~ *.o *.out

baudRate: 9600

run:
./serial.out 0

Where 0 becomes /dev/ttyUSB0 and 1 becomes /dev/ttyUSB1, etc.

To modify the baud rate or the serial port, look in OpenAdrPort(char* 
sPortNumber)
for :

1)  sprintf(sPortName, "/dev/ttyUSB%s", sPortNumber);

2)  B9600



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

[Tinyos-help] Serial forwarder, C compilation => integration with external 9script) programs

2009-03-19 Thread Agnelo Silva
Finally, I integrated the SerialForwarder option (C version, Debian OS,
TinyOS 2.1) with my base-station programs. For this, I only had to copy the
T2 stuff to a directory and install a small JVM at the device for C
compilation purposes. Now, I don't actually need the T2 stuff I copied to
the device, except the C compiled codes related to the sf directory.  Also,
I don't need to run the JVM anymore and my small device CPU capabilities
thank for this resources savings.

I am using this solution to integrate multiple WSNs (MICA2, MICAz, TelosB,
Iris, Imote2). I only tested for MICAz, but I think I will have no problems
with the other platforms. I also need to have this solution for SunSPOT.

2 questions for the group:

1) Does anyone have any experience with a simple serial port listener
software (C)? It is not for the TinyOS environment. Actually, I would like
to use this capture program for the SunSPOT solution. Using the linux
minicom software, I can also hear the messages from the SunSPOTs, but I need
a C program to integrate it in my bash scripts.

2) Using the SF stuff (in my case, I am using sf and sflisten programs), the
raw data is fine for me, because I can easily get my payload data from the
T2 messages. However, the integration of these programs with my linux
scripts is not easy and I have 800-1100 ms of latency with the actual
solution. Part of this latency is actually caused by the serial port speed
bottleneck, but part is caused by the way I am solving the integration with
the SF programs. Does anyone have any modified SF programs aiming
integrating with external (script) programs?

Any suggestion is welcome !

MS: I did not understand your question about the radio reception. Actually,
I developed my own T2 software to gather debugging/sensing data from each
WSN. In a specific WSN, the nodes debugging/sensing data are transferred to
their specific "WSN gateway", a mote that is USB-connected to the
Linux-device I mentioned. This device has many "WSN gateways" attached to
it. The software at this linux device transfers all messages, from all WSNs,
to a PC-based server.

Regards,

Agnelo Rocha da Silva
Research Assistant - Wireless Sensor Networks Laboratory
University of Nebraska-Lincoln (UNL)


2009/3/16 Michael Schippling 

> What's doing the radio reception?
> MS
>
> Agnelo Silva wrote:
>
>> I am using a small device (Linux-Debian embedded) which does not have any
>> TinyOS software. This device will work as a base-station and I my intention
>> is to avoid the addition of external packages, e.g. TinyOS.
>> My idea is to only use the Serial Forwarder (C version, TinyOS 2.x) on the
>> device to interchange data with the WSN.
>> I would like to know what are the requirements for the compilation
>> process, in other words, I need to install any TinyOS package for the solely
>> functionality of the Serial Forwarder? Restrictions about the C compiler?
>>
>>
>> Regards,
>>
>> Agnelo Rocha da Silva
>>
>>
>> 
>>
>> ___
>> Tinyos-help mailing list
>> Tinyos-help@millennium.berkeley.edu
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>


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

Re: [Tinyos-help] Serial forwarder C compilation => what are the requirements?

2009-03-16 Thread Michael Schippling
What's doing the radio reception?
MS

Agnelo Silva wrote:
> I am using a small device (Linux-Debian embedded) which does not have 
> any TinyOS software. This device will work as a base-station and I my 
> intention is to avoid the addition of external packages, e.g. TinyOS.
> My idea is to only use the Serial Forwarder (C version, TinyOS 2.x) on 
> the device to interchange data with the WSN.
> I would like to know what are the requirements for the compilation 
> process, in other words, I need to install any TinyOS package for the 
> solely functionality of the Serial Forwarder? Restrictions about the C 
> compiler?
> 
> 
> Regards,
> 
> Agnelo Rocha da Silva
> 
> 
> 
> 
> ___
> 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] Serial forwarder C compilation => what are the requirements?

2009-03-16 Thread Agnelo Silva
I am using a small device (Linux-Debian embedded) which does not have any
TinyOS software. This device will work as a base-station and I my intention
is to avoid the addition of external packages, e.g. TinyOS.
My idea is to only use the Serial Forwarder (C version, TinyOS 2.x) on the
device to interchange data with the WSN.
I would like to know what are the requirements for the compilation process,
in other words, I need to install any TinyOS package for the solely
functionality of the Serial Forwarder? Restrictions about the C compiler?


Regards,

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

[Tinyos-help] Serial Forwarder TinyOS 1.x

2009-03-02 Thread amer_wafai
Hallo Everybody,
 
I'm trying to start the serial forwarder using tinyos 1.x but when I give the 
follwing command
 
 java net.tinyos.sf.SerialForwarder -comm ser...@com4:tmote -no-gui.> 
<>.
 
The following error appear:
 
Listening to ser...@com4:tmote
Shutting down all client connections
Closing source
Closing socket
--
SF disabled, 0 clients, 0 packets read, 0 packets written Exception in thread "T
hread-0" java.lang.NoSuchMethodError: net.tinyos.packet.Packetizer.(Ljava/
lang/String;Lnet/tinyos/packet/ByteSource;I)V
at net.tinyos.packet.BuildSource.makeSerial(BuildSource.java:360)
at net.tinyos.packet.BuildSource.makeArgsSerial(BuildSource.java:349)
at net.tinyos.packet.BuildSource.makePacketSource(BuildSource.java:147)
at net.tinyos.packet.BuildSource.makePhoenix(BuildSource.java:87)
at net.tinyos.sf.SFListen.run(SFListen.java:86)
 
 
could you please give me a hint what the problem could be?
 
Thanks in advanced
 
Amer
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Serial Forwarder TinyOS 1.x

2009-02-27 Thread amer_wafai
Hallo Everybody,
 
I'm trying to start the serial forwarder using tinyos 1.x but when I give the 
follwing command
 
 java net.tinyos.sf.SerialForwarder -comm ser...@com4:tmote -no-gui.> 
<>.
 
The following error appear:
 
Listening to ser...@com4:tmote
Shutting down all client connections
Closing source
Closing socket
--
SF disabled, 0 clients, 0 packets read, 0 packets written Exception in thread "T
hread-0" java.lang.NoSuchMethodError: net.tinyos.packet.Packetizer.(Ljava/
lang/String;Lnet/tinyos/packet/ByteSource;I)V
at net.tinyos.packet.BuildSource.makeSerial(BuildSource.java:360)
at net.tinyos.packet.BuildSource.makeArgsSerial(BuildSource.java:349)
at net.tinyos.packet.BuildSource.makePacketSource(BuildSource.java:147)
at net.tinyos.packet.BuildSource.makePhoenix(BuildSource.java:87)
at net.tinyos.sf.SFListen.run(SFListen.java:86)
 
 
could you please give me a hint what the problem could be?
 
Thanks in advanced
 
Amer
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Serial Forwarder

2009-01-16 Thread Patrick Brady
Hi folks,

I'm a final year engineering student and for my project I'm trying to
develop a system using sensor networks.
I have 2 tmoteinvent sensors programmed with the oscilloscope application
and I'm trying to get the raw data from the sensors
into a Java program I'm writing in Eclipse.
I'm using the serial forwarder but when I try to connect I get the following
error message:


s...@localhost:9001 died - exiting (java.io.IOException: protocol error)

The code I'm using to connect is as follows:

PhoenixSource reader = BuildSource.makePhoenix( BuildSource.makeSF(
"localhost" , 9001 ), null );
reader.start( );
MoteIF moteif = new MoteIF( reader );
moteif.registerListener( new OscopeMsg( ) , new MessageListener( ) {
   public void messageReceived ( int dest , Message rawMsg ) {
  System.out.println( "Received." );
   }
} );

I'm pretty sure this code is right, but I don't understand the "protocol
error".
Any help is appreciated.

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

[Tinyos-help] serial forwarder

2008-11-18 Thread swaroopa
Hii
  I'm trying to use serial forwarder in tinyos supported by C
the format is sf   
in Java we invoke the serial forwarder by java net.tinyos.sf.SerialForwarder
-comm [EMAIL PROTECTED]:2390

How dis can be done in C?der's no hardware..just simulating basemote in
avrora...
Kindly help..

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

[Tinyos-help] Serial Forwarder Application

2008-07-21 Thread Rafael Aguilar Velez
Hello to everybody,

 

I am using the application Serial Forwarder. In the main screen appear a box 
that says: "Control Panel". Does anyone know what is this and how to use it?

 

Thank you very much

 

Rafael

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

Re: [Tinyos-help] Serial Forwarder or Listen on IRIS motes

2008-04-16 Thread Eva Maria Garcia
Sorry, I’ve got it. Writing –comm serial@/dev/ttyUSB1:57600

 

 

 

De: Eva Maria Garcia [mailto:[EMAIL PROTECTED] 
Enviado el: miércoles, 16 de abril de 2008 18:22
Para: 'Janos Sallai'
CC: 'tinyos-help@millennium.berkeley.edu'
Asunto: RE: [Tinyos-help] Serial Forwarder or Listen on IRIS motes

 

I don’t know how set up MOTECOM environment variable to IRIS motes, I don’t
find it on documentation. I’m using this command:

 

java net.tinyos.tools.Listen

 

And I get this error:

 

Error on [EMAIL PROTECTED]:9002: java.net.ConnectException: Connection refused

 

And:

 

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

 

And I get “Invalid source serial@/dev/ttyUSB0:iris”

 

Thanks,

Eva



 

De: Janos Sallai [mailto:[EMAIL PROTECTED] 
Enviado el: miércoles, 16 de abril de 2008 17:58
Para: Eva Maria Garcia
CC: tinyos-help@millennium.berkeley.edu
Asunto: RE: [Tinyos-help] Serial Forwarder or Listen on IRIS motes

 

Eva,

 

Listen and SerialForwarder should work with an IRIS setup. Did you set up
the MOTECOM environment variable correctly? What command line parameters did
you use with these Java apps?

 

Thanks,

Janos

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Eva Maria
Garcia
Sent: Wednesday, April 16, 2008 10:06 AM
To: tinyos-help@millennium.berkeley.edu
Subject: [Tinyos-help] Serial Forwarder or Listen on IRIS motes

 

Hi all,

 

I’m working with IRIS motes and MIB520 gateway. I try to show the data that
the motes send to the gateway. I’ve seen applications Serial Forwarder and
Listen, but these applications doesn’t work on IRIS motes. Is there any
application to do that?

 

Thanks in advance,

Eva

 

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

Re: [Tinyos-help] Serial Forwarder or Listen on IRIS motes

2008-04-16 Thread Eva Maria Garcia
I don’t know how set up MOTECOM environment variable to IRIS motes, I don’t
find it on documentation. I’m using this command:

 

java net.tinyos.tools.Listen

 

And I get this error:

 

Error on [EMAIL PROTECTED]:9002: java.net.ConnectException: Connection refused

 

And:

 

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

 

And I get “Invalid source serial@/dev/ttyUSB0:iris”

 

Thanks,

Eva



 

De: Janos Sallai [mailto:[EMAIL PROTECTED] 
Enviado el: miércoles, 16 de abril de 2008 17:58
Para: Eva Maria Garcia
CC: tinyos-help@millennium.berkeley.edu
Asunto: RE: [Tinyos-help] Serial Forwarder or Listen on IRIS motes

 

Eva,

 

Listen and SerialForwarder should work with an IRIS setup. Did you set up
the MOTECOM environment variable correctly? What command line parameters did
you use with these Java apps?

 

Thanks,

Janos

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Eva Maria
Garcia
Sent: Wednesday, April 16, 2008 10:06 AM
To: tinyos-help@millennium.berkeley.edu
Subject: [Tinyos-help] Serial Forwarder or Listen on IRIS motes

 

Hi all,

 

I’m working with IRIS motes and MIB520 gateway. I try to show the data that
the motes send to the gateway. I’ve seen applications Serial Forwarder and
Listen, but these applications doesn’t work on IRIS motes. Is there any
application to do that?

 

Thanks in advance,

Eva

 

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

Re: [Tinyos-help] Serial Forwarder or Listen on IRIS motes

2008-04-16 Thread Janos Sallai
Eva,

 

Listen and SerialForwarder should work with an IRIS setup. Did you set
up the MOTECOM environment variable correctly? What command line
parameters did you use with these Java apps?

 

Thanks,

Janos

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Eva
Maria Garcia
Sent: Wednesday, April 16, 2008 10:06 AM
To: tinyos-help@millennium.berkeley.edu
Subject: [Tinyos-help] Serial Forwarder or Listen on IRIS motes

 

Hi all,

 

I'm working with IRIS motes and MIB520 gateway. I try to show the data
that the motes send to the gateway. I've seen applications Serial
Forwarder and Listen, but these applications doesn't work on IRIS motes.
Is there any application to do that?

 

Thanks in advance,

Eva

 

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

[Tinyos-help] Serial Forwarder or Listen on IRIS motes

2008-04-16 Thread Eva Maria Garcia
Hi all,

 

I'm working with IRIS motes and MIB520 gateway. I try to show the data that
the motes send to the gateway. I've seen applications Serial Forwarder and
Listen, but these applications doesn't work on IRIS motes. Is there any
application to do that?

 

Thanks in advance,

Eva

 

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

Re: [Tinyos-help] Serial forwarder suddenly corrupted then ... could not open port: (5, 'CreateFile', 'Access is denied.')

2008-03-10 Thread Eric Keller
In particular, the ftdi driver seems to be really bad about
not giving up.  I had to reboot a couple times the other day
when I had trouble debugging a telosb mote.   At least it
didn't bluescreen.
Eric


On Mon, Mar 10, 2008 at 12:41 PM, Thanh Phuong Nguyen <[EMAIL PROTECTED]> wrote:
> Hi all,
>
>  I have the error like this: My program can be
>  installed on telosb mote. I also use PrintfClient to
>  monitor the printed out message from my program. My
>  program can run well for a while. But then the serial
>  forwarder suddenly corrupted with the ERR_MSG(1):
>  =
>  # An unexpected error has been detected by Java
>  Runtime Environment:
>  #
>  #  EXCEPTION_ACCESS_VIOLATION (0xc005) at
>  pc=0x1001cc4a, pid=1816, tid=3544
>  #
>  # Java VM: Java HotSpot(TM) Client VM (1.6.0_03-b05
>  mixed mode, sharing)
>  # Problematic frame:
>  # C  [toscomm.dll+0x1cc4a]
>  =
>
>  when I started the Serial forwarder and tried to run
>  the application again, I got ERR_MSG(2):
>  =
>  Could not open com6: TOSComm JNI library runtime
>  error: Error 5.
>Access is denied.
>in NativeSerialPort.CreateFile
>  [EMAIL PROTECTED]:115200 died - restarting
>  Shutting down all client connections
>  Closing source
>  Closing socket
>  =
>
>  I could not install my program to the mote again
>  either (until i plug out then plug in the mote usb
>  again), another ERR_MSG(3) raised:
>  =
>  could not open port: (5, 'CreateFile', 'Access is
>  denied.') make: *** [program] Error 1
>  =
>
>  I search on the internet and found that the error
>  related to ERR_MSG(3) was already posted in our forum.
>  That is because of port problem.
>  =
>  
> http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2006-June/017298.html
>  =
>  But I dont understand how the port can be used when I
>  already used it.
>
>  So what prob with the serial forwarder? I still dont
>  understand why I got this msg. Is there any idea?
>
>  Thank you very much in advance,
>
>  Phuong.
>
>
>
>
>
>   
> 
>  Looking for last minute shopping deals?
>  Find them fast with Yahoo! Search.  
> http://tools.search.yahoo.com/newsearch/category.php?category=shopping
>  ___
>  Tinyos-help mailing list
>  Tinyos-help@millennium.berkeley.edu
>  https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Serial forwarder suddenly corrupted then ... could not open port: (5, 'CreateFile', 'Access is denied.')

2008-03-10 Thread Michael Schippling

Probably something crashed but still has the serial port open,
it may be a zombie process or the kernel itself. First look through
your process list for possible culprits and then try a reboot
to clear things up.

MS

Thanh Phuong Nguyen wrote:

Hi all,

I have the error like this: My program can be
installed on telosb mote. I also use PrintfClient to
monitor the printed out message from my program. My
program can run well for a while. But then the serial
forwarder suddenly corrupted with the ERR_MSG(1):
=
# An unexpected error has been detected by Java
Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc005) at
pc=0x1001cc4a, pid=1816, tid=3544
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0_03-b05
mixed mode, sharing)
# Problematic frame:
# C  [toscomm.dll+0x1cc4a]
= 


when I started the Serial forwarder and tried to run
the application again, I got ERR_MSG(2):
=
Could not open com6: TOSComm JNI library runtime
error: Error 5.
   Access is denied.
   in NativeSerialPort.CreateFile
[EMAIL PROTECTED]:115200 died - restarting
Shutting down all client connections
Closing source
Closing socket
=

I could not install my program to the mote again
either (until i plug out then plug in the mote usb
again), another ERR_MSG(3) raised:
=
could not open port: (5, 'CreateFile', 'Access is
denied.') make: *** [program] Error 1
=

I search on the internet and found that the error
related to ERR_MSG(3) was already posted in our forum.
That is because of port problem.
=
http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2006-June/017298.html
= 
But I dont understand how the port can be used when I
already used it. 


So what prob with the serial forwarder? I still dont
understand why I got this msg. Is there any idea?

Thank you very much in advance, 


Phuong.




  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/category.php?category=shopping

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


--
Platform: WinXP/Cygwin
TinyOS version: 1.x, Boomerang
Programmer: MIB510
Device(s): Mica2, MicaZ, Tmote
Sensor board: homebrew

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


[Tinyos-help] Serial forwarder suddenly corrupted then ... could not open port: (5, 'CreateFile', 'Access is denied.')

2008-03-10 Thread Thanh Phuong Nguyen
Hi all,

I have the error like this: My program can be
installed on telosb mote. I also use PrintfClient to
monitor the printed out message from my program. My
program can run well for a while. But then the serial
forwarder suddenly corrupted with the ERR_MSG(1):
=
# An unexpected error has been detected by Java
Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc005) at
pc=0x1001cc4a, pid=1816, tid=3544
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0_03-b05
mixed mode, sharing)
# Problematic frame:
# C  [toscomm.dll+0x1cc4a]
= 

when I started the Serial forwarder and tried to run
the application again, I got ERR_MSG(2):
=
Could not open com6: TOSComm JNI library runtime
error: Error 5.
   Access is denied.
   in NativeSerialPort.CreateFile
[EMAIL PROTECTED]:115200 died - restarting
Shutting down all client connections
Closing source
Closing socket
=

I could not install my program to the mote again
either (until i plug out then plug in the mote usb
again), another ERR_MSG(3) raised:
=
could not open port: (5, 'CreateFile', 'Access is
denied.') make: *** [program] Error 1
=

I search on the internet and found that the error
related to ERR_MSG(3) was already posted in our forum.
That is because of port problem.
=
http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2006-June/017298.html
= 
But I dont understand how the port can be used when I
already used it. 

So what prob with the serial forwarder? I still dont
understand why I got this msg. Is there any idea?

Thank you very much in advance, 

Phuong.




  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Serial forwarder

2008-01-18 Thread Michael Schippling

I'm not very familiar with SF, but if you use the 'standard' MoteIF
code to send you should have no problem with handshake or CRC. To
create your own you'll probably have to reverse engineer the existing
code starting from Packetizer.java. I also don't know how you received
messages at a re-Mote without setting the CRC to start with...

MS

Diaz Cerio Unai wrote:


Do you know what is the extra handshaking that I have to send to write a 
packet.
I know that the crc isn´t calculated but when I send by the serial port 
it works without calculating the crc.

Thanks Michael




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


--
Platform: WinXP/Cygwin
TinyOS version: 1.x, Boomerang
Programmer: MIB510
Device(s): Mica2, MicaZ, Tmote
Sensor board: homebrew

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


[Tinyos-help] Serial forwarder

2008-01-18 Thread Diaz Cerio Unai
Do you know what is the extra handshaking that I have to send to write a packet.
I know that the crc isn´t calculated but when I send by the serial port it 
works without calculating the crc.
Thanks Michael

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

[Tinyos-help] Serial forwarder

2008-01-17 Thread Diaz Cerio Unai
Do you know what is the extra handshaking that I have to send to write a packet.
I know that the crc isn´t calculated but when I send by the serial port it 
works without calculating the crc.
Thanks Michael
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Serial forwarder

2008-01-17 Thread Michael Schippling

How are you sending it? If you're using MoteIF or an equivalent
it should _just work_(TM). But I think there is a bit of extra
handshaking done on the net port interface if you are trying
to roll your own. Also it looks like your CRC hasn't been calculated.
MS


Diaz Cerio Unai wrote:
I want to send msg from a java program to a mote. I have done a program 
that send a msg directly to de serial port and it works fine.
But when I try to send the same msg by the serial forwarder the serial 
forwarder doesn't increase the writen packets and doesn't do anything.

The part of the code where I send the message is this:
 
* *


*byte* b[]=*new* *byte*[26];

b[0]=0x7E; //bit inicio

b[1]=0x42; //tipo msg(ack/no ack)

b[2]=0x01; //direccion

b[3]=0x00; //direccion

b[4]=0x00; //tipo msg

b[5]=0x22; //identificador grupo

b[6]=0x10; //tamaño msg

b[7]=0x70; //sensorboard id

b[8]=0x05; //packet id

b[9]=0x00; //id del emisor

b[10]=0x00; //RSVD byte reservado

b[11]=0x4D; //data 0

b[12]=0x01; //data 1

b[13]=0x00;

b[14]=0x06;

b[15]=0x00;

b[16]=0x00;

b[17]=0x00;

b[18]=0x00;

b[19]=0x00;

b[20]=0x00;

b[21]=0x00;

b[22]=0x00;

b[23]=0x00; //crc

b[24]=0x00; //crc

b[25]=0x7E; //bit fin

* *

*try* {

*this*.printStream.write(b);

System./out/.write(b);

} *catch* (IOException e) {

e.printStackTrace();

}

System./out/.println("enviado");

 

when I send it to the serial port it works fine but ,when I send it to 
the socket connected to the serial forwarder, it doesn't do anything.


Thanks  





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


--
Platform: WinXP/Cygwin
TinyOS version: 1.x, Boomerang
Programmer: MIB510
Device(s): Mica2, MicaZ, Tmote
Sensor board: homebrew

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


[Tinyos-help] Serial forwarder

2008-01-17 Thread Diaz Cerio Unai
I want to send msg from a java program to a mote. I have done a program that 
send a msg directly to de serial port and it works fine.
But when I try to send the same msg by the serial forwarder the serial 
forwarder doesn't increase the writen packets and doesn't do anything.
The part of the code where I send the message is this:
 
byte b[]=new byte[26];

b[0]=0x7E; //bit inicio

b[1]=0x42; //tipo msg(ack/no ack)

b[2]=0x01; //direccion

b[3]=0x00; //direccion

b[4]=0x00; //tipo msg

b[5]=0x22; //identificador grupo

b[6]=0x10; //tamaño msg

b[7]=0x70; //sensorboard id

b[8]=0x05; //packet id

b[9]=0x00; //id del emisor

b[10]=0x00; //RSVD byte reservado

b[11]=0x4D; //data 0

b[12]=0x01; //data 1

b[13]=0x00;

b[14]=0x06;

b[15]=0x00;

b[16]=0x00;

b[17]=0x00;

b[18]=0x00;

b[19]=0x00;

b[20]=0x00;

b[21]=0x00;

b[22]=0x00;

b[23]=0x00; //crc

b[24]=0x00; //crc

b[25]=0x7E; //bit fin

try {

this.printStream.write(b);

System.out.write(b);

} catch (IOException e) {

e.printStackTrace();

}

System.out.println("enviado");

 

when I send it to the serial port it works fine but ,when I send it to the 
socket connected to the serial forwarder, it doesn't do anything.

Thanks  

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

Re: [Tinyos-help] Serial Forwarder

2007-07-30 Thread Michael Schippling

As far as I know moteIF is pretty much it in Java. You can use it
to connect directly to the serial port on the MIBs, etal. If you
want to slim things down, look at Packetizer.java where most of
the rubber meets the road. Also there are examples in C in the tools
tree, and C# seems to be possible if you search this list.

MS

ZhuoHao Sum wrote:

Hi all,

I would like to enquire if there are any alternatives to using the 
serial forwarder and moteIF to connect to the motes?


thanx!
ZhuoHao




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

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


[Tinyos-help] Serial Forwarder

2007-07-29 Thread ZhuoHao Sum
Hi all,

I would like to enquire if there are any alternatives to using the serial
forwarder and moteIF to connect to the motes?

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

[Tinyos-help] Serial Forwarder not Working [T2 - Tinynode]

2007-01-17 Thread Venkatesh S
Hi all, 

While using serial forwarder for tinynode, the sf is not able to read
any packets sent by the mote. I am using the C serial forwarder.  When
the same code is fused on mica2 motes, the serial forwarder works.  Has
anyone faced such a problem.. Should i have to use Java serial
forwarder??  Thanks in advance.

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

[Tinyos-help] Serial Forwarder - sending packet

2007-01-08 Thread mikcin
Hello,

I want to send a message to the MicaZ - I've my PC connected to Mote's serial 
port. Serial Forwarder can read data from Mote's serial port and forward them 

to the TCP socket. Can this application perform the reverse process - read data 
from TCP port and send them to the Mote serial port? If so, which parameter of 
Serial Forwarder should I use?

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

Re: [Tinyos-help] Serial Forwarder and Listen

2006-10-19 Thread Ian Welch
Thanks all for the help,   I ended up reading the message header first and then reading the number of data bytes represented by the Length field in the header.Thanks again,   Ian
On 10/19/06, Michael Schippling <[EMAIL PROTECTED]> wrote:
oops...as bbuckner just pointed out, I forgot about the danged escape chars,So the cast-the-buffer thing doesn't work reliably...have to parse the stream.sorryMSMichael Schippling wrote:> Looks like your prayers may be answered in the message thread:
> "[Tinyos-help] C program for Listern">> Otherwise reading the correct number of bytes from the port into> a buffer and casting it to the TOS_Msg struct should do the trick.> Oh, yeah, if you do that on a big-endian machine you'll have to
> swap the bytes in the short ints.> MS>> Fabrizio Stefani wrote: Michael Schippling wrote:>>> The messages are not in ASCII format, which I think you are
>>> hoping for by inference from your question.>> They are in the same TOS_Msg format as received from>>> the TOSBase Mote. They are fixed length binary, but if you>>> use the Java Packetizer class or the C equiv in the tools
>>> directory (in T1) you shouldn't have to know. Are you talking about the serialforwarder written in C?>> Because it doesn't understand the message format, it just replies the
>> byte received from the serial to a given port. Or do you really mean that there is a C program which understand the>> message format and creates a C data structure to store them (like the
>> Java Packetizer does)?>> This could be very useful to me (I'm not so skilled with java, I>> prefer C), but I cannot find any such application in the tools dir. Can you help me?
>> Fabrizio Stefani MS> Ian Welch wrote: When serial forwarder forwards the packets to a designated are the
 each terminate by a "Carage Return Line Feed"? The reason I ask is because I'm writing a program to listen to the SF port to save Mote data packets. Every now and again the data on
 the port comes out a different size and throws my program. If there is a termination character at the end of each packet I could resolve this problem.
 Also, I don't know Java so looking through the tools source code doesn't really help. Thanks,Ian
  ___
 Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU 
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help>>> ___>>> Tinyos-help mailing list>>> 
Tinyos-help@Millennium.Berkeley.EDU>>> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>> ___>>> This email has been ClamScanned by ArsLogica antivirus server !>>>  
www.clamav.net>>> ___>> ___> Tinyos-help mailing list> 
Tinyos-help@Millennium.Berkeley.EDU> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

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

Re: [Tinyos-help] Serial Forwarder and Listen

2006-10-19 Thread Michael Schippling

oops...as bbuckner just pointed out, I forgot about the danged escape chars,
So the cast-the-buffer thing doesn't work reliably...have to parse the stream.
sorry
MS

Michael Schippling wrote:

Looks like your prayers may be answered in the message thread:
"[Tinyos-help] C program for Listern"

Otherwise reading the correct number of bytes from the port into
a buffer and casting it to the TOS_Msg struct should do the trick.
Oh, yeah, if you do that on a big-endian machine you'll have to
swap the bytes in the short ints.
MS

Fabrizio Stefani wrote:


Michael Schippling wrote:

The messages are not in ASCII format, which I think you are
hoping for by inference from your question.

They are in the same TOS_Msg format as received from
the TOSBase Mote. They are fixed length binary, but if you
use the Java Packetizer class or the C equiv in the tools
directory (in T1) you shouldn't have to know.


Are you talking about the serialforwarder written in C?
Because it doesn't understand the message format, it just replies the 
byte received from the serial to a given port.


Or do you really mean that there is a C program which understand the 
message format and creates a C data structure to store them (like the 
Java Packetizer does)?
This could be very useful to me (I'm not so skilled with java, I 
prefer C), but I cannot find any such application in the tools dir.


Can you help me?


Fabrizio Stefani



MS


Ian Welch wrote:
When serial forwarder forwards the packets to a designated are the 
each terminate by a "Carage Return Line Feed"?


The reason I ask is because I'm writing a program to listen to the 
SF port to save Mote data packets. Every now and again the data on 
the port comes out a different size and throws my program. If there 
is a termination character at the end of each packet I could resolve 
this problem.


Also, I don't know Java so looking through the tools source code 
doesn't really help.


Thanks,
   Ian


 



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


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


___
This email has been ClamScanned by ArsLogica antivirus server !
 www.clamav.net
___




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

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


Re: [Tinyos-help] Serial Forwarder and Listen

2006-10-19 Thread Michael Schippling

Looks like your prayers may be answered in the message thread:
"[Tinyos-help] C program for Listern"

Otherwise reading the correct number of bytes from the port into
a buffer and casting it to the TOS_Msg struct should do the trick.
Oh, yeah, if you do that on a big-endian machine you'll have to
swap the bytes in the short ints.
MS

Fabrizio Stefani wrote:


Michael Schippling wrote:

The messages are not in ASCII format, which I think you are
hoping for by inference from your question.

They are in the same TOS_Msg format as received from
the TOSBase Mote. They are fixed length binary, but if you
use the Java Packetizer class or the C equiv in the tools
directory (in T1) you shouldn't have to know.


Are you talking about the serialforwarder written in C?
Because it doesn't understand the message format, it just replies the 
byte received from the serial to a given port.


Or do you really mean that there is a C program which understand the 
message format and creates a C data structure to store them (like the 
Java Packetizer does)?
This could be very useful to me (I'm not so skilled with java, I prefer 
C), but I cannot find any such application in the tools dir.


Can you help me?


Fabrizio Stefani



MS


Ian Welch wrote:
When serial forwarder forwards the packets to a designated are the 
each terminate by a "Carage Return Line Feed"?


The reason I ask is because I'm writing a program to listen to the SF 
port to save Mote data packets. Every now and again the data on the 
port comes out a different size and throws my program. If there is a 
termination character at the end of each packet I could resolve this 
problem.


Also, I don't know Java so looking through the tools source code 
doesn't really help.


Thanks,
   Ian




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


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
___
This email has been ClamScanned by ArsLogica antivirus server !
 www.clamav.net
___




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


RE: [Tinyos-help] Serial Forwarder and Listen

2006-10-19 Thread Ben Buckner
The short answer is no, there's no CR/LF. However, the packets do come with
a frame, and the frame has an escape rule that can result in escape
characters being inserted. That's probably why you unexpectedly get changing
packet lengths. The "right" way to pick packets out of the stream is to look
for the framing bytes, 0x7E, which come at the beginning and the end of the
packet.

For details, see the often-referenced

http://www.octavetech.com/pubs/TB5-01%20Deciphering%20TinyOS%20Serial%20Pack
ets.pdf

Regards,
Ben Buckner
-Original Message-

Date: Wed, 18 Oct 2006 14:47:59 -0600
From: "Ian Welch" <[EMAIL PROTECTED]>
Subject: [Tinyos-help] Serial Forwarder and Listen
To: tinyos-help@millennium.berkeley.edu
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"

When serial forwarder forwards the packets to a designated are the each
terminate by a "Carage Return Line Feed"?

The reason I ask is because I'm writing a program to listen to the SF port
to save Mote data packets. Every now and again the data on the port comes
out a different size and throws my program. If there is a termination
character at the end of each packet I could resolve this problem.

Also, I don't know Java so looking through the tools source code doesn't
really help.

Thanks,
   Ian


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


Re: [Tinyos-help] Serial Forwarder and Listen

2006-10-19 Thread Fabrizio Stefani


Michael Schippling wrote:

The messages are not in ASCII format, which I think you are
hoping for by inference from your question.

They are in the same TOS_Msg format as received from
the TOSBase Mote. They are fixed length binary, but if you
use the Java Packetizer class or the C equiv in the tools
directory (in T1) you shouldn't have to know.


Are you talking about the serialforwarder written in C?
Because it doesn't understand the message format, it just replies the 
byte received from the serial to a given port.


Or do you really mean that there is a C program which understand the 
message format and creates a C data structure to store them (like the 
Java Packetizer does)?
This could be very useful to me (I'm not so skilled with java, I prefer 
C), but I cannot find any such application in the tools dir.


Can you help me?


Fabrizio Stefani



MS


Ian Welch wrote:
When serial forwarder forwards the packets to a designated are the 
each terminate by a "Carage Return Line Feed"?


The reason I ask is because I'm writing a program to listen to the SF 
port to save Mote data packets. Every now and again the data on the 
port comes out a different size and throws my program. If there is a 
termination character at the end of each packet I could resolve this 
problem.


Also, I don't know Java so looking through the tools source code 
doesn't really help.


Thanks,
   Ian




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

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
___
This email has been ClamScanned by ArsLogica antivirus server !
 www.clamav.net
___



--

Fabrizio Stefani, Ph.D.
Researcher

ArsLogica S.r.l.
IT Laboratories

Business Innovation Centre
Unit 6 - 1st floor
BIC, Via Trento, 117
38017 Mezzolombardo
(TN), Italy

Email: [EMAIL PROTECTED]
Skype: fabrizio.stefani
Phone: +39 0461 600253
Fax:   +39 0461 603250

Web Site: www.arslogica.it
_
This email has been ClamScanned !
 www.clamav.net
_
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Serial Forwarder and Listen

2006-10-18 Thread Michael Schippling

The messages are not in ASCII format, which I think you are
hoping for by inference from your question.

They are in the same TOS_Msg format as received from
the TOSBase Mote. They are fixed length binary, but if you
use the Java Packetizer class or the C equiv in the tools
directory (in T1) you shouldn't have to know.

MS


Ian Welch wrote:
When serial forwarder forwards the packets to a designated are the each 
terminate by a "Carage Return Line Feed"?


The reason I ask is because I'm writing a program to listen to the SF 
port to save Mote data packets. Every now and again the data on the port 
comes out a different size and throws my program. If there is a 
termination character at the end of each packet I could resolve this 
problem.


Also, I don't know Java so looking through the tools source code doesn't 
really help.


Thanks,
   Ian




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

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


[Tinyos-help] Serial Forwarder and Listen

2006-10-18 Thread Ian Welch
When serial forwarder forwards the packets to a designated are the each terminate by a "Carage Return Line Feed"?The reason I ask is because I'm writing a program to listen to the SF port to save Mote data packets. Every now and again the data on the port comes out a different size and throws my program. If there is a termination character at the end of each packet I could resolve this problem.
Also, I don't know Java so looking through the tools source code doesn't really help.Thanks,   Ian 
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Serial Forwarder Error

2006-09-05 Thread Metin K
Hi to all,I have just installed tinyos 2.0 following the instructions at http://www.tinyos.net/tinyos-2.x/doc/html/install-tinyos.html. When I type java 
net.tinyos.sf.SerialForwarder on the command line I have received the error on the graphical interface of sf as follows:Listening to [EMAIL PROTECTED]:57600Listening for client connections on port 9002Could not open com1: TOSComm JNI library runtime error: flush: Input/output error
[EMAIL PROTECTED]:57600 died - restartingCould not open com1: TOSComm JNI library runtime error: flush: Input/output error[EMAIL PROTECTED]:57600 died - restartingI have changed the permissons of the files to 664 under the /dev directory, also. What can be the reason for that?
P.S. When I type, rpm -ivh tinyos-tools-1.2.2-1.i386.rpm, I get:Preparing...    ### [100%]    package tinyos-tools-1.2.2-1 is already installedWhen rpm -e 
tinyos-tools-1.2.2-1.i386.rpm; error: package tinyos-tools-1.2.2-1.i386.rpm is not installed. There is also no tools directory under $TOSROOT. I have fedora core 5.Thanks to all.
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Serial Forwarder for MicaZ and MIB 600

2006-08-28 Thread Dooosun yang
Using MicaZ and MIB 600
 server
192.168.1.101 <-    I  Serial Forwarder   I  --- Application 1
 --Application 4    <- Is this Possible? both application for one SF?
 
 
192.168.1.102  <    I  Serial Forwarder   I -Application 2
 

192.168.1.103  <    I  Serial Forwarder   I  Application 3
.
.
.
.
.
.
etc
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

RE: [Tinyos-help] Serial Forwarder Problem

2006-08-25 Thread Darren Bishop
I am currently developing a mote testbed management software.

Here are some hints:

1. Use udev to detect when motes are attached or detached.
2. Through udev you can set up an instance of serial forwarder to listen to
that mote - local address is taken to mean the serial/COM port.
3. For each instance of sf, use a different TCP port; devise some mapping
scheme for consistency - if you have multiple machines, perhaps use some
unique part of the machine/host name. In other words, use a global naming
scheme.

If you are not on Linux i.e. you are using Windows, Google for a udev
equivalent, or poke around 'Control Panel'.

Best regards,
 
---
Darren Bishop

-Original Message-
From: José L. Ponce [mailto:[EMAIL PROTECTED] 
Sent: 24 August 2006 10:36
To: Michael Schippling
Cc: tinyos-help@millennium.berkeley.edu
Subject: Re: [Tinyos-help] Serial Forwarder Problem

Hello,

> All the messages to and from your 50 re-Motes go through one
> TOSBase mote on the MIB adapter to get to the host computer
> where SerialForwarder (or any other client program) is running.
> The messages are distinguished by a destination address (e.g.,
> the addr field in the TOS_Msg struct in ...tos/types/AM.h), and
> sometimes contain a source address so you can tell where they
> came from. To send a message to a specific mote you put it's
> moteID in the destination address.
>
> Was that the question?
> MS

For the case of using a single mote with TOSBase which forwards messages
it is clear. But, say we got two motes connected per USB to the computer.
We would need two instances of SerialForwarder, each associated to one of
the motes, and if a program on the computer wants to communicate with one
of the motes, it would have to know which SerialFowarder to connect to.

How would I have to do that?

And going a bit further. The ideal case would be to have a program which
automatically checks USB ports, gets the mote address of each mote
connected and creates a SerialForwarder association with each mote, so
that if a program wants to send a message to a mote, it only needs to know
its local address. I am sure something similar already exists. I would
like to know is it done.

Thanks,

- J.



-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.3/423 - Release Date: 18/08/2006
 


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


Re: [Tinyos-help] Serial Forwarder Problem

2006-08-24 Thread Robert Szewczyk

Sure -- I could see a solution where you use some method to
synchronize all motes to a common time base (perhaps using any of the
proposed radio time sync protocols) and then you use USB to transmit
messages of the form: at time X do Y,where time X is sufficiently far
in the future.

Rob

On 8/24/06, Jose L. Ponce <[EMAIL PROTECTED]> wrote:

2006/8/24, Robert Szewczyk <[EMAIL PROTECTED]>:
>
> > But this would also mean that it is not possible to send a message to
> > _all_ motes simultaneously, right? This would be a big problem...
> That's correct.  Simultaneous transmission to all motes over usb would
> be difficult over a point to point link such as USB .  USB host
> schedules transmissions to individual endpoints on a 1 ms granularity,
> and depending on the precise timing of requests you may observe as
> much as 2 ms between requests.   It sounds like if you want  motes to
> receive a message simultaneously, a radio broadcast channel may be
> appropriate.

Mmmm... Perhaps a better solution would be to use both USB and
radio... I have used SerialForwarder Multiplexer but I am not getting
very good results and I am thinking that using multiple instances of
SerialForwarder and mapping might be more work but in the end the
computer-mote communication should be more reliable this way...

- J.


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


Re: [Tinyos-help] Serial Forwarder Problem

2006-08-24 Thread Jose L. Ponce

2006/8/24, Robert Szewczyk <[EMAIL PROTECTED]>:


> But this would also mean that it is not possible to send a message to
> _all_ motes simultaneously, right? This would be a big problem...
That's correct.  Simultaneous transmission to all motes over usb would
be difficult over a point to point link such as USB .  USB host
schedules transmissions to individual endpoints on a 1 ms granularity,
and depending on the precise timing of requests you may observe as
much as 2 ms between requests.   It sounds like if you want  motes to
receive a message simultaneously, a radio broadcast channel may be
appropriate.


Mmmm... Perhaps a better solution would be to use both USB and
radio... I have used SerialForwarder Multiplexer but I am not getting
very good results and I am thinking that using multiple instances of
SerialForwarder and mapping might be more work but in the end the
computer-mote communication should be more reliable this way...

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


Re: [Tinyos-help] Serial Forwarder Problem

2006-08-24 Thread Robert Szewczyk

On 8/24/06, Jose L. Ponce <[EMAIL PROTECTED]> wrote:

> Jose,
>
> To connect to multiple  motes you would write something along the lines of:
> [...]

Thanks a lot for that. I had been trying to use these phoenix sources
a while ago but didn't get to make my program work.

This means that when I start a java program that wants to talk to
different motes through different SerialForwarders, it needs also
needs to read from a table for each mote id in which USB port it is
connected.

What's more, if I want to send a message to mote "100", for example, using

mote_if_of_mote100.send(100, message);

and

mote_if_of_mote100.send(TOS_BCAST_ADDRESS, message);

will give the same result.


Right.


But this would also mean that it is not possible to send a message to
_all_ motes simultaneously, right? This would be a big problem...

That's correct.  Simultaneous transmission to all motes over usb would
be difficult over a point to point link such as USB .  USB host
schedules transmissions to individual endpoints on a 1 ms granularity,
and depending on the precise timing of requests you may observe as
much as 2 ms between requests.   It sounds like if you want  motes to
receive a message simultaneously, a radio broadcast channel may be
appropriate.

Cheers,

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


Re: [Tinyos-help] Serial Forwarder Problem

2006-08-24 Thread Jose L. Ponce

2006/8/24, Robert Szewczyk <[EMAIL PROTECTED]>:

Sure -- I could see a solution where you use some method to
synchronize all motes to a common time base (perhaps using any of the
proposed radio time sync protocols) and then you use USB to transmit
messages of the form: at time X do Y,where time X is sufficiently far
in the future.


Well, I was thinking more along the lines of using USB if only one
mote were to be contacted and using radio if a message had to be sent
to all motes simultaneously.

Thanks for your help.

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


[Tinyos-help] Serial Forwarder Problem

2006-08-24 Thread Jose L. Ponce

Jose,

To connect to multiple  motes you would write something along the lines of:
[...]


Thanks a lot for that. I had been trying to use these phoenix sources
a while ago but didn't get to make my program work.

This means that when I start a java program that wants to talk to
different motes through different SerialForwarders, it needs also
needs to read from a table for each mote id in which USB port it is
connected.

What's more, if I want to send a message to mote "100", for example, using

mote_if_of_mote100.send(100, message);

and

mote_if_of_mote100.send(TOS_BCAST_ADDRESS, message);

will give the same result.

But this would also mean that it is not possible to send a message to
_all_ motes simultaneously, right? This would be a big problem...


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


Re: [Tinyos-help] Serial Forwarder Problem

2006-08-24 Thread Robert Szewczyk

Jose,

To connect to multiple  motes you would write something along the lines of:

import net.tinyos.packet.BuildSource;



   //connect to the mote source identified by sfString1, e.g.
[EMAIL PROTECTED]:tmote
 mote_if1 = new MoteIF(BuildSource.makePhoenix(sfString1, (Messenger) null);
 mote_if1.registerListener(new MsgType(), this);
 mote_if1.start();

  // connect to the other Tmote connected to the local machine, e.g.
[EMAIL PROTECTED]:tmote
 mote_if2 = new MoteIF(BuildSource.makePhoenix(sfString2, (Messenger) null);
 // need to register the listeners for every MoteIF started
 mote_if2.registerListener(new MsgType(), this);



On 8/24/06, José L. Ponce <[EMAIL PROTECTED]> wrote:

(Sorry, forgot to click on reply all!)

 Original Message 
Subject: Re: [Tinyos-help] Serial Forwarder Problem
From:José L. Ponce <[EMAIL PROTECTED]>
Date:Thu, August 24, 2006 7:06 pm
To:  "Shane B. Eisenman" <[EMAIL PROTECTED]>
--

> [...]
> however, the simpler approach (though less transparent) is to define a
mapping of moteID to SF exported TCP port in a file on your PC, and use
a script to scroll through that file and launch N sessions of SF. I've
done this for a testbed of 35 mica2/MIBs i've used at Columbia and it is
convenient for me. I've used an easy-to-remember mapping (e.g., moteID 1
is mounted on the MIB600 whose associated SF instance exports port 9001,
etc.) so that i don't have to ever look at that mapping file.
> [...]

Shane,

I think this approach is the logical and simpler solution to this issue.
However, my problem is that I am using USB: My motes are connected to a
number of USB Hubs which are connected to the computer (A Laptop). Every
time I connect the computer to this testbed, the USB port number of a
given mote is different.

Now that I think about it, I guess I could use the mote identifier that
appears when calling motelist and build a table according to that...

Any suggestions regarding a scripting language? (I haven't really made
many scripts, I just modify them :))

Second question: Suppose I have two motes and two instances of
SerialForwarder running, one for each mote. If I have a program which
wants to communicate with one of the motes, how does the program know
which of the SerialForwarders to use? For the case of a single
SerialForwarder, I have always done:

  mote_if = new MoteIF((Messenger)null);
  mote_if.registerListener(new MsgType(), this);

  mote_if.start();

  mote_if.send(mote_id, message);

But I'd guess that if I have multiple instances of SerialFowarder it
should be done in some other way.

- Jose.



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



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


Re: [Tinyos-help] Serial Forwarder Problem

2006-08-24 Thread José L. Ponce
(Sorry, forgot to click on reply all!)

 Original Message 
Subject: Re: [Tinyos-help] Serial Forwarder Problem
From:José L. Ponce <[EMAIL PROTECTED]>
Date:Thu, August 24, 2006 7:06 pm
To:  "Shane B. Eisenman" <[EMAIL PROTECTED]>
--

> [...]
> however, the simpler approach (though less transparent) is to define a
mapping of moteID to SF exported TCP port in a file on your PC, and use
a script to scroll through that file and launch N sessions of SF. I've
done this for a testbed of 35 mica2/MIBs i've used at Columbia and it is
convenient for me. I've used an easy-to-remember mapping (e.g., moteID 1
is mounted on the MIB600 whose associated SF instance exports port 9001,
etc.) so that i don't have to ever look at that mapping file.
> [...]

Shane,

I think this approach is the logical and simpler solution to this issue.
However, my problem is that I am using USB: My motes are connected to a
number of USB Hubs which are connected to the computer (A Laptop). Every
time I connect the computer to this testbed, the USB port number of a
given mote is different.

Now that I think about it, I guess I could use the mote identifier that
appears when calling motelist and build a table according to that...

Any suggestions regarding a scripting language? (I haven't really made
many scripts, I just modify them :))

Second question: Suppose I have two motes and two instances of
SerialForwarder running, one for each mote. If I have a program which
wants to communicate with one of the motes, how does the program know
which of the SerialForwarders to use? For the case of a single
SerialForwarder, I have always done:

  mote_if = new MoteIF((Messenger)null);
  mote_if.registerListener(new MsgType(), this);

  mote_if.start();

  mote_if.send(mote_id, message);

But I'd guess that if I have multiple instances of SerialFowarder it
should be done in some other way.

- Jose.



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


Re: [Tinyos-help] Serial Forwarder Problem

2006-08-24 Thread Shane B. Eisenman

jose,

you certainly //could// modify a mote-side component in the UART stack to 
implement a control message that returns the TOS_LOCAL_ADDRESS of a mote 
connected to particular MIB600, and then modify serial forwarder to 
implement the PC-side of that same query mechanism.


however, the simpler approach (though less transparent) is to define a 
mapping of moteID to SF exported TCP port in a file on your PC, and use a 
script to scroll through that file and launch N sessions of SF. I've done 
this for a testbed of 35 mica2/MIBs i've used at Columbia and it is 
convenient for me. I've used an easy-to-remember mapping (e.g., moteID 1 
is mounted on the MIB600 whose associated SF instance exports port 9001, 
etc.) so that i don't have to ever look at that mapping file.


I even went the extra step of assigning IPs to the MIB600s in such a way 
that the subnet address matches the moteID (e.g., modeID 1 is mounted to 
the MIB having address x.x.x.1 whose associated SF instance exports port 
9001). This makes writing shell scripts for "one-click" reprogramming of 
all motes, "one-click" SF restart (after Java occassionally crashes), etc. 
really straightforward to write.


the MIST testbed at MIT has a 55+mica2/MIB setup. i think they use MoteLab 
to manage that testbed; one of them might chime in with details on that. 
i've been thinking to try that, but haven't had the time to look at it 
yet.


-shane

On Thu, 24 Aug 2006, Jos[iso-8859-1] é L. Ponce wrote:


Hello,


All the messages to and from your 50 re-Motes go through one
TOSBase mote on the MIB adapter to get to the host computer
where SerialForwarder (or any other client program) is running.
The messages are distinguished by a destination address (e.g.,
the addr field in the TOS_Msg struct in ...tos/types/AM.h), and
sometimes contain a source address so you can tell where they
came from. To send a message to a specific mote you put it's
moteID in the destination address.

Was that the question?
MS


For the case of using a single mote with TOSBase which forwards messages
it is clear. But, say we got two motes connected per USB to the computer.
We would need two instances of SerialForwarder, each associated to one of
the motes, and if a program on the computer wants to communicate with one
of the motes, it would have to know which SerialFowarder to connect to.

How would I have to do that?

And going a bit further. The ideal case would be to have a program which
automatically checks USB ports, gets the mote address of each mote
connected and creates a SerialForwarder association with each mote, so
that if a program wants to send a message to a mote, it only needs to know
its local address. I am sure something similar already exists. I would
like to know is it done.

Thanks,

- J.

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




http://www.comet.columbia.edu/~shane___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Serial Forwarder Problem

2006-08-24 Thread José L. Ponce
Hello,

> All the messages to and from your 50 re-Motes go through one
> TOSBase mote on the MIB adapter to get to the host computer
> where SerialForwarder (or any other client program) is running.
> The messages are distinguished by a destination address (e.g.,
> the addr field in the TOS_Msg struct in ...tos/types/AM.h), and
> sometimes contain a source address so you can tell where they
> came from. To send a message to a specific mote you put it's
> moteID in the destination address.
>
> Was that the question?
> MS

For the case of using a single mote with TOSBase which forwards messages
it is clear. But, say we got two motes connected per USB to the computer.
We would need two instances of SerialForwarder, each associated to one of
the motes, and if a program on the computer wants to communicate with one
of the motes, it would have to know which SerialFowarder to connect to.

How would I have to do that?

And going a bit further. The ideal case would be to have a program which
automatically checks USB ports, gets the mote address of each mote
connected and creates a SerialForwarder association with each mote, so
that if a program wants to send a message to a mote, it only needs to know
its local address. I am sure something similar already exists. I would
like to know is it done.

Thanks,

- J.

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


Re: [Tinyos-help] Serial Forwarder Problem

2006-08-23 Thread Michael Schippling

All the messages to and from your 50 re-Motes go through one
TOSBase mote on the MIB adapter to get to the host computer
where SerialForwarder (or any other client program) is running.
The messages are distinguished by a destination address (e.g.,
the addr field in the TOS_Msg struct in ...tos/types/AM.h), and
sometimes contain a source address so you can tell where they
came from. To send a message to a specific mote you put it's
moteID in the destination address.

Was that the question?
MS


Dooosun yang wrote:

hi. I currently using Micaz MIB600 for mote lab.
 
Anyway, while i am doing my lab. I became curious about the serial 
forwarder.

The Problem that makes my head fussy is that how the serial forwarder
works for 50 motes. Should i run 50 different serial forwaders for each 
one? If so, How they are scheduled datas sended from each serial 
forwarder(For my case, 50 serial forwarders)?
 
Or should i run just one serial forwarder for 50 motes?
 
These days , my lack of knowledge about the concept of serial 
forwarder is exploding my head every second.

Somebody could help me? I want to know the structure of serial forwarder.
how do i use sf for many motes?




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

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


[Tinyos-help] Serial Forwarder Problem

2006-08-23 Thread Dooosun yang
hi. I currently using Micaz MIB600 for mote lab.
 
Anyway, while i am doing my lab. I became curious about the serial forwarder.
The Problem that makes my head fussy is that how the serial forwarder 
works for 50 motes. Should i run 50 different serial forwaders for each one? If so, How they are scheduled datas sended from each serial forwarder(For my case, 50 serial forwarders)? 
 
Or should i run just one serial forwarder for 50 motes?
 
These days , my lack of knowledge about the concept of serial forwarder is exploding my head every second.
Somebody could help me? I want to know the structure of serial forwarder.
how do i use sf for many motes?
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] serial forwarder

2006-08-17 Thread Michael Schippling

TOSMsg byte order is little-endian,
a byte stream like 11 22 33 44 is two short ints with values 0x2211 0x4433

MS

jurin dan wrote:


who know serial forwarder byte order?

thx

_
Play Q6 for your chance to WIN great prizes.  
http://q6trivia.imagine-live.com/enca/landing


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

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


[Tinyos-help] serial forwarder

2006-08-17 Thread jurin dan


who know serial forwarder byte order?

thx

_
Play Q6 for your chance to WIN great prizes.  
http://q6trivia.imagine-live.com/enca/landing


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


[Tinyos-help] Serial Forwarder vs Listen

2006-06-24 Thread Dattatraya Gokhale
Hi..When we use TOSBase, the mote forwards the packet it hears on the radio interface over the UART to the USB port of the PC, where we use a ftdi driver to convert it to a serial packet. The Listen program listens for these packets and can output them to the screen or to another port using SerialForwarder.
Am I making a mistake in my understanding about the way things work? Can anyone point out if there is a problem ... So effectively can i also write a C program to listen on a port and receive all the packet that SerialForwarder is forwarding on a port???
ThanksRegards-- Dattatraya-Work fascinates me, I can stare at it for hours...!!
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Serial Forwarder & Sky Motes

2006-03-23 Thread Michael Schippling

I don't think you need the SF on PC1. Clients should be able to connect
directly to SF on PC2 using the MOTECOM or command line "[EMAIL PROTECTED]:7000"
setting.

Have you tried running Deluge on PC2 directly to the USB port and then
connecting to the PC2 SF? That would eliminate at least one hop to get
started...
MS


Emiliano wrote:

Hi all,

I'm posting this message because I couldn't run sf properly in my scenario.
The set up is as follows: PC1 <-> (ethernet) <-> PC2. I have a Sky Mote 
connected vis USB to PC2. I want to run the Deluge java  toolchain on PC1 (which hosts the 
Deluge java package) and send the streams to PC2 which, by using sf, forwards them to the 
Sky Mote to operate the reprogramming.
Below there is what I've done:
- I make sf running on PC2 ($ ./sf 7000 /dev/usb/tts/1 57600 telosb)
- I run sf on PC1 as follows: $ java net/tinyos/sf/SerialForwarder -comm [EMAIL 
PROTECTED]:7000
- before running Deluge on PC1 I export the MOTECOM var as follows: $ export 
[EMAIL PROTECTED]:7000
- on PC1 I run Deluge ping: $java net/tinyos/tools/Deluge --ping

What I get is:
- on the PC1's sf GUI:
 Listening to [EMAIL PROTECTED]:7000
 Platform telos
 Listening for client connections on port 7000

- Deluge hangs:
 [EMAIL PROTECTED] java]$ java net/tinyos/tools/Deluge --ping
 Pinging node ...

Deluge doesn't go through.

Do you please have any suggestions? What am I missing?

Thank you very much,
Emiliano 



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

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


[Tinyos-help] Serial Forwarder & Sky Motes

2006-03-23 Thread Emiliano
Hi all,

I'm posting this message because I couldn't run sf properly in my scenario.
The set up is as follows: PC1 <-> (ethernet) <-> PC2. I have a Sky Mote 
connected vis USB to PC2. I want to run the Deluge java  toolchain on PC1 
(which hosts the Deluge java package) and send the streams to PC2 which, by 
using sf, forwards them to the Sky Mote to operate the reprogramming.
Below there is what I've done:
- I make sf running on PC2 ($ ./sf 7000 /dev/usb/tts/1 57600 telosb)
- I run sf on PC1 as follows: $ java net/tinyos/sf/SerialForwarder -comm [EMAIL 
PROTECTED]:7000
- before running Deluge on PC1 I export the MOTECOM var as follows: $ export 
[EMAIL PROTECTED]:7000
- on PC1 I run Deluge ping: $java net/tinyos/tools/Deluge --ping

What I get is:
- on the PC1's sf GUI:
 Listening to [EMAIL PROTECTED]:7000
 Platform telos
 Listening for client connections on port 7000

- Deluge hangs:
 [EMAIL PROTECTED] java]$ java net/tinyos/tools/Deluge --ping
 Pinging node ...

Deluge doesn't go through.

Do you please have any suggestions? What am I missing?

Thank you very much,
Emiliano 


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


Re: [Tinyos-help] serial forwarder for T2

2006-03-16 Thread Philip Levis
On Wed, 2006-03-15 at 14:57 -0800, Omprakash Gnawali wrote:
> Is there a plan for C-based serial forwarder/listen/rawlisten for T2?
> If it is already available, please let me know where.

It looks like I misspoke; David Gay has written the first parts of the
toolchain (sf, sflisten, etc). They're in

tinyos-2.x/support/sdk/

where there's  

java
python
c

as the three language options.

Phil



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


Re: [Tinyos-help] serial forwarder for T2

2006-03-15 Thread Philip Levis
On Wed, 2006-03-15 at 14:57, Omprakash Gnawali wrote:
> Is there a plan for C-based serial forwarder/listen/rawlisten for T2?
> If it is already available, please let me know where.

A full C toolchain (mig/ncg/sf) is one of the "to do" items for 2.x. The
WG has been talking about coming up with a list of things which the WG
believes 2.x needs (and so if written, would be incorporated). We've
been working through moving some TEPs out of draft, so haven't had a
chance to do this yet, but hopefully it will be appearing soon.

Phil

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


[Tinyos-help] serial forwarder for T2

2006-03-15 Thread Omprakash Gnawali

Is there a plan for C-based serial forwarder/listen/rawlisten for T2?
If it is already available, please let me know where.

Thanks.

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


Re: [Tinyos-help] Serial Forwarder doesn't accept xlisten connections?

2005-11-16 Thread Harri Siirtola


I checked out the CVS version of SerialForwarder but the problem remains. 
Should that be the latest version of SF?


Thanks for your reply!

Harri

At 09:00 AM 11/11/2005 -0800, David Gay wrote:

On 11/11/05, Harri Siirtola <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> If I try to connect xlisten to SF, I get
>
> $ xlisten -i=localhost:9001
> xlisten Ver:$Id: xlisten.c,v 1.16 2004/09/30 21:23:56 mturon Exp $
> Using params: [inet=localhost:9001]
> localhost input stream opened
>
> I can see the "Num of clients" in SF change to "1", then quickly back to
> "0". Using java/net/tinyos/tools/Listen (after setting MOTECOM to
> "[EMAIL PROTECTED]:9001") I can get a client connection. Why not with 
xlisten? I
> couldn't find any messages about this in the forum.

Well xlisten's code to connect to a serial forwarder is buggy and
won't work with an old serial forwarder (pre 1.1.8 or so). That might
be the problem...

David Gay

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


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


Re: [Tinyos-help] Serial Forwarder doesn't accept xlisten connections?

2005-11-11 Thread David Gay
On 11/11/05, Harri Siirtola <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> If I try to connect xlisten to SF, I get
>
> $ xlisten -i=localhost:9001
> xlisten Ver:$Id: xlisten.c,v 1.16 2004/09/30 21:23:56 mturon Exp $
> Using params: [inet=localhost:9001]
> localhost input stream opened
>
> I can see the "Num of clients" in SF change to "1", then quickly back to
> "0". Using java/net/tinyos/tools/Listen (after setting MOTECOM to
> "[EMAIL PROTECTED]:9001") I can get a client connection. Why not with 
> xlisten? I
> couldn't find any messages about this in the forum.

Well xlisten's code to connect to a serial forwarder is buggy and
won't work with an old serial forwarder (pre 1.1.8 or so). That might
be the problem...

David Gay

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


[Tinyos-help] Serial Forwarder doesn't accept xlisten connections?

2005-11-11 Thread Harri Siirtola

Hi all,

If I try to connect xlisten to SF, I get

$ xlisten -i=localhost:9001
xlisten Ver:$Id: xlisten.c,v 1.16 2004/09/30 21:23:56 mturon Exp $
Using params: [inet=localhost:9001]
localhost input stream opened

I can see the "Num of clients" in SF change to "1", then quickly back to 
"0". Using java/net/tinyos/tools/Listen (after setting MOTECOM to 
"[EMAIL PROTECTED]:9001") I can get a client connection. Why not with xlisten? I 
couldn't find any messages about this in the forum.


Thanks,

Harri

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