Re: [Tinyos-help] Mica2 CC1000ControlM patch - double throughput and calibrate correctly

2006-05-08 Thread Rahul Sawant
Hi David

I need to ask you one more question

as you said below change the line that says (1CC1K_XOSC_FREQ)); to(0CC1K_XOSC_FREQ)); in CC1000ControlM.nc

now this line occurs in CC1000ControlM.nc line 367 in StdControl.init() and is changing the value in gCurrentParameters[0x11] and in the next line cc1000SetModem(); is called which writes this and other values using 

call HPLChipcon.write(CC1K_MODEM0,gCurrentParameters[0x11]);

but again after all this in StdControl.init() there is a call to 
call CC1000Control.TuneManual(CC1K_DEF_FREQ); and in this function there is the following for loop which again changes the values of gCurrentParameters from CC1K_Params that is defined in CC1000Const.h


for (i=1;i  31 /*0x14*/;i++) {

gCurrentParameters[i] = PRG_RDB(CC1K_Params[freq][i]);
}

So my question is should I also make the similar changes as you mentioned below in CC1000Const.h according to the operating freq and in CC1000ControlM.nc files.

Thanks in advance


Rahul Sawant
On 5/4/06, David Moss [EMAIL PROTECTED] wrote:


Hi Rahul,

I assume you did compile the same CC1000ControlM ontoyour base station application?And you're only using mica2's (not mica2dots)?

I'll do some testing here and see if I can find any other reason why it wouldn't work for you. Some of my motes are beingflaky regardless of which CC1000ControlMI use.


If you're not going to be changing frequencies at runtime - which I don't think anybody is currently doing on the CC1000's because the software breaks it -then you can simply double your throughput by changing that 
MODEM0.XOSC_FREQ to a 0 in your CC1000ConrolM file. That is, change the line that says (1CC1K_XOSC_FREQ)); to(0CC1K_XOSC_FREQ));


-David



-Original Message-From: Rahul Sawant [mailto:
[EMAIL PROTECTED]] Sent: Thursday, May 04, 2006 3:51 PMTo: David MossCc: Gregory A. Moore; 
tinyos-help@millennium.berkeley.eduSubject: Re: [Tinyos-help] Mica2 CC1000ControlM patch - double throughput and calibrate correctly
Hi

I read your following mail and downloaded the CC1000ControlM.nc file and just replaced it for my old file in tos/platform/mica2

but now i am unable to read any packets sent over the radio on the base station mote. but if i revert to my old CC1000ControlM.nc file i am able to read the radio packets at the base station.

do i need to make any other changes apart from just replacing the files.

I am using Tinyos 1.1.15.

Thanks in advance

Rahul Sawant
On 5/1/06, David Moss [EMAIL PROTECTED] wrote:
 


Hi Greg,

Here's the CC1000ControlM file that performs the correct calibration procedure, and doubles the throughput for mica2's (this is not compatible with mica2dot's for some reason, even though they use the same 
14.7456 MHz crystal). MODEM0.XOSC_FREQ needed to be changed from a 1 to a 0 to double the throughput.

You'll see 76.8 kBaud as opposed to 38.4 kBaud, faster startup, and the ability to change frequencies in software correctly (although frequency performance and characteristics will vary from mote to mote). 



The CC1000 needs to be calibrated when 1) the radio starts up, or the frequency changes 2) there are large swings in temperature (think outdoors!)or 3) there are large swings insupply voltage. A daily calibration would begreat to implement for outdoor applications. 





There are 2 frequencies going on inside the CC1000 that need to be calibrated - Freq. A and B. When the distance between these two frequencies is greater than around1 MHz, then separate, single calibrations need to be performed on each frequency. When the distance between the 2 frequencies is less than 1 MHz (as it is on our motes) then adual calibration can be performed to calibrate both frequencies at once. Originally, the CC1000ControlM file was created to perform separate, single calibrations, whichtakes longer. Also, the local osciallator (LO) was not turned back onautomatically without transmittingafter the dual calibration completed, preventing frequency hopping schemes from working. 


The attachedupdated CC1000ControlM file performs a dual calibration procedure to do both frequenciesat once, and the radio is ready to go on both Rx and Tx after it gets done calibrating.It should consume a little less energy when starting up the radio. 


-David

.___Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDUhttps://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help 

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Mica2 CC1000ControlM patch - double throughput and calibrate correctly

2006-05-01 Thread David Moss
Title: Message



Hi 
Greg,

Here's the 
CC1000ControlM file that performs the correct calibration procedure, and doubles 
the throughput for mica2's (this is not compatible with mica2dot's for some 
reason, even though they use the same 14.7456 MHz crystal). 
MODEM0.XOSC_FREQ needed to be changed from a 1 to a 0 to double the 
throughput.

You'll see 76.8 
kBaud as opposed to 38.4 kBaud, faster startup, and the ability to change 
frequencies in software correctly (although frequency performance and 
characteristics will vary from mote to mote).


The CC1000 needs to 
be calibrated when 1) the radio starts up, or the frequency changes 2) 
there are large swings in temperature (think outdoors!)or 3) there are 
large swings insupply voltage. A daily calibration would 
begreat to implement for outdoor applications. 




There are 2 
frequencies going on inside the CC1000 that need to be calibrated - Freq. A and 
B. When the distance between these two frequencies is greater than 
around1 MHz, then separate, single calibrations need to be performed on 
each frequency. When the distance between the 2 frequencies is less than 1 
MHz (as it is on our motes) then adual calibration can be performed to 
calibrate both frequencies at once. Originally, the CC1000ControlM file 
was created to perform separate, single calibrations, whichtakes 
longer. Also, the local osciallator (LO) was not turned back 
onautomatically without transmittingafter the dual calibration 
completed, preventing frequency hopping schemes from 
working.

The attachedupdated 
CC1000ControlM file performs a dual 
calibration procedure to do both frequenciesat once, and the radio is 
ready to go on both Rx and Tx after it gets done calibrating.It should 
consume a little less energy when starting up the 
radio.

-David

.


CC1000ControlM.nc
Description: Binary data
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help