# For those who have worked with BLE

**URL:** https://community.thunkable.com/t/for-those-who-have-worked-with-ble/1110530
**Category:** Questions about Thunkable X
**Tags:** bluetooth, advanced
**Created:** [February 19, 2021, 11:09pm UTC](https://community.thunkable.com/t/for-those-who-have-worked-with-ble/1110530 "2021-02-19T23:09:12Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![bluerfox15uht9](https://avatars.discourse-cdn.com/v4/letter/b/3be4f8/32.png) [@bluerfox15uht9](https://community.thunkable.com/u/bluerfox15uht9)
#### Post date: [February 19, 2021, 11:09pm UTC](https://community.thunkable.com/t/for-those-who-have-worked-with-ble/1110530/1 "2021-02-19T23:09:12Z")

</div>

for those who have worked with BLE before, i have a bit of a hardball question.

I have been doing a lot of research into OBD2 stuff. initially, i thought the greatest issue would be getting the numbers and converting from base 16 to base 10. not the case. I have, basically, run into a brick wall attempting to even connect to devices. I would rather not buy any more obd devices, seeing as how this one would be my third attempt, I would like to ask the staff to help ascertain if this device would be compatible with the thunkable BLE function or not. the docs on the site seem to be rather sparse in terms of detail.

Now, I have successfully made a b16 to b10 converter, so i can read the return values properly. however, i don’t know exactly how to connect to the device. it seems as if all successful ble connections i could find were done with Arduino devices that don’t exactly carry over to what I am doing here.

Luckily, this company provides EXTENSIVE documentation on interfacing with its devices. however, it does NOT have the low energy model in the [reference sheet](https://www.scantool.net/scantool/downloads/98/stn1100-frpm.pdf) of the device’s command sets and what you need to do to properly calculate the values.

i _think_ i can manage to do the calculations part of it using thunkable blocks and maybe a few api’s.

however, **and this is my greatest concern** , _would the device commands remain the same as in the reference sheet if I am using the low energy version of the device?_

and, if its the same, would thunkable’s BLE function be able to handle this?

[The Device In Question.](https://www.amazon.com/OBDLink-Bimmercode-Bluetooth-Adapter-Diagnostic/dp/B08NFLL3NT/ref=asc_df_B08NFLL3NT/?tag=hyprod-20&linkCode=df0&hvadid=475811591722&hvpos=&hvnetw=g&hvrand=13555995260658339613&hvpone=&hvptwo=&hvqmt=&hvdev=c&hvdvcmdl=&hvlocint=&hvlocphy=1015214&hvtargid=pla-1041470523295&psc=1)

---

<div class="post-metadata">

### Author: ![bluerfox15uht9](https://avatars.discourse-cdn.com/v4/letter/b/3be4f8/32.png) [@bluerfox15uht9](https://community.thunkable.com/u/bluerfox15uht9)
#### Post date: [February 21, 2021, 8:31pm UTC](https://community.thunkable.com/t/for-those-who-have-worked-with-ble/1110530/2 "2021-02-21T20:31:59Z")

</div>

I’ve purchased the Bluetooth scanner i question, fingerers crossed. if this works, thunkable will have proven itself entirely.

I’m just not entirely certain how to make it connect when it says that it needs a uuid and other things that i dont know how to retrieve in order to connect.

---

<div class="post-metadata">

### Author: ![bluerfox15uht9](https://avatars.discourse-cdn.com/v4/letter/b/3be4f8/32.png) [@bluerfox15uht9](https://community.thunkable.com/u/bluerfox15uht9)
#### Post date: [February 21, 2021, 9:00pm UTC](https://community.thunkable.com/t/for-those-who-have-worked-with-ble/1110530/3 "2021-02-21T21:00:38Z")

</div>

This Is the command set I’m going to be using is from the [ELM327 Command List](https://www.sparkfun.com/datasheets/Widgets/ELM327_AT_Commands.pdf).

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [February 21, 2021, 9:20pm UTC](https://community.thunkable.com/t/for-those-who-have-worked-with-ble/1110530/4 "2021-02-21T21:20:43Z")

</div>

This is AT commands. What protocol is your device using?  
Does it have timeout?  
Does it need a `wake-up signal`?

You need to get this sorted out to issue AT commands.

The most used `Wake-up signal` in AT command compatible devices is **ATTP**. Check it or refer to the manual to get the correct `wake-up` signal and then issue the next command before the timeout occurs in the device.

30 years ago or so I used to work with TTY devices for communication equipment with AT commands.

---

<div class="post-metadata">

### Author: ![bluerfox15uht9](https://avatars.discourse-cdn.com/v4/letter/b/3be4f8/32.png) [@bluerfox15uht9](https://community.thunkable.com/u/bluerfox15uht9)
#### Post date: [February 22, 2021, 3:46pm UTC](https://community.thunkable.com/t/for-those-who-have-worked-with-ble/1110530/5 "2021-02-22T15:46:19Z")

</div>

It seems that the AT commands are “simulated”

Or so says one of the pdf’s

I’m assuming that I send it a string and it sends a corresponding command. I went ahead and bought it. I’m waiting until my next paycheck in order to get one of the ecu simulator kits to properly test it.

---

<div class="post-metadata">

### Author: ![bluerfox15uht9](https://avatars.discourse-cdn.com/v4/letter/b/3be4f8/32.png) [@bluerfox15uht9](https://community.thunkable.com/u/bluerfox15uht9)
#### Post date: [February 22, 2021, 5:06pm UTC](https://community.thunkable.com/t/for-those-who-have-worked-with-ble/1110530/6 "2021-02-22T17:06:12Z")

</div>

i will say, the obdlink scanner i posted earlier seems to be the only one that has both low power Bluetooth and ANY form of documentation whatsoever.

at least, as far as i could find.

---

<div class="post-metadata">

### Author: ![bluerfox15uht9](https://avatars.discourse-cdn.com/v4/letter/b/3be4f8/32.png) [@bluerfox15uht9](https://community.thunkable.com/u/bluerfox15uht9)
#### Post date: [February 23, 2021, 9:50pm UTC](https://community.thunkable.com/t/for-those-who-have-worked-with-ble/1110530/7 "2021-02-23T21:50:53Z")

</div>

I’ve gotten the ble obd2 scanner! it was just delivered from amazon. i keep looking over and over, but i cant fond a way to connect to a device without having to get the uuid from an outside source.

correct me if I’m wrong, But it seems thunkable is completely incapable of getting the uuid on its own.

is there some way i can integrate this into the app using an api?

i cant find anything on the forums that says that it can…

---

<div class="post-metadata">

### Author: ![bluerfox15uht9](https://avatars.discourse-cdn.com/v4/letter/b/3be4f8/32.png) [@bluerfox15uht9](https://community.thunkable.com/u/bluerfox15uht9)
#### Post date: [February 23, 2021, 10:51pm UTC](https://community.thunkable.com/t/for-those-who-have-worked-with-ble/1110530/8 "2021-02-23T22:51:13Z")

</div>

it LOOKS like I can use the skeleton key UUID, I’m not a programmer obviously, so i don’t understand the implications of using the “00001101-0000-1000-8000-00805f9b34fb” one that seems to have a millions devices that use it.

i also found a [website](http://can4eve.bitplan.com/index.php/OBDLink_LX) that shows this to be the case. its 108 Degrees F outside and I’m going to test this when it cools off.

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [February 24, 2021, 1:46am UTC](https://community.thunkable.com/t/for-those-who-have-worked-with-ble/1110530/9 "2021-02-24T01:46:22Z")

</div>

1101 in the first part of a UUID device means this device emulates an RS232 port (serial port) which is the standard connection for AT devices and that could work.

---

<div class="post-metadata">

### Author: ![bluerfox15uht9](https://avatars.discourse-cdn.com/v4/letter/b/3be4f8/32.png) [@bluerfox15uht9](https://community.thunkable.com/u/bluerfox15uht9)
#### Post date: [February 24, 2021, 2:55am UTC](https://community.thunkable.com/t/for-those-who-have-worked-with-ble/1110530/10 "2021-02-24T02:55:56Z")

</div>

i cant do it in my car after all. looks like i’ll have to buy an ecu sim. i found a simple one on ebay, works through a usb and a chip…

it says it _MIGHT_ get here sometime in march

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [February 24, 2021, 7:27am UTC](https://community.thunkable.com/t/for-those-who-have-worked-with-ble/1110530/11 "2021-02-24T07:27:54Z")

</div>

I’ll ask my friends, if any of them have this gadget I will attempt to communicate with it. It shouldn’t be difficult.

---

<div class="post-metadata">

### Author: ![bluerfox15uht9](https://avatars.discourse-cdn.com/v4/letter/b/3be4f8/32.png) [@bluerfox15uht9](https://community.thunkable.com/u/bluerfox15uht9)
#### Post date: [February 25, 2021, 6:27pm UTC](https://community.thunkable.com/t/for-those-who-have-worked-with-ble/1110530/12 "2021-02-25T18:27:43Z")

</div>

ive v=been trying like bad to get it going in my car. it keeps saying “operation was canceled” and “device _the bluetooth-id-#_ was disconnected”  
im not sure what its doing tbh.

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [February 25, 2021, 6:56pm UTC](https://community.thunkable.com/t/for-those-who-have-worked-with-ble/1110530/13 "2021-02-25T18:56:09Z")

</div>

I ordered one and when I get it I’ll play with it and share the outcome.

---

<div class="post-metadata">

### Author: ![bluerfox15uht9](https://avatars.discourse-cdn.com/v4/letter/b/3be4f8/32.png) [@bluerfox15uht9](https://community.thunkable.com/u/bluerfox15uht9)
#### Post date: [February 25, 2021, 6:59pm UTC](https://community.thunkable.com/t/for-those-who-have-worked-with-ble/1110530/14 "2021-02-25T18:59:14Z")

</div>

i have a few screenshots ill post in a second, i realized that it was the list viewer that was the issue. i was using it as a method to select it. i just made it so that if the list of names contains “obdlink cx” it connects

but now i learned that the uuid doesn’t work. i think im beginning to understand what my grandfather meant by “walking up both sides of the hill on the way to school” haha

---

<div class="post-metadata">

### Author: ![bluerfox15uht9](https://avatars.discourse-cdn.com/v4/letter/b/3be4f8/32.png) [@bluerfox15uht9](https://community.thunkable.com/u/bluerfox15uht9)
#### Post date: [February 25, 2021, 7:06pm UTC](https://community.thunkable.com/t/for-those-who-have-worked-with-ble/1110530/15 "2021-02-25T19:06:09Z")

</div>

![Screenshot_20210225-133432](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/6/866a0248268390898a4b351d3ca45a1a707c9a1b.png)

It’s like I busted through a brick wall.

And there was a concrete wall behind it lol

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [February 25, 2021, 7:34pm UTC](https://community.thunkable.com/t/for-those-who-have-worked-with-ble/1110530/16 "2021-02-25T19:34:43Z")

</div>

You will need first to establish the connection then request / monitor the UUID for the serial port

00001101-0000-1000-8000-00805f9b34fb

---

<div class="post-metadata">

### Author: ![bluerfox15uht9](https://avatars.discourse-cdn.com/v4/letter/b/3be4f8/32.png) [@bluerfox15uht9](https://community.thunkable.com/u/bluerfox15uht9)
#### Post date: [February 25, 2021, 7:39pm UTC](https://community.thunkable.com/t/for-those-who-have-worked-with-ble/1110530/17 "2021-02-25T19:39:31Z")

</div>

see, i… Actually, know what, ill just post the [APP here](https://x.thunkable.com/copy/5602d5178d03e4abeb2b9250687e553b)

---

<div class="post-metadata">

### Author: ![bluerfox15uht9](https://avatars.discourse-cdn.com/v4/letter/b/3be4f8/32.png) [@bluerfox15uht9](https://community.thunkable.com/u/bluerfox15uht9)
#### Post date: [February 25, 2021, 7:44pm UTC](https://community.thunkable.com/t/for-those-who-have-worked-with-ble/1110530/18 "2021-02-25T19:44:37Z")

</div>

should i just jam that entire thing in the uuid “transmi/recieve” block.

I’m not exactly sure what it wants. honestly, I don’t know.

---

<div class="post-metadata">

### Author: ![bluerfox15uht9](https://avatars.discourse-cdn.com/v4/letter/b/3be4f8/32.png) [@bluerfox15uht9](https://community.thunkable.com/u/bluerfox15uht9)
#### Post date: [March 3, 2021, 8:04pm UTC](https://community.thunkable.com/t/for-those-who-have-worked-with-ble/1110530/19 "2021-03-03T20:04:17Z")

</div>

any luck on this?

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [March 3, 2021, 8:08pm UTC](https://community.thunkable.com/t/for-those-who-have-worked-with-ble/1110530/20 "2021-03-03T20:08:34Z")

</div>

I’m waiting for my gadget to be delivered.

Deliveries to the middle east are not that quick but they arrive eventually. 😁

[Next page](https://community.thunkable.com/t/for-those-who-have-worked-with-ble/1110530.md?page=2)
