Download Print this page

Wurth Elektronik Proteus Series Manual

Connect a smart phone to a proteus bluetooth le module

Advertisement

Quick Links

ANR014
C
ONNECT A SMART PHONE TO A
P
B
ROTEUS
LUETOOTH
V
1.5
ERSION
S
9, 2024
EPTEMBER
LE
MODULE

Advertisement

loading
Need help?

Need help?

Do you have a question about the Proteus Series and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Wurth Elektronik Proteus Series

  • Page 1 ANR014 ONNECT A SMART PHONE TO A ROTEUS LUETOOTH MODULE ERSION 9, 2024 EPTEMBER...
  • Page 2: Revision History

    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. ®...
  • Page 4: Table Of Contents

    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 .
  • Page 5: Introduction

    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.
  • Page 6: Prerequisites

    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 –...
  • Page 7: Default Jumper Placement Of The Proteus-Iii Ev-Board. Red Means "Jumper Must Be Set

    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 –...
  • Page 9: Basics

    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.
  • Page 10: Steps For The Connection Setup

    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...
  • Page 11: Quick Start

    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.
  • Page 18: Nrf Connect App

    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.
  • Page 30: References

    WIRELESS CONNECTIVITY & SENSORS ANR014 - Connect a smart phone to a Proteus Bluetooth LE module 5 References [1] Würth Elektronik. WE UART Terminal PC tool (Smart Commander). https://www. we-online.de/wcs-software . [2] Nordic Semiconductor. nRF Connect app for Android. https://play.google.com/store/ apps/details?id=no.nordicsemi.android.mcp .
  • Page 31: Important Notes

    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.
  • Page 32: List Of Figures

    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.
  • Page 33 Contact Würth Elektronik eiSos GmbH & Co. KG Division Wireless Connectivity & Sensors Max-Eyth-Straße 1 74638 Waldenburg Germany Tel.: +49 651 99355-0 Fax.: +49 651 99355-69 www.we-online.com/wireless-connectivity...

This manual is also suitable for:

Proteus-iProteus-iiProteus-iiiProteus-iii-spi mini