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.
First part of the question is: is there source code available to build a Linux application?
OR
If I have to write it myself:
I found this linkhttps://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/ota-linux
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.

Is there such a document available for the DA1468x?

Thanks,
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

Oh well, I have to write my own then.
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?
Thanks, 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.

Thanks.

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.

Sorry for the many questions, thanks for all the support.

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

Hi Myken,

1. The only client that supports the SUOTA via CoC is the client located in the SDK running on the 68x board and thats why its implemented and apparently its not fully tested with other devices since no device with OS that supports the CoC feature.

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 years 4 months ago
加入: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
Don't know what you mean. It

Don't know what you mean. It 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?

It'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.

Thanks,

Fons

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

Hello Fons,
It 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