Giter Site home page Giter Site logo

infineon / mbed-os-example-bluetooth-mesh-gateway Goto Github PK

View Code? Open in Web Editor NEW
4.0 10.0 1.0 4.57 MB

This code example demonstrates how to use Cypress Bluetooth gateway library to create a Bluetooth Internet Gateway (BIG) device as a Mesh Node and thereby control the devices on the BLE mesh network through the gateway.

C 13.84% C++ 86.16%
non-mtb-2-x

mbed-os-example-bluetooth-mesh-gateway's Introduction

Introduction

This repository contains the code examples and demos for PSOC6 MCU family of devices bundled with connectivity. The Application enables Bluetooth Internet Gateway (BIG) as a Mesh Node and thereby making it a Bluetooth Mesh Gateway. On Bootup after flashing, the application connects to configured IoT Protocol such as REST or MQTT based brokers (AWSIoT) and shall start advertising as an unprovisioned mesh node. A user can now use a provisoner(MeshController) and add the gateway to his/her network and thereby enabling the user to control his/her mesh devices from anywhere from the world.

Bluetooth Mesh and Cypress Mesh Solution

Bluetooth mesh is a low-power, wireless network that enables many-to-many (m2m) device communication for large-scale device networks. Bluetooth mesh also increases the range achievable by Bluetooth devices by hopping messages from one device to another until it reaches its destination. Applications range from building automation in an industrial environment, to consumer applications, such as home automation

Instructions to build bluetooth mesh gateway code example

  1. Clone the repository

  2. Change to the application folder

  3. Prepare the cloned working directory for mbed

     mbed config root .
    
  4. Pull the necessary libraries and its dependencies. This will pull mbed-os, cypress http-server, cypress AWS IoT , cypress bluetooth-gateway libraries and its internal 3rd party dependencies

     mbed deploy
    
  5. Configure the SSID and passphrase of the desired network in the accopmpanying mbed_app.json

  6. Configure the type of IoT Protocol which the application would like to use in gateway_config.h.

    • If user chooses to use MQTT broker like AWSIoT, then he/she should configure thing name, thing certificates, thing private key and root certificate in gateway_aws_credentials.cpp.
    • The Thing name created in AWSIoT should be unique and this is used as MQTT client ID.
    • Refer to 'Getting Started with AWS IoT' on the AWS documentation
    • https://docs.aws.amazon.com/iot/latest/developerguide/iot-gs.html
    • If user chooses HTTP, then please ensure to connect MeshController and gateway to the same AP, and once the gateway application connects to AP please note down the IP address of the gateway
  7. To build and flash the bluetooth mesh gateway app (.hex binary) mbed compile -t GCC_ARM -m CY8CKIT_062S2_43012 -f

  8. To setup the mesh network comprising of mesh devices and mesh gateway, install the MeshController apk located in peerapp folder and follow the instructions described in MeshController README.md.

Supported platforms

This application and it's features are supported on following Cypress platforms:

  • CY8CKIT-062S2-43012

Dependencies

mbed-os-example-bluetooth-mesh-gateway's People

Contributors

cy-msur avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

daleboy

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.