How to Change the Transmit Power in Mac library

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to Change the Transmit Power in Mac library

2,364 次查看
galen
Contributor I
Hi,
 
     I tried to setup the network base on the beekit's MAC library. Now I have a problem about how and where to change the transmit output power? I don't see any function or primitive about it? Would you please provide some demo program or show me a snippet of how to adjust the transmit power?:smileysad:
     Thanks for your attention!
 
   Best Regards
 
   Galen
标签 (1)
0 项奖励
回复
2 回复数

1,159 次查看
Mads
Contributor V
To change the transmit power, you just have to modify the initialization setting.
you should not change the PHY source code or attempt to write directly to the radio.
 
The file Nv_data.c contains the PA setting. change the 0xBC in line 0xFF for maximum power.
Note that transmitting with too high power might make your product not pass FCC or ETSI qualification.
 
BR,
Mads
 
 
0 项奖励
回复

1,159 次查看
Ware
Contributor III
 
If you look in the "PhyPlmeSetCurrentChannelRequest()" function, you'll see how Freescale (or Mindteck) does it:
 
Code:
// Write PA level for the channel.
  MC1319xDrv_ReadSpiSync(ABEL_reg12, &PowerLevel);
  PowerLevel &= 0xFF00;
  PowerLevel |= tmpLevel;
  MC1319xDrv_WriteSpiSync(ABEL_reg12, PowerLevel);

 
Where tmpLevel is the new PA Level (transmit output power).
 
Regards,
 - Ware
 
0 项奖励
回复