# Receive data with HM-10 BLE module

**URL:** <https://community.thunkable.com/t/receive-data-with-hm-10-ble-module/133860>\
**Category:** Questions about Thunkable X\
**Created:** [July 6, 2019, 11:31am UTC](https://community.thunkable.com/t/receive-data-with-hm-10-ble-module/133860 "2019-07-06T11:31:45Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![takayoshi.koseki](https://avatars.discourse-cdn.com/v4/letter/t/7feea3/32.png) [@takayoshi.koseki](https://community.thunkable.com/u/takayoshi.koseki)\
**Post date:** [July 6, 2019, 11:31am UTC](https://community.thunkable.com/t/receive-data-with-hm-10-ble-module/133860/1 "2019-07-06T11:31:45Z")

</div>

I am currently doing a simple test to receive data from HM-10.  
However, it can not be received well and the characters of the received data will be garbled.  
The RN4020 BLE module can receive data without garbled characters.  
Please help me!🤣

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/7/f757f69f765ac9baa9917d16e53e0e677960e70e.jpeg)  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/4/54e54d43019cdaacb08c72877c2e788a3c84cb7e.png)

---

<div class="post-metadata">

**Author:** ![fabioirmao](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/fabioirmao/32/43097_2.png) [@fabioirmao](https://community.thunkable.com/u/fabioirmao)\
**Post date:** [July 6, 2019, 2:55pm UTC](https://community.thunkable.com/t/receive-data-with-hm-10-ble-module/133860/2 "2019-07-06T14:55:31Z")

</div>

Hi. Share you project…  
I Will help you

---

<div class="post-metadata">

**Author:** ![takayoshi.koseki](https://avatars.discourse-cdn.com/v4/letter/t/7feea3/32.png) [@takayoshi.koseki](https://community.thunkable.com/u/takayoshi.koseki)\
**Post date:** [July 6, 2019, 3:16pm UTC](https://community.thunkable.com/t/receive-data-with-hm-10-ble-module/133860/3 "2019-07-06T15:16:56Z")

</div>

Thank you very much!  
I can transmit without any problems in the tests I’ve done until now.  
I can not receive from the HM-10 BLE module.  
I tested it on Thunkable Classic to try it, but I was able to receive it.  
In Thunkable X I do not know how to do it.

---

<div class="post-metadata">

**Author:** ![CBVG](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/cbvg/32/32401_2.png) [@CBVG](https://community.thunkable.com/u/CBVG)\
**Post date:** [July 6, 2019, 4:12pm UTC](https://community.thunkable.com/t/receive-data-with-hm-10-ble-module/133860/4 "2019-07-06T16:12:24Z")

</div>

Do you consistently get the same “garbled” response?

Because it may not be garbled, it may simply be differently interpreted, by regrouping data to form multi-byte unicode characters.  
Try sending the NUMBER 12345 instead of a “12345” text string.

---

<div class="post-metadata">

**Author:** ![takayoshi.koseki](https://avatars.discourse-cdn.com/v4/letter/t/7feea3/32.png) [@takayoshi.koseki](https://community.thunkable.com/u/takayoshi.koseki)\
**Post date:** [July 6, 2019, 9:26pm UTC](https://community.thunkable.com/t/receive-data-with-hm-10-ble-module/133860/5 "2019-07-06T21:26:01Z")

</div>

When transmitting from “Thunkable X” to “HM-10”, text strings can be received with “HM-10”.  
When sending from “HM-10” to “Thunkable X” I always receive the same garbled reply.  
I tried to transmit numbers from “HM-10” instead of text strings, but the result did not change.  
Thank you for the advice.  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/a/6a8a5ecea915ca6ecf4671fad29d8e7c2a2900a4.png)

---

<div class="post-metadata">

**Author:** ![takayoshi.koseki](https://avatars.discourse-cdn.com/v4/letter/t/7feea3/32.png) [@takayoshi.koseki](https://community.thunkable.com/u/takayoshi.koseki)\
**Post date:** [July 6, 2019, 9:29pm UTC](https://community.thunkable.com/t/receive-data-with-hm-10-ble-module/133860/6 "2019-07-06T21:29:00Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/e/9e2d48f1f9d7c128945d417cbfee4be54baac641.png)

---

<div class="post-metadata">

**Author:** ![CBVG](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/cbvg/32/32401_2.png) [@CBVG](https://community.thunkable.com/u/CBVG)\
**Post date:** [July 6, 2019, 9:46pm UTC](https://community.thunkable.com/t/receive-data-with-hm-10-ble-module/133860/7 "2019-07-06T21:46:03Z")

</div>

Another thing perhaps worth checking.  
I notice that your receiving block is in a “Timer” block. What is controlling the firing of that timer?  
Is it firing continuously? And what is the millisecond interval setting?

I am wondering if you are not receiving _again_ AFTER the original, even when there is nothing transmitted anymore.

---

<div class="post-metadata">

**Author:** ![takayoshi.koseki](https://avatars.discourse-cdn.com/v4/letter/t/7feea3/32.png) [@takayoshi.koseki](https://community.thunkable.com/u/takayoshi.koseki)\
**Post date:** [July 6, 2019, 9:58pm UTC](https://community.thunkable.com/t/receive-data-with-hm-10-ble-module/133860/8 "2019-07-06T21:58:15Z")

</div>

The timer has an interval of 500 ms.  
I need to constantly monitor the incoming data from “HM-10”.  
I also tried to receive when I pressed the button I thought the timer was a problem, but it was the same.  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/7/371b471a514f8487ae4e7b79a51bbb49b73757ae.png)

---

<div class="post-metadata">

**Author:** ![takayoshi.koseki](https://avatars.discourse-cdn.com/v4/letter/t/7feea3/32.png) [@takayoshi.koseki](https://community.thunkable.com/u/takayoshi.koseki)\
**Post date:** [July 6, 2019, 10:36pm UTC](https://community.thunkable.com/t/receive-data-with-hm-10-ble-module/133860/9 "2019-07-06T22:36:52Z")

</div>

If you do the same thing with Microchip RN4020, I can receive the expected string normally.  
It may be a problem specific to HM-10.  
However, there is a question that “Thunkable Classic” can receive but “Thunkable X” can not receive.  
I will investigate further.  
Thank you!

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/6/b644020e144e6a0e20f0a3e4944771e1b49d57bb.jpeg)

---

<div class="post-metadata">

**Author:** ![junliaw](https://avatars.discourse-cdn.com/v4/letter/j/bc79bd/32.png) [@junliaw](https://community.thunkable.com/u/junliaw)\
**Post date:** [August 25, 2019, 6:43am UTC](https://community.thunkable.com/t/receive-data-with-hm-10-ble-module/133860/10 "2019-08-25T06:43:47Z")

</div>

hi, i have the same issue too. i cannot receive data from BLE but can transmit data to other device thru BLE. herebelow pls find my project link, thank you.  
[https://x.thunkable.com/projects/5d52a1fa0280c71ff075b3ef/1003e16b-10f4-4612-8f01-bc2a82f2ce40/blocks](https://x.thunkable.com/projects/5d52a1fa0280c71ff075b3ef/1003e16b-10f4-4612-8f01-bc2a82f2ce40/blocks)

---

<div class="post-metadata">

**Author:** ![glyndacalazanswnh8](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/glyndacalazanswnh8/32/43344_2.png) [@glyndacalazanswnh8](https://community.thunkable.com/u/glyndacalazanswnh8)\
**Post date:** [September 7, 2019, 10:03pm UTC](https://community.thunkable.com/t/receive-data-with-hm-10-ble-module/133860/11 "2019-09-07T22:03:03Z")

</div>

Did someone find a solution?

---

<div class="post-metadata">

**Author:** ![kufirre](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kufirre/32/45596_2.png) [@kufirre](https://community.thunkable.com/u/kufirre)\
**Post date:** [September 17, 2019, 5:06am UTC](https://community.thunkable.com/t/receive-data-with-hm-10-ble-module/133860/12 "2019-09-17T05:06:34Z")

</div>

I have the same problem with the HM10 module. It sends ok, but doesn’t receive. I have tried a COUPLE of things, but still doesn’t work. Thunkable X app doesn’t receive at all.

Here’s a link to my project:  
[https://x.thunkable.com/projects/5d7ecfd3383d27e29c8dde2b/b3231b63-7d98-4d05-a8b0-837f4ec8160b/blocks](https://x.thunkable.com/projects/5d7ecfd3383d27e29c8dde2b/b3231b63-7d98-4d05-a8b0-837f4ec8160b/blocks)

---

<div class="post-metadata">

**Author:** ![samjikassim](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@samjikassim](https://community.thunkable.com/u/samjikassim)\
**Post date:** [November 19, 2019, 11:12am UTC](https://community.thunkable.com/t/receive-data-with-hm-10-ble-module/133860/13 "2019-11-19T11:12:41Z")

</div>

hello, same problem here

BLE on x-app won’t receive at all

---

<div class="post-metadata">

**Author:** ![MartinP](https://avatars.discourse-cdn.com/v4/letter/m/ea666f/32.png) [@MartinP](https://community.thunkable.com/u/MartinP)\
**Post date:** [December 4, 2019, 9:39pm UTC](https://community.thunkable.com/t/receive-data-with-hm-10-ble-module/133860/14 "2019-12-04T21:39:50Z")

</div>

Similar problem for me.  
I get this error in output for the BLE component:

> can’t read the characteristic provided

I connect via `device name` then use `Characteristic UUID` to receive info via `Call Receive`. The info is `float 4 byte`: like 25.000000. When I try to set data my app receives to a label I get `undefined`.  
@domhnallohanlon Any ideas what is wrong?

UPD:  
My problem is related to Thunkable: it converts a `float` or an `integer` it receives to a `string`. In my case sending `integer` 50 is received as `string` “2” at Thunkable app.

---

<div class="post-metadata">

**Author:** ![H\_i\_CH\_n\_Nguy\_n](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/h_i_ch_n_nguy_n/32/66655_2.png) [@H\_i\_CH\_n\_Nguy\_n](https://community.thunkable.com/u/H_i_CH_n_Nguy_n)\
**Post date:** [February 3, 2020, 3:46am UTC](https://community.thunkable.com/t/receive-data-with-hm-10-ble-module/133860/15 "2020-02-03T03:46:53Z")

</div>

@takayoshi.koseki i am doing the same thing with your project that use a rn4020 (with arduino uno r3) to send data to thunkable x app. Can you show me your arduino code , i really need it. Special thank in advance.

---

<div class="post-metadata">

**Author:** ![H\_i\_CH\_n\_Nguy\_n](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/h_i_ch_n_nguy_n/32/66655_2.png) [@H\_i\_CH\_n\_Nguy\_n](https://community.thunkable.com/u/H_i_CH_n_Nguy_n)\
**Post date:** [February 3, 2020, 3:53am UTC](https://community.thunkable.com/t/receive-data-with-hm-10-ble-module/133860/16 "2020-02-03T03:53:13Z")

</div>

Another question: can you show me how to get the uuid of rn4020. I used the lightblue app but it didnt work. Please help me.  
Thank you 3000 🙂

---

<div class="post-metadata">

**Author:** ![plexizoom](https://avatars.discourse-cdn.com/v4/letter/p/b5a626/32.png) [@plexizoom](https://community.thunkable.com/u/plexizoom)\
**Post date:** [February 29, 2020, 6:03am UTC](https://community.thunkable.com/t/receive-data-with-hm-10-ble-module/133860/17 "2020-02-29T06:03:40Z")

</div>

any update on this?  
I have same issue with BGX13 module  
I can send but not receive .  
thank you.

---

<div class="post-metadata">

**Author:** ![slidethc](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/slidethc/32/55603_2.png) [@slidethc](https://community.thunkable.com/u/slidethc)\
**Post date:** [March 10, 2020, 4:08pm UTC](https://community.thunkable.com/t/receive-data-with-hm-10-ble-module/133860/18 "2020-03-10T16:08:37Z")

</div>

Nah, they don’t care about this problem.

---

<div class="post-metadata">

**Author:** ![gbcosta96p8mqb](https://avatars.discourse-cdn.com/v4/letter/g/ecc23a/32.png) [@gbcosta96p8mqb](https://community.thunkable.com/u/gbcosta96p8mqb)\
**Post date:** [June 5, 2020, 8:19pm UTC](https://community.thunkable.com/t/receive-data-with-hm-10-ble-module/133860/19 "2020-06-05T20:19:44Z")

</div>

Same problem here. But I get this garbled data even if the module is not sending anything.

Any update on this?

---

<div class="post-metadata">

**Author:** ![delaram8009wn4e](https://avatars.discourse-cdn.com/v4/letter/d/aca169/32.png) [@delaram8009wn4e](https://community.thunkable.com/u/delaram8009wn4e)\
**Post date:** [September 1, 2020, 8:38am UTC](https://community.thunkable.com/t/receive-data-with-hm-10-ble-module/133860/20 "2020-09-01T08:38:14Z")

</div>

Same Problem with nRF52832. I receive garbled data when using receive string but when I change it to receive byte array I get the below error:

n is not a function. (In ‘n(void 0,I.t0.message)’,'n’in undefined

my data is in hex format so I should use byte array but I don’t know how to fix the error.

[Next page](https://community.thunkable.com/t/receive-data-with-hm-10-ble-module/133860.md?page=2)
