How to test DA14580 SUOTA with smartsnippets?

13 posts / 0 new
Last post
特里
Offline
Last seen:5 years 3 months ago
加入:2014-12-16 09:49
How to test DA14580 SUOTA with smartsnippets?

Hi dialog!
我有some problems while testing SUOTA with smartsnippets.
I use connection manager to initiate a develop board as peripheral(SUOTA receiver) and start to advertise.Then use smartsnippets to open another board as SUOTA Initiator.
1.选择COM端口并按“Connect”按钮,它始终警告“COM X端口外部使用”。但我很确定COM端口不是外地。
2.after that , below log info show up,and the initiator could not scan the receiver successfully.
3.Is there some work has to be done before doing this test, like secondary bootloader should be programed into OTP?Could you show me the correct steps to test SUOTA?
Looking forward to receive you help.
最好的祝福。

[INFO @15-01-14 14:19:03] Loading firmware, please wait...
[信息@ 15-01-14 14:19:07]固件已成功加载。
[信息@ 15-01-14 14:19:07]连接到COM10
[信息@ 15-01-14 14:19:07] Com10成功打开了。
[INFO @15-01-14 14:19:07] Scanning for devices...
[INFO @ 15-01-14 14:19:22]目标设备已断开连接。请尝试重新建立链接。
[info @ 15-01-14 14:21:24]加载固件,请稍候...
[INFO @15-01-14 14:21:27] Firmware loaded successfully.
[INFO @15-01-14 14:21:27] Connecting to COM10
[INFO @15-01-14 14:21:28] COM10 successfully opened.
[INFO @15-01-14 14:21:28] Scanning for devices...
[INFO @15-01-14 14:21:43] Target device has been disconnected. Please try to re-establish link.

Keywords:
tn_dialog.
Offline
Last seen:10小时前1天
Staff
加入:2013-12-05 15:49
Hi Terry,

Hi Terry,

First I have got ask which Development board you are using and if you have got FLASH connected to the DA14580?
Secondly Connection manager doesnt support SUOTA so you should use two Basic kits or go to the app store or play store and download the SUOTA application (DIALOG SUOTA).

Regards
TN

特里
Offline
Last seen:5 years 3 months ago
加入:2014-12-16 09:49
亲爱的tn_dialog,

亲爱的tn_dialog,
To you question , I am using two Basic kits. the problem of scaning device fail is solved , it seems that we had to connect both JTAG port and COM port both while testing SUOTA.Now I can scan the recceiver successfully which is runing the "fh_proxr_sdk.uvproj".
但另一个问题出现了,在选择要下载的防火锉和SPI内存类型之后,巫术值应填充“块大小”?
我尝试了Fireware Bin文件的大小,SPI Flash W25x20CL的块大小(32768,65536),日志一直显示:spotar_patch_len_err。
Did dialog has a document about how to test SUOTA?
[信息@ 15-01-15 15:34:44]扫描设备......
[INFO @15-01-15 15:34:46] Found device with address 80:EA:CA:00:00:01, Public. Device does not support the SPOTA service.
[INFO @15-01-15 15:34:51] Scanning completed.

[INFO @15-01-15 15:34:55] Establishing Link with target device...
[信息@ 15-01-15 15:34:56]已建立与目标设备的链接。
[INFO @15-01-15 15:34:56] Characteristics discovery started.
[INFO @15-01-15 15:34:57] Characteristics discovery finished.
[info @ 15-01-15 15:35:14]固件下载开始...
[INFO @15-01-15 15:35:14] SPOTAR_IMG_STARTED
(信息@15-01-15 15:35:14)内存信息:
0 bytes

[错误@ 15-01-15 15:35:15] spotar_patch_len_err
[info @ 15-01-15 15:35:15]固件下载失败。
[INFO @15-01-15 15:34:55] Establishing Link with target device...
[信息@ 15-01-15 15:34:56]已建立与目标设备的链接。
[INFO @15-01-15 15:34:56] Characteristics discovery started.
[INFO @15-01-15 15:34:57] Characteristics discovery finished.
[info @ 15-01-15 15:35:14]固件下载开始...
[INFO @15-01-15 15:35:14] SPOTAR_IMG_STARTED
(信息@15-01-15 15:35:14)内存信息:
0 bytes

[错误@ 15-01-15 15:35:15] spotar_patch_len_err
[info @ 15-01-15 15:35:15]固件下载失败。

特里
Offline
Last seen:5 years 3 months ago
加入:2014-12-16 09:49
And there is another favor to

And there is another favor to ask, since we could not get access to GOOGLE PLAY appstore in China and I could not find it on internet, could you send me a copy of (DIALOG SUOTA)?
thanks a lot, my mail issuperwht@126.com..
best regards.

JE_Dialog
Offline
Last seen:1 day 31 min ago
Staff
加入:2013-12-05 14:02
你好特里,

你好特里,

偶像APK is now available on our support site under Reference Design Software & Additional Releases

BR JE_Dialog

特里
Offline
Last seen:5 years 3 months ago
加入:2014-12-16 09:49
非常感谢你。我有

非常感谢你。我找到了它。

JE_Dialog
Offline
Last seen:1 day 31 min ago
Staff
加入:2013-12-05 14:02
Hello Terrry, please note we

您好Terry,请注意,我们是关于Suota的一个应用笔记:我们将在大约2周后从现在开始。

BR JE_Dialog

湿婆
Offline
Last seen:4 years 12 months ago
加入:2015-01-19 12:23
Where we can find SUOTA app

Where we can find SUOTA app note?

Best regards
湿婆

ggotta
Offline
Last seen:1 year 8 months ago
加入:2016-02-20 20:10
Hi

Hi
我有basic questions on SUOTA.
1) I wish to get the SUOTA work with my project which is based on SDK5.0.3->ble_app_peripheral. Please guide me get this done?

2) Is there any document/appnote which talks about porting of SUOTA changes on to a custom project? (I build a project which contains only few custom services, now I wish to port SUOTA changes on to this project.).

布罗尔,
必须

MT_dialog
Offline
Last seen:3天前1周
Staff
加入:2015-06-08 11:34
嗨ggotta,

嗨ggotta,

1)SDK中的Proximity_Profile示例在新SDK5上的Suota的实现,可以检查此功能,以便查看在您的自定义项目上实现所需的修改。

2) The only available document regarding SUOTA is the AN-B-010 which includes the guidelines how to handle SUOTA. You dont need anything specific in order to place the profile in your custom project, just add the SUOTA profile (include the spoter.h in the user_profiles_config), check if the following files app_spotar_task and app_spotar exist in your project, add the SUOTA UUID in your advertising string and you should be ok.

Thanks MT_dialog

ggotta
Offline
Last seen:1 year 8 months ago
加入:2016-02-20 20:10
Hi,

Hi,
我确实尝试过这一点,靠近记者正在罚款。当我尝试在自定义项目中包含此配置文件时,它只停止基本的广告功能。有一些与内存相关的问题,我需要进一步调查。
On the other-hand, I have another project build based SDK5.0.3->ble_app_peripheral which got end-up with some compilation issues if include spotar.h. Then I tried to build fresh SDK5.0.3 unziped code with spoter.h included in the user_profiles_config.
(1) I am getting the same error as below,
.. \ .. \ .. \ .. \ .. \ .. \ sdk \ app_modules \ src \ app_spotar \ app_spotar.c(305):错误:#20:标识符“user_profile_callbacks”未定义。
(不确定所有更改W.R.T user_profile_callbacks和On_spotar_status_change)

(2) May I ask you provide more details on "add the SUOTA UUID in your advertising string", can copy a code snippet for reference.

布罗尔,
Govind.

ggotta
Offline
Last seen:1 year 8 months ago
加入:2016-02-20 20:10
Did you find time to look

你找时间了吗?

MT_dialog
Offline
Last seen:3天前1周
Staff
加入:2015-06-08 11:34
嗨ggotta,

嗨ggotta,

抱歉延迟响应,如果在包括您无法提前通告的配置文件时,广告不应该有效,在执行广告过程之前,字符串通过堆栈进行验证检查,如果广告字符串无效广告停止。关于包括Spotar配置文件(在user_profiles_config.h中的编译问题时,您必须添加Nessecary回调(请在user_callback_config.h中检查proximity报告器),您必须添加sdk配置文件(spotar.c和the spotar.c和spotar_task.c中的sdk_profiles文件),您还必须添加on_spotar_status_change()函数(在启动和停止条件期间的设备应该做什么)。最后一件事,转到user_modules_config.h文件,并确保complude_dlg_spotar设置为0,否则ottpar不起作用。

Regarding the advertising string and including the SUOTA in the ble_app_peripheral example you can try the following:

#define user_advertise_data(“\ x05”\
adv_type_complete_list_16bit_service_ids \
avd_uuid_device_information_service \
ADV_UUID_SPOTAR_SERVICE\
"\x11"\
adv_type_complete_list_128bit_service_ids \
“\ X2F \ X2A \ X93 \ xA6 \ XBD \ XD8 \ X41 \ X52 \ XAC \ X0B \ X10 \ X99 \ X2E \ XC6 \ xFE如果\ XED”)

Thanks MT_dialog