Shandong USR IOT Technology USRBLE100 Serial to Bluetooth Module User Manual 1 Quick Start

Shandong USR IOT Technology Limited Serial to Bluetooth Module 1 Quick Start

User Manual

USR-BLE100 User Manual h.usriot.comJinan USR IOT Technology Limited / 16 www.usriot.com1USR-BLE100 User ManualFile version: V1.1
USR-BLE100 User Manual h.usriot.comJinan USR IOT Technology Limited / 16 www.usriot.com2Contents1. Quick Start.........................................................................................................................................................................31.1. Hardware Testing Environment.......................................................................................................................... 31.2. Data Transmission Testing.................................................................................................................................. 32. Overview............................................................................................................................................................................ 52.1. Brief Introduction...................................................................................................................................................52.2. Features..................................................................................................................................................................52.3. Parameters.............................................................................................................................................................52.4. Hardware Introduction..........................................................................................................................................62.5. Applications............................................................................................................................................................82.6. Dimensions.............................................................................................................................................................93. Functions............................................................................................................................................................................93.1. Working Mode..................................................................................................................................................... 103.1.1. Master Mode............................................................................................................................................ 103.1.2. Slave Mode...............................................................................................................................................103.1.3. Broadcast Mode.......................................................................................................................................103.1.4. Mesh Networking Mode..........................................................................................................................113.2. Packet Mechanism..............................................................................................................................................113.3. iBeacon Protocol................................................................................................................................................. 113.4. SOC Detection.................................................................................................................................................... 123.5. Low Power Mode................................................................................................................................................ 123.6. Encrypted Transmission.................................................................................................................................... 123.7. Indicator Status................................................................................................................................................... 134. Setup Method..................................................................................................................................................................134.1. AT Instruction....................................................................................................................................................... 134.1.1. Serial AT Instruction................................................................................................................................ 134.1.2. Transparent Transmission Instruction..................................................................................................134.2. AT Instructions..................................................................................................................................................... 145. Contact us........................................................................................................................................................................156. Disclaimer........................................................................................................................................................................157. Update History................................................................................................................................................................ 15
USR-BLE100 User Manual h.usriot.comJinan USR IOT Technology Limited / 16 www.usriot.com31. Quick StartThis chapter aimes at getting start USR-BLE100 quickly. It’s recommended that user read this chaptersystemically and operate it according to instruction to make a scientific knowledge. Following chapter willintroduce specific details and instruction, user can read interested chapter directly.If you have any question, feed it back to customer center please:http://h.usriot.com1.1. Hardware Testing EnvironmentModule slave mode is similar to smart devices on the market like Smart Band. This module supportstandard BLE communication protocol, user can independent develop software and communicate by connectmodule with master device like mobile phone. This test need the device which support ultra-low powerBluetooth:The device with BLE function and Android system V4.3 or above.Iphone 4s version or above device with IOS7.0 or above operating system.1.2. Data Transmission TestingTake Android mobile phone as example:Testing environment: Android 5.0Testing software : Android Bluetooth Module Debugger and USR-TCP-TestUse the USR-TCP-Test to open the serial number of the connected module, set the baud rate as 57600.(User can use AT instruction to change parameter, following chapter will introduce it.)Link light will flash once per second when module power-on. Using the Module Debugger software tosearch (click magnifying glass button) , you can find the device named USR-BLE100, as shown in figure 1.Figure 1 Module Debugger softwareClick on the device to connect with it, as shown in figure 2, the LINK light will keep on.
USR-BLE100 User Manual h.usriot.comJinan USR IOT Technology Limited / 16 www.usriot.com4Figure 2 Module Debugger softwareFirstly, click on the “USR Service”. Then click the “DEBUG” option at the bottom. After it, click on “NOTIFY”.When it turn to “STOP NOTIFY”, listening state begins. Now we can receive data through serial port. If userwant to send data, click on the upward symbol on the left, find out the “WRITE”, click it and user can type data.After click “SEND”, serial will receive the data you sent.Figure 3 Module Debugger softwareNote: According to test, we found that for BLE, the IOS support better than the Android, both at searchingspeed or connecting speed. This is caused by the different of operating and hardware.2. Overview2.1. Brief IntroductionUSR-BLE100 is a module which support ultra-low power Bluetooth4.1, and this module support masterand slave, user not only can use both master and salve for transparent transmission, also can make wirelessdata transmission to the traditional low-end serial device and the device controlled by MCU. User can developAPP on the basis of standardized BLE protocol, make it a easy way to communicate with module. This modulesupport MESH network pattern and one-to-many broadcasting, also has built-in iBeacon protocol, user can
USR-BLE100 User Manual h.usriot.comJinan USR IOT Technology Limited / 16 www.usriot.com5make it a iBeacon equipment after make simple setup. USR-BLE100 is a versatile, simple, and low-power IOTtransmission module.2.2. FeaturesSupport standard BLE protocol1.3uA low-power broadcast mode, 150nA sleep mode, and varied wake-up modeSupport master and slave, switch fastconfiguration mode: serial AT command, transparent transmission AT commandSupport one-to-many broadcast mode, with built-in iBeacon protocolSupport Mesh network mode, can realize Bluetooth networkSupport UART interface1.9~5.5V single supplySupport state of charge(SOC) detectionUltra-long transmission distance, up to 120m for a pair of modules2.3. ParametersTable 1. USR-BLE100 parameterItemIndexWirelessparameterWireless Standard802.15.1Frequency Range2.402Ghz-2.480GHzTransmit Power-18dBm~+3dBmUser can configure powerReceiving Sensitivity-89dBmAntenna OptionsExternal: I-PEX connectorBuilt-in: PCB antennaHardwareParameterData InterfaceUART: 2400bps~115200bpsWorking Voltage1.9V~5.5VWorking Current60nA~12mAWorking Temperature-40°C~85°CStorage Temperature-40°C~125°CDimensions18.2*26.7*3mmSoftwareParameterDevice typeMaster/SlaveSecurity Mechanism128 bit AES engineData EncryptionPC1 encryptionWork ModeMaster, Slave, BroadcastSet CommandAT+ command structureUser ConfigurationSerial AT CommandTransparent Transmission AT commandUser ApplicationSoftwareSupport customized software for VIPusers
USR-BLE100 User Manual h.usriot.comJinan USR IOT Technology Limited / 16 www.usriot.com62.4. Hardware IntroductionFigure 4 USR-BLE100 PINTable 2. USR-BLE100 Pin DefinitionsPinNameDefination1GNDPower Ground2RFRF signal output3NCNot connect4ResetReset, take affect in “0”5GPIO1GPIO16GPIO2GPIO27GPIO3GPIO38NCNot connect912C_SDAI2C Data Pin1012C_SCLI2C Clock Pin11GNDPower Ground12GNDPower Ground13VCCPower VCC, positive, range from 1.9v~5.5v14VCCPower VCC, positive, range from 1.9v~5.5v15GPIO8GPIO816NCNot connect17GNDPower Ground18PWM1PWM Output Pin 119UART0_TXUART0 transmit20UART0_RXUART0 receive21nReloadReload to default settings for 1sReload to factory defaults for above 3s
USR-BLE100 User Manual h.usriot.comJinan USR IOT Technology Limited / 16 www.usriot.com7<Note>The module minimum system recommend to use: PIN VCC, GND, UART0_TX, UART0_RX, LED, Reset,Reload, Wake_Up. Please refer to the hardware design manual.2.5. ApplicationsWearable Smart DeviceIndustrial Data CollectionSmart MeterSport Smart DeviceMedical Smart DeviceSmart Mobile TerminalIndoor locationInformation IdentificationiBeaconHomekit22ADAD collection23LEDIndicator light24UART0_CTSUART0 CTS signal25UART0_RTSUART0 RTS signal26SWDATABurn Data27SWCLKBurn Clock28GNDPower Ground29GNDPower Ground30UART1_TXUART1 transmit31UART1_RXUART1 receive32PWM2PWM output 233SPI_SS1SPI send request34SPI_SCLKSPI clock35SPI_MISOSPI MISO function36SPI_MOSISPI MOSI function37SPI_SS0SPI chip selection38Wake_UpWake up39UART1_CTSUART1 CTS signal40USRT1_RTSUART1 RTS signal41NCNot connect42NCNot connect43NCNot connect44GNDPower Ground
USR-BLE100 User Manual h.usriot.comJinan USR IOT Technology Limited / 16 www.usriot.com82.6. Dimensionsunit: mmFigure 5 USR-BLE100 Dimension3. FunctionsThis chapter introduce the functions of product, as the following figure 6 shown, user can get a goodknowledge of product.Figure 6 USR-BLE100 Function
USR-BLE100 User Manual h.usriot.comJinan USR IOT Technology Limited / 16 www.usriot.com93.1. Working ModeUSR-BLE100 has 4 modes:Master ModeSlave ModeBroadcast ModeMesh Networking Mode<Note>The module default factory mode is slave pattern, user can use master device to search.3.1.1. Master ModeUSR-BLE100 support master mode that can connect with a slave device. In this pattern, user can searchdevices around and choice the slave device need to connect. User also can set the MAC address of the slavefor default link, the device can find this pattern to connect when it power on.<Note>The USR-BLE100 module in Master mode, it need to connect another USR-BLE100 which is in Slavemode to realize point to point transparent data transfer. It can’t connect other brands’ device to realizetransparent transmission because of the incompatible protocol.3.1.2. Slave ModeUSR-BLE100 support slave mode, in this mode, device completely conform to BLE 4.1 protocol andcompatible with 4.0 protocol, user can develop APP according to protocol. This mode contain a serialtransceiver Service, user can find it by UUID. There are 2 channels, read and write, user can transfer datathrough those channels.There is no need for user to concern protocol if use the master of USR-BLE100 connect with slave, theserial ports of two devices can transparent transfer data immediately. It develop a easy wireless transmissionchannel for user.<Note>The question how to use BLE protocol to communicate is introduced in software design manual.3.1.3. Broadcast ModeUSR-BLE100 support broadcasting mode, which support one-to-many broadcast. User can set modulebroadcasting data through AT instructions. Module can consistent broadcast in low-power pattern, be used toultra-low power, small-data-sets, simplex transmission application occasions, like wireless measurement,indoor location and so on.<Note>Module has built-in iBeacon protocol, user just need a button battery and set parameter through ATinstruction to make it a iBeacon device. Following chapter will detailed introduce it.3.1.4. Mesh Networking ModeUSR-BLE100 support Mesh network mode, can connect many modules with net easily. By using star
USR-BLE100 User Manual h.usriot.comJinan USR IOT Technology Limited / 16 www.usriot.com10network and relay technology, each network can link 65000 or more nodes, networks can be interconnected,and finally countless BLE modules can be interconnected or manipulate directly through mobile phone, pad orPC. It doesn’t need gateway, even if one device is broken, other device will skip it and choose the nearestdevice to transfer. The whole networking process just need a power-on device and communication password.<Note>This mode has some limits. Because in the transfer process, module need to constantly switching modes,so the amount of transmitted data is limited to 20bytes per time, and transfer will delay a few seconds. Thismode is similar to UDP that can not ensure data would be sent to specified module. Please refer to thesoftware design manual for detailed instructions.3.2. Packet MechanismLow-power Bluetooth aimed at small-data-sets transmission. According to the different serial baud rate,BLE connect intervals and different contracting intervals, module will has different capacity of data. But, in anycase it will not exceed the theory of 4K byte/s. Test shows that leakage probability is lower when forwardingrate is below 2K byte/s. To be safe, whether high speed or low speed, it’s better to do check retransmission inthe upper.The serial port of USR-BLE100 can receive up to 512-byte packets per time, module will sendautomatically according to the size of the packet, the maximum load for each wireless packet is 20 bytesaccording to the standard. The packets mobile device send to module must packet(1-20byte per package) byself to transfer. Module will forwarding to module serial port in turn when receive.Module has two contract award pattern, one is 20 byte per package, another one is100 byte per package.The latter can only be applied to set USR-BLE100 modules separately as Master and Slave to communicate. Ifuser use APP communicate with salve should choice 20 byte per package, there is specialized AT instructionto be set.<Note>When serial port use the big package that greater than 100 byte less than 512 byte, serial data can bereceived at a time. But it need reserved time to let module transfer data through Bluetooth, or it will rear end.Please refer to the software design manual for detailed instructions.3.3. iBeacon ProtocolUSR-BLE send specific ID to surrounding through BLE broadcasting technology, the software receivedthis ID will take action according this ID. For example, set iBeacon protocol in shop will make the information iniPhone and iPad transfer to the server, or make server send coupon and points to customer. In addition, usercan use iBeacon to send information to software when home appliance broken or stop working. Now WeChatalso support iBeacon, when user use “shake”, the ID registered in the background will receive relatedinformation. The Bluetooth pendant key in popular use APP and the gyroscope of mobile phone to locatemodule, always be used to indoor location.<Note>Apple company came out this protocol in 2013,now, Android also compatible with it, make the applicationrange of iBeach father.
USR-BLE100 User Manual h.usriot.comJinan USR IOT Technology Limited / 16 www.usriot.com113.4. SOC DetectionUSR-BLE100 collecting voltage through built-in ADC, transfer through specific “Service ”. Consideringmany customers use Bluetooth will use battery in most cases, we add a measure function to access batterypower in real time. User only need to part voltage on the battery, part 1.024V voltage to AD collection pin whenbattery in maximum power. Module monitor the change of voltage in real time, and report through privatechannel.<Note>Please refer to the software design manual for detailed instructions.3.5. Low Power ModeUSR-BLE100 has many low-power patterns, can provide longer using time for the customer use battery.The first pattern: Auto Sleep Pattern. User can set a time through AT instruction. When noconnection ,serial port has no data and standby time exceeds the set time, module will enter sleep modeautomatically. In this pattern module Bluetooth can broadcast and connect, serial data can awake the moduleat anytime.The second pattern: Deep Sleep Pattern. Enter this pattern need AT instruction. Then, Bluetooth still canbroadcast and connect. There are two awake methods: make connection and use awake pin. In this pattern,power consumption can reach about 1.5uA , many slave work in this pattern.The third pattern: Sleep Pattern. This pattern still need AT instruction to enter, any peripheral will not workin this pattern, power consumption can reach about 150nA, user can use awake pin to awake it.<Note>The low-power patterns here are only relative to salve, master does not have low-power mode. User canmake it stop working when master does not work, awake it and search to make connection when user need.3.6. Encrypted TransmissionIn order to ensure the security of data transmission, user can choose plaintext transmission or encryptedtransmission. User can use AT instruction to encrypted transfer, then serial data will be PC1 encrypted bypassword, the module received data can decrypt only when it has the same password. It ensure the safety ofdata transmission.<Note>There are built-in decrypt function in USR modules. If user want to use this pattern to encrypted transferthrough master and salve, he just need a coincident password. Data will be encrypted in one port, decrypted inanother port. If user develop APP to encrypted transfer, it need the decrypted function of APP to make sure thatdata can be transferred. Please refer to the software design manual for detailed instructions.3.7. Indicator StatusThere is a indicator light(pin) in USR-BLE100 module, it display differently in different modular status. Thespecific situation as shown below.
USR-BLE100 User Manual h.usriot.comJinan USR IOT Technology Limited / 16 www.usriot.com12Table 3. USR-BLE100 Light DefinitionModule StatusIndicator StatusMaster SearchingFlash 3 times per secondSlave BroadcastingFlash 1 time per secondConnection EstablishmentONLow Power ModeOFFData TransmissionFlash4. Setup Method4.1. AT Instruction4.1.1. Serial AT InstructionUSR-BLE100 has varied work modes, it will enter the mode you set last time when start-up, user canswitch into AT Instruction mode through serial instruction.There are two steps to switch other modes into AT Instruction mode:1. Input “+++” in serial port, then module will reply a confirmation code “a” when received “+++”;2. Input “a” in serial port after received “a”, module will reply “+OK” to confirm, then module will enterinstruction mode;User also can directly input “+++a” and wait module reply “+OK” to enter AT command mode. User cansend specific instruction in AT format after enter this mode.4.1.2. Transparent Transmission InstructionUSR-BLE100 also support transparent transmission AT Instruction, user can use APP or the moduleconnected with it to set parameters in this pattern. User just need to input the 6 digits password of the moduleand AT instruction to query or set the module’s parameter. For example, if user want to query module’s versionnumber, he should input “000000, AT+CTVER enter”. Like this, user can set and query parameter withoutentering AT instruction pattern in data transmission period.4.2. AT InstructionsTable 4. USR-BLE100 AT InstructionsInstructionDescriptionGeneral CommandNAMEQuery/Set Module NameMODEQuery/Set Pattern ModeMACQuery Module’s MAC AddressCIVERQuery Software Version Number
USR-BLE100 User Manual h.usriot.comJinan USR IOT Technology Limited / 16 www.usriot.com13TPLQuery/Set Module Transmission PowerSHOWShow NAME, Pattern, MAC, Connection, Powerand so on.PASSQuery/Set Mode PasswordPASSENQuery/Set Paired ValidationUARTQuery/Set Mode Serial ParameterUARTTMQuery/Set Serial Packet timeAUTOSLEEPQuery/Set Sleep AutomaticallyDEEPSLEEPEnter Ultra-low PatternHIBERNATEEnter Sleep PatternHELLOQuery/Set Welcome WordsENTMPull Out Instruction PatternRELOADResume To Default SettingZRestart ModuleLink CommandLINKQuery Mode Connection statusSCANQuery Slaves SurroundedCONNQuick Connect By Query Reference NumberCONNADDQuery/Set MAC Address Default ConnectedDISCONNDisconnect Current ConnectionADPQuery/Set If Broadcast In This PatternADPTMQuery/Set Broadcasting SpeedCharacteristic FunctionBATENUse/Forbidden Power testingMAXPUTUse/Forbidden maximum outputTRENCUse/Forbidden PCI Encrypted TransmissionIBEACONQuery/Set iBeacon FunctionHow to use AT instruction can refer to the Software design manual.
USR-BLE100 User Manual h.usriot.comJinan USR IOT Technology Limited / 16 www.usriot.com145. Contact usCompany: Jinan USR IOT Technology LimitedAddress: Floor 11,Building1,No.1166 Xinluo Street, Gaoxin Distric, Jinan,Shandong,250101 ChinaTel: 86-531-88826739Web: http://www.usriot.comSupport: http://h.usriot.comEmail: sales@usr.cn6. DisclaimerThis document provides information about USR-BLE100 modules, this document does not grant anylicense to intellectual property rights. Except the responsibilities. In addition, USR does not make anywarranties for the sale and use of this product, including the suitability of the product for a particular purpose,merchantability of fitness for any patent, copyright or other intellectual property infringement, etc. USR maymake changes to specifications and product descriptions without notice.7. Update History2015-11-27 V1.0 first version2016-01-04 V1.1 modify MAC instruction and white list instruction
USR-BLE100 User Manual h.usriot.comJinan USR IOT Technology Limited / 16 www.usriot.com15IMPORTANT NOTESCo-location warning:This transmitter must not be co-located or operating in conjunction with any other antenna or transmitter. OEM integration instructions:This device is intended only for OEM integrators under the following conditions: As long as 3 conditions above are met, further transmitter test will not be required. However, the OEM integrator is still responsible for testing their end-product for any additional compliance requirements required with this module installed (for example, digital device emissions, PC peripheral requirements, etc.). Validity of using the module certification: In the event that these conditions cannot be met (for example certain laptop configurations or co-location with another transmitter), then the FCC authorization for this module in combination with the host equipment is no longer considered valid and the FCC ID of the module cannot be used on the final product. In these circumstances, the OEM integrator will be responsible for re-evaluating the end product (including the transmitter) and obtaining a separate FCC authorization. End product labeling:Information that must be placed in the end user manual:The OEM integrator has to be aware not to provide information to the end user regarding how to install or remove this RF module in the user's manual of the end product which integrates this module. The end user manual shall include all required regulatory information/warning as show in this manual.Federal Communication Commission Statement (FCC, U.S.)This equipment has been tested and found to comply with the limits for a Class B digital device, pursuant to Part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference in a residential installation. This equipment generates, uses and can radiate radio frequency energy and, if not installed and used in accordance with the instructions, may cause harmful interference to radio communications. However, there is no guarantee that interference will not occur in a particular installation. If this equipment does cause harmful interference to radio or television reception, which can be determined by turning the equipment off and on, the user is encouraged to try to correct the interference by one of the following measures:- Reorient or relocate the receiving antenna.- Increase the separation between the equipment and receiver.- Connect the equipment into an outlet on a circuit different from that to which the receiver is connected.- Consult the dealer or an experienced radio/TV technician for help.This device complies with Part 15 of the FCC Rules. Operation is subject to the following two conditions: (1) This device may not cause harmful interference, and (2) this device must accept any interference received, including interference that may cause undesired operation.FCC Caution: Any changes or modifications not expressly approved by the party responsible for compliance could void the user's authority to operate this equipment.The transmitter module may not be co-located with any other transmitter or antenna. The module shall be only used with the PCB antenna that has been originally tested and certified with this module.The final end product must be labeled in a visible area with the following: “Contains Transmitter Module FCC ID: 2AJDA-USRBLE100”.

Navigation menu