Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN4486 Datasheet(PDF) 6 Page - STMicroelectronics

Part # AN4486
Description  This application note describes the BlueNRG and BlueNRG-MS over-the-air
PDF  29 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN4486 Datasheet(HTML) 6 Page - STMicroelectronics

Back Button AN4486 Datasheet HTML 2Page - STMicroelectronics AN4486 Datasheet HTML 3Page - STMicroelectronics AN4486 Datasheet HTML 4Page - STMicroelectronics AN4486 Datasheet HTML 5Page - STMicroelectronics AN4486 Datasheet HTML 6Page - STMicroelectronics AN4486 Datasheet HTML 7Page - STMicroelectronics AN4486 Datasheet HTML 8Page - STMicroelectronics AN4486 Datasheet HTML 9Page - STMicroelectronics AN4486 Datasheet HTML 10Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 6 / 29 page
background image
OTA bootloader service description
AN4486
6/29
DocID026293 Rev 2
2
OTA bootloader service description
The OTA bootloader service is addressed through the files btl.[ch] provided within the
BlueNRG DK software which supports both BlueNRG and BlueNRG-MS devices.
The following provides a brief description of the OTA bootloader service and related
characteristics:
Bootloader OTA service: the bootloader service
aci_gatt_add_serv(UUID_TYPE_128, UUID, PRIMARY_SERVICE, 10,
&btlServHandle)
Btl Image characteristic: contains information related to the lower and higher bounds
of free memory as suggested by the current application that includes the OTA
bootloader service
aci_gatt_add_char(btlServHandle, UUID_TYPE_128, UUID, 8,
CHAR_PROP_READ, ATTR_PERMISSION_NONE,
GATT_INTIMATE_APPL_WHEN_READ_N_WAIT,16, 0, &btlImageCharHandle)
Btl new image characteristic: contains the base address and the size of the image that
the master wants to send over-the-air
aci_gatt_add_char(btlServHandle, UUID_TYPE_128, UUID, 9,
CHAR_PROP_READ|CHAR_PROP_WRITE|CHAR_PROP_WRITE_WITHOUT_
RESP, ATTR_PERMISSION_NONE,
GATT_INTIMATE_APPL_WHEN_READ_N_WAIT |
GATT_SERVER_ATTR_WRITE,16, 0, &btlNewImageCharHandle)
Btl new image content characteristic: contains a 16-byte block of firmware image data
sent by the master (through a characteristic write command) along with some control
information such as block sequence number (2 bytes) and checksum for integrity
check (1 byte)
aci_gatt_add_char(btlServHandle, UUID_TYPE_128, UUID, 20,
CHAR_PROP_READ|CHAR_PROP_WRITE|CHAR_PROP_WRITE_WITHOUT_
RESP, ATTR_PERMISSION_NONE,
GATT_INTIMATE_APPL_WHEN_READ_N_WAIT |
GATT_SERVER_ATTR_WRITE,16, 0, &btlNewImageTUContentCharHandle)
Btl expected image sequence number characteristic, through which the slave device
notifies the master about the next block it expects
aci_gatt_add_char(btlServHandle, UUID_TYPE_128, UUID, 4,
CHAR_PROP_NOTIFY|CHAR_PROP_READ, ATTR_PERMISSION_NONE,
GATT_INTIMATE_APPL_WHEN_READ_N_WAIT, 16, 0,
&btlExpectedImageTUSeqNumberCharHandle)
Note: OTA bootloader service and proprietary 128-bit UUID characteristics are defined
within the file btl.c.
2.1
Bootloading transactions
This section walks through the steps for OTA bootloading:
1.
Once the master and slave running the OTA bootloader service are set, a discovery
procedure needs to be done in order for the two devices to connect. Discovery is
achieved by listening to advertisements coming from devices within the radio range
(active scan) and selecting the ones containing the OTA BTL service UUID 128-bits
within the scan response.
2.
The name of the selected device will be read from the advertising message to be
utilized by the master in order to enhance the slave identification procedure.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com