Re: [Tinyos-help] timing problem on rfa1

2017-07-06 Thread Miklos Maroti
Hi Elena, I do not quite remember where RTC_TIMER_HZ is actually used, maybe that is a value you can/should use when you start your timer and no kernel code is using it. The real problem is that the 62500 HZ timer is running at that speed no matter what, and nothing is going to translate that

Re: [Tinyos-help] timing problem on rfa1

2017-07-06 Thread Elena Chervakova
Thank you for your fast answer. The problem is, we use sntp time synchronisation and get therefore wrong time stamps. Is it good idea just to change RTC_TIMER_HZ or it would cause more another problems? Best, Elena On 06.07.2017 10:41, Ugo Maria Colesanti wrote: > The TimerMilliC in RFA1 is

Re: [Tinyos-help] timing problem on rfa1

2017-07-06 Thread Ugo Maria Colesanti
The TimerMilliC in RFA1 is connected to the 62500Hz Symbol Counter which is not a power of 2. You need to multiply 5120 by 62500 and multiply it by 65535 which should give you 4883 after rounding. Ugo On 6 July 2017 at 10:18, Elena Chervakova wrote: > Hi all. > We

Re: [Tinyos-help] timing problem on rfa1

2017-07-06 Thread Miklos Maroti
Hi Elena, The RFA1 has a symbol counter timer which runs at 62.5 KHz. It also has the RTC timer which is sourced from the 32768 external crystal. If I remember correctly, then the RTC clock can only be used with the 8-bit Timer0 which has lots of bugs. So instead the TMilli is sourced from the

[Tinyos-help] timing problem on rfa1

2017-07-06 Thread Elena Chervakova
Hi all. We work on some experiments with TinyOS timers on RFA1 and RFR2 platforms. In both cases, there is a significant time deviation from the set timer interval and the actual time. To analyze the behaviour, we set a timer to 5 seconds using the TimerMilliC component by calling: call

[Tinyos-help] Timing and Tosthreads

2010-12-06 Thread Paul Harvey
Hi there, I am trying to do some time measurements within a tosthread. I have tried to wire-up a timer that can be accessed from within a thread but the compiler is grumbling about not finding system components/functions. I am new to this so perhaps i am going about this the wrong way, but could

Re: [Tinyos-help] Timing analysis

2010-01-28 Thread Thomas Schmid
Hi Kiraneet, TOSSIM will not give you the correct time that a network of real motes will have. You will have to use something like Avrora to get cycle accurate timing. Cheers, Thomas -- Thomas Schmid Post Doctoral Researcher Center for Embedded Networked Sensing University of California, Los

[Tinyos-help] Timing analysis

2010-01-27 Thread Kiraneet sharma
Hello people... Can we carry out an accurate timing analysis for an entire network using a simulator ? Actually I just have access to software part..So right now I am programming in T1.. Now I want to know how the entire application will work when put on motes, specifically I am interested in

[Tinyos-help] Timing issues - Tmote Sky - microsecond accuracy

2008-01-26 Thread Jose Araujo
Dear All, I am working with a Tmote Sky, and i am trying to use it in order to get data from the ultrasound sensors to calculate the position of a robot. I use one tmote for Tx and another to Rx. Here goes the list of “tools” that I use in the program: - ReadNow from the ADC

Re: [Tinyos-help] Timing issues - Tmote Sky - microsecond accuracy

2008-01-26 Thread Michael Schippling
You might want to look into the Timer Capture stuff on the chip. I don't think any of it is supported in TOS, but it will give you a hardware level timing between pin events. I've got ATMEGA code you can look at if it'd help any at: http://www.etantdonnes.com/Motes/AVR128timers.zip Also

[Tinyos-help] Timing in TinyOS 2.0

2007-12-17 Thread Fran Rincon
Hi all, I have 2 questions related to the timing in TinyOS: 1. I implemented a TDMA MAC protocol in TinyOS 1.x. When executed in the nodes (I’m using a MSP430 microcontroller and a nRF2401 radio chip), the protocol performed without any problem. But when I tried this protocol in

[Tinyos-help] Timing in TinyOS 2.0

2007-12-15 Thread Fran Rincon
Hi all, I have 2 questions related to the timing in TinyOS: 1. I implemented a TDMA MAC protocol in TinyOS 1.x. When executed in the nodes (I’m using a MSP430 microcontroller and a nRF2401 radio chip), the protocol performed without any problem. But when I tried this protocol in

[Tinyos-help] timing an operation

2007-01-10 Thread Bhuvaneswari Ramkumar
Hi All What is the best way to measure the time it takes for an operation to get executed ? Tried _gettime32() of SysTimeM, didnt seem to work can someone suggest a better function call or interface that we can use ? Sincerely Bhuvana ___ Tinyos-help

Re: [Tinyos-help] timing an operation

2007-01-10 Thread Michael Schippling
The best way is to toggle an LED or I/O line and measure it with a scope or logic analyzer... MS Bhuvaneswari Ramkumar wrote: Hi All What is the best way to measure the time it takes for an operation to get executed ? Tried _gettime32() of SysTimeM, didnt seem to work can someone suggest a

Re: Re: [Tinyos-help] Timing problem

2006-11-06 Thread roy
hhuang: i am trying to imply a new mac protocal in tossim. I have a problem on synchronizing the nodes. I want the different nodes to wake or go to sleep at the same time,which needs a timer that can fired at the frequency of 4Mhz. infact,I have read the tossim manual,but it

[Tinyos-help] Timing problem

2006-11-05 Thread roy liu ^-^
tinyos-help, hi,everyone I wish to simulat smac in tossim,so ihave to use a clock for byte transmitting syncrony. Unfortunately, the TimeC medule can not provide as high as 4Mhz clock as i need. So i want to use tos_time to do it. Can i use it as timing instrument? And can

Re: Re: [Tinyos-help] Timing problem

2006-11-05 Thread roy liu ^-^
hhuang, thanks for your reply. Can you give me some detail explanation? Since it can used as timing tools in pc module such as SpiByteFifoC ,ChannelMonC. And do you know can be used to fulfill my need in tossim? roy ===

[Tinyos-help] timing accelerator usage?

2006-06-29 Thread Michael Siegel
Hello, I've been attempting to implement an RF-based TDOA localization algorithm on Mica1 Motes. (Yeah, I know it's a long shot, given that the hardware timing resolution supposedly can't be better than 1/4 microsecond, but I guess there's hope in being able to achieve finer resolution by

[Tinyos-help] timing

2006-06-05 Thread Roberto
hi All, I'm using simpleTime component with Time and TimeUtils interfaces. Is it possible to measure time intervals less then 30ms? Under this time difference I can get no measures. thank you roberto ___ Tinyos-help mailing list