Device not SUOTA capable - not detected in SmartSnippets

7 posts / 0 new
Last post
JBaczuk
Offline
Last seen:1 year 8 months ago
Joined:2014-12-31 23:41
Device not SUOTA capable - not detected in SmartSnippets

我将Spotar服务添加到我的项目中,如应用程序文档所述,我已经验证了我的设备确实广告该服务和所有特征,无论是Sucota移动应用程序还是SmartSnippet都没有检测到它是偶像的。我使用Proximity Reporter运行了示例,它可以正常工作。我希望获得两个平台的移动应用程序代码,以了解它是如何检测设备是否有效的,以及它如何写入新固件。谢谢,

Keywords:
Device:
MT_dialog
Offline
Last seen:2 months 1 week ago
Staff
Joined:2015-06-08 11:34
Hi JBackuk,

Hi JBackuk,

Mail sent.

Thanks MT_dialog

JBaczuk
Offline
Last seen:1 year 8 months ago
Joined:2014-12-31 23:41
我发现我必须改变

我发现我必须改变to the following in my app header file:
#define APP_ADV_DATA "\x09\x03\x03\x18\x02\x18\x04\x18\xF5\xFE"
#define app_adv_data_len(8 + 2)

事实证明App_adv_Data是一种在尝试连接之前要发放服务的方式。仍然尝试弄清楚如何确定app_adv_data值。

Joacimwe
Offline
Last seen:1 year 5 months ago
格鲁鲁
Joined:2014-01-14 06:45
Check out Bluetooth Core 4.0

Check out Bluetooth Core 4.0 specification Vol 3 Part C - Generic Access Profile chapter 8 Extended Inquiry Response Data Format.
Basically, it is a length-type-value format containing a list of different kinds of data.
That advertisement data you have can be parsed as follows:
\ x09——长度
\x03 - Type tag for "Complete List of 16-bit Service Class UUIDs"
\x03\x18 - Link Loss Service UUID
\x02\x18 - Immediate Alert Service UUID
\ x04 \ x18 - TX Power Service UUID
以\ xF5 \ xFE -对话框SUOTA服务UUID

MT_dialog
Offline
Last seen:2 months 1 week ago
Staff
Joined:2015-06-08 11:34
Hi JBaczuk,

Hi JBaczuk,

What do you mean how the APP_ADV_DATA is detrmined ? The APP_ADV_DATA value is set by the user according to the services he is implementing in his device.

Thanks MT_dialog

klim9531
Offline
Last seen:4年5个月前
Joined:2015-01-28 23:52
@MT_DIALOG-- I think what

@ MT_DIALOG--我觉得JBACZUK正试图说,它不确定APP_ADV_DATA中的各种值,因此尚不清楚他如何修改APP_ADC_DATA来包括SUOTA服务。Joacimwe做了一个很好的工作,使得价值表所代表的东西,并告诉他可能找到信息的位置。

Here is my take on all this: The BLE 4.0 Spec is fairly complex and, without devoting a HUGE amount of time to reading all the various API docs and such, it is simply NOT POSSIBLE for us budding BLE Developers to somehow "know" where to look, much less "know" what we are looking for. Perhaps there is no way around the steep learning curve, however, Dialog has been very helpful in providing sample source code that allows a user to get up and running fairly quickly. The reference apps are well thought out, they capture very well the general type of application that people might want to use BLE for, in this case, DSPS, which is perfect for converting an old 'wired' application to BLE. Even better, Dialog will provide, upon request, access to the source code for both the iOS and the Android Apps. So now a new BLE developer can potentially expand their legacy 'wired' device into the emerging Internet Of Things. Great stuff. Dialog is not doing this for entirely selfless reasons-- nor should they-- they hope to sell a LOT of BLE chips.

So here's the thing: When enough people have tried to merge a valuable and widely applicable utility like the DSPS, with another equally as valuable utility, like the SUOTA and they have failed. There is clearly a need for more information. The motivation on the part of Dialog should be the same as before-- sell more BLE chips!

So here is some more motivation: I am currently working on this same issue, integrating the DSPS and SUOTA utilities. I have designed a completely functional Android app and a completely wfunctional iOS app, both performing as expected with my device, both ready to go up on the Play Store/App Store. My device is now in the final stage of design (after 4 hardware revisions) and I am ready to go to market with this, my initial order is for 5000 devices. I expect to sell tens of thousands more, based upon the success of the original 'wired' version of my device. As soon as I am able to confidently update the DSPS app using SUOTA, I am then 'future-proofed' and I will begin shipping my device, and buying more BLE chips.

Here is my suggestion: Put together a simple App Note that describes EXACTLY how to integrate the DSPS utility with the SUOTA utility. The amount of time spend doing so, by a knowledgeable person (MT_Dialog) will likely be far LESS than the time spent repeatedly responding to questions in these forums. This App Note should be the basically same as AN-B-029 which idescribes how to modify the template project with sample128. If you can do that, you will sell many, many, MANY more BLE chips that just those that I will be buying, this would allow other people to quickly and easily get their product to market without fear that they will find themselves 'locked into a firmware limitation'.

最好的 - klim.

MT_dialog
Offline
Last seen:2 months 1 week ago
Staff
Joined:2015-06-08 11:34
Hi Klim9513,

Hi Klim9513,

Thank you for your comments, and the provided feedback, perhaps this kind of tutorial is quite small for an application note but we are planning to update our FAQ section in the near future in a more wiki kind of structure in order to upload small articles and tutorials for the users. I agree that this should be one of the first articles to be added.

BR MT_dialog