JODY-W2 - System integration manual
UBX-18068879 - R14
Software
Page 46 of 84
C1 - Public
☞
Configurations with syntactic or semantic errors are not necessarily reported by the tool when
applied.
Reading the transmit power limit configuration
The current transmit power limit tables can be read from the firmware using the
mlanutl
tool as
shown in the following example:
3.8
Configuration of Bluetooth power levels
A vendor specific HCI command
HCI_CMD_MARVELL_UPDATE_TX_MAX_PWR_LVL
must be used to set the
exact power limit for Bluetooth as shown below:
☞
A maximum Tx power of up to 10 dBm can be set using the
hcitool
command. The power is
capped at 4 dBm for Bluetooth LE advertisement.
3.9
Adaptivity configuration (energy detection)
JODY-W2 modules support the adaptivity requirements (energy detection) from EN 300 328 and
EN 301 893 for Wi-Fi. The adaptivity or Energy Detect mechanism must be explicitly enabled after the
startup of the module, and correct detection threshold values must be configured. These threshold
values depend on the combined gain of the antenna and antenna trace used in the end-product.
☞
u-blox provide a configuration file to enable energy detection and set the detection thresholds
for the reference designs.
The following command enables energy detection and configures the detection thresholds according
to the settings in the
ed_mac_ctrl_V3_8987.conf
configuration file:
The values
ed_ctrl_2g.offset
and
ed_ctrl_5g.offset
used in the excerpt below have been
determined in the
. Changes to the antenna path of that reference design, e.g.,
introducing a higher attenuation on the antenna path, have to be reflected into the energy detection
configuration file. Therefore, the offsets
ed_ctrl_2g.offset
and
ed_ctrl_5g.offset
can be increased
to compensate the additional attenuation of the antenna path. Where increasing the value of the
offset would result in a more sensitive behavior. Increasing the offset value by 1 would lower the
sensitivity threshold for energy detection by 1 dB. An integrator is encouraged to optimize the
sensitivity threshold for energy detection.
mlanutl mlan0 get_txpwrlimit <n> [raw_data_file]
where <n>
0: Get 2.4G txpwrlimit table
0x10: Get 5G sub0 txpwrlimit table
0x11: Get 5G sub1 txpwrlimit table
0x12 Get 5G sub2 txpwrlimit table
0x1f Get all 5G txpwrlimit table
0xff Get both 2G and 5G txpwrlimit table
<raw_data_file> driver will save fw raw data to this file.
# hcitool -i hci0 3F EE 01 <signed tx power value in dBm >
hcitool -i hci0 cmd 3F EE 01 0A
# After above command HCI reset command is required take effect.
hcitool -i hci0 cmd 03 03
mlanutl mlan0 hostcmd config/ed_mac_ctrl_V3_8987.conf ed_mac_ctrl_v3