Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Bluetooth - Thermometer with EFR32 Internal Temperature Sensor

Technology badge License badge SDK badge Build badge Flash badge RAM badge

Type badge Type badge Type badge Type badge Type badge

Description

This example is an adaptation of the standard 'SOC - Thermometer' example. However, instead of accessing the Si7021 Temperature and Relative Humidity sensor through I2C, this example uses the EFR32's own internal temperature sensor. This sensor is measured during the production test.

For more information, see the ADC section of the reference manual of your chosen hardware, e.g., EFR32xG12.


Table Of Contents



SDK version


Software Required


Hardware Required


Connections Required

  • Connect the Bluetooth Development Kits to the PC through a compatible-cable. For example, a micro USB cable for the BGM220 Bluetooth Module Explorer Kit.

Setup

To test this application, you can either create a project based on an example project or start with a "Bluetooth - SoC Empty" project based on your hardware.

Note

Make sure that the bluetooth_applications repository is added to Preferences > Simplicity Studio > External Repos.

Create a project based on an example project

  1. From the Launcher Home, add your hardware to My Products, click on it, and click on the EXAMPLE PROJECTS & DEMOS tab. Find the example project filtering by "thermometer".

  2. Click Create button on the Bluetooth - Thermometer With EFR32 Internal Temperature Sensor example. Example project creation dialog pops up -> click Create and Finish and Project should be generated. create_project

  3. Build and flash this example to the board.

Start with a "Bluetooth - SoC Empty" project

  1. Create a Bluetooth - SoC Empty project for your hardware using Simplicity Studio 5.

  2. Import the GATT configuration:

    • Open the .slcp file in the project.
    • Select the CONFIGURATION TOOLS tab and open the "Bluetooth GATT Configurator".
    • Find the Import button and import the attached gatt_configuration.btconf file.
    • Save the GATT configuration (ctrl-s). import_gatt_configuration
  3. Install the software components:

    • [Services] → [IO Stream] → [IO Stream: USART] → default instance name: vcom
    • [Application] → [Utility] → [Log]
    • [Application] → [Utility] → [Timer]
    • [Platform] → [Driver] → [TEMPDRV]
    • [Bluetooth] → [Application] → [GATT Services] → [Health Thermometer API]
  4. Replace the app.c file in the project with the provided src/app.c.

  5. Build and flash to the target.

Note

A bootloader needs to be flashed to your board if the project starts from the "Bluetooth - SoC Empty" project, see Bootloader for more information.


How It Works

Follow the below steps to test the example:

  1. Open the Simplicity Connect app on your smartphone and allow the permission requested the first time it is opened.

  2. Find your device in the Health Thermometer, advertising as IntTemp and connect to it. Upon connection, will automatically enable notifications and display the temperature data.

    htm_feature

    htm_scan

    htm_reading

  3. You can launch the Console that is integrated on Simplicity Studio to receive the logs from the virtual COM port.

    console


Report Bugs & Get Support

To report bugs in the Application Examples projects, please create a new "Issue" in the "Issues" section of bluetooth_applications repo. Please reference the board, project, and source files associated with the bug, and reference line numbers. If you are proposing a fix, also include information on the proposed fix. Since these examples are provided as-is, there is no guarantee that these examples will be updated to fix these issues.

Questions and comments related to these examples should be made by creating a new "Issue" in the "Issues" section of bluetooth_applications repo.