完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好!
我在Android上使用样例Apple SerialgGATEXDB及其对等应用程序。在应用中,设备连接到电话,但没有配对。我认为这并不能确保数据的安全传输(如果我错了请纠正我)。如何在使用这个应用程序时启用LE安全/加密,以便传输数据(在这种情况下是“串行”数据)。有什么我可以参考的参考资料吗? 以上来自于百度翻译 以下为原文 Hello! I am using the sample app serial_gatt_db and its peer app on Android. In the application, the device is connected to the phone but not paired. I think this does not ensure a secure transfer of data (please correct me if I am wrong). How can I enable LE security / encryption when using this app so that the data transferred(in this case 'serial' data). Is there any reference that I can take a look at? |
|
相关推荐
5个回答
|
|
你好阿古斯塔
你用哪种芯片? 当做 詹森 以上来自于百度翻译 以下为原文 Hi Agusta Which chip do you use? Regards Jenson |
|
|
|
你好,我有CYW4338 BT芯片和STMF4 MCU。 一般做法是什么样的?加密数据本身,并写入特性时,只是'连接'(未配对)或配对与设备和发送未加密的数据(依靠BLE安全性)? 意志改变 SturyTyRealEngultIsMask= BtMySeCyn-无 到 SurvivyAdvaseIsMask= BtMySeCype加密 通过BLE控制器确保某种程度的加密?这与在BLL WiFi导入器中演示的安全密钥交换有什么不同。对此的一些澄清会很有帮助。 以上来自于百度翻译 以下为原文 Hello, I have the CYW43438 bt chip and STMF4 mcu. What is the general practice like? To encrypt data yourself and write to the characteristic when just 'connected' (not paired) OR pairing with the device and sending un-encrypted data (relying on BLE security) ? Will changing .security_requirement_mask = BTM_SEC_NONEto .security_requirement_mask = BTM_SEC_ENCRYPTensure some level of encryption by the ble controller? How is this different from secure passkey exchange demonstrated in ble wifi introducer for example. Some clarification on this would be really helpful. |
|
|
|
使用蓝牙指定的默认加密程序将比试图从应用程序加密数据要好。
您可以使用WijdTBTyDeViSeCixBydand()API请求对等设备配对和绑定。 LealSythIsRealEddieType面罩不用于LE,因此您可以省略它。 以上来自于百度翻译 以下为原文 Using the default encryption procedure specified by Bluetooth would be better than trying to encrypt the data from application. You could use the wiced_bt_dev_sec_bond() API to request the peer device for pairing and bonding. The .security_requirement_mask is not used for LE, so you can omit it. |
|
|
|
烈阳异丙醇 发表于 2018-9-14 07:01 YSSU是否需要与WICDEXBTVDEVSET加密()API一起使用WiDeTyBTyDeViSeCixBooDeNo.()API(即,一旦配对完成,是否需要显式设置加密?在密钥交换/配对完成后,连接是否保证安全?我试图在BtMyPARIGIN完成的EVT事件中添加WICEDEXBTYDEVSETIOSCOMPATION()函数,但我得到NOY资源错误8034。我不确定这是否需要,如果你能澄清的话,那就太好了。 此外,WICDEDH-BTYDEVGETGETBONDEDY DEVICESE()API似乎不被支持,所以为了能够配对多个设备,我们需要存储对等设备的蓝牙地址和它在DCT中的相应密钥吗?结构WITDEXBTI DEVICES-LIKKYKESSHT存储与公共地址不匹配的静态LE地址,所以这些地址和它们的密钥需要存储在一些自定义结构中(这是可行的,但如果有更好的方法我想知道)。谢谢! 以上来自于百度翻译 以下为原文 yssu Does the wiced_bt_dev_sec_bond() API need to be used in conjunction with the wiced_bt_dev_set_encryption() API, ie once pairing is complete do we need to set the encryption explicitly? Is the connection guaranteed to be secure after the keys are exchanged/pairing is complete? I tried to add wiced_bt_dev_set_encryption() function in the BTM_PAIRING_COMPLETE_EVT event but I get NO_RESOURCES error 8034. I am not sure if this is required, it'd be great if you could clarify. Additionally, the wiced_bt_dev_get_bonded_devices() API doesnt seem to be supported, so in order to be able to pair multiple devices, do we need to store the bluetooth address of the peer device and it's corresponding keys in DCT? The struct wiced_bt_device_link_keys_t stores the static LE address which doesn't match with the public one, so do these addresses and their keys need to be stored in some custom struct (which is doable, but if there is a better way I'd like to know). Thanks! |
|
|
|
huaxu2222 发表于 2018-9-14 07:10 -你不需要显式调用wiced_bt_dev_set_encryption()。wiced_bt_dev_sec_bond() API会照顾加密链接一旦设备配对。 -你需要存储节点设备键NVRAM btm_paired_device_link_keys_update_evt事件下。你可以使用wiced_hal_write_nvram() API将数据存储到NVRAM。 在wiced_bt_device_link_keys_t结构的公共地址和随机地址是。wiced_bt_device_link_keys_t - >;wiced_bt_device_address_t给出随机地址(如果同行使用)和wiced_bt_device_link_keys_t - >;wiced_bt_device_sec_keys_t具有对等设备ID地址。 以上来自于百度翻译 以下为原文 - You don't have to explicitly call wiced_bt_dev_set_encryption(). wiced_bt_dev_sec_bond() API will take care of encrypting the link once the devices are paired. - You need to store the peer device keys to NVRAM under the BTM_PAIRED_DEVICE_LINK_KEYS_UPDATE_EVT event. You can use the wiced_hal_write_nvram() API to store the data to NVRAM. - In the wiced_bt_device_link_keys_t struct, both the public address and the random address are present. wiced_bt_device_link_keys_t->wiced_bt_device_address_t gives the random address (if used by the peer) and the wiced_bt_device_link_keys_t->wiced_bt_device_sec_keys_t has the ID address of the peer device. |
|
|
|
只有小组成员才能发言,加入小组>>
752个成员聚集在这个小组
加入小组2075 浏览 1 评论
1829 浏览 1 评论
3645 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1766 浏览 6 评论
1517 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
517浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
371浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
413浏览 2评论
360浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
868浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-29 22:48 , Processed in 0.937919 second(s), Total 88, Slave 69 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号