I'm not sure about your battery reading. If you are using a TOS battery
code module like VoltageM, it doesn't work on some platforms and when
it does it may do the voltage calculation for you. Read through the code
to figure that out. You can do "make [platform] docs" to get a handle
on what modules are being used, and add a "-v" to the ncc command line
to see a list of files it (may or may not) use...Sorry I don't have time
to look at the code right now, but I'll keep it around for a bit if
you have further questions.

For RSSI, the value seems reasonable. Remember you are reading
_received_ strength. The 10Dbm value is the _transmit_ strength.

MS

Nadeem Jamal wrote:

Hi Michael Thanks for your reply.

I was able to solve my problem but don't know exactly what was wrong. Anyways now I am getting my values but really confused with the numbers I am
getting.


They don't seem to be right. I am going to attach you a copy of my code and
hopefully u can see if I am reading the adc in the right way. I really need
help this is my final year project and i have very little time to solve
these problems. Please help.


The data I get after running this code from my mote is
7E 42 7D 5E  0  B 7D 5D  D  0  0  1  0  0  0  A 34 12 1 F2 1 18 B9 82 7E

7E 42 7D 5E 0 B 7D 5D D 0 0 1 0 0 0 A 34 12 1 F3 1 22 53 1E 7E Just a Vbat rssi
Don't                                                           ref
Know
Example of how I am calculating Vbat and rssi

Vbat counts= 1f3 = 499
Rssi counts =122 = 290

Vbat=Vref*adc_fs/adc_counts
Vbat = .6*1024/499= 1.23V

This value seems wrong as when I measured my Vbat I got 2.8v

VRssi=Vbat*290/1024 = .34

Rssi(dmb)=-51.3*Vrssi -49.2 = -31dbm

I am confuse with this reading to as the output power for my application is
set to 10dbm.

I hope some you can help me understand whats going on and what am I doing
wrong.




-----Original Message-----
From: Michael Schippling [mailto:[EMAIL PROTECTED] Sent: Sunday, April 15, 2007 8:40 PM
To: Nadeem Jamal
Cc: [email protected]
Subject: Re: [Tinyos-help] Having problems acquiring RSSI readings from adc0
PLEASE HELP

Assuming that the 'dot works like the mica2,z you shouldn't need
to read the ADC directly, but rather just look at the TOS_Msg.strength
field in the receive() function.

As to run-away problems, I can't think of any reason that reading the
rssi ADC would affect radio sends, but my thinking is often cloudy...
It could be that the timer you use to start ADC conversions is not set
correctly, or you could have some other programming error that creates
more message sends than you expect, like collecting too many samples
too fast. If you continue to have trouble, post your code so we can
have a look.

MS

Nadeem Jamal wrote:
Hello all, I really need some desperate help, hope one of u will ans me . I know RSSI topics have been discussed quiet a bit on this forum but for some weird reason I can not seem to get it working.

I am using the MICA2Dot nodes and the Crossbow mote works development platform.

As I have understood rssi reading can be acquired using ADC0 on the mica2dot. I have been successful in acquiring the battery voltage with no problems. But when I use the same method to acquire the rssi reading from ADC0 my mote goes crazy and starts flooding. Meaning it gets out of sync and floods the network. It starts sending Radio packets extremely fast and with incorrect adc readings.

I hope some on can help me understand how I can solve this problem or is there any other way to acquire the rssi reading I require.

Thanking you from before,

Nadeem Jamal


------------------------------------------------------------------------

_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

------------------------------------------------------------------------

_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to