Re: [Tinyos-help] ADC Readings and VoltageC

2011-01-28 Thread Francesco Ficarola
Michael Schippling ha scritto:
 Did I ever ask what TOS version you are using?

Yes, I'm using TinyOS 2.1.0.

 The only work I did with Iris was using MoteWorks
 which is the Xbow/Memsic system based on T1.
 I didn't use any regular ADCs, so who knows...
 
 Presumably they would have ADCs working correctly.
 Just for the heck of it I have zipped up the ADC
 sections of the Moteworks atm1281 platform here:
 http://www.etantdonnes.com/Motes/atm1281_adc.zip
 
 Also I wonder if the Vref is not right. According
 to my cheat cheat it should be on pin 2 of the
 connector and pin 62 of the controller.

Thank you Michael! Now I take it.

Greetings,
-- 
Francesco Ficarola francesco.ficarola_at_gmail_dot_com
[GPG KeyID: 0xDBA99D92]



signature.asc
Description: OpenPGP digital signature
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Compile Problem - Configuration File Being Ignored

2011-01-28 Thread Scott Corbin
Hello,

 

I am having a compiler problem that I'm hoping someone can shed some
light on.  I have a configuration file that doesn't appear to be getting
included in the build.  This configuration file is in the same directory
as a module file that is getting included in the build. I know the
module is being included in the build because the compiler is
complaining that some items are not connected.  These not connected
items have connections spelled out in the configuration file.  I can
create syntax errors in the configuration file that would normally cause
the compiler to throw a fit, but not in this case.  The names of the
module and configuration files are HPLUSART1M.nc and HPLUSART1C.nc so
they are valid file names (the compiler appears to ignore files with
extensions it does not use such as .txt).  These files do not exist
anywhere else in the directory structure.  Note, I am new to TinyOS and
the XubunTOS development environment.  Any idea what is going wrong?

 

Thanks,

Scott

 

___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Compile Problem - Configuration File Being Ignored

2011-01-28 Thread Philip Levis

On Jan 28, 2011, at 6:38 AM, Scott Corbin wrote:

 Hello,
  
 I am having a compiler problem that I’m hoping someone can shed some light 
 on.  I have a configuration file that doesn’t appear to be getting included 
 in the build.  This configuration file is in the same directory as a module 
 file that is getting included in the build. I know the module is being 
 included in the build because the compiler is complaining that some items are 
 “not connected”.  These “not connected” items have connections spelled out in 
 the configuration file.  I can create syntax errors in the configuration file 
 that would normally cause the compiler to throw a fit, but not in this case.  
 The names of the module and configuration files are HPLUSART1M.nc and 
 HPLUSART1C.nc so they are valid file names (the compiler appears to ignore 
 files with extensions it does not use such as .txt).  These files do not 
 exist anywhere else in the directory structure.  Note, I am new to TinyOS and 
 the XubunTOS development environment.  Any idea what is going wrong?
  
 Thanks,
 Scott

There are existing files with those names, and those existing files appear 
earlier in the search path? I.e., your files are being shadowed?

Phil
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Question about IRIS mote using OC3A,OC3B,OC3C

2011-01-28 Thread Miklos Maroti
Hi Sofia!

On Fri, Jan 28, 2011 at 1:31 PM, sofia aparicio
aparicioso...@hotmail.com wrote:
 Hello,

 I finally I could see the output signal for OC3A, OC3B and OC3C. To do that
 I have to remove the TimerMilliC from my main program, otherwise only OC3A
 was working. Do you know why is that? OC3B and OC3C correspond to INT0 and
 INT1. Maybe this timer is using the interrupts?

I have no idea why the TimerMilliC interferes with Timer3. In the
documentation I could not find anything.

 I have configured them in Fast PWM TOP=OC3A and clear on compare match as
 follows:

 TCCR3A=0xAB;
 TCCR3B=0x9;

So you have used
COM = 2: clear on compare, set on bottom
WGM = 7: fast pwm 10 bit

So I think your top is not what you think it is (or maybe I have again
misread it).

 OCR3A=0x3E8;
 OCR3B=0x5B;
 OCR3C=1;

 Removing the TimerMilliC from my main program I can see that the frequency
 does not change for each OC3 but the wide of the signal change.

This is completely normal operation. PWM is used to change the
set/clear distribution, not the frequency. If you want to do different
frequencies, completely independent of each other, then you have to do
is manually. Probably this would work:

1) Use WGM = 0: normal operation, keep the counter free running
2) Use COM = 1: toggle the pins on compare match
3) From the compare interrupt always update your compare registers by
advancing it by 0x3E8 and 0x5B. I am affraid that you would not be
able to get 0x1, that is just the clock right? The timer would not
even be able to provide that frequency. If I remember correctly, then
it needs 3 or 4 cycles minimum. Even the 0x5B is a border line case,
since then you have to have a lot of interrupts and the MCU might not
be able to handle those. Another option would be to use Timer3 and
Timer1 together (and then you have to disable all other use of Timer1,
e.g. radio driver)

Best,
Miklos

Best,
Miklos

 It is not
 possible to obtain different frequencies? I enclose you a picture of the
 results obtained in OC3B and OC3A.

 Thank you very much.

 Sofia



 Date: Thu, 27 Jan 2011 21:41:44 +0100
 Subject: Re: [Tinyos-help] Question about IRIS mote using OC3A,OC3B,OC3C
 From: mmar...@math.u-szeged.hu
 To: aparicioso...@hotmail.com
 CC: tinyos-help@millennium.berkeley.edu

 Hi Sofia!

 On Thu, Jan 27, 2011 at 4:25 PM, sofia aparicio
 aparicioso...@hotmail.com wrote:
  Hello,
 
    Seems ok, but not sure how you access those pins. How did you
  verified
  that your code does not work? You cannot be sure that these pins are
  available on the 51-pins.
 
  I am using a MDA100 sensor board connected to my IRIS mote. I can see
  the
  signals in OC3A, OC3B and OC3C using an oscilloscope. You can see the
  pines
  in the 51-pin connector of the IRIS mote.

 Ok. You should try to enable the interrupts and toggle LEDs just to be
 sure that the problem is not a 51-pin connector wirings. As far as I
 know, OC3A = PE3 = PIN26, OC3B = PE4 = PIN6, OC3C = PE5 = PIN5.

   TCCR3A=0x57;
 
  COM3A = 1: toggle pin on compare match
  COM3B = 1: toggle pin on compare match
  COM3C = 2: clear pin on compare match
  WGM3:10 = 1
   TCCR3B=0x19;
 
  ICNC3 = 0: input capture noise canceler disabled
  ICES1 = 0: input capture falling edge
  CS3 = 1: clock running with no prescaling
  WGM3:32 = 3, therefore WGM3 = 0xD: reserved.
 
  This is not OK COM3C=1: toggle pin on compare match.
  WGM3=0x0F; Fast PWM mode with OC3A as TOP value.

 Oh, you are right, I was tired apparently.

  I think that the configuration is OK. Can I use this Fast PWM and to use
  the
  tree output compares?
  Or do I need to use the CTC mode?

 Ok, now since you are using Fast PWM (I thought that you used CTC),
 then Table 17-4 of the datasheet says that COM3X = 1 means that OC1A
 toggles the pin but OC1B and OC1C are disconnected! You might want to
 use another mode of operation (WGM or COM).

  By the way, the Atmega1281 has timer 4 and 5 as well! If possible, I
  suggest you to use Timer/Counter 4 or 5, as no other code uses that
  (Timer3 was used instead of Timer1 on the MicaZ and Mica2 motes ,so
  there could be codes that uses that)
 
  I did not know, but the problem is that I do not have these pines
  available
  in the MDA sensor board (or in the IRIS connector).

 Yup.

 Best,
 Miklis

 
  Thank you very much.
 
  Sofia
 
 


___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] largest valid value assigned to a variable of uint16_t type?

2011-01-28 Thread 崔晓宗
2^16 - 1

2011/1/27 Michael Schippling sc...@santafe.edu

 What is 2^16?  Oh, we aren't playing Jeopardy!?
 0x = 65535d

 MS

 Gary Lee wrote:
  Hi,
 
  What is the largest valid value assigned to a variable of uint16_t type?
 
  Thanks a lot,
 
  gary
 
 
  
 
  ___
  Tinyos-help mailing list
  Tinyos-help@millennium.berkeley.edu
  https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
 ___
 Tinyos-help mailing list
 Tinyos-help@millennium.berkeley.edu
 https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help




-- 
Regards,
Xiaozong Cui
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Reg:Read RSSI Value

2011-01-28 Thread SHIVASANKAR GANESAN

Hi
I want to read RSSI Value(in CC2420radio).
I am using Tinyos version1.x.
Help me to get RSSI value.   With regards  Sivasankar  

___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] moteworks help

2011-01-28 Thread pinolalavatric...@libero.it
hello! I'm using Moteworks 2.0. I wrote a pregram wich send some packets in 1 
hop broadcast mode. With the sniffer I see that the program works, but the 
sequence number field (seqno) doesn't increment and remains egual at 0. How can 
I do?

p.s.: I used the MhopInterface, provides by the component XMeshBinaryRouter.
sorry for my bad english
thanks in advance 
roberto
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] TOSSIM simulation

2011-01-28 Thread somu
*Can you help me in this work ?*
*
*
*

Deployment of wireless sensor networks*
*
*
*Wireless sensor networks (WSNs) have been identified as one of the most
important technologies of the 21st century. The deployment of a sensor
network can have a significant impact on its operational performance and
requires careful planning and design. The project will survey tools,
techniques and metrics pertinent to network deployment and it will also
discuss challenges raised by the deployment of mobile sensor nodes. Software
systems for developing and deploying WSNs (like EmStar and TOSSIM) will be
used and compared.*

 Location Networks Lab, PC Suite Computer (type of machine) PC or
W/SSoftware (language; package)EmStar  TOSSIM (free)HardwareNone
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Reg:Read RSSI Value

2011-01-28 Thread Yasser Zahedi
Hello Shivasankar,

You can read the RSSI by using the RSSI Demo application which is available
in TinyOS. I am using TinyOS 2.1.
However, I don't know about your version.
But in my version, you can go to RSSI Demo from: tinyOS folder
---apps--tutorials---RssiDemo.

In addition, you can learn about using it in these excellent tutorial on
tinyOS website:
http://docs.tinyos.net/index.php/TinyOS_Tutorials

ans this link is for the RssiDemo

http://docs.tinyos.net/index.php/Rssi_Demo


Good Luck !

Yasser Zahedi
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help