微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 无线和射频 > TI无线射频设计 > 请问hid over gatt可以在不配对的情况下使用吗

请问hid over gatt可以在不配对的情况下使用吗

时间:12-22 整理:3721RD 点击:

hi all:

例程hidemukbd中,使用的是配对的情况。我想把hidemukbd与simpleperipheral融合,所以希望能使用hid over gatt的不配对方式,请问可以吗?有这方面的例程嘛?或者给点提示,谢谢。

It is highly dependent on the Central side. Some Central may need to have security before any data transfer.

You just need to modify the following to disable security on the peripheral side.

in file hidemukbd.c, modify fhte following

from:

// Default GAP pairing mode
#define DEFAULT_PAIRING_MODE                  GAPBOND_PAIRING_MODE_INITIATE

to:

// Default GAP pairing mode
#define DEFAULT_PAIRING_MODE                  GAPBOND_PAIRING_MODE_NO_PAIRING

However it will not work on some central that request for security. It will terminate the connection in such case.

 

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top