📄 hostcmd.conf
字号:
# File : hostcmd.conf######################### Power Adaptation Config Ext command ##################pa_cfg_ext_get={ CmdCode=0x007e # do NOT change this line # The following table shows the bitmap of the rates: # (bit 0 is the least significant bit) # Bit Data rate # 0 1 Mbps # 1 2 Mbps # 2 5.5 Mbps # 3 11 Mbps # 4 Reserved # 5 6 Mbps # 6 9 Mbps # 7 12 Mbps # 8 18 Mbps # 9 24 Mbps # 10 36 Mbps # 11 48 Mbps # 12 54 Mbps # 13-15 Reserved Action:2=0 # 0 - GET EnablePA:2=0 TlvType:2=0x0114 TlvLength:2={ }}pa_cfg_ext_set={ CmdCode=0x007e # do NOT change this line Action:2=1 # 1 - SET EnablePA:2=1 # 1 - enable power adaptation TlvType:2=0x0114 TlvLength:2={ # Up to 5 power level groups are supported # Power Level Rate Bitmap (Mbps) # 13 dbm 0x1800 (54, 48) PowerAdaptGroup1.PowerLevel:2=13 PowerAdaptGroup1.RateBitmap:2=0x1800 PowerAdaptGroup1.Reserved:4=0 # 15 dbm 0x07e0 (36, 24, 18, 12, 9, 6) PowerAdaptGroup2.PowerLevel:2=15 PowerAdaptGroup2.RateBitmap:2=0x07e0 PowerAdaptGroup2.Reserved:4=0 # 18 dbm 0x000f (11, 5.5, 2, 1) PowerAdaptGroup3.PowerLevel:2=18 PowerAdaptGroup3.RateBitmap:2=0x000f PowerAdaptGroup3.Reserved:4=0# PowerAdaptGroup4.PowerLevel:2=0# PowerAdaptGroup4.RateBitmap:2=0# PowerAdaptGroup4.Reserved:4=0# PowerAdaptGroup5.PowerLevel:2=0# PowerAdaptGroup5.RateBitmap:2=0# PowerAdaptGroup5.Reserved:4=0 }}######################### Power Adaptation Config Ext command ########################################### Subscribe Events command ##################subevent_get={ CmdCode=0x0075 # do NOT change this line Action:2=0 # GET Events:2=0}subevent_set={ CmdCode=0x0075 # do NOT change this line Action:2=1 # SET Events:2=0x3f # bit0 - RSSI_LOW; bit1 - SNR_LOW # bit2 - FAILED_COUNT; bit3 - Beacon Missed # bit4 - RSSI_HIGH; bit5 - SNR_HIGH # bit6-15 reserved LowRssiTlvType:2=0x0104 LowRssiTlvLength:2={ Threshold:1=40 ReportingFreq:1=0 } LowSnrTlvType:2=0x0105 LowSnrTlvLength:2={ Threshold:1=56 ReportingFreq:1=0 } FailedCountTlvType:2=0x0106 FailedCountTlvLength:2={ Threshold:1=5 ReportingFreq:1=0 } BeaconMissTlvType:2=0x0107 BeaconMissTlvLength:2={ BeaconMissed:1=60 Reserved:1=0 } HighRssiTlvType:2=0x0116 HighRssiTlvLength:2={ Threshold:1=70 ReportingFreq:1=0 } HighSnrTlvType:2=0x0117 HighSnrTlvLength:2={ Threshold:1=86 ReportingFreq:1=0 }}######################### Subscribe Events command ########################################### Host Sleep ARP/IP filtering command ##################arp_filter={ CmdCode=0x0043 # do NOT change this line Condition:4=0x09 # bit0 - broadcast; bit1 - unicast; bit2 - MAC event; bit3 - multicast # 0xffffffff - cancel host_sleep_cfg Gpio:1=0xff # 0xff - GPIO wakeup not required # 0-7: GPIO 0-7 Gap:1=0x80 # 128 ms TlvType:2=0x0115 TlvLength:2={ AddrType:2=3 # multicast EthType:2=0x0008 # IPv4: 0x0800 Ipv4Addr:4=0xffffffff # not used AddrType:2=1 # broadcast EthType:2=0x0608 # ARP: 0x0806 Ipv4Addr:4=0x5800a8c0 # 192.168.0.88 }}######################### Host Sleep ARP/IP filtering command ########################################### Auto-TX command ##################auto_tx_get={ CmdCode=0x0082 # do NOT change this line Action:2=0 # GET}auto_tx_unreg={ CmdCode=0x0082 # do NOT change this line Action:2=1 # SET}NatKeepAlive={ CmdCode=0x0082 # do NOT change this line Action:2=1 # SET AutoTxTlvType:2=0x0118 AutoTxTlvLength:2={ # 58 = 6 + 52 (FrameLen) Interval:2=2 # 1 - 3600 seconds Priority:1=7 # Priority, ignored if non-WMM Reserved:1=0 FrameLength:2={ # 52 = 6 (DA) + 6 (SA) + 2 + 38 (Length) DestMacAddr:6='0x00,0x40,0xf4,0xbf,0x24,0xee' SrcMacAddr:6='0x00,0x00,0x00,0x00,0x00,0x00' Length:2='0x00,38' # 38 = 8 (SNAP hdr) + 29 (IP) + 1 (padding) DSAP:1=0xaa # SNAP header SSAP:1=0xaa Ctrl:1=0x03 SNAP_OUI:3='0x00,0x00,0x00' SNAP_PID:2='0x08,0x00' # IP Packet IPv4:1=0x45 IP_TOS:1=0x00 IP_LEN:2='0x00,29' # IP hdr 20 + payload 9 = 29 IP_ID:2=0xefbe IP_Flag_FragOffset:2=0x0000 IP_TTL:1=128 IP_Prot:1=17 # UDP protocol IPhdr_cksum:2=0xc5f9 # may need re-calculation if changed IPsrcAddr:4='192,168,0,201' # 192.168.0.201 IPdstAddr:4='192,168,0,1' # 192.168.0.1 UDPsrcPort:2='0x11,0x94' # 4500 UDPdstPort:2='0x11,0x94' # 4500 UDPlength:2='0x00,9' # UDP hdr 8 + payload 1 = 9 UDPcksum:2=0x985b # may need re-calculation if changed UDPpayload:1=0xff padding:1=0 # MAC Padding for 32bit alignment, set to 0 } }}######################### Auto-TX command ########################################### MEM_ACCESS ##################mr_c00153e4={ CmdCode=0x0086 # do NOT change this line Action:2=0 # GET Reserved:2=0 Address:4=0xc00153e4 Value:4=0}mw_c00153e4_0={ CmdCode=0x0086 # do NOT change this line Action:2=1 # SET Reserved:2=0 Address:4=0xc00153e4 Value:4=0}mw_c00153e4_aabbccdd={ CmdCode=0x0086 # do NOT change this line Action:2=1 # SET Reserved:2=0 Address:4=0xc00153e4 Value:4=0xaabbccdd}######################### MEM_ACCESS ##################
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -