Hi,
to obtain a wifi and bt certification in Korea, we need to set some bluetooth operating modes on our custom board running Android 4.0.
In particular we are looking for a way to set the WL1835 module in the following state:
* hopping mode on fixed channels & different power level
Searching in Internet and via other documentation we found this hci command that we can run in our Android environment:
hcitool cmd 0x3F 0x0185 0xAA 0xBB 0xCC 0xDD 0xEE 0xFF 0xGG 0xHH 0xII 0xJJ 0xKK 0xLL
# where:
# 0xAA = Frequency Mode (0x00 - Hopping, 0x03 - Single Freq)
# 0xBB = TX Single Frequency Index (0x00 - 0x4E)
# 0xCC = RX Single Frequency Index (0x00 - 0x4E, or 0xFF Disable RX)
# 0xDD = ACL TX Packet Type (0x00 - DM1, 0x01 - DH1, 0x02 - DM3, 0x03 - DH3, 0x04 - DM5, 0x05 - DH5, 0x06 - 2-DH1, 0x07 - 2-DH3, 0x08 - 2-DH5, 0x09 - 3-DH1, 0x0A - 3-DH3, 0x0B - 3-DH5)
# 0xEE = ACL TX Packet Data Pattern (0x00 - All 0, 0x01 - All 1, 0x02 - Z0Z0, 0x03 - F0F0, 0x04 - Ordered, 0x05 - PRBS9 Random)
# 0xFF = Reserved (Shall be set to 0x00)
# 0xHHGG = ACL Packet Data Length (0- Max Packet Length)
# 0xII = Power Level Index
# 0xJJ = Disable Whitening (0x00 - Enable, 0x01 - Disable)
# 0xLLKK = PRBS9 Init (0x0000 - 0x01FF)
(Eg. hcitool cmd 0x3F 0x0185 0x00 0x00 0xFF 0x05 0x00 0x00 0x00 0x00 0x0F 0x01 0x00 0x00)
Can someone confirm if it is correct, and that through that example we can set different power in Android (or Linux) environment ?
Regards
Giuseppe