cancel
Showing results for 
Search instead for 
Did you mean: 

WICED Studio Wi-Fi Combo

KyUn_4602541
New Contributor II

We are using the Sterling - Laird LWB5 Module in SoftAP mode.  We need to control the power level of the transmitter.  We have been told this is controlled by the firmware.  Can we modify the power level in the firmware?

0 Likes
1 Solution
Zhengbao_Zhang
Moderator
Moderator

if you are using SDIO interface with fmac driver , the nvram should be this one.

./lib/firmware/brcm/bcm4339/brcmfmac4339-sdio.txt

View solution in original post

0 Likes
16 Replies
Zhengbao_Zhang
Moderator
Moderator

Hello:

    It has two ways to control the TX power, NVRAM and firmware, we suggest to use Nv for the setting, not to tune the FW frequently.   You can have a try to find below key word to add or decrease the value:

        "maxp2ga0=68"   /*Maximum core 0 power at  2.4G band in decimal format, unit is 0.25db, so it is 68*0.25 =17dbm  */                                                    

        "ofdm2gpo=0x44444444"  /*From MSB to LSB, Rate 54 ,48, 36, 24,18,12,9,6 , the      unit is 0.5db, every rate will be reduce 4*0.5, now go to 15dbm*/                                             

        "mcs2gpo0=0x3333"    /*From MSB to LSB, MCS3 ---MCS0, unit is 0.5db*/                                              

        "mcs2gpo1=0x6333"    /*From MSB to LSB, MCS7 ---MCS4, unit is 0.5db*/                                                   

0 Likes
KyUn_4602541
New Contributor II

Sir,

Thank you for the reply.  I am new to how to create this file and have the adapter read it... Can you point me to how this is done?

Thanks again,

K-

0 Likes
Zhengbao_Zhang
Moderator
Moderator

hello:

need to find the directory like below, and should replace the string "BCM94343WWCD1"  with your platform name where is the location of  Sterling - Laird LWB5 .

\43xxx_Wi-Fi\platforms\BCM94343WWCD1

wifi_nvram_image.h

KyUn_4602541
New Contributor II

Okay so it appears that one can build the firmware for LWB5.  Thank you.  I will look for the source code.  Can you ponit me to the build area for the firmware?

Regards,

K-

0 Likes
Zhengbao_Zhang
Moderator
Moderator

see the highlight part ,  you can use edit or new to modify the make string

remember to input correct platform name in the build string , otherwise it will not run make well.

pastedImage_0.png

0 Likes
KyUn_4602541
New Contributor II

Thank you.

I am very new to all this. So I am not sure the steps to get to the IDE you show.  I downloaded the WICED SDK. and installed it.

I need to get the firmware source code next...

Can you help?

K-

0 Likes
Zhengbao_Zhang
Moderator
Moderator

hello:

we have a start guide in the sdk release ,there have very detailed steps on how to debug an application.

you can have a reading based on it.

0 Likes
KyUn_4602541
New Contributor II

It looks like I have the BCM4339 chipset. I don't see the 4339 in the firmware directory of the WICED SDK.

0 Likes
Zhengbao_Zhang
Moderator
Moderator

ok , so what is the OS of your project ?

0 Likes
KyUn_4602541
New Contributor II

We are using Linux 4.14.

K-

On Mon, Dec 9, 2019 at 11:28 PM ZhengbaoZ_96 <community-manager@cypress.com>

0 Likes
Zhengbao_Zhang
Moderator
Moderator

yes,  maybe you can upload your wifi driver bringup log for insmod 4339 ,  it should include the nvram and firmware path .

0 Likes
KyUn_4602541
New Contributor II

./lib/firmware/brcm/bcm4339/brcmfmac4339-sdio-prod.bin

./lib/firmware/brcm/bcm4339/brcmfmac4339-sdio.bin

./lib/firmware/brcm/bcm4339/brcmfmac4339-sdio.txt

./lib/firmware/brcm/bcm4339/brcmfmac4339-sdio-fcc.txt

./lib/firmware/brcm/bcm4339/4339.hcd

./lib/firmware/brcm/brcmfmac4339-sdio.bin

./lib/firmware/brcm/brcmfmac4339-sdio.txt

./lib/firmware/brcm/4339.hcd

./lib/firmware/regulatory_fcc.db

./lib/firmware/regulatory.db

On Tue, Dec 10, 2019 at 6:53 PM ZhengbaoZ_96 <community-manager@cypress.com>

0 Likes
Zhengbao_Zhang
Moderator
Moderator

if you are using SDIO interface with fmac driver , the nvram should be this one.

./lib/firmware/brcm/bcm4339/brcmfmac4339-sdio.txt

View solution in original post

0 Likes
KyUn_4602541
New Contributor II

Thanks Zheng...

I see the 6 the sdio.txt file is text and I can edit it.

K-

KyUn_4602541
New Contributor II

In the file:  /lib/firmware/brcm/bcm4339/brcmfmac4339-sdio.txt which variables control the maximum power of the SoftAP mode?

Thanks again,

K-

# Sample variables file for BCM94339 WLBGA with eTR,iPA, and eLNA. Laird Sterlin

NVRAMRev=$Rev: 410316 $    

sromrev=11                 

boardrev=0x1203            

boardtype=0x06c5                                                 

boardflags=0x00000c01                                                

boardflags2=0x00002000                                               

boardflags3=0x8101188                                                

macaddr=00:90:4c:c5:12:38                                            

cctl=0                                                               

ccode=US                                                             

regrev=911                                                           

antswitch=0                                                          

pdgain5g=7                                                           

pdgain2g=7                                                           

tworangetssi2g=0                                                     

tworangetssi5g=0                                                     

femctrl=7                                                            

vendid=0x14e4                                                 

devid=0x43ae                                                  

manfid=0x2d0                                                  

nocrc=1                                                          

otpimagesize=502                                                     

root@pg7:~#

root@pg7:~#

root@pg7:~#

root@pg7:~#

root@pg7:~# cat /lib/firmware/brcm/bcm4339/brcmfmac4339-sdio.txt                                               

# Sample variables file for BCM94339 WLBGA with eTR,iPA, and eLNA. Laird Sterling-LWB5 CYW43353

NVRAMRev=$Rev: 410316 $

sromrev=11

boardrev=0x1203

boardtype=0x06c5

boardflags=0x00000c01

boardflags2=0x00002000

boardflags3=0x8101188

macaddr=00:90:4c:c5:12:38

cctl=0

ccode=US

regrev=911

antswitch=0

pdgain5g=7

pdgain2g=7

tworangetssi2g=0

tworangetssi5g=0

femctrl=7

vendid=0x14e4

devid=0x43ae

manfid=0x2d0

nocrc=1

otpimagesize=502

xtalfreq=37400

extpagain2g=2

pdetrange2g=2

extpagain5g=2

pdetrange5g=2

rxgains2gelnagaina0=0

rxgains2gtrisoa0=7

rxgains2gtrelnabypa0=0

rxgains5gelnagaina0=0

rxgains5gtrisoa0=11

rxgains5gtrelnabypa0=0

rxchain=1

txchain=1

aa2g=1

aa5g=1

tssipos5g=0

tssipos2g=0

pa2ga0=-159,5841,-699

pa2gccka0=-162,6244,-755

pa5ga0=-185,5721,-690,-185,5693,-688,-193,5445,-670,-194,5352,-661

pa5gbw40a0=-188,5836,-710,-187,5839,-708,-173,5956,-714,-159,6022,-712

pa5gbw80a0=-184,5789,-700,-185,5784,-700,-175,5797,-699,-172,5749,-692

pdoffset40ma0=0

pdoffset80ma0=0

pdoffsetcckma0=0

maxp2ga0=0x4A

maxp5ga0=0x4A,0x4A,0x4A,0x4A

cckbw202gpo=0x0000

cckbw20ul2gpo=0x0000

mcsbw202gpo=0x66666666

mcsbw402gpo=0x66666666

dot11agofdmhrbw202gpo=0x4444

ofdmlrbw202gpo=0x4444

tssifloor2g=500

mcsbw205glpo=0x22222222

mcsbw405glpo=0x55555555

mcsbw805glpo=0xaaaaaaaa

mcsbw1605glpo=0xffffffff

mcsbw205gmpo=0x22222222

mcsbw405gmpo=0x55555555

mcsbw805gmpo=0xaaaaaaaa

mcsbw1605gmpo=0xffffffff

mcsbw205ghpo=0x22222222

mcsbw405ghpo=0x55555555

mcsbw805ghpo=0xaaaaaaaa

mcsbw1605ghpo=0xffffffff

mcslr5glpo=0x0000

mcslr5gmpo=0x0000

mcslr5ghpo=0x0000

sb20in40hrpo=0x0

sb20in80and160hr5glpo=0x0

sb40and80hr5glpo=0x0

sb20in80and160hr5gmpo=0x0

sb40and80hr5gmpo=0x0

sb20in80and160hr5ghpo=0x0

sb40and80hr5ghpo=0x0

sb20in40lrpo=0x0

sb20in80and160lr5glpo=0x0

sb40and80lr5glpo=0x0

sb20in80and160lr5gmpo=0x0

sb40and80lr5gmpo=0x0

sb20in80and160lr5ghpo=0x0

sb40and80lr5ghpo=0x0

dot11agduphrpo=0x0

dot11agduplrpo=0x0

phycal_tempdelta=25

cckdigfilttype=2

swctrlmap_5g=0x00000008,0x00000010,0x00000008,0x000000,0x038

swctrlmap_2g=0x00000001,0x00000002,0x00000001,0x040002,0x0ff

swctrlmapext_5g=0x00000000,0x00000000,0x00000000,0x000000,0x000

swctrlmapext_2g=0x00000000,0x00000000,0x00000000,0x000000,0x000

muxenab=0x11

rssicorrnorm_c0=3,3

rssicorrnorm5g_c0=2,3,4,2,3,3,0,1,2,0,1,2

paparambwver=1

AvVmid_c0=2,155,2,146,2,150,2,154,2,152

ed_thresh2g=-70

ed_thresh5g=-73

txidxcap2g=0

txidxcap5g=0

0 Likes
KyUn_4602541
New Contributor II

Thanks ZhengbaoZ... that worked!

0 Likes