OBD2 BLE communication from iOS
I will be using OBD2 device to get data form a car. I don't have the dongle yet, but am reading into how things should be done. As far as I understand the device should be with BLE on and should scan for peripherals with some specific service.
For example I need to get the speed of the vehicle. How should I know what is the UUID of the service I am looking for and what are the UUIDs of its characteristics and possibly some details about the data that should be received. For devices using GATT profiles for example they could be found here: https://www.bluetooth.com/specifications/gatt/services . But I don't find any such documentation for OBD2. I found this answer: here and the first one here. As far as I understand they suggest I need to look through all peripherals and all services there and try all characteristics to find the needed ones and distinguish them by the response. Is this the only way to do this? I found also this project: here where some UUID is used but I cannot understand where it comes from. Any suggestions how to get the needed UUID-s?
ios bluetooth-lowenergy obd-ii
add a comment |
I will be using OBD2 device to get data form a car. I don't have the dongle yet, but am reading into how things should be done. As far as I understand the device should be with BLE on and should scan for peripherals with some specific service.
For example I need to get the speed of the vehicle. How should I know what is the UUID of the service I am looking for and what are the UUIDs of its characteristics and possibly some details about the data that should be received. For devices using GATT profiles for example they could be found here: https://www.bluetooth.com/specifications/gatt/services . But I don't find any such documentation for OBD2. I found this answer: here and the first one here. As far as I understand they suggest I need to look through all peripherals and all services there and try all characteristics to find the needed ones and distinguish them by the response. Is this the only way to do this? I found also this project: here where some UUID is used but I cannot understand where it comes from. Any suggestions how to get the needed UUID-s?
ios bluetooth-lowenergy obd-ii
How should I know what is the UUID of the service I am looking for and what are the UUIDs of its characteristics and possibly some details about the data that should be received - shouldn't that information be in your device's documentation?
– mag_zbc
Nov 22 '18 at 15:44
@mag_zbc Thanks for your response. I don't have the dongle yet, so I guess it is possible, but I thought they were the same for all OBD2 dongles because I think it should be possible for a device to scan for such services without having the exact UUID for every different dongle. But I may be misunderstanding it.
– surToTheW
Nov 22 '18 at 15:54
If the manufacturers say you need to read/wirte from a special characteristic they will provide the UDID for that characteristic. If there is no such UDID you can check (when you have the dongle) the characteristic properties (if it's read & write, if it's write & notify..etc) based on these properties you can figure some of the right charactersitics but this is not as good as the manufacturer specs.
– danypata
Nov 22 '18 at 16:11
@danypata Thanks. So I guess I am waiting for the dongle.
– surToTheW
Nov 22 '18 at 16:18
I gave an answer in stackoverflow.com/questions/52075456/…
– DrMickeyLauer
Dec 4 '18 at 9:01
add a comment |
I will be using OBD2 device to get data form a car. I don't have the dongle yet, but am reading into how things should be done. As far as I understand the device should be with BLE on and should scan for peripherals with some specific service.
For example I need to get the speed of the vehicle. How should I know what is the UUID of the service I am looking for and what are the UUIDs of its characteristics and possibly some details about the data that should be received. For devices using GATT profiles for example they could be found here: https://www.bluetooth.com/specifications/gatt/services . But I don't find any such documentation for OBD2. I found this answer: here and the first one here. As far as I understand they suggest I need to look through all peripherals and all services there and try all characteristics to find the needed ones and distinguish them by the response. Is this the only way to do this? I found also this project: here where some UUID is used but I cannot understand where it comes from. Any suggestions how to get the needed UUID-s?
ios bluetooth-lowenergy obd-ii
I will be using OBD2 device to get data form a car. I don't have the dongle yet, but am reading into how things should be done. As far as I understand the device should be with BLE on and should scan for peripherals with some specific service.
For example I need to get the speed of the vehicle. How should I know what is the UUID of the service I am looking for and what are the UUIDs of its characteristics and possibly some details about the data that should be received. For devices using GATT profiles for example they could be found here: https://www.bluetooth.com/specifications/gatt/services . But I don't find any such documentation for OBD2. I found this answer: here and the first one here. As far as I understand they suggest I need to look through all peripherals and all services there and try all characteristics to find the needed ones and distinguish them by the response. Is this the only way to do this? I found also this project: here where some UUID is used but I cannot understand where it comes from. Any suggestions how to get the needed UUID-s?
ios bluetooth-lowenergy obd-ii
ios bluetooth-lowenergy obd-ii
asked Nov 22 '18 at 15:41
surToTheWsurToTheW
257114
257114
How should I know what is the UUID of the service I am looking for and what are the UUIDs of its characteristics and possibly some details about the data that should be received - shouldn't that information be in your device's documentation?
– mag_zbc
Nov 22 '18 at 15:44
@mag_zbc Thanks for your response. I don't have the dongle yet, so I guess it is possible, but I thought they were the same for all OBD2 dongles because I think it should be possible for a device to scan for such services without having the exact UUID for every different dongle. But I may be misunderstanding it.
– surToTheW
Nov 22 '18 at 15:54
If the manufacturers say you need to read/wirte from a special characteristic they will provide the UDID for that characteristic. If there is no such UDID you can check (when you have the dongle) the characteristic properties (if it's read & write, if it's write & notify..etc) based on these properties you can figure some of the right charactersitics but this is not as good as the manufacturer specs.
– danypata
Nov 22 '18 at 16:11
@danypata Thanks. So I guess I am waiting for the dongle.
– surToTheW
Nov 22 '18 at 16:18
I gave an answer in stackoverflow.com/questions/52075456/…
– DrMickeyLauer
Dec 4 '18 at 9:01
add a comment |
How should I know what is the UUID of the service I am looking for and what are the UUIDs of its characteristics and possibly some details about the data that should be received - shouldn't that information be in your device's documentation?
– mag_zbc
Nov 22 '18 at 15:44
@mag_zbc Thanks for your response. I don't have the dongle yet, so I guess it is possible, but I thought they were the same for all OBD2 dongles because I think it should be possible for a device to scan for such services without having the exact UUID for every different dongle. But I may be misunderstanding it.
– surToTheW
Nov 22 '18 at 15:54
If the manufacturers say you need to read/wirte from a special characteristic they will provide the UDID for that characteristic. If there is no such UDID you can check (when you have the dongle) the characteristic properties (if it's read & write, if it's write & notify..etc) based on these properties you can figure some of the right charactersitics but this is not as good as the manufacturer specs.
– danypata
Nov 22 '18 at 16:11
@danypata Thanks. So I guess I am waiting for the dongle.
– surToTheW
Nov 22 '18 at 16:18
I gave an answer in stackoverflow.com/questions/52075456/…
– DrMickeyLauer
Dec 4 '18 at 9:01
How should I know what is the UUID of the service I am looking for and what are the UUIDs of its characteristics and possibly some details about the data that should be received - shouldn't that information be in your device's documentation?
– mag_zbc
Nov 22 '18 at 15:44
How should I know what is the UUID of the service I am looking for and what are the UUIDs of its characteristics and possibly some details about the data that should be received - shouldn't that information be in your device's documentation?
– mag_zbc
Nov 22 '18 at 15:44
@mag_zbc Thanks for your response. I don't have the dongle yet, so I guess it is possible, but I thought they were the same for all OBD2 dongles because I think it should be possible for a device to scan for such services without having the exact UUID for every different dongle. But I may be misunderstanding it.
– surToTheW
Nov 22 '18 at 15:54
@mag_zbc Thanks for your response. I don't have the dongle yet, so I guess it is possible, but I thought they were the same for all OBD2 dongles because I think it should be possible for a device to scan for such services without having the exact UUID for every different dongle. But I may be misunderstanding it.
– surToTheW
Nov 22 '18 at 15:54
If the manufacturers say you need to read/wirte from a special characteristic they will provide the UDID for that characteristic. If there is no such UDID you can check (when you have the dongle) the characteristic properties (if it's read & write, if it's write & notify..etc) based on these properties you can figure some of the right charactersitics but this is not as good as the manufacturer specs.
– danypata
Nov 22 '18 at 16:11
If the manufacturers say you need to read/wirte from a special characteristic they will provide the UDID for that characteristic. If there is no such UDID you can check (when you have the dongle) the characteristic properties (if it's read & write, if it's write & notify..etc) based on these properties you can figure some of the right charactersitics but this is not as good as the manufacturer specs.
– danypata
Nov 22 '18 at 16:11
@danypata Thanks. So I guess I am waiting for the dongle.
– surToTheW
Nov 22 '18 at 16:18
@danypata Thanks. So I guess I am waiting for the dongle.
– surToTheW
Nov 22 '18 at 16:18
I gave an answer in stackoverflow.com/questions/52075456/…
– DrMickeyLauer
Dec 4 '18 at 9:01
I gave an answer in stackoverflow.com/questions/52075456/…
– DrMickeyLauer
Dec 4 '18 at 9:01
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
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
});
}
});
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%2fstackoverflow.com%2fquestions%2f53434331%2fobd2-ble-communication-from-ios%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
Thanks for contributing an answer to Stack Overflow!
- 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%2fstackoverflow.com%2fquestions%2f53434331%2fobd2-ble-communication-from-ios%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
How should I know what is the UUID of the service I am looking for and what are the UUIDs of its characteristics and possibly some details about the data that should be received - shouldn't that information be in your device's documentation?
– mag_zbc
Nov 22 '18 at 15:44
@mag_zbc Thanks for your response. I don't have the dongle yet, so I guess it is possible, but I thought they were the same for all OBD2 dongles because I think it should be possible for a device to scan for such services without having the exact UUID for every different dongle. But I may be misunderstanding it.
– surToTheW
Nov 22 '18 at 15:54
If the manufacturers say you need to read/wirte from a special characteristic they will provide the UDID for that characteristic. If there is no such UDID you can check (when you have the dongle) the characteristic properties (if it's read & write, if it's write & notify..etc) based on these properties you can figure some of the right charactersitics but this is not as good as the manufacturer specs.
– danypata
Nov 22 '18 at 16:11
@danypata Thanks. So I guess I am waiting for the dongle.
– surToTheW
Nov 22 '18 at 16:18
I gave an answer in stackoverflow.com/questions/52075456/…
– DrMickeyLauer
Dec 4 '18 at 9:01