完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好,
这是关于BLE USB加密狗和连接的BLE对等设备之间的文件传输。 我的要求是,我需要在小数据包中分解文件,并将数据包发送到对等设备。 对等设备在收到一个数据包后会发送给我确认。如果响应通过,我需要继续进一步的数据包,停止传输,并通知用户有关错误。 我准备为我的需求重用通知记录器示例。这是在线的例子。 在这个例子中,连接到对等设备已经被设置。 我需要研究发送分组和接收应答部分的机制。我打算用下面的方法 使用ICLI2CAPPGR接口的实例来发送和接收数据。请告诉我方法是否正确。 如果方法不正确,请建议替代方法满足我的要求。 当做 三深 以上来自于百度翻译 以下为原文 Hello, This is regarding file transfer between BLE USB dongle and Connected BLE peer device. My requirement is that I need to breakdown a file in small packets and send packets to the peer device. Peer device will send me acknowledgement after receiving a packet. if response is Pass i need to continue with further packets else stop the transfer and inform the user about error. I'm preparing to reuse the Notification Logger example for my requirement. This is available online as api_examples . As in this example Connection to peer device is already set. I need to work on the mechanism of send packet and receiving acknowledgement part. I'm planning to use like below use instance of ICyL2CapMgr interface to send and receive the data. Kindly let me know if the approach is correct. If the approach is not correct kindly suggest alternative method the fulfill my requirements. regards -Sandeep |
|
相关推荐
1个回答
|
|
一个常规的特性写操作将在成功完成后发送一个ACK,并且可以在失败时超时;然后,您只需做一些简单的数学运算来跟踪事件发生时发送/丢失的数据包/数据。下面是函数名称:CyLygGATCWrrEngultCudioValue()
通知将起作用,但由于它们本质上是异步的,并且与任何其他数据包没有连接,所以最终实现代码只是为了跟踪通信的ACK/NACK功能。 另外,“写”一词在我看来更适合将文件写入服务器。:) 以上来自于百度翻译 以下为原文 A regular characteristic write operation will send back an ACK when completed successfully, and can time out upon failure; Then you just do some simple math to keep track of which packet/data was sent/lost when the events occur. Here is the function name: CyBle_GattcWriteCharacteristicValue() Notifications will work, but since they are inherently asynchronous and unconnected to any other packets, you will end up implementing code just to keep track of the ACK/NACK functionality of the communications. Plus, the word "write" fits writing a file to a server more aptly in name I think. :) |
|
|
|
只有小组成员才能发言,加入小组>>
754个成员聚集在这个小组
加入小组2100 浏览 1 评论
1846 浏览 1 评论
3665 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1782 浏览 6 评论
1532 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
561浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
413浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
433浏览 2评论
380浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
906浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-20 11:46 , Processed in 1.558786 second(s), Total 77, Slave 61 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号