SUOTA linux application source code or documentation

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
13 posts / 0 new
Last post
Myken
Offline
Last seen:1 year 8 months ago
加入:2016-07-13 20:06
SUOTA linux application source code or documentation

Hello,

我需要一个Linux应用程序更新the device software over the air

My development environment is Linux and I don't want to transfer the bin file to an Android device every time I need to update the device software.
问题的第一部分是:是否有源代码可以构建Linux应用程序?
或者
If I have to write it myself:
I found this linkhttps://support.dialog-semicondiondiondum/forums/post/dialog-smartbond-bluetooth-low-energy-%2%80%93-software/OTa-lux.
Which mentions a document for the DA14580 (AN-B-003 : DA14580 Software Patching over the Air.pdf) (I can't find it BTW) on the correct procedures to do a SUOTA.

有没有这样的文档可用于DA1468x?

谢谢,
Robert.

Keywords:
Device:
MT_dialog
Offline
Last seen:2 months 5 days ago
工作人员
加入:2015-06-08 11:34
Hi Myken,

Hi Myken,

No, there is no central application for Linux that implements SUOTA, regarding the document it does exists (in the path mentioned in the post that you have referenced) but you will have to search it at the documentation of the 580 and not 680. There is no documentation for the 68x and the SUOTA but the procedure is quite identical since both familes work with the same android/ios application.

Thanks MT_dialog

Myken
Offline
Last seen:1 year 8 months ago
加入:2016-07-13 20:06
Oh well, I have to write my

哦,我必须自己写自己。
In the end I did find the document in the 580 section BUT under the "Discontinued application notes, SDK3 documents". If it is discontinued is it still valid?
谢谢,Robert

MT_dialog
Offline
Last seen:2 months 5 days ago
工作人员
加入:2015-06-08 11:34
Hi Myken,

Hi Myken,

The document is valid.

Thanks MT_dialog

Myken
Offline
Last seen:1 year 8 months ago
加入:2016-07-13 20:06
Hello,

Hello,

Just to be sure:
The document describes SUOTA 1.1 (image transferred over GATT).
As far as I can understand it, it doesn't describe SUOTA 1.2 (image transferred over L2CAP CoC). Correct?

If the answer is "yes" then I would like to ask for a document that describes the SUOTA 1.2 (image transferred over L2CAP CoC) protocol.

谢谢。

MT_dialog
Offline
Last seen:2 months 5 days ago
工作人员
加入:2015-06-08 11:34
Hi Myken,

Hi Myken,

Yes that is correct, but there are no documents that describes the SUOTA over the L2CAP CoC protocol, since as far as i am aware its not supported from the current android and iOS devices.

Thanks MT_dialog

Myken
Offline
Last seen:1 year 8 months ago
加入:2016-07-13 20:06
OK, good to know.

OK, good to know.
But it leaves me with two questions:

  1. why is SUOTA 1.2 implemented in the first place if there is no client capable of supporting that? and is it well tested because there is no client capable of supporting this feature?
  2. the SDK software does support SUOTA 1.2 and if I port theprojects/dk_apps/features/ble_suota_client/example to Linux it should work, right? I mean the ble_suota_client example has all the necessary protocol steps implemented or are there hidden features in the stack library.

对不起很多问题,谢谢你所有的支持。

MT_dialog
Offline
Last seen:2 months 5 days ago
工作人员
加入:2015-06-08 11:34
Hi Myken,

Hi Myken,

1.支持Suota的唯一客户端是位于在68x板上运行的SDK中的客户端,这是它为什么它实现并显然它没有与其他设备完全测试,因为没有支持COC功能的操作系统。

2. I dont think that there is anything hidden in the host side of the SUOTA, all the steps are in the source code of the ble_suota_client.

Thanks MT_dialog

Myken
Offline
Last seen:1 year 8 months ago
加入:2016-07-13 20:06
Hello Dialog,

Hello Dialog,

I'm running Linux (with Bluez) and I'm working on a 68x project so I have the right combination, I'll try to make it work.
FYI. Bluez is available as an Android library in case Dialog would decide to add an other client for SUOTA 1.2 :-)
Thanks for the support, Robert.

vinesh_gowda
Offline
Last seen:3年4个月前
加入:2017-11-20 07:49
Hello,

Hello,

Can I know where you got the projects/dk_apps/features/ble_suota_client/ file?

Myken
Offline
Last seen:1 year 8 months ago
加入:2016-07-13 20:06
不知道你的意思。它

不知道你的意思。它is in the SDK/projects/dk_apps/features/ble_suota_client directory ?!?!

fons
Offline
Last seen:2年5个月前
加入:2017-05-05 14:46
Myken,

Myken,

Did you manage to implement SUOTA support from Linux (Bluez)? If that's the case, would you mind sharing your sourcecode?

它's incredible that Dialog doesn't provide a spec of the service and just Anadroid/iOS implementations you need to reverse engineer in order to know how the SUOTA server works.

谢谢,

Fons

Myken
Offline
Last seen:1 year 8 months ago
加入:2016-07-13 20:06
Hello Fons,

Hello Fons,
它is work in progress. At the moment I'm stuck in or because of Bluez.
In defence of Dialog, the Bluez documentation isn't great or even fine, so debugging an application that uses the Bluez library/API in a none standard way is like a trip through the jungle in the dark.
If I ever survive and get it working I'll post it here.
Regards, Robert