[Tinyos-help] Radio and Flash concurrency on SPI

2008-04-11 Thread Flavio Pompermaier
Hi to all, I've a question about the shared SPI bus between Radio and Flash modules on Tmote Sky: isthere any problem if a node is writing to flash while another mote issending a packet to it? Could the radio loss the packet if I do notuse the Packet Link layer of TinyOs and setting retries th

[Tinyos-help] Basestation: why atomic sections

2008-04-11 Thread Flavio Pompermaier
Hi to all, I've a question regards the Basestation code. In BasestationP.nc componentvariables are modified only from tasks or from sync events, so why there's the need of atomic sections?? Atomic sections are needed only whene there's something async..or I'm wrong? Best regards, Flavio

Re: [Tinyos-help] sendDone not signalled when i send packet over radio

2008-04-11 Thread Bhavish Aggarwal
Hi Brian, The red LED does toggle when I send. But neither the yellow (when senddone is signalled with success) or green(when senddone is signalled with failure) is toggled. Bhavish On Fri, Apr 11, 2008 at 10:03 PM, Brian Mulanda <[EMAIL PROTECTED]> wrote: > > It could be because the message doe

Re: [Tinyos-help] RSSI tutorial for T2 created!!!

2008-04-11 Thread Ittipong Khemapech
Hi Dimas, Many thanks for your contributions. The number of emails about "how to measure RSSI" on this mailing list should be decreased. However, you may have more emails in your mailbox :-) Ittipong On 11/04/2008, Dimas Abreu Dutra <[EMAIL PROTECTED]> wrote: > > Hello everyone, > > I am proud

[Tinyos-help] mts300

2008-04-11 Thread Yi-Tao Wang
Hi, I noticed that there's an accelerometer component in sensorboards/mts300 but the mts300 doesn't have an accelerometer. Is that component for the mts310? Thanks, David ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.mill

[Tinyos-help] RSSI tutorial for T2 created!!!

2008-04-11 Thread Dimas Abreu Dutra
Hello everyone, I am proud to announce that, as promised on a previous thread on this list ( http://www.mail-archive.com/tinyos-help@millennium.berkeley.edu/msg17933.html) , I procrastinated my real research this afternoon and created a tutorial in the tinyos wiki (http://docs.tinyos.net/index.php

Re: [Tinyos-help] question on LQI function of CC2420

2008-04-11 Thread Philip Levis
On Apr 11, 2008, at 2:31 PM, Baozhi Chen wrote: > We know that the LQI is calculated by the first 4 bytes of the packet. > But how is the LQI obtained ( I mean exact formula or procedure to > derive it)? Does > anyone have any idea on it? It is not defined on IEEE 802.15.4. > Thanks. This com

Re: [Tinyos-help] CTP

2008-04-11 Thread Omprakash Gnawali
On Fri, Apr 11, 2008 at 1:50 PM, funofnet Funofnet <[EMAIL PROTECTED]> wrote: > > > > Hi, > > Please I have a simple question: if I want to modify CTP estimator which > component should I basically modify ? > If you want to change the link estimator used by CTP, you can modify LinkEstimatorP.nc.

Re: [Tinyos-help] question on LQI function of CC2420

2008-04-11 Thread Ittipong Khemapech
You may find these links are useful. http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2008-March/031543.html http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2008-March/031548.html Ittipong On 11/04/2008, Baozhi Chen <[EMAIL PROTECTED]> wrote: > > We know that the LQI is calcu

[Tinyos-help] question on LQI function of CC2420

2008-04-11 Thread Baozhi Chen
We know that the LQI is calculated by the first 4 bytes of the packet. But how is the LQI obtained ( I mean exact formula or procedure to derive it)? Does anyone have any idea on it? It is not defined on IEEE 802.15.4. Thanks. Baozhi ___ Tinyos-help mail

[Tinyos-help] CTP

2008-04-11 Thread funofnet Funofnet
Hi, Please I have a simple question: if I want to modify CTP estimator which component should I basically modify ? thanks _ Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr_

[Tinyos-help] apps

2008-04-11 Thread Yi-Tao Wang
Hi, Besides MultihopOscilloscope, are there any other non-trivial apps for mica2 or micaz that I can download and play around with? Thanks, David ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-b

Re: [Tinyos-help] max input voltage in adc ports

2008-04-11 Thread Michael Schippling
The table on page 38 of the MSP manual that I have: "12-bit ADC, power supply and input range conditions" indicates that you shouldn't exceed Vavcc which is the power supply voltage, nominally 3 volts. I'd suspect that a little slip above that as long as the current is limited would not be a pr

Re: [Tinyos-help] rookie's question

2008-04-11 Thread Michael Schippling
Look in doc/tutorial and the apps directories. MS Xi wrote: > Hi everyone: > > I am new to this. I have a professional kit. I already installed > cygwin and TinyOS on my XP system. > > Where can I find some examples and how can I compile and run them on > the sensors? Thank you. > -- Platfor

Re: [Tinyos-help] Flooding Time Synchronization

2008-04-11 Thread renjie huang
Thanks for the information. On 4/11/08, Branislav Kusy <[EMAIL PROTECTED]> wrote: > > test app: > > http://tinyos.cvs.sourceforge.net/tinyos/tinyos-2.x-contrib/stanford-lgl/apps/TestFTSP/ > > FTSP lib: > > http://tinyos.cvs.sourceforge.net/tinyos/tinyos-2.x-contrib/stanford-lgl/libs/FTSP/ > > bran

Re: [Tinyos-help] Generic File Datasink in Xserve

2008-04-11 Thread Giri Baleri
I think you need to specify the absolute path (not the relative path that Cygwin uses). Eg. C:/Crossbow/Cygwin/opt/raw_surge_data.txt Giri -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Javier Zazo Sent: Friday, April 11, 2008 10:41 AM To: tinyos-help@m

[Tinyos-help] max input voltage in adc ports

2008-04-11 Thread miriam herraiz
Hi! a quick question, does anybody know the max input voltage that we can supply to the ADC ports in Tmote Sky?? thanks! Miriam ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listin

Re: [Tinyos-help] Flooding Time Synchronization

2008-04-11 Thread Branislav Kusy
test app: http://tinyos.cvs.sourceforge.net/tinyos/tinyos-2.x-contrib/stanford-lgl/apps/TestFTSP/ FTSP lib: http://tinyos.cvs.sourceforge.net/tinyos/tinyos-2.x-contrib/stanford-lgl/libs/FTSP/ brano renjie huang wrote: > Hi paul > > In which directory can I find the code of FTSP for T2? Thanks

Re: [Tinyos-help] cygwin help

2008-04-11 Thread Yi-Tao Wang
Adding the mote id fixed it. Thanks, David On Fri, Apr 11, 2008 at 7:42 AM, Janos Sallai <[EMAIL PROTECTED]> wrote: > Go to Control Panel -> System -> Hardware -> Device Manager -> Ports, > there you'll see two consecutive port numbers (e.g. Com4 and Com5), the > first of which is the programm

[Tinyos-help] Generic File Datasink in Xserve

2008-04-11 Thread Javier Zazo
Hi, I am using Xserve in Moteworks, and when I create a xml file for parsing, I cannot make the Generic File Datasink create any file (not the raw, parsed or converted). This is the datasink code:

Re: [Tinyos-help] Need help reading the RSSI

2008-04-11 Thread Ittipong Khemapech
Please see my emails between Mukesh and myself. The last one was posted to this list less than 5 mins ago. Ittipong On 11/04/2008, basem aljedai <[EMAIL PROTECTED]> wrote: > > Hi All, > > I have less than one week to read Rssi value from different distances I'm > using TinyOs 2.x and I'm working

Re: [Tinyos-help] Xserve in TinyOS

2008-04-11 Thread Javier Zazo
I just found the solution, so I will post it for the record. The only thing that needs to be done is to copy the dll files in the directory /xserve/cygwindlls to the directory /cygwin/bin/. Hope it helps someone. I just didn't find it so obvious at the beginning. 2008/4/7, Javier Zazo <[EMAIL PROT

Re: [Tinyos-help] for help about MDA320

2008-04-11 Thread Giri Baleri
How did you compile the code? (jn lp mode or hp mode) How did you supply inputs to the ADC channels? (please provide connection details) Are you using excitation channels to energize these ADC inputs? Giri From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Beh

Re: [Tinyos-help] TinyOS help

2008-04-11 Thread Ittipong Khemapech
You have already declared several variables to store RSSI and LQI at the receiving side (base station). The other thing you have to do is to put those values into the payload of the message_t. An example of defining your own message structure is: #ifndef SAMPLEMSG_H_ #define SAMPLEMSG_H_ enum {

[Tinyos-help] Need help reading the RSSI

2008-04-11 Thread basem aljedai
Hi All, I have less than one week to read Rssi value from different distances I'm using TinyOs 2.x and I'm working with telosb .. but untel now I could not read the Rssi value then send it to a java application .. all what I have done is using the BlinkToRadio example and the BaseStation but I c

Re: [Tinyos-help] When is sendDone signaled?

2008-04-11 Thread Brian Mulanda
I think it's signalled after the last byte has been successfully released over radio. Have a look at CRCPacket.nc -Brian On Sun, Apr 6, 2008 at 11:50 AM, Gaurav Chhawchharia < [EMAIL PROTECTED]> wrote: > Hello all, > > I am working with tinyos-1.x and using tmote sky. > > I wanted to know when

Re: [Tinyos-help] sendDone not signalled when i send packet over radio

2008-04-11 Thread Brian Mulanda
It could be because the message doesn't get sent at all, due to something in the packet. Does the red led come on or off when you send? -Brian event TOS_MsgPtr UARTReceive.receive(TOS_MsgPtr Msg) { if (call RadioSend.send(&Msg) == SUCCESS) { call Leds.redToggle();

[Tinyos-help] how to interprete the sensed light data?

2008-04-11 Thread Chris Yao
Hi, I use MultihopOscilloscope() to collect some light data. The hardware is Micaz and MTS300. I use Listen to print out the collected data. For example, one reading is A3 03. My question is: how do I interprete this sensed data? what is the unit? Thanks, Chris __

Re: [Tinyos-help] graphviz warning in tos-check-env

2008-04-11 Thread renjie huang
It does not matter. Skip it. On Fri, Apr 11, 2008 at 5:59 AM, nora <[EMAIL PROTECTED]> wrote: > Hi, I am new in TinyOs. > > When I run tos-check-env, it gives me this warning: > > tos-check-env completed with errors: > > --> WARNING: The graphviz (dot) version found by tos-check-env is not > 1.10

Re: [Tinyos-help] sendDone not signalled when i send packet over radio

2008-04-11 Thread renjie huang
Hi I think the reason may be due to the code of event TOS_MsgPtr UARTTokenReceive.receive(TOS_MsgPtr Msg, uint8_t Token) ; When TokenReceiveMsg.receive event is signaled, you need to send back ack by calling call TokenReceiveMsg.ReflectToken(gTokenBuf); You can see the code in FramAckM.nc.

Re: [Tinyos-help] USB flow control in testbeds!

2008-04-11 Thread Kevin Klues
So the existing printf library is broken in the sense that if it is in the process of flushing packets out the serial line it will fail all printf commands that are called on it. I have an alternate implementation that doesn't do this, but hasn't made its way into the repository yet because the in

[Tinyos-help] rookie's question

2008-04-11 Thread Xi
Hi everyone: I am new to this. I have a professional kit. I already installed cygwin and TinyOS on my XP system. Where can I find some examples and how can I compile and run them on the sensors? Thank you. -- Cheers Xi ___ Tinyos-help mailing list Tin

[Tinyos-help] USB flow control in testbeds!

2008-04-11 Thread Nitin Sharma
I was just wondering how you guys manage flow control for testbeds connected to a logging PC using a USB hub or something. I am currently using Xubuntos for the PC. The Hub seems to wear more i use it, and the behavior of the logged packets using Serial Logging like Printf library seems to be givi

[Tinyos-help] How accurate is the MViz Topology figure

2008-04-11 Thread Chris Yao
Hi, When I run MViz application, tos-mviz shows the topology of the current sensor network. Is the figure accurate? The reason I ask is because: I have 8 micaz running. I do not change their locations. However, if I run tos-mviz different times, the figure gives me different topology

Re: [Tinyos-help] cygwin help

2008-04-11 Thread Giri Baleri
Depending on the version of TinyOS you have, you might be able to use "motelist" command in Cygwin to find out the COM ports assigned to your MIB520. What always works is Windows device manager, which can be accessed by clicking the Start button on the Task Bar and selecting Start > Control Panel

Re: [Tinyos-help] Platform pc-Crossbow

2008-04-11 Thread Giri Baleri
TOSSIM is not supported under MoteWorks and hence "make pc" won't work. If you need to use TOSSIM, then you should use TinyOS. Giri From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lei Mlapom Sent: Friday, April 11, 2008 2:31 AM To: tinyos-help@mil

Re: [Tinyos-help] cygwin help

2008-04-11 Thread Janos Sallai
Go to Control Panel -> System -> Hardware -> Device Manager -> Ports, there you'll see two consecutive port numbers (e.g. Com4 and Com5), the first of which is the programmer port of the MIB520, the second is the communication port. You need to use the first one to program the mote. The correct com

[Tinyos-help] Time delay

2008-04-11 Thread Poonam Hiwal
Hi, Help me finding the time delay of packet without implementing the time synchronization. Is there any way of doing it accurately? Please help in suggesting the solution. --Poonam ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https

[Tinyos-help] graphviz warning in tos-check-env

2008-04-11 Thread nora
Hi, I am new in TinyOs. When I run tos-check-env, it gives me this warning: tos-check-env completed with errors: --> WARNING: The graphviz (dot) version found by tos-check-env is not 1.10. Please update your graphviz version if you'd like to use the nescdoc documentation generator. I currently

Re: [Tinyos-help] Sending msg type from pc

2008-04-11 Thread Urs Hunkeler
Hi Nicole, In this case, forget about the thread thing and try this instead. I see now the problem: you declare a class variable MoteIF, but you then declare the same variable again in the init() method, thus hiding the class variable. So in your message handler the variable moteIF is null. To

Re: [Tinyos-help] Sending msg type from pc

2008-04-11 Thread Nicole Neureiter
Hi, at that line is moteIF.send(1,msg). Actually it is always at that point no matter what I do. I didn't intend any infinite loop. All I wanted to do is to send the received message, that is 1 message, back to my motes, after I have received it. Haven't tried your suggestion yet. Thanks Nicole >

Re: [Tinyos-help] [tinyos-help] help plz multihopRoute

2008-04-11 Thread Omprakash Gnawali
On Fri, Apr 11, 2008 at 4:30 AM, dima . <[EMAIL PROTECTED]> wrote: > > > > hi again, > > 1-PLZ WHERE could i find the CTP in TINYOS-2 ?? You can find it in tos/lib/net/ctp You can read about it here: http://tinyos.cvs.sourceforge.net/tinyos/tinyos-2.x/doc/txt/tep119.txt?revision=1.8&view=markup

[Tinyos-help] [tinyos-help] help plz multihopRoute

2008-04-11 Thread dima .
hi again, 1-PLZ WHERE could i find the CTP in TINYOS-2 ?? 2-how could i undesrtand the MultihopRoute in tinyos1.x with all its commands and parameters cz i need to modifiy it to implement my algorithm and i dont have much time ?? thx alot ,, > Date: Tue, 8 Apr 2008 11:26:00 -0700> F

Re: [Tinyos-help] Sending msg type from pc

2008-04-11 Thread Urs Hunkeler
Hi Nicole, Which line is at line 109 in your original ConvCast.java file? This is where apparently there is a NullPointerException. In the anonymous class for handling received UpflowResultMsg messages you seem to have an infinite loop. Is this intended? Or would you rather want to start sendi

[Tinyos-help] for help about MDA320

2008-04-11 Thread zhiyong yang
Hi: I'm using MDA 320, MICAz and MIB 520. I'm using the source code 'C:\Crossbow\cygwin\opt\MoteWorks\apps\xmesh\XMeshBase' for the base node, and 'C:\Crossbow\cygwin\opt\MoteWorks\apps\xmesh\XMDA320' for the node #1. AND I didn't change any code. when i connect a MDA320(whose analoy channel co

Re: [Tinyos-help] counter

2008-04-11 Thread Ittipong Khemapech
I have no experience with the cluster. Seems a bit to me that you've already answered one of your own questions :-) Should the counter be an unsigned integer variable such as uint8_t? Ittipong On 11/04/2008, shivani n s <[EMAIL PROTECTED]> wrote: > > i want a counter to start after formation of

[Tinyos-help] counter

2008-04-11 Thread shivani n s
i want a counter to start after formation of the cluster.how and where do i declare it? ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] cygwin help

2008-04-11 Thread Siirtola Harri
If things haven't changed that much, your command line might be wrong. Check that first. Regards, Harri -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Yi-Tao Wang Sent: Friday, April 11, 2008 3:28 AM To: tinyos-help@millennium.berkeley.edu Sub

Re: [Tinyos-help] TinyOS help

2008-04-11 Thread Ittipong Khemapech
Firstly, I have forwarded your email to the list. You can have better help and suggestions. Secondly, what your codes say? Thirdly, which platform, os, tinyos are you using? Ittipong On 11/04/2008, mukesh rungta <[EMAIL PROTECTED]> wrote: > > Hi > > I am also working on to find out the RSSI/LQI

Re: [Tinyos-help] radio sleep and wake up scheduling in Tinyos 2 & TOSSIM

2008-04-11 Thread Ittipong Khemapech
Yes, it's possible. I did it in TOSSIM 1 several months ago. The first key thing is using SplitControl interface to control the radio like: uses interface SpitControl as RadioControl; You can have several timers in your app, let's say: uses interface Timer as StartRadioTimer; uses interface Time

Re: [Tinyos-help] Sending msg type from pc

2008-04-11 Thread Nicole Neureiter
Hi my code at the moment is as follows: import java.io.IOException; import java.util.*; import net.tinyos.message.*; import net.tinyos.packet.*; import net.tinyos.util.*; public class ConvCast { private MoteIF moteIF; private static void usage() { System.err.println("usage: TestSer

[Tinyos-help] Platform pc-Crossbow

2008-04-11 Thread Lei Mlapom
Hi: I am using Crossbow Motewors to program micaz motes. I am trying to use TOSSIM. But I get an error with the instruction "make pc". Why doesn't the platform pc exist in the folder platform? Thanks in advance __ ¿Con Mascota por primera

Re: [Tinyos-help] SerialForwarder and Sensor

2008-04-11 Thread Tiny User
my god a lot of bugs and errata in this tinyos system please help me in Test Serial program I use: java TestSerial -comm serial@/dev/ttyS0:mica2 and i get: Sending packet 0 serial@/dev/ttyS0:57600: resynchronising Sending packet 1 Sending packet 2 Sending packet 3 Sending packet 4 Sending p

[Tinyos-help] sendDone not signalled when i send packet over radio

2008-04-11 Thread Bhavish Aggarwal
I am writing an application to bridge packets from UART to radio in tinyos 1. The send command on the radio returns a success but the senddone event is not signalled. Could anyone please help me with this issue. The code is as below. Thanks, Bhavish module UARTToRadioM{ provides{

Re: [Tinyos-help] Flooding Time Synchronization

2008-04-11 Thread renjie huang
Hi paul In which directory can I find the code of FTSP for T2? Thanks On Fri, Apr 11, 2008 at 12:52 AM, Branislav Kusy <[EMAIL PROTECTED]> wrote: > hi paul, > > i haven't really written timer routines - they are part of T2. i was > only testing FTSP for micaZ and the component that provides TMic

Re: [Tinyos-help] Flooding Time Synchronization

2008-04-11 Thread Branislav Kusy
hi paul, i haven't really written timer routines - they are part of T2. i was only testing FTSP for micaZ and the component that provides TMicro counter for micaZ is tos/platforms/mica/CounterMicro32C.nc i just did a quick search and i found tos/chips/msp430/Msp430CounterMicroC.nc which provid

[Tinyos-help] BER PER SNR RSSI LQI

2008-04-11 Thread Nahr ...
Hello. I'm a telecommunications engineering student. I would like to know if there is some way to measure the following parameters with a micaz mote using tinyos-2.x and Tossim: -Bit Error Rate -Packet Error Rate -Signal To Noise Ratio -Receive Signal Strength Indicator -Link Quality Indicator Is

Re: [Tinyos-help] Set transmission power in CC2420

2008-04-11 Thread renjie huang
I am not sure of T2. But in T1, it is possible to change RF power at runtime, and it is not per-packet basis. Because when setRFpower is called, a corresponding register is visited and modified. On Thu, Apr 10, 2008 at 11:17 PM, Urs Hunkeler <[EMAIL PROTECTED]> wrote: > Hi Chris, > > The CC2420Pa