How to reduce BLE latency?USB connection is unstable with Nexus S 2.3.4 on AMD 64 running 64-bit Windows 7,...
Today is the Center
Is it tax fraud for an individual to declare non-taxable revenue as taxable income? (US tax laws)
To string or not to string
Why "Having chlorophyll without photosynthesis is actually very dangerous" and "like living with a bomb"?
Is it legal for company to use my work email to pretend I still work there?
Dragon forelimb placement
Show that if two triangles built on parallel lines, with equal bases have the same perimeter only if they are congruent.
How is it possible to have an ability score that is less than 3?
Fencing style for blades that can attack from a distance
How can bays and straits be determined in a procedurally generated map?
Is it possible to do 50 km distance without any previous training?
Font hinting is lost in Chrome-like browsers (for some languages )
Can a Warlock become Neutral Good?
Why dont electromagnetic waves interact with each other?
Maximum likelihood parameters deviate from posterior distributions
Approximately how much travel time was saved by the opening of the Suez Canal in 1869?
Why doesn't Newton's third law mean a person bounces back to where they started when they hit the ground?
What are the differences between the usage of 'it' and 'they'?
What does it mean to describe someone as a butt steak?
can i play a electric guitar through a bass amp?
The use of multiple foreign keys on same column in SQL Server
Why can't I see bouncing of a switch on an oscilloscope?
Is a tag line useful on a cover?
Modeling an IPv4 Address
How to reduce BLE latency?
USB connection is unstable with Nexus S 2.3.4 on AMD 64 running 64-bit Windows 7, but works with 32-bit Windows Vista How to connect my Android to my Laptop wirelessly , to stream data between the two?Windows 7: Connect to Android device using WPA2 PSKBluetooth vs. BLEForce Windows 7 to use Android phone's MAC address as network identifier for hotspot to prevent network name addition/iterationUnable to access internet using android wi-fi tetheringHow to deal with excessive audio latencyCould not connect galaxy s3 i9300 using smart switch & Samsung kies after rootingTethering a Windows 10 PC to an Android phone for Internet connection makes it sluggishBluetooth headphones interfering with other bluetooth devices
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
I have a device that is configured as Bluetooth peripheral to send some IMU data to a smartphone. I log the data out both on the peripheral device and on the smartphone app.
When I connect using an iPhone 8, the exchange is quite immediate – data sent are almost logged at the same time in both sides. But, when I connect using an Android device (I tested Nexus 5 and Zenfone Max Pro M1), the log on the smartphone side is done approximately 400ms after the log on the peripheral side is done. This is huge latency! And I want to reduce it.
I suspected it to be related to connection parameters. So I changed it to the following:
- Min connection interval: 12 (15 ms)
- Max connection interval: 24 (30 ms)
- Slave latency: 0
- Supervision timeout: 200 (2000 ms)
This works fine on iPhone, but, still has noticeable latency on Android.
Are there other factors that cause such a latency?
android bluetooth
New contributor
add a comment |
I have a device that is configured as Bluetooth peripheral to send some IMU data to a smartphone. I log the data out both on the peripheral device and on the smartphone app.
When I connect using an iPhone 8, the exchange is quite immediate – data sent are almost logged at the same time in both sides. But, when I connect using an Android device (I tested Nexus 5 and Zenfone Max Pro M1), the log on the smartphone side is done approximately 400ms after the log on the peripheral side is done. This is huge latency! And I want to reduce it.
I suspected it to be related to connection parameters. So I changed it to the following:
- Min connection interval: 12 (15 ms)
- Max connection interval: 24 (30 ms)
- Slave latency: 0
- Supervision timeout: 200 (2000 ms)
This works fine on iPhone, but, still has noticeable latency on Android.
Are there other factors that cause such a latency?
android bluetooth
New contributor
add a comment |
I have a device that is configured as Bluetooth peripheral to send some IMU data to a smartphone. I log the data out both on the peripheral device and on the smartphone app.
When I connect using an iPhone 8, the exchange is quite immediate – data sent are almost logged at the same time in both sides. But, when I connect using an Android device (I tested Nexus 5 and Zenfone Max Pro M1), the log on the smartphone side is done approximately 400ms after the log on the peripheral side is done. This is huge latency! And I want to reduce it.
I suspected it to be related to connection parameters. So I changed it to the following:
- Min connection interval: 12 (15 ms)
- Max connection interval: 24 (30 ms)
- Slave latency: 0
- Supervision timeout: 200 (2000 ms)
This works fine on iPhone, but, still has noticeable latency on Android.
Are there other factors that cause such a latency?
android bluetooth
New contributor
I have a device that is configured as Bluetooth peripheral to send some IMU data to a smartphone. I log the data out both on the peripheral device and on the smartphone app.
When I connect using an iPhone 8, the exchange is quite immediate – data sent are almost logged at the same time in both sides. But, when I connect using an Android device (I tested Nexus 5 and Zenfone Max Pro M1), the log on the smartphone side is done approximately 400ms after the log on the peripheral side is done. This is huge latency! And I want to reduce it.
I suspected it to be related to connection parameters. So I changed it to the following:
- Min connection interval: 12 (15 ms)
- Max connection interval: 24 (30 ms)
- Slave latency: 0
- Supervision timeout: 200 (2000 ms)
This works fine on iPhone, but, still has noticeable latency on Android.
Are there other factors that cause such a latency?
android bluetooth
android bluetooth
New contributor
New contributor
edited yesterday
Scott
16.2k113990
16.2k113990
New contributor
asked yesterday
Mahmoud MasmoudiMahmoud Masmoudi
11
11
New contributor
New contributor
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Mahmoud Masmoudi is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1421870%2fhow-to-reduce-ble-latency%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Mahmoud Masmoudi is a new contributor. Be nice, and check out our Code of Conduct.
Mahmoud Masmoudi is a new contributor. Be nice, and check out our Code of Conduct.
Mahmoud Masmoudi is a new contributor. Be nice, and check out our Code of Conduct.
Mahmoud Masmoudi is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1421870%2fhow-to-reduce-ble-latency%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown