完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
大家好,
我有一个基于BlueNRG-MS的GATT服务器,它有几个特性,我能够从Android读取和写入这些特性。现在我需要使用BlueNRG-MS实现GATT客户端来访问另一台设备上的GATT服务器。我可以使用aci_gap_create_connection()连接到服务器,但是在建立连接后我既不能执行aci_gatt_disc_charac_by_uuid()也不能执行aci_gatt_disc_all_charac_descriptors()和aci_gatt_write_charac_value()。任何这些功能的返回状态都是正常的,但是在客户端和服务器端都没有收到相关的事件。我在一段时间后得到的唯一事件是EVT_DISCONN_COMPLETE,其中reason = 8(超时)。 实际上我不太了解aci_gap_create_connection()函数的参数min_conn_length,max_conn_length,conn_min_interval,conn_max_interval和conn_latency。我试着调整它,但没有运气。 任何人都可以帮我解决这个问题吗? #关贸总协定bluenrg-MS 以上来自于谷歌翻译 以下为原文 Hi all, I have a BlueNRG-MS-based GATT server with several characteristics, and I'm able to read and write these characteristics from Android. Now I need to implement a GATT client using BlueNRG-MS to access the GATT server on another device. I'm able to connect to the server using aci_gap_create_connection(), but I can't do neither aci_gatt_disc_charac_by_uuid() nor aci_gatt_disc_all_charac_descriptors() nor aci_gatt_write_charac_value() after the connection is established. The return status of any of these functions is OK, but no relevant events are received neither on the client nor on the server side. The only event I get after some time is the EVT_DISCONN_COMPLETE with reason = 8 (timeout). Actually I don't quite understand the parameters min_conn_length, max_conn_length, conn_min_interval, conn_max_interval and conn_latency of the aci_gap_create_connection() function. I tried to adjust that, but with no luck. Can anybody help me with this problem? #gatt-bluenrg-ms |
|
相关推荐
2个回答
|
|
|
亲爱的顾客,
你可以尝试使用lates DK GUI。此工具可帮助您连接两个或多个BlueNRG,在设备上定义服务和特征,发现服务和在另一个设备上定义的特征等。要了解如何使用GUI,您可以阅读用户手册http://www.st.com/st-web-ui/static/active/en/resource/technical/document/user_manual/DM00167057.pdf 另外,您还可以阅读文档: http://www.st.com/st-web-ui/static/active/en/resource/technical/document/programming_manual/DM00141271.pdf 问候, GM 以上来自于谷歌翻译 以下为原文 Dear Customer, you can try to use the lates DK GUI. This tool helps you to connect two or more BlueNRG, define on a device Service and characteristics, discovery service and characteristics defined on another device and so on. For understand how to use the GUI, you can read the user manual http://www.st.com/st-web-ui/static/active/en/resource/technical/document/user_manual/DM00167057.pdf In add, you can read also the document: http://www.st.com/st-web-ui/static/active/en/resource/technical/document/programming_manual/DM00141271.pdf Regards, GM |
|
|
|
|
|
你好
我使用带有GUI的BlueNRG-MS。我在使用句柄添加服务时收到错误。我正在使用带有IDB05A01扩展板的Stm32F401。 我用CubeMX和BlueNRG中间件创建了项目。 API在aci_gatt_read_update上有所不同。 General Access只有句柄。我可以用gui加载我的服务,只创建一般访问.... 这可能是由于我的GUI中的Bug或错误的bin文件造成的? 我唯一无法使用GUI加载的是服务,因为我在添加自定义服务时遇到错误。 您的回复将不胜感激! BR 以上来自于谷歌翻译 以下为原文 Hi I using BlueNRG-MS, with GUI. I am getting a error on the Add Service with the handle. I am using Stm32F401 with IDB05A01 extension board. I created project with CubeMX and BlueNRG middleware. The APIs vary on aci_gatt_read_update. General Access has only the handle. I can load my Services with the gui only the general access is created.... Could this be due to the Bug in my GUI or a bad bin file? The only thing I cant load using the GUI is the Service as I am getting errors when adding my custom service. Your response will be appreciated! BR |
|
|
|
|
只有小组成员才能发言,加入小组>>
stm32mp157的异核通信的rpmsg_sdb的m4固件和a7驱动该如何编写?
1453 浏览 0 评论
stm32f103用freertos对一个采样率为1kHz的传感器,进行采样,数据出差
1502 浏览 0 评论
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
3649 浏览 1 评论
3842 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
2461 浏览 1 评论
STM32H7打开DCache后,出现了串口接收信息为空的现象,是哪里出了问题?
727浏览 5评论
用NANO STM32F103RBT6的开发板烧录不了是哪里出了问题?
661浏览 5评论
710浏览 5评论
外部中断触发类型为双边沿触发,进入中断回调后有什么办法判断该边沿是上升沿还是下降沿?
941浏览 5评论
STM32L071CBT6低温环境下无法正常工作是什么原因引起的?
745浏览 5评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-1 22:45 , Processed in 1.582731 second(s), Total 75, Slave 58 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
1715