[Tinyos-help] run cygwin command from java : work around found with a new problem :)

2007-09-06 Thread amrit kumar
Hi All, Schip, Thanks for the effort.It was gud to see that u atleast made an attempt to extend what both of us seem to know However from my side, I seem to have found a work around that now requires the code from a file (a.sh) to be copy pasted on the bash shell. I was just tryin

[Tinyos-help] Programming RIPS in Real time

2007-09-06 Thread Khew U-Wei
Hi everyone, I am working on the RIPS (Radio Interferometric Positioning System) localization and have successfully run the simulation with the data (Football field data) provided by the Institute for Software Integrated System (ISIS). I am however required to further enable RIPS work on a MICA2

[Tinyos-help] toscomm JNI library was not found

2007-09-06 Thread Deepesh Jain
I am using Tinyos on windows, on cygwin when I try to run SerialForwarder I get the folowing messege The toscomm JNI library was not found. Check that your tinyos-tools package is installed and try rerunning tos-install-jni. Aborting. After that I gave command "tos-install-jni", it gives

[Tinyos-help] Re: telosb error beacon

2007-09-06 Thread Leonardo
> Hy people, > I have a problem with my program in nesc for telosb. When I complile the > program, it is all perfect. When I load the program, the leds toggle in > this sequence: blu, yellow, red for infinity time... > i don't understand where is the problem. > > Can anyone help me Please. > >

Re: [Tinyos-help] net.tinyos.tools.MsgReader usage questions

2007-09-06 Thread David Gay
It might be worth: - reporting a warning when there's no valid AM value in the message (I think it's -1 in that case, but not sure I must admit) - provide an option to MsgReader to specify a particular AM value for a given message David Gay On 9/6/07, Kevin Klues <[EMAIL PROTECTED]> wrote: > Prob

Fwd: [Tinyos-help] net.tinyos.tools.MsgReader usage questions

2007-09-06 Thread Kevin Klues
Problem resolved offline .. for reference though, when defining AM types for use with mig generated java files, you need to follow the pattern seen int eh forwarded email Kevin -- Forwarded message -- From: Kevin Klues <[EMAIL PROTECTED]> Date: Sep 6, 2007 1:02 PM Subj

Re: [Tinyos-help] net.tinyos.tools.MsgReader usage questions

2007-09-06 Thread Kevin Klues
Sorry... I mean the AM type. Kevin On 9/6/07, Kevin Klues <[EMAIL PROTECTED]> wrote: > Open up the java file generated by mig and verify that the AM address > has the same value you secified in the .h file. > > Kevin > > On 9/6/07, John Griessen <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I follow

Re: [Tinyos-help] net.tinyos.tools.MsgReader usage questions

2007-09-06 Thread Kevin Klues
Open up the java file generated by mig and verify that the AM address has the same value you secified in the .h file. Kevin On 9/6/07, John Griessen <[EMAIL PROTECTED]> wrote: > Hi, > > I followed Lesson 4 to get a good compile of a message class, but I must > have something still not matching...

[Tinyos-help] net.tinyos.tools.MsgReader usage questions

2007-09-06 Thread John Griessen
Hi, I followed Lesson 4 to get a good compile of a message class, but I must have something still not matching... I use the c++ serial forwarder sf and it reports packets flowing from /dev/ttyUSB1 to localhost:9001 and all written none dropped so they are consumed by something(MsgReader), and

Re: [Tinyos-help] Re: help required run cygwin command from java

2007-09-06 Thread Michael Schippling
This is something I have never figured out how to do correctly so I can only toss some ideas your way...maybe looking at the cygwin.com site will help. What you seem to want to do is to run a cygwin bash script from an MSDOGS command shell, right? The first place to look is reading the bash manu

Re: [Tinyos-help] MoteIF try catch on java

2007-09-06 Thread Michael Schippling
It's entirely possible that moteIF doesn't throw any Exceptions. You will probably have to dig through it's code to see, but for the most part the compiler should whine if they exist and are not caught. Or was the question about how to use try-catch itself? MS ZhuoHao Sum wrote: Hi, I'm worki

Re: [Tinyos-help] sequences of sync and async commands, tasks

2007-09-06 Thread Michael Schippling
Yes, you have to use globals to pass arguments to tasks, so do something like this and set the values in your async function before posting the task: uint16_t *buf; uint16_t buflen; task void SendReadingsTask1() { ... } You can't guarantee order of task execution, but y

Re: [Tinyos-help] tos-install-jni

2007-09-06 Thread Michael Schippling
First thing is I wouldn't install java in "Program Files" because the space in the dirname will just become more and more problematic. Second, you probably do not have a PATH correctly set to your Java installation, you should not have to make those symbolic links. This may be the result of the P_

Re: [Tinyos-help] forcing a node in LPL mode to stop listening if a transmission is continuous

2007-09-06 Thread Kevin Klues
If you are interested in implementing some of the functionality you describe, and it is not yet provided in the tinyos core, the code found in tinyos-2.x-contrib/wustl//upma may be of interest to you. It contains code for a flexible MAC layer architecture through which customized MAC layer imple

RE: [Tinyos-help] forcing a node in LPL mode to stop listening if a transmission is continuous

2007-09-06 Thread David Moss
If you're sending message after message at the application layer, then you receiver mote always has a job to do: get the latest message. As you've pointed out, it will remain on for a short period of time to see if there are more messages to receive. Low power listening normally implies low t

Re: [Tinyos-help] toscomm shared object for MacOS X?

2007-09-06 Thread Kevin Klues
I've never had any problems with serial communication on my MAC - even on the java side of things. There were some problems for a while (I had done something different on my machine than I had told others to do), but I've since checked in bug fixes to cvs and updated my tutorial to address them.

RE: [Tinyos-help] forcing a node in LPL mode to stop listening if a transmission is continuous

2007-09-06 Thread Murray, Ben
It should be TinyOS 2.0.2 assuming I did the upgrade from 2.0.1 correctly make command structure env CFLAGS="-DLOW_POWER_LISTENING" make micaz install mib510,/dev/ttyS0 In the header file: #define NOACK_LOW_POWER_LISTENING The transmitter was set up so as to increment a counter and send that

Re: [Tinyos-help] Lesson 10 tinyos 2.x: I don't know about msp430.util

2007-09-06 Thread Kevin Klues
Something appears to be wrong with your installation for tinyos 2.0. The make system for tinyos 2.0 uses the tos-bsl script rather than the msp430-bsl script. Are you sure your enviroment variables are set correctly to use the tinyos 2.0 make system? Kevin On 9/6/07, sergio mena doce <[EMAIL PRO

RE: [Tinyos-help] low power listening -- controlling when it wake s and confirming s leep period?

2007-09-06 Thread Murray, Ben
Thanks for the info! I will try to look it all up and will see how I'm going next week. -Ben -Original Message- From: David Moss [mailto:[EMAIL PROTECTED] Sent: 06 September 2007 18:05 To: 'Murray, Ben'; tinyos-help@Millennium.Berkeley.EDU Subject: RE: [Tinyos-help] low power listening --

[Tinyos-help] telosb error beacon

2007-09-06 Thread Leonardo
Hy people, I have a problem with my program in nesc for telosb. When I complile the program, it all perfect. When I load the program, the leds toggle in this sequence: blu, yellow, red for infinity time... i don't understand where is the problem. Can anyone help me Please. My code is in t

RE: [Tinyos-help] low power listening -- controlling when it wakes and confirming s leep period?

2007-09-06 Thread David Moss
The correct answer to your first question is A, because a one-shot timer is used in the LPL layer. The use of a one-shot resets the timer after every wake-up, which allows you to change the period arbitrarily after the next timer fire. Your second question concerns a synchronous low power lis

RE: [Tinyos-help] forcing a node in LPL mode to stop listening if a transmission is continuous

2007-09-06 Thread David Moss
What version of TinyOS are you using? If you're using the "NoAck" LPL layer from 2.0.1, that would exhibit the behavior you describe, and I'd recommend using something different. For all other scenarios, the motes should go back to sleep if a transmitter continuously sends the same message at t

Re: [Tinyos-help] toscomm shared object for MacOS X?

2007-09-06 Thread John Griessen
Ákos Maróy wrote: I wonder if one can set up the toscomm shared object on MacOS X easily, to be able to access a mote through the serial interface on MacOS.. We heard that the java comm related code has troubles, and a new c++ sf exists. I have tried that c++ sf and it works well, compiles ea

[Tinyos-help] failed sensor read

2007-09-06 Thread John W. Barron
What would cause a read.done() to return fail. Am using a modified version of MultihopOscilloscope. If greater than ten data points are stored, a function is called. At the point where the tenth data point is stored, and the function is called the first time, several nodes will return fail

[Tinyos-help] mote turn off

2007-09-06 Thread n subhash
hi, Is there any command to turn off the mote externally in cygwin ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] forcing a node in LPL mode to stop listening if a transmission is continuous

2007-09-06 Thread Murray, Ben
Again, perhaps a slightly strange scenario, but I was wondering if there was a standard way to stop a node using the low power listening technique from receiving successive messages in the presence of a continuous transmitter? If, for example, a transmitter is set up to continuously transmit mess

[Tinyos-help] toscomm shared object for MacOS X?

2007-09-06 Thread Ákos Maróy
I wonder if one can set up the toscomm shared object on MacOS X easily, to be able to access a mote through the serial interface on MacOS.. ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailma

[Tinyos-help] Measuring bit error rate and packet error rate in tinyOS-2.x

2007-09-06 Thread Jose Lopez
Hello. I'm a telecommunications engineering student. I would like to know if there is some way to measure the following parameters with a telosb mote using tinyos-2.x: -Bit Error Rate -Packet Error Rate -Signal To Noise Ratio -Receive Signal Strength Indicator Is there interfaces to measure

[Tinyos-help] Lesson 10 tinyos 2.x: I don't know about msp430.util

2007-09-06 Thread sergio mena doce
Doing lesson 10, I've encountered with the problem at the end of the lesson, installing Blink for a virtual platform called yamp: tsc at tsc-laptop:/opt/tinyos-2.x/apps/Blink$ make yamp install bsl,/dev/ttyUSB0 mkdir -p build/yamp compiling BlinkAppC to a yamp binary ncc -o build/yamp/main.e

[Tinyos-help] RE: EXTERNAL ANTENNA (Aleksandr N. Sadkov)

2007-09-06 Thread Joan Cortes
You need to move one capacitor, in the process you could damage it, therefore have ready couple of them (capacitors are veryvery cheap). See http://www.moteiv.com/community/Adding_an_External_Antenna_to_Tmote_Sky Cheers, Joan ___ Tinyos-help mailing list

[Tinyos-help] low power listening -- controlling when it wakes and confirming s leep period?

2007-09-06 Thread Murray, Ben
I am using LowPowerListening with a MicaZ mote and am curious about a few more specifics. I am using the setLocalSleepInterval(X ms) command. My first question concerns the actual sleep period. Given the above command, will the mote: a) perform its low power listening period (taking approximate

[Tinyos-help] TinyOS and fixed-point arithmetic

2007-09-06 Thread John Vial
Hello, I am attempting to perform a rather complicated algorithm on the MIT Cricket motes for my 4th year thesis project. I am however concerned that my extensive use of floats in my algorithm is degrading the performance of my motes. I'm hoping to implement this algorithm using fixed point arit

Re: [Tinyos-help] Micaz antenna extension

2007-09-06 Thread Marios Milis
Thank you very much for the very helpful information My Best regards Marios On Wed, 2007-09-05 at 12:18 -0600, Michael Schippling wrote: > The micaZ's (and other 2420 radio motes) run at approx the same frequency > as 802.11b -- your favorite wireless networking wavelength. So any antenna > that w

RE: [Tinyos-help] EXTERNAL ANTENNA

2007-09-06 Thread Aleksandr N. Sadkov
Hello, See your Schematics for the Tmote Sky module. You should remove C73 capacitor. Regards, Aleksandr. wbr, Sadkov Aleksandr [EMAIL PROTECTED] www.sumkino.com www.wl.unn.ru _ From: n subhash [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 05, 2007 7:22 PM To: Aleksan