How to Change the Transmit Power in Mac library

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to Change the Transmit Power in Mac library

2,112件の閲覧回数
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 返答(返信)

907件の閲覧回数
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 件の賞賛
返信

907件の閲覧回数
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 件の賞賛
返信