User Guide for Amp ed RF Technology models including: 0001, 0002, 0003, BLE Mesh Embedded Software, BLE Mesh, Embedded Software, Software
File Info : application/pdf, 6 Pages, 244.86KB
DocumentDocumentBLE Mesh Quick Start Guide Amp'ed RF Technology, Inc. 1. Mesh Network A typical network setup: 2. Quick Start Instructions To demonstrate Mesh with three modules, use the following procedure: 2.1. Use 0001 node as the on/off switch (client). 2.2. Use 0003 node as the target (server). 2.3. Use 0002 node as the relay. 2.4. Be sure the three encryption keys are set properly. Use the AT command SetKeyPass. 2.4.1. at+ab SetKeyPass dev [Device] 2.4.2. at+ab SetKeyPass app [Application] 2.4.3. at+ab SetKeyPass net [Network] 2.5. Use distance to separate 0001 and 0003 so that they cannot communicate directly. Alternatively, use the AT Block command to block messages between 0001 and 0003. 2.5.4. at+ab Block [local BD Address] 2.6. The RSSI command can be used to test and determine the strength of the received Mesh messages. 2.7. Use the AT OnOff command on 0001 to send an On or Off command to 0003. Once the on/off msg is received, 0003 will respond by sending its status to 0001. 2.8. Since 0001 and 0003 is either too far or have its messages blocked from each other, these messages should be relayed through 0002. 3. General setup · Serial COM port settings: 115200/N/8/1 · All AT commands must terminate with a CRLF. · AT commands may be sent over the BLE link or the COM port/module UART. · Commands are non-case sensitive, except device names and passwords/passcodes. · Command parameters use ASCII format, unless stated in ASCII hex format. ASCII hex uses 2 characters per hex byte. www.ampedrftech.com 2 4. Examples. 4.1. Be sure to use a build version of at least 240411A Mesh. 4.2. Set all node addresses. See config var92. 4.3. Set the key passwords using the SetKeyPass AT command. 4.4. For testing, use the block AT command. 4.5. The following are the example config settings for Nodes 0001, 0002, and 0003. 4.5.1. Node 0001 at+ab config System Configuration Settings - Version 1.7 var01 BuildVersion = 240411A Mesh var02 BD_ADDR = 00043e260777 var03 DeviceName = Art Mesh var04 StreamingSerial = true var05 PIN = 0000 var06 UartBaudrate = 115200 var07 UartParity = none var08 UartDataBits = 8 var09 UartStopBits = 1 var10 UartTimeout = 16 var11 HostShallowSleepEn = true var12 HostDeepSleepEn = false var13 GPIO_HostKeepAwake = none var14 GPIO_HostWakeup = none var15 UseSmallPackets = false var16 EnableAFH = true var17 ATReply = AT-AB var18 QoS_Latency = 20 var19 CpuMHz = 50 var20 HciBaudrate = 230400 var21 COD = 250540 var22 HostEvents = true var23 BondingAllowed = true var24 PageScan = true var25 InquiryScan = true var28 DefaultAuth = 5 var29 EnableIAP = false var30 EnableSPP = true var31 EnableHID = true var33 iAPAppID = A1B2C3D4E5 var34 iAPAppIDStr = com.AmpedRFTech.Demo var35 iAPProtocolStrMain = com.AmpedRFTech.Demo var36 iAPProtocolStrAlt = com.AmpedRFTech.ProtocolAlt var37 CPI2CMode = 3 var40 HardwareType = BT24B var42 CreditMax = 11 var43 AccName = ART var44 AccManufacturer = ART var45 AccModelNumber = Demo var46 AccSerialNumber = Amp'ed Up! var47 MITMEvent = false var48 ProfileRole = p www.ampedrftech.com 3 var49 AdvIntMin var50 AdvIntMax var51 ScanInt var52 ScanWindow var53 ConnectIntMin var54 ConnectIntMax var58 BatteryEnable var59 CharacteristicMax var60 ServiceUUID var85 MeshVersion var86 MeshRelay var87 MeshProxy var88 MeshBle var89 MeshFriend var90 MeshLPN var91 MaxTTL var92 NodeAddr var93 PublishAddr var94 SubscribeAddr = 256 = 512 = 32 = 18 = 912 = 1000 = true = 4 = 26cc3fc06241f5b4534763a3097f6764 = 0x0001 = true = true = false = false = false = 4 = 0001 = 0000 = 0000 4.5.2. Node 0002 at+ab config System Configuration Settings - Version 1.7 var01 BuildVersion = 240411A Mesh var02 BD_ADDR = 00043e850b83 var03 DeviceName = Art Mesh var04 StreamingSerial = true var05 PIN = 0000 var06 UartBaudrate = 115200 var07 UartParity = none var08 UartDataBits = 8 var09 UartStopBits = 1 var10 UartTimeout = 16 var11 HostShallowSleepEn = true var12 HostDeepSleepEn = false var13 GPIO_HostKeepAwake = none var14 GPIO_HostWakeup = none var15 UseSmallPackets = false var16 EnableAFH = true var17 ATReply = AT-AB var18 QoS_Latency = 20 var19 CpuMHz = 50 var20 HciBaudrate = 230400 var21 COD = 250540 var22 HostEvents = true var23 BondingAllowed = true var24 PageScan = true var25 InquiryScan = true var28 DefaultAuth = 5 var29 EnableIAP = false var30 EnableSPP = true var31 EnableHID = true var33 iAPAppID = A1B2C3D4E5 var34 iAPAppIDStr = com.AmpedRFTech.Demo var35 iAPProtocolStrMain = com.AmpedRFTech.Demo var36 iAPProtocolStrAlt = com.AmpedRFTech.ProtocolAlt var37 CPI2CMode = 3 var40 HardwareType = BT24B var42 CreditMax = 11 var43 AccName = ART var44 AccManufacturer = ART var45 AccModelNumber = Demo www.ampedrftech.com 4 var46 AccSerialNumber var47 MITMEvent var48 ProfileRole var49 AdvIntMin var50 AdvIntMax var51 ScanInt var52 ScanWindow var53 ConnectIntMin var54 ConnectIntMax var58 BatteryEnable var59 CharacteristicMax var60 ServiceUUID var85 MeshVersion var86 MeshRelay var87 MeshProxy var88 MeshBle var89 MeshFriend var90 MeshLPN var91 MaxTTL var92 NodeAddr var93 PublishAddr var94 SubscribeAddr = Amp'ed Up! = false = p = 256 = 512 = 32 = 18 = 912 = 1000 = true = 4 = 26cc3fc06241f5b4534763a3097f6764 = 0x0001 = true = true = false = false = false = 4 = 0002 = 0000 = 0000 4.5.3. Node 0003 at+ab config System Configuration Settings - Version 1.7 var01 BuildVersion = 240411A Mesh var02 BD_ADDR = 00043e260666 var03 DeviceName = Art Mesh var04 StreamingSerial = true var05 PIN = 0000 var06 UartBaudrate = 115200 var07 UartParity = none var08 UartDataBits = 8 var09 UartStopBits = 1 var10 UartTimeout = 16 var11 HostShallowSleepEn = true var12 HostDeepSleepEn = false var13 GPIO_HostKeepAwake = none var14 GPIO_HostWakeup = none var15 UseSmallPackets = false var16 EnableAFH = true var17 ATReply = AT-AB var18 QoS_Latency = 20 var19 CpuMHz = 50 var20 HciBaudrate = 230400 var21 COD = 250540 var22 HostEvents = true var23 BondingAllowed = true var24 PageScan = true var25 InquiryScan = true var28 DefaultAuth = 5 var29 EnableIAP = false var30 EnableSPP = true var31 EnableHID = true var33 iAPAppID = A1B2C3D4E5 var34 iAPAppIDStr = com.AmpedRFTech.Demo var35 iAPProtocolStrMain = com.AmpedRFTech.Demo var36 iAPProtocolStrAlt = com.AmpedRFTech.ProtocolAlt var37 CPI2CMode = 3 var40 HardwareType = BT24B var42 CreditMax = 11 www.ampedrftech.com 5 var43 AccName var44 AccManufacturer var45 AccModelNumber var46 AccSerialNumber var47 MITMEvent var48 ProfileRole var49 AdvIntMin var50 AdvIntMax var51 ScanInt var52 ScanWindow var53 ConnectIntMin var54 ConnectIntMax var58 BatteryEnable var59 CharacteristicMax var60 ServiceUUID var85 MeshVersion var86 MeshRelay var87 MeshProxy var88 MeshBle var89 MeshFriend var90 MeshLPN var91 MaxTTL var92 NodeAddr var93 PublishAddr var94 SubscribeAddr = ART = ART = Demo = Amp'ed Up! = false = p = 256 = 512 = 32 = 18 = 912 = 1000 = true = 4 = 26cc3fc06241f5b4534763a3097f6764 = 0x0001 = true = true = false = false = false = 4 = 0003 = 0000 = 0000 4.6. Testing example. User input is shown as bold type. Node 0001 0002 0003 Display at+ab block 00043e260666 Blocked: 00043E260666 at+ab onoff 0003 setack on >>Sending Msg from 0001 to 0003: Cmd setack to 1 * Relay msg (TTL=3) * 0001 SRC=0001 OnOffStatus state = 01 * Relay msg (TTL=4) * Relay msg (TTL=4) at+ab block 00043e260777 Blocked: 00043E260777 * Relay msg (TTL=3) WRAPPER STATE = 01 * 0003 SRC=0003 OnOffSet state = 01 www.ampedrftech.com 6