[Tinyos-help] synchronisation

2010-11-19 Thread wafa jaballah
Hi, I want to calculate the global and local time of the packet transmission in sender, then the local and global time of reception of the packet in receiver side. And I want to use these calculations in order to get for example the clock drift . My object is to synchronise my nodes and

[Tinyos-help] local and global time using FTSP in my app

2010-11-14 Thread wafa jaballah
Hello, I want to calculate the local and global time in the receiver's side in order to do use them in further calculations so I have used the following code: event message_t* RadioReceive.receive(message_t* data, void* payload, uint8_t len ) { uint8_t is_synced; call

[Tinyos-help] evaluating time in telosB

2010-11-09 Thread wafa jaballah
Hello, I want to evaluate a delay term in telosB motes. When simulating with tossim, I used the following code and I try to use it also when using TelosB. event error_t Receiver.authenticDataReady(Data_Packet_t *p, long auth_delay) { authentication_delay+=auth_delay;

Re: [Tinyos-help] evaluating time in telosB

2010-11-09 Thread wafa jaballah
hello, could you please explain more, because I don't know what is the upper limit reached by the value of this variable, Thanks 2010/11/9 wasif masood rwmas...@gmail.com you also need to reset the variable when the upper limit is reached. On Tue, Nov 9, 2010 at 1:50 PM, wafa jaballah

[Tinyos-help] Powertossim2 under Ubuntu9.10

2010-09-08 Thread wafa jaballah
Hello, I have used powertossim2 under cygwin, and now I changed to Ubuntu9.10. What makes me confused is that when I run make mica2-sim-energy, the application is successfully compiled, But the execution fails i.e. when I run /.test.py, I have the following output: w...@wafa-desktop:

[Tinyos-help] FTSP

2010-05-10 Thread wafa jaballah
Hi all, My application needs synchronised nodes in order to have correct results. To do this, I have to synchronise nodes with a Time Synchronization Protocol like FTSP. How can I integrate FTSP in my application or on any application in WSN.? Is there a general method to do it? Best Regards,

[Tinyos-help] timer .getNow()

2010-04-22 Thread wafa jaballah
hi all, I have a problem related to the current time in a mote. More Specially, If a sender wants to send a packet , I want to mention the time of receiving a packet. printf (message was received at time %u\n, call Timer.getNow())? What I install the code on a mote , I have : message was

[Tinyos-help] how to have all motes synchronized?

2010-04-21 Thread wafa jaballah
hi all, I have an application that needs a lightweight synchronisation between nodes. In order to implement it in motes, I need all sensors must be initially synchronised in orde to have correct results. What should I have ? Thanks, and Best Regards, -- Wafa Ben Jaballah

[Tinyos-help] ticksPerSecond()

2010-04-17 Thread wafa jaballah
hi all, I have to simulate an application and more specially I want to calculate the variation of a variable in function of time (every 1ms). To do that , I used t.ticksPerSecond() in my python file. I learned from TEP102 that one second contains 1024 binary milliseconds, 32768 32kHz ticks, or

[Tinyos-help] list of values

2010-04-02 Thread wafa jaballah
Hi all, I want to compute the number of buffered packet every 2 second (for example). I used a timer like this : command void Receiver.ProcessData(Data_Packet_t *p, long rcv_time) { call Timer1.startPeriodic(d); // the rest of the code } event void Timer1.fired() { signal

[Tinyos-help] hash function

2010-03-17 Thread wafa jaballah
Hi all, I want to use specific hash functions in my work. In fact, these hash functions have to map each element to a value between 0 and m. That is, h1(X) = e ; and e is between 0 and m. Is there a way to implement these hash functions in nesC? Thanks, and Best Regards, -- Wafa Ben

[Tinyos-help] error receiving packet

2010-02-02 Thread wafa jaballah
Hi all, As It was indicated in TEP , the default size of TOSH_DATA_LENGTH is 28 bytes. In my application, I use a data payload size of 38 bytes. So, I can redefine TOSH_DATA_LENGTH using the following command in Makefile -DTOSH_DATA_LENGTH=38 Is it true? Then , I define my data packet as

[Tinyos-help] warning and simulation

2010-01-20 Thread wafa jaballah
Hello ! I 'm implementing an application written in nesc language using tinyos2.x. It is successfuly compiled, but I have some warnings related to the incompatibility of some variables. I don't know if these warnings can have an effect on simulation or when testing on the mote. This is a snippet

[Tinyos-help] Enabling LPL ?? : LOW POWER COMMUNICATIONS DISABLED

2010-01-20 Thread wafa jaballah
Hi, I'm using TelosB and Tinyos2.x. When I compile my code, I have the following error: *opt/tinyos-2.x/tos/chips/cc2420/lpl/DummyLplC.nc:39:2: warning: #warning ** *** LOW POWER COMMUNICATIONS DISABLED -- This warning indicates that I am not using LPL. How could I enable LPL in my

[Tinyos-help] toscomm JNI library not found

2010-01-16 Thread wafa jaballah
when I run java.net.tools.Listen -comm ser...@com4:telosb I am encountering the problem Toscomm JNI library not found 1. I have installed the tos-install-jni and it is successfully installed without any problems. I confirm this because when I run tos-locate-jre --jni the following is printed

Re: [Tinyos-help] PowerTossim2

2010-01-01 Thread wafa jaballah
and CC1000CsmaRadioC. It compiles succesfully make micaz sim. How can I resolve it ? Thanks, 2009/12/31 Viktor Zsoldos gecko...@gmail.com Hi, You were correct, the powertossim2 is there, just read the README. You will need tinyos 2.02, and python 2.4 to make it work. Good luck, Viktor wafa

[Tinyos-help] current draw in TX mode

2009-12-22 Thread wafa jaballah
Hi all, In the TelosB dataSheet, the current draw in TX mode is not given. ( in Micaz, this information is given). So, how can I compute the current draw in TX mode ? (and what is the maximum value supported by TelosB) Thanks a lot, -- Wafa Ben Jaballah

[Tinyos-help] nesc 1.3 tutorial

2009-12-16 Thread wafa jaballah
Hi all, Is there a good tutorial for tinyos2.1 programming especially nesc1.3.0? -- Wafa Ben Jaballah ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] difference between the 2 calls.

2009-12-15 Thread wafa jaballah
Hi , I'm working with tinyos2.1. I have found two types of writing a call to a command. For example, the command prototype is: command error_t Sender.generateConfig(uint8_t lvl, long snd_time, DATA_Packet_t *packet,Sender_Config_t *p ) To call this command, I found two manners: the

[Tinyos-help] cryptographic primitives in tinyos2.x

2009-12-06 Thread wafa jaballah
Hi all, I'm working on tinyos2.x and I want to use some cryptographic primitives like Skipjack, blockCipher, RC5, etc In tinyos2.x, there are no components and modules for these primitives. How could I download them? Is there a link? Thanks -- Wafa Ben Jaballah

[Tinyos-help] cryptographic primitives in tinyos2.x

2009-12-06 Thread wafa jaballah
Hi all, I'm working on tinyos2.x and I want to use some cryptographic primitives like Skipjack, blockCipher, RC5, etc In tinyos2.x, there are no components and modules for these primitives. How could I download them? Is there a link? Thanks -- Wafa Ben Jaballah

[Tinyos-help] editor for nesC

2009-12-04 Thread wafa jaballah
hi all, Is there an editor to write nesC applications in tinyos2.x ? Thanks, -- Wafa Ben Jaballah ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] energy consumption in tinyos2.x?

2009-11-30 Thread wafa jaballah
hi all, I work with tinyos2.x and Tossim to simulate my application. I want to know is there a way to compute energy consumption of my application. As I Know PowerTossim is only available in Tinyos1.x. How can I compute energy consumption? Is there a way to calculate energy using motes? I will

Re: [Tinyos-help] energy consumption in tinyos2.x?

2009-11-30 Thread wafa jaballah
(http://docs.tinyos.net/index.php/Avrora) which is a cycle accurate simulator for the mica2 mote. Regards. Sylvain On Mon, 2009-11-30 at 10:31 +0100, wafa jaballah wrote: hi all, I work with tinyos2.x and Tossim to simulate my application. I want to know is there a way to compute

[Tinyos-help] problem with getting a (long) variable in python

2009-11-25 Thread wafa jaballah
Hello All, I simulate an application under TOSSIM and tinyos2.1. I used a python file in order to get the value of some variables ( variable inspection) I try to follow the tutorial (TOSSIM lesson). The application is compiled successfully But when I want to get the value of some variables, I get

[Tinyos-help] simulation time

2009-11-25 Thread wafa jaballah
Hello all, Thanks for your help, but I really sometimes ask questions that maybe seem evident. I have an application that it sends packets during 1200 ms and after that I want to stop sending and simulating and I get finally the different parameters. When I run the python file, I found that

[Tinyos-help] problem with receiving packets

2009-11-19 Thread wafa jaballah
Hi all, I have to send Two types of packets . The send Command runs successfully and the event sendDone was signaled (the two types of packets were sent successfully). But , the problem is that in the receive command, I only receive the type of packets that I have first sent.So, I don't

[Tinyos-help] random values

2009-11-19 Thread wafa jaballah
Hi all, I want to generate a random value in each simulation. So I do like this: rnd=call Random.rand16(); When I simulate in TOSSIM using tinyos2.x, I have the same value of rnd in each simulation. How can I do to have a different random values. Thanks -- Wafa Ben Jaballah

[Tinyos-help] how to display the current time in Tinyos2.x

2009-11-14 Thread wafa jaballah
Hello, I'd like to display the current time information in TinyOS2.x. I know in TinyOS1.x,such information could be given as below can do this. call Sender.generate(0,tos_state.tos_time/1000,packet) But in TinyOS2.x,I don't known how to access the current time information besides

[Tinyos-help] tos_state.tos_time in T2

2009-11-09 Thread wafa jaballah
hi all, what is the analog of tos_state.tos_time in tinyos2.x? Thanks, -- Wafa Ben Jaballah ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] programming in tinyos2.x

2009-11-08 Thread wafa jaballah
hello all, I 'm newbee in programming with nesC . I have a code written in tinyos1.x and I want to implement it in tinyos2.x. I have some doubts and questions : 1) what is the analog of this sample code tos_state.tos_time in tinyos2.x. ( I found that it is in the nido.h file , although in

[Tinyos-help] Toscomm JNI library

2009-10-28 Thread wafa jaballah
Hi all, I want to communicate with a mote from a PC. From Lesson Mote-PC serial communication and Serial Forwarder in Tinyos Documentation, I want to follow the different steps. In order to tell the Listen TOOL to use COM1 serial port at the correct speed for a telos mote, I do the following

Re: [Tinyos-help] Toscomm JNI library

2009-10-28 Thread wafa jaballah
...@millennium.berkeley.edu [mailto: tinyos-help-boun...@millennium.berkeley.edu] *En nombre de *wafa jaballah *Enviado el:* miƩrcoles, 28 de octubre de 2009 12:17 *Para:* tinyos-help@millennium.berkeley.edu *Asunto:* [Tinyos-help] Toscomm JNI library Hi all, I want to communicate with a mote from a PC

Re: [Tinyos-help] Toscomm JNI library

2009-10-28 Thread wafa jaballah
Hi all, Thanks for your reply. Finally, I succeed to install tos-install-jni. The solution of Liu works for me. I just copy the TOSCOMM.dll in the same folder with the name TOSCOMM-32.dll Thanks -- Wafa Ben Jaballah ___ Tinyos-help mailing list

Re: [Tinyos-help] /usr/bin/perl : bad interpretor

2009-10-17 Thread wafa jaballah
You are likely haven't installed perl on ur machine or perl is not properly configured Yusnaidi On 16 Oct 2009, at 17:20, wafa jaballah wafa.jabal...@gmail.com wrote: hello all, I have installed tinyos succesfully and I compiled some applications on it. But, I found few days later

[Tinyos-help] /usr/bin/perl : bad interpretor

2009-10-16 Thread wafa jaballah
hello all, I have installed tinyos succesfully and I compiled some applications on it. But, I found few days later that I have an error. When I want to guess the success of tinyos2.1 installated in my PC, I run the following command : $ tos-check-env and the result is : bash:

[Tinyos-help] miracl library

2009-06-13 Thread wafa jaballah
Hi all, Is there someone who integrates the library MIRACL in tinyos in order to calculate a point multiplication or addition? Is there an implementation in tinyos for an IBSignature ? Thx in advance -- Wafa Ben Jaballah ___ Tinyos-help mailing list

Re: [Tinyos-help] BUILD/PC/MAIN.EXE not found

2009-03-29 Thread wafa jaballah
and get something valid? The error indicates that the makefile can't find ncc MS wafa jaballah wrote: Hello ! I have checked : the nesc compiler is installed and configured also in my PATH. I have still the problem of : - MAIN.EXE is not found in build/pc

[Tinyos-help] BUILD/PC/MAIN.EXE not found

2009-03-28 Thread wafa jaballah
Hello all I'm a new in programming in TinyOS and I have a question about compiling an application. In fact, I want to check the platforms supported by this applications using the following command : *$ make tos.th system-wide* Makerules:165: *** mica pc all tos.th system-wide Usage: make

Re: [Tinyos-help] BUILD/PC/MAIN.EXE not found

2009-03-28 Thread wafa jaballah
and elsewhere and search this list for advice on setting your PATH variable. MS wafa jaballah wrote: Hello all I'm a new in programming in TinyOS and I have a question about compiling an application. In fact, I want to check the platforms supported by this applications using the following

[Tinyos-help] routing protocol

2009-03-27 Thread wafa jaballah
Hello! I don't know whether there is an implementation of a any routing protocol or data aggregating protocol in tinyos.? I will be very grateful if you could give me a hand? Best Regards -- Wafa Ben Jaballah ___ Tinyos-help mailing list

[Tinyos-help] tinyos beaconing protocol

2009-03-27 Thread wafa jaballah
Hello Is there anyone could give me a hand : I don't know if there exist the implementation of *TinyOS beaconing protocol* ? I will be very thankful for any suggestion! Best Regards! -- Wafa Ben Jaballah ___ Tinyos-help mailing list

[Tinyos-help] tos-install-jni

2009-02-16 Thread wafa jaballah
Hello All, I want to install the JNI : So , I type the following command: $ tos-install-jni I have the following errors: *Installing 32-bit Java JNI code in /cygdrive/c/Program Files/Java/jdk1.6.0_11/jre/bin ... install: cannot stat '/usr/ lib/tinyos/*-32.dll': No such file or directory * I

[Tinyos-help] simulation in tinyos

2009-02-16 Thread wafa jaballah
hello, I'm newbee in TinyoS, I learned from tutorial Mote-PC serial communication and Serial Forwarder to communicate with a mote from a PC. What I want to know, is that I don't have a mote to test it and install applications. So is there another method which allow me to watch the packet sent

[Tinyos-help] microTesla code source

2009-01-18 Thread wafa jaballah
hello ! I am interesting to simulate the microTesla protocol in TinyOS. Unfortunately, I have search from the web the source code of this protocol but I don't find it. Is there someone, who could help me, or there is an implementation of this protocol in the web? I will be very thankful for any

[Tinyos-help] Make , Configuration Environnement, Tools Folder

2009-01-03 Thread wafa jaballah
Hello ! I have installed tinyos2.1 following the steps described in the web site. I have configured the environnement variables in a file tinyos.sh in c: /etc/profile.d TOSROOT=/opt/tinyos-2.x CLASSPATH=c:\cygwin\opt\tinyos-2.x\support\sdk\java\tinyos.jar;.

[Tinyos-help] Tinyos 2.1 Installation: version of JDK

2009-01-01 Thread wafa jaballah
Hello , I installed Tinyos2.1 in my Windows. But When I use the command tos-check-env, I found the following message: The java version found first by tos-env-check may not be version 1.4 or 1.5 one of which is required by TOS. Please ensure that the located java version is 1.4 or 1.5.Depending