iPhone 4S - BLE数据传输速度(iPhone 4S - BLE data transfer speed)
我一直在对BLE(低功耗蓝牙)连接类进行修补,并且一直没有能够以1KB / 5秒以上的速度传输数据。 我相信,在文档中,它表示最大速度是每20毫秒60个字节。 通过数据传输并在每组数据包之后计数Ack传输,我相信我们应该能够以每秒1.5KB的速度进行。 所以我的代码比应该慢7-8倍左右。
我只是想知道是否有人能够像BLE文档所说的那样快速地在BLE中进行数据传输。 如果比我的速度快,你会得到什么样的速度?
非常感谢
I've been tinkering around with the BLE (Bluetooth Low Energy) connectivity classes quiet a bit lately and haven't been able to make it transfer data any faster than 1KB / 5 seconds. I believe, in the documentation, it says the max speed is 60 bytes per 20 milliseconds. With data transfer and counting the Ack transfer after each set of packets, I believe we should be able to go as fast as 1.5KB per second. So my code is around 7-8 times slower than it should be.
I'm just wondering if anyone has been able to do data transfer in BLE as fast as the documentation says it should be able to do. What sort of speed are you getting if faster than mine?
Thanks a lot
原文:https://stackoverflow.com/questions/10254048
最满意答案
最后,我想出了这个:
define GetFromPkg $(shell node -p "require('./package.json').$(1)") endef PROJECT := $(call GetFromPkg,name) LAST_VERSION := $(call GetFromPkg,version) DESCRIPTION := $(call GetFromPkg,description) PROJECT_URL := $(call GetFromPkg,repository.url)
At the end, I came up with this:
define GetFromPkg $(shell node -p "require('./package.json').$(1)") endef PROJECT := $(call GetFromPkg,name) LAST_VERSION := $(call GetFromPkg,version) DESCRIPTION := $(call GetFromPkg,description) PROJECT_URL := $(call GetFromPkg,repository.url)
相关问答
更多-
me@pc:~/Ansible/playbooks/test_iterate$ ansible-playbook test0.yml PLAY *************************************************************************** TASK [setup] ******************************************************************* ok: [srv-db1 ...
-
最后,我想出了这个: define GetFromPkg $(shell node -p "require('./package.json').$(1)") endef PROJECT := $(call GetFromPkg,name) LAST_VERSION := $(call GetFromPkg,version) DESCRIPTION := $(call GetFromPkg,description) PROJECT_URL := $(call GetFromPkg,reposi ...
-
您可以将数字或字母放入ArrayList并使用Collections.shuffle() 。 然后遍历两个数组以分配您的值。 如果你不关心任何一个的顺序,你可以洗两个! You can put either your numbers or letters into an ArrayList and use Collections.shuffle(). Then iterate through both arrays to assign your values. If you don't care about ...
-
如何从JSON中进行SQL SELECT并动态分配给变量(How to SQL SELECT from JSON and dynamically assign to variables)[2022-03-17]
您必须发布处理从json文件加载的对象。 我构建了一个工作样本。 我认为alasql无法处理对象,因为它不是数组,实际上它是键值对字典,我的代码片段删除了键,并生成值的数组,然后我可以选择: const alasql = require("alasql"); var testfile = require("./test.json"); //get array of values of the object loaded from file var values =Object.values(testfile ... -
使用::运算符。 (%i4) x : '[a, b, c]; (%o4) [a, b, c] (%i5) x :: [11, 22, 33]; (%o5) [11, 22, 33] (%i6) a; (%o6) 11 (%i7) b; (%o7) 22 (%i8) c; (%o8) ...
-
C# - 从JSON响应获取值并将它们分配给变量(C# - Get values from JSON response and assign them to variables)[2022-05-26]
创建一个对象并反序列化json对象。 http://www.newtonsoft.com/json/help/html/t_newtonsoft_json_jsonconvert.htm I am sorry to answer to my own question but I just found the solution and i wanted to post here: You need to add these lines of code after data var _dataResponse ... -
您可以在Python中使用operator.itemgetter ,它返回所选项的元组: from operator import itemgetter start, end, name, length, id = itemgetter(0,2,3,4,11)(parts) 当然还有其他的方法,但这些可能不是一个明显的方法 。 使用列表理解 。 这建立一个列表,这可能不需要在这里: indices = 0,2,3,4,11 start, end, name, length, id = [parts[i ...
-
由于代码调用信息的方式,您需要在这些getJSON方法中嵌入大量调用。 将它们分配给全局范围变量并不会影响它们将在运行这些函数后定义。 var temp; var latitude; var longitude; var city; var region; var country; var location2; $.getJSON("http://ip-api.com/json", function(a) { latitude = a.lat; longitude = a.lon; city ...
-
你要找的是dictionaryObject属性,它会返回[String:Any]? 对象所以类型转换为[String:String]将适合您。 var openingHours:[String:String] = [:] if(json["opening_hours"] != nil){ openingHours = json["opening_hours"].dictionaryObject as? [String:String] ?? [:] } What you are looking fo ...
-
Python,将列表的最后三个元素分配给各个变量(Python, assign the last three elements of a list to individual variables)[2021-12-27]
如果您使用python3 ,则可以使用扩展迭代解压缩 : In [14]: l = ["1", "2", "3", "4", "5"] In [15]: *_, c, b, a = l In [16]: a,b,c Out[16]: ('5', '4', '3') 根据您的编辑,如果您希望从列表中开始从列表中获取n项目并对它们执行某些功能,则可以使用反转来在最后开始,并列出列表中的n个项目: In [51]: from itertools import islice In [52]: l = ["1 ...