[Tinyos-help] mcombine() in McuSleepC.nc

2007-07-18 Thread Daniel Widyanto
Hi all, I have a bit questions about mcombine() in McuSleepC.nc . tos/chips/atm128/McuSleepC.nc:100 : powerState = mcombine(getPowerState(), call McuPowerOverride.lowestState()); tos/chips/atm128/atm128hardware.h:132 mcu_power_t mcombine(mcu_power_t m1, mcu_power_t m2) { return (m1 < m2)? m1:

[Tinyos-help] tinyos-2.x and tinynodes

2007-07-18 Thread Axl Schreiber
Hi, I use tinyos-2.x from CVS. I want to run the application RadioCountToLeds on two tinynodes. Both tinynodes transmit, but don't receive anything. Does anyone share the same problem? Does anyone work with tinyos-2.x and tinynodes? Axl ___ Tinyos-

[Tinyos-help] PacketLink in Tossim tinyos-2.x

2007-07-18 Thread Marek Jawurek
Hi everyone, we attempted to compile an application with PacketLink support for Tossim but it did not work out as planned. The "make micaz sim" target compiles alright. Is there no PacketLink implementation for Tossim ? When compiling the cc2420 TestPacketLink application I get similar errors: m

[Tinyos-help] Getting SerialID from tmoteinvent

2007-07-18 Thread David Henry
In the absence of nodeid's in the tmote world, I need to get something else so I tried getting Serial ID instead. The SerialIDSend application in the contrib tree seemed a good place to start. Trouble is that the DS2411.init() function hangs for ever. Could it be that the 1 wire pin is connected s

[Tinyos-help] Problem Regarding nesdoc generation

2007-07-18 Thread ankur jain
Hi all, I am working on WSN apps. rightnow. while reading the tutorial i come across generating html documentation(component graphs0 for tinyos based apps.using nesdoc tool . I tried this as specified in the tutorial for Blink app. in tinyos-1.x/apps directory.However i got the following error

Re: [Tinyos-help] CC2420ActiveMessageC not working after cvs update (T2)

2007-07-18 Thread Razvan Musaloiu-E.
Hi! On Tue, 17 Jul 2007, Urs Hunkeler wrote: Hi Phil, Now it works, thanks. The update seems to have failed. I'm at a loss as to why the checkout didn't work either. I tried several times yesterday evening and it hang every time somewhere in the middle of the process. This morning it worked f

Re: [Tinyos-help] PacketLink in Tossim tinyos-2.x

2007-07-18 Thread Marek Jawurek
Correction: "make micaz sim" did NOT work and this was the point of my question ;-) Marek On Wed, 2007-07-18 at 11:58 +0200, Marek Jawurek wrote: > Hi everyone, > > we attempted to compile an application with PacketLink support for > Tossim but it did not work out as planned. The "make micaz si

Re: [Tinyos-help] atmega128 clock frequency

2007-07-18 Thread roberto pagliari
Hi Michael, I get the following configuration fuse low byte 0xff fuse high byte 0xff fuse extended byte 0xff calibration byte 0xff - read only lock bits 0xff BLB12 -> 1 BLB11 -> 1 BLB02 -> 1 BLB01 -> 1 LB2 -> 1 LB1 -> 1 simply issuing the command >>uisp -dprog=data -dpart=ATmega

[Tinyos-help] Generating 32Khz on GIO pin

2007-07-18 Thread chinmay agarwal
Dear Sir, I have to interface parallax hitachi48C accelerometer module to Tmote SKY. The output data is in serial format. I need to generate greater than 10Khz frequency(say 32khz) on a GIO pin. I have earlier tried building Timer32Khz on lines of Tmilli.But i only got a max. frequency around 3.

Re: [Tinyos-help] atmega128 clock frequency

2007-07-18 Thread roberto pagliari
Dear Giri and Michael, looking at the datasheet the firs 4 bits of low fuse byte are CKSEL, while bits 4 and 5 are SUT select. Now, my fuse low byte, default by tinyos 1.0.7, is 0xFF. Does this correspond to 8Mhz or 7.3728? I'm asking you this because I'm getting some time interval measures, and

Re: [Tinyos-help] Getting SerialID from tmoteinvent

2007-07-18 Thread Joe Polastre
No, the DS2411 is identical on Tmote Invent. The problem is probably due to the timing in your contrib/ application. The DS2411 driver provided with Boomerang has the correct 1-wire timing. -Joe On 7/18/07, David Henry <[EMAIL PROTECTED]> wrote: In the absence of nodeid's in the tmote world

Re: [Tinyos-help] atmega128 clock frequency

2007-07-18 Thread roberto pagliari
I'm sorry, I issued the wrong command since I use a mib510. Now, writing uisp -dprog=mib510 -dpart=ATmega128 -dserial=/dev/ttyS1 --rd_fuses I get fuse low byte 0xff fuse high byte 0xd9 fuse extended byte 0xff calibration byte 0x00 - read only lock bits 0xff BLB12 -> 1 BLB11 -> 1 BLB02 -

Re: [Tinyos-help] atmega128 clock frequency

2007-07-18 Thread David Gay
The aptly-named p.39 "Calibrated Internal RC Oscillator" of the atmega128 datasheet gives the fuse values to get 1, 2, 4 or 8MHz operation. The pages before that explain what the other fuse values means... TinyOS 2 has reasonable support for operation under the calibrated oscillator. If you've se

AW: [Tinyos-help] Getting SerialID from tmoteinvent

2007-07-18 Thread Ole Bischoff
Hy David, I had the same problem with my TmoteSky. After debugging with JTAG I noticed that the problem in DS2411.init() is the reset() function. command result_t DS2411.init() // >= 6000us { int retry = 5; uint8_t id[8]; bzero( m_id, 8 ); call DS2411Pin.init(); while( retry

RE: [Tinyos-help] atmega128 clock frequency

2007-07-18 Thread Giri Baleri
A more comprehensive description of various fuse bytes is available in Appendix B of the XMesh manual below. http://www.xbow.com/Support/Support_pdf_files/XMesh_Users_Manual.pdf A low fuse byte value of 0xc4 would set it to internal oscillator. I think the ATmega128's internal RC oscillator can pr

Re: [Tinyos-help] Oscilloscope ....

2007-07-18 Thread Michael Schippling
Look at the implementation of DemoSensor in, e.g., tos\sensorboards\micasb\DemoSensorC.nc You should be able to change it to use any ADC channel. And read through the TOS tutorial to get an idea of what DemoSensor is doing. MS Hossam El-Din Hassanein wrote: I'm using a mica2 mote with the j

Re: [Tinyos-help] atmega128 clock frequency

2007-07-18 Thread Michael Schippling
If one wishes to do "accurate" timing I wouldn't recommend using non-xtal oscillators. The MeasureClock thing sounds promising however...I didn't know we could kick up the clock rate a bit with the config. thanks... What I meant about about reading the fuses seems to have been borne out in fact.

Re: [Tinyos-help] helping implementing a module ..

2007-07-18 Thread Michael Schippling
It's kinda too bad, but there isn't a good, simple demo app for something like this. If you want to use TOS_Msg packets on the serial port, you can use GenericComm to do both the radio and the serial...there are examples of sending and receiving in CntToRfm, RfmToLeds, and even Oscilloscope. But t

Re: [Tinyos-help] PacketLink in Tossim tinyos-2.x

2007-07-18 Thread Philip Levis
On Jul 18, 2007, at 5:56 AM, Marek Jawurek wrote: Correction: "make micaz sim" did NOT work and this was the point of my question ;-) Marek TOSSIM currently does not simulate the CC2420 radio. It simulates a packet layer that acts a lot like a CC2420 radio that is always on. But it d

Re: [Tinyos-help] mcombine() in McuSleepC.nc

2007-07-18 Thread Philip Levis
On Jul 17, 2007, at 11:55 PM, Daniel Widyanto wrote: Hi all, I have a bit questions about mcombine() in McuSleepC.nc . tos/chips/atm128/McuSleepC.nc:100 : powerState = mcombine(getPowerState(), call McuPowerOverride.lowestState()); tos/chips/atm128/atm128hardware.h:132 mcu_power_t mcombin

Re: [Tinyos-help] Lesson 8: Where is ResourceController??

2007-07-18 Thread Kevin Klues
Hi Mona, What version of tinyos-2 are you using? Is it one of the releases or one checked out from cvs? If it is checked out from cvs, which date was it checked out on? Kevin On 7/17/07, mona zima <[EMAIL PROTECTED]> wrote: Hi All, I am trying to follow the instructions in Lesson 8: "Resourc

[Tinyos-help] problem when update tinyos, using cygwin in windows

2007-07-18 Thread André Ricardo
Hy ppl, please, help me in next problem. I have trying update tinyos 1.1.11 to tinyos 1.1.15 and i have install in windows the cygwin 1.2. When i trying update to tinyos 1.1.15 appears this error message: $ rpm -Uvh tinyos-1.1.15Dec2005cvs-1.noarch.rpm error: Failed dependencies: /bin/bas

[Tinyos-help] problem when update tinyos, using cygwin in windows

2007-07-18 Thread André Ricardo
Hy ppl, please, help me in next problem. I have trying update tinyos 1.1.11 to tinyos 1.1.15 and i have install in windows the cygwin 1.2. When i trying update to tinyos 1.1.15 appears this error message: $ rpm -Uvh tinyos-1.1.15Dec2005cvs-1.noarch.rpm error: Failed dependencies: /bin/bash

[Tinyos-help] How can I adjust radio(reduce or increase) range of mote (micaz) ?

2007-07-18 Thread DAE HEE KIM
Hello. This question may be very basic thing. How can I increase or decrease radio range of micaz(mote)? My situation TinyOS 2.0.1 (Linux - Fedora core 6) Micaz (2.4 GHz) MIB510 programming board. Thanks. -- DaeHee Kim (Danny) Department of Computer Science, State University of NewYork at Bing

Re: [Tinyos-help] Running C++ TOSSIM Simulations

2007-07-18 Thread Avinash Sridharan
Hi Phil, Firstly I apologize for the premptive mail. It turns out that with the upgrade to Fiesty Fawn (Ubuntu 7.04) my python got upgraded to python 2.5 as well. This led to the incompatibility in the API. When I reverted back to 2.4 the warnings went away. The second major problem was I hadn't

[Tinyos-help] detecting packet losses in TOSSIM 2.0

2007-07-18 Thread Avinash Sridharan
Hi All, I am currently using TOSSIM 2.0 on TinyOS 2.0.1. I wanted to understand the packet losses that are taking place in my simulation. The problem is as follows: The topology I have is a simple 3 node linear topology (I have tried the same with 4 and 5 nodes as well). 1<2<3 The gain

Re: [Tinyos-help] detecting packet losses in TOSSIM 2.0

2007-07-18 Thread Philip Levis
Avinash Sridharan wrote: I detected the total numbers of packet lost in the channel by doing a grep on the word "Lost" from the debug statements from the channel model, since this is printed out whenever is a packet is dropped by the channel model. I have two questions: This doesn't seem like a

[Tinyos-help] Role of DelugeC and DelugeM in Overair programming

2007-07-18 Thread vbhatia
Hi, Can somebody explain me in detail the working of deluge in tinyos. What role is played by the DelugeM and DelugeC since all the image injection and pinging of the nodes and all that stuff is done through the Java applications. In DelugeM, what exactly is the Adv message(Advertisement message)

Re: [Tinyos-help] detecting packet losses in TOSSIM 2.0

2007-07-18 Thread Tal Rusak
To keep track of packet loses, it is possible to keep a packet counter in your application which is incremented whenever a packet is successfully sent. Then, add a debug statement in Receive.receive that prints this counter when a packet is successfully received. You will see only the counter

Re: [Tinyos-help] detecting packet losses in TOSSIM 2.0

2007-07-18 Thread Avinash Sridharan
Hi Phil, Are you referring to the CpmModelC.nc, since in the TinyOS 2.0.1 version that I have, the file in question has only 361 lines. I did a grep for the exact dbg statement you had mentioned, in your reply, for all files under the tossim folder as well, without success. I used the grep with t

Re: [Tinyos-help] detecting packet losses in TOSSIM 2.0

2007-07-18 Thread Philip Levis
Avinash Sridharan wrote: Hi Phil, Are you referring to the CpmModelC.nc, since in the TinyOS 2.0.1 version that I have, the file in question has only 361 lines. I did a grep for the exact dbg statement you had mentioned, in your reply, for all files under the tossim folder as well, without su