@startuml activate App MqttService->App :BLE updata hnote over App : 判断是否要升级 alt successful case App->service :download bin App<--service :bin end deactivate App == Initialization == App->OtaDownloader:准备oda ref over OtaTraget 存在服务FFD0 end ref OtaDownloader-> OtaTraget: 往FFD1 写入重启命令进入OTA模式 alt successful case OtaTraget->OtaTraget:disconnect end OtaDownloader-> OtaTraget:超时后打开FFC0服务下的通知 OtaDownloader<-- OtaTraget:true OtaDownloader->OtaTraget:FFC5 Get OAD Block Size Command CMD 0x01 OtaDownloader<-- OtaTraget:Block Size Response CMD 0x01 OtaDownloader-> OtaTraget:FFC1 OAD Image Header alt Header image failure successful OtaDownloader<--OtaTraget:FFC1 Response success OtaDownloader-> OtaTraget:FFC5 Start OAD Process Command OtaDownloader<-- OtaTraget:Image Block Write Char Response alt block successful OtaDownloader-> OtaTraget:FFC2 OAD image offset by the block number else block failure OtaDownloader<-- OtaTraget:FFC2 OAD image offset by the block (offset Initializat 0) end else Header image failure OtaDownloader-> OtaTraget:FFC1 OAD Image Header end note right 当OtaTraget接受 完block会返回 OAD_ALREADY_STARTED 如果不是则需要 重新发送block。 end note OtaDownloader<--OtaTraget:FFC5 Response OAD_ALREADY_STARTED alt OAD_ALREADY_STARTED OtaDownloader-> OtaTraget:Enable OAD Image Commandr OtaTraget-> OtaTraget : end OtaTraget-> OtaTraget : disconnect else other OtaDownloader-> OtaTraget:FFC2 OAD image offset by the block end @enduml
Decode URL
Submit
amiga
aws-orange
black-knight
bluegray
blueprint
cerulean-outline
cerulean
crt-amber
crt-green
cyborg-outline
cyborg
hacker
lightgray
mars
materia-outline
materia
metal
mimeograph
minty
plain
reddress-darkblue
reddress-darkgreen
reddress-darkorange
reddress-darkred
reddress-lightblue
reddress-lightgreen
reddress-lightorange
reddress-lightred
sandstone
silver
sketchy-outline
sketchy
spacelab
spacelab-white
superhero-outline
superhero
toy
united
vibrant
Pure Javascript
PNG
SVG
ASCII Art