WIRELESS CONNECTIVITY & SENSORS ANR014 - Connect a smart phone to a Proteus Bluetooth LE module Revision history Manual Notes Date version July 2019 Initial version Added description for Proteus-III January 2020 Updated address of Division Wireless Connectivity & Sensors location Added example for connection setup using the Proteus Connect App March 2021...
Page 3
WIRELESS CONNECTIVITY & SENSORS ANR014 - Connect a smart phone to a Proteus Bluetooth LE module Abbreviations Abbreviation Name Description ® Bluetooth conform MAC address of the module used BTMAC on the RF-interface. Checksum Byte wise XOR combination of the preceding fields. ®...
WIRELESS CONNECTIVITY & SENSORS ANR014 - Connect a smart phone to a Proteus Bluetooth LE module Contents 1 Introduction 2 Prerequisites 3 Basics 4 Quick start WE Bluetooth LE Terminal App ......10 nRF Connect App .
Bluetooth LE and low power features. By default in the so called command mode, a radio module of the Proteus series can be con- trolled and configured by the host using predefined commands sent via the UART interface.
WIRELESS CONNECTIVITY & SENSORS ANR014 - Connect a smart phone to a Proteus Bluetooth LE module 2 Prerequisites To follow the description in this application note, the following prerequisites may be helpful: ® A Bluetooth LE enabled smart phone including a suitable App, for example –...
WIRELESS CONNECTIVITY & SENSORS ANR014 - Connect a smart phone to a Proteus Bluetooth LE module Figure 2: Default jumper placement of the Proteus-III EV-Board. Red means "jumper must be set". Figure 3: Default jumper placement of the Proteus-III-SPI mini EV-Board. The complete description of Proteus modules can be found in the respective radio module man- ual and application notes.
Page 8
WIRELESS CONNECTIVITY & SENSORS ANR014 - Connect a smart phone to a Proteus Bluetooth LE module – Proteus-II user manual [10] – Proteus-II advanced user guide ANR005_Proteus-II_Advanced_Developer_Guide [11] Proteus-III – Proteus-III user manual [12] – Proteus-III advanced user guide ANR009_Proteus-III_Advanced_Developer_Guide [13] Proteus-III-SPI –...
WIRELESS CONNECTIVITY & SENSORS ANR014 - Connect a smart phone to a Proteus Bluetooth LE module 3 Basics ® The setup of a Bluetooth LE connection to a Proteus radio module contains several steps: 1. Physical connection establishment First of all, a physical connection has to be established. Therefore, a central device (usually smart phone) has to connect to the Proteus module which runs as peripheral.
WIRELESS CONNECTIVITY & SENSORS ANR014 - Connect a smart phone to a Proteus Bluetooth LE module Bluetooth Peripheral Central Smart Proteus device module connect connection establishment CMD_CONNECT_IND pairing pairing request pairing response CMD_SECURITY_IND mtu request request MTU mtu response discovery notification enable send notification CMD_CHANNELOPEN_RSP...
WIRELESS CONNECTIVITY & SENSORS ANR014 - Connect a smart phone to a Proteus Bluetooth LE module 4 Quick start The following description demonstrates how to setup a connection with a smart phone to a Proteus radio module. The smart phone acts as central device. In the next chapter the WE Bluetooth LE Terminal App is used.
Page 12
WIRELESS CONNECTIVITY & SENSORS ANR014 - Connect a smart phone to a Proteus Bluetooth LE module 4. By default, the module is advertising. Thus, one LED of the Proteus EV-Board is blinking. ® Start your smart phone, enable the Bluetooth LE and location feature and open the WE Bluetooth LE Terminal App.
Page 13
WIRELESS CONNECTIVITY & SENSORS ANR014 - Connect a smart phone to a Proteus Bluetooth LE module 8. As soon as the module has been chosen, the connection setup starts. When the module has received the connection request, it’s LED_1 (LED_3 on the Proteus-EV) will con- stantly light up.
Page 14
WIRELESS CONNECTIVITY & SENSORS ANR014 - Connect a smart phone to a Proteus Bluetooth LE module 11. On the Proteus side, the radio module has sent the corresponding CMD_CONNECT_IND and CMD_CHANNELOPEN_RSP in between. These messages indicate that a connection has been setup and a link has been opened.
Page 15
WIRELESS CONNECTIVITY & SENSORS ANR014 - Connect a smart phone to a Proteus Bluetooth LE module ® in the connection process. The smallest supported MTU for all Bluetooth 4.0 (or newer) devices results in a max payload of 19 bytes. Android usually allows up to 243 bytes, iOS up to 181 bytes.
Page 16
WIRELESS CONNECTIVITY & SENSORS ANR014 - Connect a smart phone to a Proteus Bluetooth LE module 14. To send back data (here we choose 0xDE 0xAD 0xBE 0xEF) to the smart phone a CMD_DATA_REQ message must be sent to the module from the host. The format of the CMD_DATA_REQ message is as follows, where the check sum (CS) is calculated as XOR of the preceding bytes: Start signal...
Page 17
WIRELESS CONNECTIVITY & SENSORS ANR014 - Connect a smart phone to a Proteus Bluetooth LE module 16. When sending the CMD_DATA_REQ to the Proteus module, it responds with two different messages. First a CMD_DATA_CNF message is returned, as soon as the request was inter- preted.
WIRELESS CONNECTIVITY & SENSORS ANR014 - Connect a smart phone to a Proteus Bluetooth LE module 4.2 nRF Connect App This chapter describes how to setup a connection to the Proteus module in command mode, when a smart phone and the nRF Connect App [2, 3] are used. Please perform the following steps: Android Connect the Proteus EV-Board to a host.
Page 19
WIRELESS CONNECTIVITY & SENSORS ANR014 - Connect a smart phone to a Proteus Bluetooth LE module Android Initially, the module is advertising. Thus, one LED of the Proteus EV-Board is blinking. ® Start your smart phone, enable the Bluetooth LE feature and start the nRF Con- nect App.
Page 20
WIRELESS CONNECTIVITY & SENSORS ANR014 - Connect a smart phone to a Proteus Bluetooth LE module Android As soon as the module has received the connection request from the smart phone the blinking LED will switch to constant on. Optional pairing: In case a security mode has been configured before, the smart phone requests the user for pairing actions.
Page 21
WIRELESS CONNECTIVITY & SENSORS ANR014 - Connect a smart phone to a Proteus Bluetooth LE module Android Please click on the menu bullets on Please click on the "Unknown Ser- the right and press "Request MTU" to vice" to start the service discovery request for a larger MTU.
Page 22
WIRELESS CONNECTIVITY & SENSORS ANR014 - Connect a smart phone to a Proteus Bluetooth LE module Android The Proteus module allows a MTU of The iOS App runs this step simulta- up to 247 bytes, which results in a neously in the background, a user- payload size of 243 bytes.
Page 23
WIRELESS CONNECTIVITY & SENSORS ANR014 - Connect a smart phone to a Proteus Bluetooth LE module Android Press arrow 6E400003- C352- characteristic 11E5- 953D -0002A5D5C51B to en- Again click on the menu bullets on the able the notifications. Press it until right and press "Enable services"...
Page 24
WIRELESS CONNECTIVITY & SENSORS ANR014 - Connect a smart phone to a Proteus Bluetooth LE module Android On the Proteus side, the radio module sent the corresponding CMD_CONNECT_IND and CMD_CHANNELOPEN_RSP in between. These messages indicate that a connec- tion has been setup and a link has been opened. The CMD_CHANNELOPEN_RSP mes- sage contains the MTU (maximum transmission unit) of the current link, which defines the maximum supported packet payload length.
Page 25
WIRELESS CONNECTIVITY & SENSORS ANR014 - Connect a smart phone to a Proteus Bluetooth LE module Android To send data to the Proteus module, press the arrow next to the TX-characteristic 6E400002-C352-11E5-953D-0002A5D5C51B in the nRF Connect App. First enter 01 right behind the 0x as header byte, followed by your payload (for example 0x11 0x22 0x33 0x44) and press "SEND"...
Page 26
WIRELESS CONNECTIVITY & SENSORS ANR014 - Connect a smart phone to a Proteus Bluetooth LE module Android The payload that has been sent is output by the Proteus module via UART. In the terminal program a CMD_DATA_IND message has been received that contains the BTMAC of the sending device and the transmitted payload 0x11 0x22 0x33 0x44.
Page 27
WIRELESS CONNECTIVITY & SENSORS ANR014 - Connect a smart phone to a Proteus Bluetooth LE module Android To send back data to the smart phone simply insert your payload (here we choose 0xDE 0xAD 0xBE 0xEF) in a CMD_DATA_REQ message. The format of the CMD_DATA_REQ message is as follows, where the check sum (CS) is calculated as XOR of the preceding bytes: Start signal...
Page 28
WIRELESS CONNECTIVITY & SENSORS ANR014 - Connect a smart phone to a Proteus Bluetooth LE module Android received data found RX-characteristic 6E400003-C352-11E5-953D-0002A5D5C51B . It contains the header byte 0x01 and the payload 0xDE 0xAD 0xBE 0xEF. Version 1.5, September 2024 www.we-online.com/wcs...
Page 29
WIRELESS CONNECTIVITY & SENSORS ANR014 - Connect a smart phone to a Proteus Bluetooth LE module Android When sending the CMD_DATA_REQ to the Proteus module, it responds with two different messages. First a CMD_DATA_CNF message is returned, as soon as the request was interpreted.
WIRELESS CONNECTIVITY & SENSORS ANR014 - Connect a smart phone to a Proteus Bluetooth LE module 6 Important notes The Application Note and its containing information ("Information") is based on Würth Elektronik eiSos GmbH & Co. KG and its subsidiaries and affiliates ("WE eiSos") knowledge and experience of typical requirements concerning these areas.
WIRELESS CONNECTIVITY & SENSORS ANR014 - Connect a smart phone to a Proteus Bluetooth LE module List of Figures Default jumper placement of the Proteus-I and Proteus-II EV-Board. Red means "jumper must be set"........Default jumper placement of the Proteus-III EV-Board.
Need help?
Do you have a question about the Proteus Series and is the answer not in the manual?
Questions and answers