您好,欢迎访问三七文档
当前位置:首页 > 行业资料 > 能源与动力工程 > BT RF Test Commands for Android-v04
1BTRFTestCommandsforAndroid2RevisionHistoryDateVersionDescriptionAuthor2013/01/220.1InitialrevisionTerenceHsieh2013/01/220.2FixBTTestModecommandTerenceHsieh2013/04/020.3SupportAndroid4.2TerenceHsieh2013/07/250.41.AddBTRx_Testcommand2.AddBLEcommandTerenceHsieh31.Prerequisites:1)hciconfig,hcitool,brcm_patchram_plus2(Pushto/system/xbin/)2)libbluetoothdd.so,libbluetoothh.so,libbtioo.so,libglibb.so(Pushto/system/lib/)3)bcmdhd.hcd(Pushto/system/etc/firmware/)2.DisableBTbeforeRFTesting1)BTshouldbedisabledinSettingspageandenableAirplanemode.2)hciattach,brcm_patchram_plus,bluetoothdshouldnotruninbackground.3.EnableBTTx/Rxfunction1)echo0/sys/class/rfkill/rfkill0/state//BluetoothpowerOFF(dependonplatform)2)echo1/sys/class/rfkill/rfkill0/state//BluetoothpowerON(dependonplatform)3)brcm_patchram_plus2--enable_hci--no2bytes--tosleep200000--baudrate115200--patchram/system/etc/firmware/bcmdhd.hcd/dev/ttyS0//downloadBTfirmware(dependonplatform)4)hciconfighci0up3-1.BTTestModeCommand(Enable_Device_Under_Test_Mode):1)hcitoolcmd0x030x00032)hcitoolcmd0x030x1a0x033)hcitoolcmd0x030x050x020x000x024)hcitoolcmd0x060x033-2.BTContinuousTXcommand(TX_Test)1)hcitoolcmd0x030x00032)hcitoolcmd0x3f0x005166554433221100000401041027090000(ABCDEFGHIJ)C:Local_Device_BD_ADDRHexvalue00:11:22:33:44:55554433221100D:Hopping_ModeHexvalue79Channel00SingleFrequency01Fixedpattern02E:FrequencyHexvalue0-78(2402-2480)00-4EF:Modulation_TypeHexvalue00000000bitpattern0111111111bitpattern0201010101bitpattern0311110000bitpattern09PRBS9pattern044G:Logical_ChannelHexvalueACLEDR00ACLBasic01eSCOEDR02eSCOBasic03SCOBasic04H:BB_Packet_TypeHexvalueNULL00POLL01FHS02DM103DH1/2-DH104HV105HV2/2-EV206HV3/EV3/3-EV307DV/3-DH108AUX1/PS09DM3/2-DH30ADH3/3-DH30BEV4/2-EV50CEV5/3-EV50DDM5/2-DH50EDH5/3-DH50FI:BB_Packet_Length(ThelengthofthepayloadintheTXpackets)Hexvalue100001027(0x2710)20000204E(0x4E20)65535FFFF(0xFFFF)Example:5-1)PacketType:DH1,MAC:112233445566,HoppingON,PRBS9mode,Packetlength:10000=0x2710,Power:Maxhcitoolcmd0x3f0x0051665544332211000004010410270900005-2)PacketType:2-DH1,MAC:112233445566,HoppingON,PRBS9mode,Packetlength:10000=0x2710,Power:Maxhcitoolcmd0x3f0x0051665544332211000004000410270900005-3)PacketType:3-DH1,MAC:112233445566,HoppingON,PRBS9mode,Packetlength:10000=0x2710,Power:Maxhcitoolcmd0x3f0x0051665544332211000004000810270900005-4)PacketType:DH3,MAC:112233445566,HoppingON,PRBS9mode,Packetlength:10000=0x2710,Power:Maxhcitoolcmd0x3f0x0051665544332211000004010B10270900005-5)PacketType:2-DH3,MAC:112233445566,HoppingON,PRBS9mode,Packetlength:10000=0x2710,Power:Maxhcitoolcmd0x3f0x0051665544332211000004000A102709000055-6)PacketType:3-DH3,MAC:112233445566,HoppingON,PRBS9mode,Packetlength:10000=0x2710,Power:Maxhcitoolcmd0x3f0x0051665544332211000004000B10270900005-7)PacketType:DH5,MAC:112233445566,HoppingON,PRBS9mode,Packetlength:10000=0x2710,Power:Maxhcitoolcmd0x3f0x0051665544332211000004010F10270900005-8)PacketType:2-DH5,MAC:112233445566,HoppingON,PRBS9mode,Packetlength:10000=0x2710,Power:Maxhcitoolcmd0x3f0x0051665544332211000004000E10270900005-9)PacketType:3-DH5,MAC:112233445566,HoppingON,PRBS9mode,Packetlength:10000=0x2710,Power:Maxhcitoolcmd0x3f0x0051665544332211000004000F10270900005-10)PacketType:DH1,MAC:112233445566,CH0,HoppingOFF,PRBS9mode,Packetlength:10000=0x2710,Power:Maxhcitoolcmd0x3f0x0051665544332211010004010410270900005-11)PacketType:2-DH1,MAC:112233445566,CH0,HoppingOFF,PRBS9mode,Packetlength:10000=0x2710,Power:Maxhcitoolcmd0x3f0x0051665544332211010004000410270900005-12)PacketType:3-DH1,MAC:112233445566,CH0,HoppingOFF,PRBS9mode,Packetlength:10000=0x2710,Power:Maxhcitoolcmd0x3f0x0051665544332211010004000810270900005-13)PacketType:DH3,MAC:112233445566,CH0,HoppingOFF,PRBS9mode,Packetlength:10000=0x2710,Power:Maxhcitoolcmd0x3f0x0051665544332211010004010B10270900005-14)PacketType:2-DH3,MAC:112233445566,CH0,HoppingOFF,PRBS9mode,Packetlength:10000=0x2710,Power:Maxhcitoolcmd0x3f0x0051665544332211010004000A10270900005-15)PacketType:3-DH3,MAC:112233445566,CH0,HoppingOFF,PRBS9mode,Packetlength:10000=0x2710,Power:Maxhcitoolcmd0x3f0x0051665544332211010004000B10270900005-16)PacketType:DH5,MAC:112233445566,CH0,HoppingOFF,PRBS9mode,Packetlength:10000=0x2710,Power:Maxhcitoolcmd0x3f0x0051665544332211010004010F10270900005-17)PacketType:2-DH5,MAC:112233445566,CH0,HoppingOFF,PRBS9mode,Packetlength:10000=0x2710,Power:Maxhcitoolcmd0x3f0x0051665544332211010004000E10270900005-18)PacketType:3-DH5,MAC:112233445566,CH0,HoppingOFF,PRBS9mode,Packetlength:10000=0x2710,Power:Maxhcitoolcmd0x3f0x0051665544332211010004000F10270900005-19)PacketType:DH1,MAC:112233445566,CH39,HoppingOFF,PRBS9mode,Packetlength:10000=0x2710,Power:Maxhcitoolcmd0x3f0x0051665544332211012704010410270900005-20)PacketType:2-DH1,MAC:112233445566,CH39,HoppingOFF,PRBS9mode,Packetlength:10000=0x2710,Power:Maxhcitoolcmd0x3f0x0051665544332211012704000410270900005-21)PacketType:3-DH1,MAC:112233445566,CH39,HoppingOFF,PRBS9mode,Packetlength:10000=0x2710,Power:Maxhcitoolcmd0x3f0x00516655443322110127040008102709000065-22)Packe
本文标题:BT RF Test Commands for Android-v04
链接地址:https://www.777doc.com/doc-4404795 .html