Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 67

Graduation Project

to obtain

the National Diploma of engineering


in Applied Sciences and
Technology

O TA u p d a t e o f S T M 3 2 f i r m w a r e v i a
GPRS gateway

Presented by: Ahmed BARNAT

President : Mr. Mohamed Sahby BELLAMINE Company supervisor : Mr. Mehdi HANZOUTI

Examinator : Mr. Sabeur TLILI Academic supervisor : Mrs. Imen JAAFAR


1
0 Table of contents
The kernel

01 Introduction

02 Project context

03 Problematic

04 Implementation

05 Test and validation

06 Conclusion and perspectives


01
Introduction
THE PART ONE
1 Introduction
To b e g i n w i t h

Bugs or security issues are usually detected after


deployment

the average bug frequency is estimated to be between “15


and 50 per 1000 lines of delivered code.”

Updating firmware of embedded devices usually


requires physical connections
1 Introduction
To b e g i n w i t h

To ensure the configuration, control and monitoring of


smart devices, it is necessary to include a wireless method
of data transfer or transaction, using the mobile network
instead

Engineers have introduced the concept of the over the air


updates to meet the requirements of the smart devices

 This presentation will explain the challenge we faced, the


solution we developed, its the key features, and how we
validated our results.
02
Project context
THE PART ONE
2 Project context
Where and when

01 OTA appearance

OTA over the air is a revoltionary concept introduced earlier this century
that aims to update firmware or software wirelessly
eleminating the need of the manual interventions we spoke about
earlier.

OTA became more viral in 2010s with the rise of the smart devices and
connectected objects
2 Project context
When and where

02 OTA market

Source : Primary research, MRFR Database


03
Problematic
THE PART ONE
3 Problematic
The challenge

Nowadays, Software are becoming greedy, complex and written in


bigger lines of code. As a result, it is now inevitable, normal and even
expected to have bugs in the code:

As a result, testing has became exhausting and painful considering that


the sold device is uncontrollable.

 The challenge will rise when we aim to develop a solution to keep


our sold devices in sync, and updated. Add features

The OTA is the answer


04
Implementation
THE PART ONE
4 Implementation
Where and when

01 Tools

Our target hardware is the stm32h745 microcontroller

We chose this MCU for its:


• high performance
• Large flash memory

STM32H745 board
4 Implementation
Where and when

01 Tools

Wireless Internet connectivity?

• WIFI

• Cellular network
4 Implementation
Where and when

01 Tools

Following the choice of the cellular network

GPRS module (Quectel M95): uses SIM card to


communicate with the internet via 3G bands

Quectel M95
4 Implementation
Where and when

01 Tools

Firmware willing to updated shall be stored in a server.

AWS is a cloud based platform that can be a better alternative


considering the benefits:

• Security
AWS logo
• Storage
• Performance
4 Implementation
Where and when

02 AWS discovery

S3 is the storage service of AWS

S3 can hold all your data and files including our firmware
updates
S3 logo
4 Implementation
Where and when

02 S3 discovery

S3 service architecture
4 Implementation
Where and when

02 S3 discovery
4 Implementation
Where and when

2 S3 discovery
4 Implementation
Where and when

2 S3 discovery
4 Implementation
Where and when

2 S3 discovery

Our binary files stored in S3 have their own URL,

 It is possible to retreive the data via https protocol


 The quectel M95 is capable of doing request via
https.
4 Implementation
Where and when

2 Quectel M95

Instructions are sent to the our module in the form of AT


commands.

The command set consists of a series of short text strings


which can be combined to produce commands for operations

The commands shall be sent via UART protocol


4 Implementation
Where and when

2 Quectel M95
2 Implementation
Where and when

3 Solution architecture
2 Implementation
Where and when

4 Wiring
4 Implementation
Where and when

5 Quectel M95 setup

Once the module is powerd up:

 Wait for the module to be ready


 Wait for the SIM card to be ready.
 Wait for the GPRS to be ready
4 Implementation
Where and when

5 Quectel M95 setup

This diagram aims to acquire an IP address in order to


communicate with the public internet
4 Implementation
Where and when

5 HTTPS request with Quectel M95

 Configure SSL ( secrity layer )


 Set URL of the binary file
 Get request from server to donwload the file
4 Implementation
Where and when

6 Embedded software architecture

 HAL driver: contains the API that interfaces with


hardware ( UART)
 FreeRTOS: a real time operating system
 BSP: contains the API that sends the AT commands and
verifies the module ’s responses,
4 Implementation
Where and when

6 Embedded software architecture

Flash task Parser Task OTA Task

The flash task awakes analysing the responses of designed to send the
stores all the raw data our GPRS module and appropriate AT commands
received into the internal basically comparing it with to the module over the
flash memory of the awaited responses UART
STM32h745 micro-
controller.
4 Implementation
Where and when

6 Embedded software architecture


4 Implementation
Where and when

6 Embedded software architecture


4 Implementation
Where and when

7 Bootloader
4 Implementation
Where and when

7 Bootloader
05
Test and
validation
THE PART ONE
5 Test and validation
Where and when

 Export the flash sector as a bin file

 Compare it with the original before uploaded to S3


5 Test and validation
Where and when
06
Conclusion
THE PART ONE
6 Conclusion and perspectives
Where and when

 Firmware updated

 Solution was developed using FreeRTOS and


communiactes with GPRS gateway
6 Conclusion and perspectives
Where and when

 Security enhancements: encryption…

 Adabtability on other hardware architectures


4 Add title text
The part four

Add title text Add title text


Click here to add content, Click here to add content,
content to match the title. content to match the title.

Add title text Add title text


Click here to add content, Click here to add content,
content to match the title. content to match the title.
LOGO

THANKS
Report : freeppt7.com
4 Implementation
The part four

Add title text

Sprint 4
Click here to add content,
content to match the title.

Sprint 3 Add title text

Add title text Click here to add content,


content to match the title.

Click here to add content,


Sprint 2
content to match the title.

Add title text


Sprint 1

Click here to add content,


content to match the title.
4 Add title text
The part four

2022 2024 2026


Click here to add Click here to add Click here to add
content, content to content, content to content, content to
match the title. match the title. match the title.

2021 2023 2025


Click here to add Click here to add Click here to add
content, content to content, content to content, content to
match the title. match the title. match the title.
1 Add title text
The part one

Add title text


Add title text
Click here to add content,
content to match the title.

Add title text


04 Add title text Click here to add content,
OPTION
content to match the title.

03 Add title text


Add title text
OPTION Click here to add content,
content to match the title.
02 Add title text Add title text
OPTION
Click here to add content,
content to match the title.
01 Add title text
OPTION
1 Add title text
The part one

Add title text Add title text


Click here to add content, Click here to add content,
content to match the title. content to match the title.

Add title text Add title text


Click here to add content, Click here to add content,
content to match the title. content to match the title.

Add title text Add title text


Click here to add content, Click here to add content,
content to match the title. content to match the title.
Graduation Project

to obtain
LOGO
the National Diploma of engineering
in Applied Sciences and
Technology

Major : Industrial Computing and Automation

FREE PPT TEMPLATES

2029 Report : freeppt7.com


1 Add title text
The part one

A B C

Click here to add Click here to add Click here to add


content, content to content, content to content, content to
match the title. match the title. match the title.

Add title text 75%


Add title text 62%
1 Add title text
The part one

2020 2021 2022 2023


Add title text Add title text Add title text Add title text
Click here to add Click here to add Click here to add Click here to add
content, content to content, content to content, content to content, content to
match the title. match the title. match the title. match the title.
02
Add title text
THE PART ONE
2 Add title text
The part two

TECHNOLOGIC ITEM
Click here to add text content, such as keywords,
some brief introductions, etc.

Add title text Add title text

Click here to add content, Click here to add content,


content to match the title. content to match the title.
2 Add title text
The part two

01
Add title text Add title text

Click here to add content, Click here to add content,


content to match the title. content to match the title.

INFOGRAPHICS

02 Click here to add text


content, such as 04
keywords, some brief
introductions, etc.
Add title text
Add title text

Click here to add content, Click here to add content,


content to match the title. content to match the title.

03
2 Add title text
The part two

Add title text Add title text


Click here to add content, Click here to add content,
content to match the title. Add title text content to match the title.

Add title text


Add title text Click here to add content, Add title text
content to match the title.

part 01 part 02 part 03 part 04


2 Add title text
The part two

Add title text Add title text Add title text

Click here to add text content, Click here to add text content, Click here to add text content,
such as keywords, some brief such as keywords, some brief such as keywords, some brief
introductions, etc. introductions, etc. introductions, etc.

Read More Read More Read More


2 Add title text
The part two

Add title text


Click here to add content, content to
match the title.

Add title text


STEP Click here to add content, content to
match the title.

Add title text


Click here to add content, content to
match the title.

part 01 part 02 part 03 part 04


2 Add title text
The part two

Add title text

1 Add title text


Click here to add content,
content to match the title.
Add title text
Add title text 2
Click here to add content,
content to match the title.
Add title text

3 Add title text Click here to add content,


content to match the title.
Add title text

Click here to add content,


Add title text 4
content to match the title.
03
Add title text
THE PART ONE
3 Add title text
The part three

Add title text


Click here to add content, content
to match the title.

Add title text


Click here to add content, content
to match the title.

Add title text


Click here to add content, content
to match the title.

Add title text


Click here to add content, content
to match the title.
3 Add title text
The part three

S W O T
Strengths Weaknesses Opportunities Threats

Add title text Add title text Add title text Add title text

Click here to Click here to Click here to Click here to


add content, add content, add content, add content,
content to content to content to content to
match the title. match the title. match the title. match the title.
3 Add title text
The part three

Add title text Add title text

Click here to add content, Click here to add content,


content to match the title. content to match the title.

Add title

Add title text


Add title text

Click here to add content, Click here to add content,


content to match the title. content to match the title.
3 Add title text
The part three

Add title text

Click here to add content, content to match the


Add title text
title.

Add title text Add title text

Click here to add content, content to match the


title.
Add title text

Add title text

Click here to add content, content to match the


title.
3 Add title text
The part three

Add title text Add title text Add title text Add title text
Click here to add Click here to add Click here to add Click here to add
content, content to content, content to content, content to content, content to
match the title. match the title. match the title. match the title.
3 Add title text
The part three

Add title text


Click here to add content, content to match

Add title text the title.

Click here to add content, content to match


Add title text the title.

Click here to add content, content to match

Add title text the title.

Click here to add content, content to match


the title.
04
Add title text
THE PART ONE
4 Add title text
The part four

69%

48%

11% 64%

Add title text Add title text Add title text Add title text
Click here to add content, Click here to add content, Click here to add content, Click here to add content,
content to match the title. content to match the title. content to match the title. content to match the title.
4 Add title text
The part four

Add title text Add title text


Click here to add content, content to match the
01 title.

Add title text Add title text


Click here to add content, content to match the
02 title.

Add title text Add title text


Click here to add content, content to match the
03 title.

Add title text


Add title text
Click here to add content, content to match the

04 title.
4 Add title text
The part four

75% 50% 10% 40%

Add title text Add title text Add title text Add title text

Click here to add content, Click here to add content, Click here to add content, Click here to add content,
content to match the title. content to match the title. content to match the title. content to match the title.

You might also like