How to Change the Transmit Power in Mac library

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to Change the Transmit Power in Mac library

2,111 Views
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
Labels (1)
0 Kudos
Reply
2 Replies

906 Views
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 Kudos
Reply

906 Views
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 Kudos
Reply