Requirement:

Sleepbuds Basic Requirements

Device:

Sleepbuds work with the Sleep app to deliver relaxing sounds to help you fall asleep, and use audio-masking technology so you stay asleep all night.

  • OTA firmware update

  • Encoding and Decoding the file/music

  • Music Library

  • BLE connectivity

  • MCU can handle 80 commends from APP

  • Audio playback (Music repeatable with time slot)

  • Offline mode to playback

  • Audio masking

  • Non volatile memory to support retain stored information even after power is removed

Connectivity or OTA update:

  1. Over-the-air (OTA) firmware updates are a vital component of any IoT system. Over-the-air firmware updates refers to the practice of remotely updating the code on an embedded device. A successful OTA update requires complex coordination between IoT hardware, device firmware, network connectivity, Mobile Application, and an IoT device cloud.

    • Devices connecting over the BLE

    • Transfer the file/music through OTA and update the firmware

    • Encrypted communications: All Transfer firmware file/music between the app and devices are always encrypted. This eliminates potential man-in-the-middle attacks that seek to send fraudulent firmware to the device.

    • Decrypt the file system in the device (any open source file system example: Little FS etc...) and flashed in the device in particular blocks in the memory.

    • 80 commends are used to communicate the device MCU through OTA for device active instruction.

    • MQTT and other open source protocol used for this communication.

    • Audio codec G722 used.

Mobile Application:

Sleepbuds device work together with the app, mobile application contain library of Music/sounds and settings. Choose your favourites to download onto the buds and customize other settings; easily update the device firmware from the app setting through OTA.

  • Transfer the file/music through OTA and update the firmware from the setting page

  • Encrypted communications: All Transfer firmware file/music between the app and devices are always encrypted.

  • Requesting device to get the number of files stored in the device/flash.

  • App requesting to play a music with time slot(Example : 1st file 5min, 2nd file one hour -repeatable music)

  • Upload and download files and music.

  • Audio codec conversion for specific file system

  • Commends communication to device.

Resource available:

  • SDK is in Linux

  • Hardware

  • Audio codec G722 open source.

  • MX25 SPI flash driver available

Additional Requirements:

  • Security

  • Power optimization

  • Sleep mode

  • Watchdog

Solution:

Flow Diagram,

Iot Flow Chart

The project will be carried out in Phases of Development.

● The SDK, IDE and Evaluation board will be set up

● Code Development via ONSEMI (Micro controller)

● IoT Bluetooth system development

● Integration of Hardware and Software

● Accesses and Updates in Mobile Application

Technology:

Embedded code & React Native