17个帖子/ 0新
最后一篇
Rony
离线
最后一次露面:4年7个月前
主
加入:2014-05-15 15:02
Sample128

在很多与来源和文档中斗争之后,我们能够运行示例128示例。
我们的Android应用程序能够发现电路板,但我们不知道如何填充app_sample128.c和app_sample128_task.c
to start using the notification of the characteristic.
任何人都可以帮助我们吗?
谢谢

tr_dialog.
离线
最后一次露面:1周5小时前
员工
加入:2014-06-30 23:52
嗨rony:

嗨rony:

请参阅软件选项卡下提供以下文件:UM-B-003:用户手册 - 软件开发指南1.4.pdf

谢谢,

tr_dialog.

Rony
离线
最后一次露面:4年7个月前
主
加入:2014-05-15 15:02
This is the one we are using.

This is the one we are using.
In chapter 11 we got stuck without understanding how to deal with the notifications of characteristic 2.
What do we have to do in app_sample128.c and app_sample128_task.c to implement it?
The profile of sample128 was provided with the sdk. It is a great tool to start understanding the profile.
为什么申请也没有提供源头?
谢谢

Avlasov1.
离线
最后一次露面:6 years 5 months ago
加入:2014-05-15 16:58
Take a look at app_proxr.c

看看app_proxr.c和app_proxr_task.c。使用这些来模拟应用程序代码 - 您只需要使用某些功能,并非所有功能。如果您正在处理定时通知,它还将有助于查看app_batt.c中的计时器实现。如果您使用的是Proximity Reporter项目,则需要在app_proxr_proj.c中启用示例128,这也是您启用计时器的位置。

Rony
离线
最后一次露面:4年7个月前
主
加入:2014-05-15 15:02
看看prox和

看看PROX和电池示例。
1.在发送Sample128_create_db_req的函数中,我不明白我与数据库有关。
Both the prox and the battery are populating the db but I don't understand what they are doing.
2. Same question for the function that sends the SAMPLE128_ENABLE_REQ. I saw that the battery and the prox are preparing things which I don't understand.
我认为文档丢失了一个链接nd doesn't explain the connection between the application part and the profile.

我相信有人解决了示例性问题。是否有可能获取app_sample128.c和app_sample128_task.c的来源?
谢谢你的努力

wt_dialog.
离线
最后一次露面:3年1个月前
员工
加入:2013-12-05 14:43
嗨rony,

嗨rony,

在SDK 3.0.4中,在Proximity Reporter应用程序中有一个例子

请参阅spotar_status_update_req_handler()函数作为通过128位UUID特性发送通知的示例。

实际上通知传输方法对于16位和128位UUID是相同的。在GATT服务器或数据库发现的数据库创建后,所有过程都是相同的,因为处理通过句柄而不是通过UUID完成。

Rony
离线
最后一次露面:4年7个月前
主
加入:2014-05-15 15:02
感谢您的建议。

感谢您的建议。
The software I am using to connect to the device enables the analysis of the ble interface.
It works OK when running the prox reporter, as I can see the battery notifications.
但我的问题是示例128示例。
遵循你的建议,我取得了一些进展。情况如下:

I am able to connect to the device.
我看到4服务:通用访问,通用属性,设备信息和无法识别(Sample128)
当我选择无法识别的服务并显示描述符,我看到了2个特征
When I try to enable the notification of characteristic 2 I get an error message:
'该属性需要授权,然后才能阅读或写入'
似乎我并不能够启用特征2的通知特征。
我究竟做错了什么?

mhv_dialog.
离线
最后一次露面:3 weeks 4 days ago
员工
加入:2013-12-06 15:10
嗨rony,

嗨rony,

A couple of things...

首先,您可能已经注意到了这一点,Android和iOS都是懒惰的服务发现。我的意思是,它们都在第一次连接时存储外围设备的GATT数据库。但在第一次之后,你不会看到新的服务等。强制新发现的简单方法是关闭蓝牙,然后重新打开。这将为外围设备擦除本地GATT数据库。

另一个问题(这可能只与Android相关,是Android在Android开发人员BT Smart参考应用程序中有几个错误,导致各种应用程序遭受同一问题。雷竞技安卓下载

我会向您发送一封带有以下链接的电子邮件:

a) An Android app, that does not suffer from the issue mentioned above

b)一个项目128完整项目。它增加了第三种特征,但其他一切都是相同的

我希望这会帮助你。

Rony
离线
最后一次露面:4年7个月前
主
加入:2014-05-15 15:02
大。这正是我的

大。这正是我所寻找的。
如果可能的话,你可以让第三个特征多于一个字节,所以我明白它是如何完成的?
谢谢
Rony

mhv_dialog.
离线
最后一次露面:3 weeks 4 days ago
员工
加入:2013-12-06 15:10
嗨rony,

嗨rony,

第三个特征长8字节。它被实施以证明这一点; o)

Rony
离线
最后一次露面:4年7个月前
主
加入:2014-05-15 15:02
大。

大。
你需要我的电子邮件地址吗?
谢谢

mhv_dialog.
离线
最后一次露面:3 weeks 4 days ago
员工
加入:2013-12-06 15:10
嗨rony,

嗨rony,

您应该已收到我的电子邮件。我星期四晚上派出了它的电子邮件地址“.net.il”。它包含链接,所以请检查垃圾邮件文件夹。

Rony
离线
最后一次露面:4年7个月前
主
加入:2014-05-15 15:02
我星期四上了

我周四上周四提供了一封电子邮件,其中包含您的回复和返回此论坛的链接。
最近我经历了一些问题,我的常规电子邮件可以如此善良,并发送给我的Gmail链接

谢谢

mhv_dialog.
离线
最后一次露面:3 weeks 4 days ago
员工
加入:2013-12-06 15:10
I just sent it the link agin

我刚用你的Gmail账户发出了链接agin。我希望你这次得到它。收到后,我建议您编辑帖子以删除您的电子邮件。你从不kbow ...

Rony
离线
最后一次露面:4年7个月前
主
加入:2014-05-15 15:02
我不明白。

我不明白。
Somehow it is not arriving and I don't even get a notification it has been received.

mhv_dialog.
离线
最后一次露面:3 weeks 4 days ago
员工
加入:2013-12-06 15:10
奇怪。我怨恨它一次

奇怪。我怨恨它一次more. let me know if you get it or i will try to find a different way to get it to you.

Rony
离线
最后一次露面:4年7个月前
主
加入:2014-05-15 15:02
刚刚得到它。谢谢

刚刚得到它。
谢谢

主题锁定