Hello, I have testing two SmartRFCC1110-868 and I get about 300 meters between boards, configuring PA_TABLE0 to 0xC0 in smartrf_CC1110.h from Simpliciti.
#define SMARTRF_SETTING_PA_TABLE0 0xC0
But now, I want to test CC430 with two CC430F5137 Wireless Development Tool with example code named CC430F5137-LinkTo / LinkListen, included in Simpliciti.
The diference is that in this example there is no definition of PATABLE in smartrf_CC430.h
How can I change the value of this Register in a similar and efective way, in order to change output power?
Thanks.
I try to change, in this function from mrfi_radio.c, the following values :
static const uint8_t mrfiRFPowerTable[] ={ 0xC0, 0xC0, 0xC0};
Is this the best way to force maximum power?
Thanks
Hi,
this array is used by simpliciTI to set the PA_TABLE register. The register is set to the value of the last element of the array by the smpl_init call. If you want to change the power level afterwards then you can use the smpl_ioctl function.
In order to write the first element of the array to the array use the following code:
uint8_t pwr = IOCTL_LEVEL_0; SMPL_Ioctl(IOCTL_OBJ_RADIO, IOCTL_ACT_RADIO_SETPWR, &pwr);
Element 1 and 2 are used by IOCTL_LEVEL_1 and IOCTL_LEVEL_2.
So yes it is the best way, but it is not necessary to set all elements of the array to the same value ;).