Re: [Tinyos-help] Ask inner resistance of Micaz motes

2009-06-08 Thread Urs Hunkeler
Hi, As MS already said, the resistance of the mote will vary based on the tasks being executed on the mote. If you need to estimate the current drawn by a mote and the remaining power in the batteries, then probably the best approach is to use a fuel gauge like the DS2770 as suggested in an

[Tinyos-help] Sending value from the mote to BaseStation ???

2009-06-08 Thread marion arnaud
Hi all, I am trying to make a location in a network of sensors. And I would like a mote determine the value of RSSI over another mote of the network, and then the first mote sending this value to the BaseStation. Does anyone know how I can to do this ? Anys ideas or advices are welcome! Thank

[Tinyos-help] Re : Re : random execution under tossim

2009-06-08 Thread chikh omar
Hello, I fixed the problem :) as follow: I increased the value of bandwidth. mac(): return the object representing the media access layer mac = t.mac() mac.setSymbolsPerSec(655360) Best regards, ** Omar Cheikhrouhou Engineer Researcher @SENS Lab

[Tinyos-help] uint16_t uint8_t and division

2009-06-08 Thread Alfred NOBEL
Hi all, if I had a uint16_t key variable, and if I divide this variable by (uint_8) 2 so in which type will be the result? uint8_t? In more detail let's say that key = 256; and I had uint16_t result variable so which will be the value of result if I execute something like that result = key/2;

[Tinyos-help] I2C Help!

2009-06-08 Thread Tommaso Montisci
Hi folks, I use tmote sky, I have to write drivers for a 3-axis magnetic compass that a wont include in a sensorboard to connect at mote throught the expantion connector. My problem is that the sensor I found for my scope use the I2C bus protocol. I know that the mote connecor's pin 8 and 6

Re: [Tinyos-help] waiting for sendDone

2009-06-08 Thread Rémi Villé
With a global variable ? if(!busy) { ... In the sendDone event = busy = FALSE; ? tutorial at http://docs.tinyos.net/index.php/Mote-mote_radio_communication ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu

[Tinyos-help] Calculation precision (in micaz and telosb)

2009-06-08 Thread Rémi Villé
Hi, In TinysOS there's only integer type to get calculation results. I think because of microcontroller/CPU coercions. But I would like to know if there is a precision during the calculation, I mean if I do (1/4) * 100 (using brackets to obtain 0.25 before the multiplication), will I obtain 25 or

[Tinyos-help] Calculation precision (in micaz and telosb)

2009-06-08 Thread Rémi Villé
Hi, In TinysOS there's only integer type to get calculation results. I think because of microcontroller/CPU coercions. But I would like to know if there is a precision during the calculation, I mean if I do (1/4) * 100 (using brackets to obtain 0.25 before the multiplication), will I obtain 25 or

Re: [Tinyos-help] Calculation precision (in micaz and telosb)

2009-06-08 Thread Rémi Villé
2009/6/8 Rémi Villé ville.r...@gmail.com Hi, In TinysOS there's only integer type to get calculation results. I think because of microcontroller/CPU coercions. But I would like to know if there is a precision during the calculation, I mean if I do (1/4) * 100 (using brackets to obtain 0.25

Re: [Tinyos-help] Can't compile TinyOS-2.x Java tools on Mac OS X (10.5.7)

2009-06-08 Thread Andres Vahter
I tried with: export CLASSPATH=$TOSROOT/support/sdk/java/:$TOSROOT/ support/sdk/java/tinyos.jar:.:$CLASSPATH It won't work either. tos-check-env shows: Classpath: /opt/tinyos-2.x/support/sdk/java/ /opt/tinyos-2.x/support/sdk/java/tinyos.jar . By the way do I have to do

Re: [Tinyos-help] uint16_t uint8_t and division

2009-06-08 Thread Urs Hunkeler
Hi Alfred, Getting the compiler to use the precision I needed has posed quite some problems. In general, the compiler should use the largest integer type of the operands for performing the operation. If key is defined as uint16_t, then the calculation should be done in 16-bits (independent of

[Tinyos-help] Simulating a tracking application in TinyViz

2009-06-08 Thread Kiraneet sharma
Hello everyone... I am working on a tracking and localization project. I have tested the tinyviz application as given in the tutorial. I was just wondering whether we can simulate a moving object along with the fixed nodes(considering a static environment) in TinyViz? Any pointers or help would

Re: [Tinyos-help] Ask inner resistance of Micaz motes

2009-06-08 Thread Urs Hunkeler
Hi, See page 14 in the datasheet: http://focus.ti.com/general/docs/lit/getliterature.tsp?genericPartNumber=cc2420fileType=pdf In the lowest-power transmit mode (-25dBm) the current draw is 8.5mA. Note, however, that prior to sending the message, the default radio stack implementation in TinyOS

[Tinyos-help] FTSP 32khz issues

2009-06-08 Thread Carlos Gil Soriano
Hi, according to the recommendations of Brano I have made HilTimer32khzC and then I have modify TimeSyncC so as to get 32khz timestamping precision. But I'm getting results that are so similar to what I got with TMilli precision. If I change the constant ENTRY_THROWOUT_LIMIT I get better results

Re: [Tinyos-help] Ask inner resistance of Micaz motes

2009-06-08 Thread João Carlos Giacomin
Read the paper, Remaining Capacity Measurement and Analysis of Alkaline Batteries for Wireless Sensor Nodes Adriano B. da Cunha, Breno R. de Almeida, and Diógenes C. da Silva, Jr., Member, IEEE IEEE TRANSACTIONS ON INSTRUMENTATION AND MEASUREMENT, VOL. 58, NO. 6, JUNE 2009 *  

Re: [Tinyos-help] Problems installing ti MSP430 driver in ubuntu 8.04 hardy with kernel 2.6.24-23.

2009-06-08 Thread aldo
Hello Rémi, when I plug the devide in dmesg i have the following: [ 1118.163457] usb 1-2: new full speed USB device using uhci_hcd and address 2 [ 1118.367624] usb 1-2: configuration #1 chosen from 1 choice [ 1136.636678] /build/buildd/linux-2.6.24/drivers/hid/usbhid/hid-core.c:

[Tinyos-help] controlling USB TX LED for tmote sky mote

2009-06-08 Thread Jun Han
Hi, I am currently unsure of how to control the USB TX LED for Tmote Sky. This is the red LED that is located on the left side of the USB port in the tmote sky. This LED blinks whenever there is a TX in the USART0, when set to UART mode. I am calling a HPLUART.put() function, which enables the

[Tinyos-help] capture a digital output from 6-pin expansion connector

2009-06-08 Thread Paola Di Palma
Hy, I need help. I want to capture a digital output from 6-pin expansion connector (U28) of my Telosb (with MSP430 f1611 processor). I would like this digital signal had a duty cycle set by me: I want to expose it to an hardware component to control the switching on and the switching off of an

Re: [Tinyos-help] Can't compile TinyOS-2.x Java tools on Mac OS X (10.5.7)

2009-06-08 Thread Andres Vahter
It exists and contains: Crc.class Crc.java DiagMsg.java Dump.java Env.java Makefile Messenger.java package.html PrintStreamMessenger.java Just in case: /support/sdk/java contains: build.xml Makefile Makefile.include /net tinyos.jar Ideas? I don't think you need to reinstall the tools when

[Tinyos-help] Removing CRC

2009-06-08 Thread Joe Green
Hello, I am trying to remove to CRC bytes off of the TinyOS packages. Is there a specific file that encodes the addition of the CRC? Thanks! ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu

Re: [Tinyos-help] capture a digital output from 6-pin expansion connector

2009-06-08 Thread Michael Schippling
I'm a little confused. I think you want to use a pin in output mode to switch something else on and off? Or do you want to capture (read) the value of an input pin? In either case, for low speeds and resolutions -- say 10ms -- GeneralIO with a Timer is probably the easy solution. Look at the

Re: [Tinyos-help] controlling USB TX LED for tmote sky mote

2009-06-08 Thread Michael Schippling
I think those LEDs are attached directly to the USB transceiver and are not under direct processor control. TX may only blink when a real USB message is being sent. I don't know if just putting bytes to the port is sufficient. MS Jun Han wrote: Hi, I am currently unsure of how to control

Re: [Tinyos-help] Calculation precision (in micaz and telosb)

2009-06-08 Thread Michael Schippling
Using fractions in integer arithmetic is a non-starter... specifically (1/4) * 100 will give you 0 because 1 divided by 4 in integer is 0. Although 0.25 * 100 would probably force a floating point operation resulting in 25.0 which would then be truncated to 25 if assigned to an integer. In that

Re: [Tinyos-help] tinyos implicit function[?]

2009-06-08 Thread Philip Levis
On May 26, 2009, at 1:57 AM, Alfred NOBEL wrote: Dear tinyos users, Calling PacketAcknowledgements.requestAck to My msg, does it enable automatic retransmission when wasAcked command returns FALSE? No, it doesn't. This is in part because different protocols want to respond differently to

Re: [Tinyos-help] bidirectional gain

2009-06-08 Thread Philip Levis
On May 29, 2009, at 5:53 AM, Rémi Villé wrote: Hi, In the topology file of TOSSIM we can see that we can choose a gain for a link from a node A to a node B and a different one for the link from B to A, so it may imply that, in real world, we have different gain from a mote A to a

[Tinyos-help] microphone sampling tinyos

2009-06-08 Thread Akankshu Dhawan
Hi All I have been able to use the ReadStream to sample microphone through the ADC using an MTS310 sensorboard and MICA2 motes. I wanted to know what is the maximum sampling I can get using ReadStream .. this interface from my knowledge is similar to the getcontinousdata interface of T1 and thus

Re: [Tinyos-help] Help printf (Release 2.0.2)

2009-06-08 Thread Kevin Klues
Can you show me your makefile? Kevin On Tue, Jun 2, 2009 at 6:06 AM, Vincent Gayvincen...@gmail.com wrote: Hi, I'm trying to use printf in the application 'RadioCountToLeds' running on top of tinyOS-2.0.2. I have some problems with wiring interfaces of printf. I have modified

Re: [Tinyos-help] Help printf (Release 2.0.2)

2009-06-08 Thread Kevin Klues
No wait, I see it, you need to include interface SplitControl as PrintfControl not just PrintfControl as the interface. You also need to change the semantics of the Packet.getPayload() command to conform to the way it used to be in TinyOS 2.0.2. Its slightly different in 2.1 Kevin On Mon, Jun

Re: [Tinyos-help] microphone sampling tinyos

2009-06-08 Thread Miklos Maroti
Using the same hardware (mica2 + mts310) we got 14 khz sampling rate with T1. Miklos On Mon, Jun 8, 2009 at 7:45 PM, Akankshu Dhawanakank...@gmail.com wrote: Hi All I have been able to use the ReadStream to sample microphone through the ADC using an MTS310 sensorboard and MICA2 motes. I

[Tinyos-help] Peformance of telosb

2009-06-08 Thread bouzayani walid
Hi, I'd like evaluate the performance of my project based on Telosb and TinyOS (measure of time, consumption, RSSI, gain (dB) ). Can one help me? Ho can I do to obtain this values? Thanks in advance __ BOUZAYANI Walid Student Researcher CES Laboratory, ENIS Tunisia

Re: [Tinyos-help] Peformance of telosb

2009-06-08 Thread Raffaele Gravina
Hi, there is a recent thread on this mailing list about the power consumption of motes. It seemed to me quite clear, could you check it out? As for the execution time, you could use the interface LocalTime and wire it to LocalTimeMilliC *** FOR MILLI SEC PRECISION *** or Counter32khz32C ***

[Tinyos-help] topology creation and sending data

2009-06-08 Thread Swetha R
Hello, I want to create this topology and then store this routing information in every node. I need to send data from node 2 to all other nodes based on least hop count. I want to check for the least hop count in the routing table of node2 and send data to nodes with hop count of 1 and then

[Tinyos-help] Re : Peformance of telosb

2009-06-08 Thread bouzayani walid
Thank you R. Gravina, Sorry, I didn't understand you response about power consumption. Please can you clarify more? What about the RSSI , Average Reception Ratio, and Wireless Transmission Delay (sec) measurement? have you any idea ? How can i measure them ? Thank you very much

Re: [Tinyos-help] Re : Peformance of telosb

2009-06-08 Thread Raffaele Gravina
The following link it's the beginning of a thread about power consumption measurement. I guess it will be a goos kick off for you: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2009-May/040104.html http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2009-May/040104.html I'm sorry

[Tinyos-help] pc to multiple nodes communication: is not equitable

2009-06-08 Thread Nahr Elk
-- Forwarded message -- From: Nahr Elk nahr...@gmail.com Date: 2009/6/8 Subject: pc - node communication To: tinyos-help tinyos-help@millennium.berkeley.edu Hi all! I am trying to send some messages in order to 4 motes [n°1, n°2 , n°3 and n°4] connected to my pc. I send the