# How to pair 2 bleepeds together

**URL:** <https://bbs.aprbrother.com/t/how-to-pair-2-bleepeds-together/1166>\
**Category:** Arduino\
**Created:** [January 5, 2018, 8:49am UTC](https://bbs.aprbrother.com/t/how-to-pair-2-bleepeds-together/1166 "2018-01-05T08:49:31Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jaydon](https://bbs.aprbrother.com/letter_avatar_proxy/v4/letter/j/a88e4f/32.png) [@Jaydon](https://bbs.aprbrother.com/u/Jaydon)\
**Post date:** [January 5, 2018, 8:49am UTC](https://bbs.aprbrother.com/t/how-to-pair-2-bleepeds-together/1166/1 "2018-01-05T08:49:31Z")

</div>

Hi, can I know how to pair 2 blepad together and send data from one blepad to another one?  
I try to send data from the first blepad to the second one, but the second one cannot receive it. Please help me. Urgent.

---

<div class="post-metadata">

**Author:** ![aprilpea](https://bbs.aprbrother.com/user_avatar/bbs.aprbrother.com/aprilpea/32/9_2.png) [@aprilpea](https://bbs.aprbrother.com/u/aprilpea)\
**Post date:** [January 8, 2018, 2:03am UTC](https://bbs.aprbrother.com/t/how-to-pair-2-bleepeds-together/1166/2 "2018-01-08T02:03:54Z")

</div>

Hi,

Please test them these way

1. Flash BLEPad A with sketch [central](https://github.com/AprilBrother/BLEPad_UART/tree/master/examples/central).
2. Flash BLEPad B with sketch [atCommand](https://github.com/AprilBrother/BLEPad_UART/blob/master/examples/atCommand/atCommand.ino)
3. Put them together and wait about 10 seconds. View the serial monitor for logs

BLEPad A run in central role. It will scan peripheral BLEPad and try to connect it. BLEPad B run in peripheral role

---

<div class="post-metadata">

**Author:** ![Jaydon](https://bbs.aprbrother.com/letter_avatar_proxy/v4/letter/j/a88e4f/32.png) [@Jaydon](https://bbs.aprbrother.com/u/Jaydon)\
**Post date:** [January 8, 2018, 3:25am UTC](https://bbs.aprbrother.com/t/how-to-pair-2-bleepeds-together/1166/3 "2018-01-08T03:25:03Z")

</div>

will it auto connect every time? how about hj580 module? do the same thing?

---

<div class="post-metadata">

**Author:** ![aprilpea](https://bbs.aprbrother.com/user_avatar/bbs.aprbrother.com/aprilpea/32/9_2.png) [@aprilpea](https://bbs.aprbrother.com/u/aprilpea)\
**Post date:** [January 8, 2018, 3:27am UTC](https://bbs.aprbrother.com/t/how-to-pair-2-bleepeds-together/1166/4 "2018-01-08T03:27:48Z")

</div>

> will it auto connect every time?

Yes

> [@Jaydon](#):
>
> how about hj580 module? do the same thing?

It should do same thing. But I don’t know the full information about the module you bought. Could you please post the link where you bought it?

---

<div class="post-metadata">

**Author:** ![Jaydon](https://bbs.aprbrother.com/letter_avatar_proxy/v4/letter/j/a88e4f/32.png) [@Jaydon](https://bbs.aprbrother.com/u/Jaydon)\
**Post date:** [January 8, 2018, 3:34am UTC](https://bbs.aprbrother.com/t/how-to-pair-2-bleepeds-together/1166/5 "2018-01-08T03:34:15Z")

</div>

[https://www.aliexpress.com/item/HJ-580-minimum-BLE-serial-transmission-module-DA14580-5-6-2mm-ultra-low-power-consumption-Band/32722367290.html](https://www.aliexpress.com/item/HJ-580-minimum-BLE-serial-transmission-module-DA14580-5-6-2mm-ultra-low-power-consumption-Band/32722367290.html)

---

<div class="post-metadata">

**Author:** ![Jaydon](https://bbs.aprbrother.com/letter_avatar_proxy/v4/letter/j/a88e4f/32.png) [@Jaydon](https://bbs.aprbrother.com/u/Jaydon)\
**Post date:** [January 8, 2018, 3:44am UTC](https://bbs.aprbrother.com/t/how-to-pair-2-bleepeds-together/1166/6 "2018-01-08T03:44:52Z")

</div>

i connect the hj580 to arduino mega and upload the atcommand code to it, but it only show ? in the serial monitor

---

<div class="post-metadata">

**Author:** ![aprilpea](https://bbs.aprbrother.com/user_avatar/bbs.aprbrother.com/aprilpea/32/9_2.png) [@aprilpea](https://bbs.aprbrother.com/u/aprilpea)\
**Post date:** [January 8, 2018, 3:53am UTC](https://bbs.aprbrother.com/t/how-to-pair-2-bleepeds-together/1166/7 "2018-01-08T03:53:38Z")

</div>

I will try to get one piece of this module from local market. Could you please tell me what application you will make?

---

<div class="post-metadata">

**Author:** ![Jaydon](https://bbs.aprbrother.com/letter_avatar_proxy/v4/letter/j/a88e4f/32.png) [@Jaydon](https://bbs.aprbrother.com/u/Jaydon)\
**Post date:** [January 8, 2018, 3:56am UTC](https://bbs.aprbrother.com/t/how-to-pair-2-bleepeds-together/1166/8 "2018-01-08T03:56:02Z")

</div>

the hj580 i am using is actually exactly same as the one on the blepad, but i couldnt pair the hj580 with blepad.

---

<div class="post-metadata">

**Author:** ![aprilpea](https://bbs.aprbrother.com/user_avatar/bbs.aprbrother.com/aprilpea/32/9_2.png) [@aprilpea](https://bbs.aprbrother.com/u/aprilpea)\
**Post date:** [January 8, 2018, 3:57am UTC](https://bbs.aprbrother.com/t/how-to-pair-2-bleepeds-together/1166/9 "2018-01-08T03:57:43Z")

</div>

Have you tested pair two BLEPad? The firmware for them are difference maybe.

---

<div class="post-metadata">

**Author:** ![Jaydon](https://bbs.aprbrother.com/letter_avatar_proxy/v4/letter/j/a88e4f/32.png) [@Jaydon](https://bbs.aprbrother.com/u/Jaydon)\
**Post date:** [January 8, 2018, 4:03am UTC](https://bbs.aprbrother.com/t/how-to-pair-2-bleepeds-together/1166/10 "2018-01-08T04:03:55Z")

</div>

i have tested using 2 blepads, it ran through the AT command, but i think they are not pair up as i couldnt send message over

---

<div class="post-metadata">

**Author:** ![aprilpea](https://bbs.aprbrother.com/user_avatar/bbs.aprbrother.com/aprilpea/32/9_2.png) [@aprilpea](https://bbs.aprbrother.com/u/aprilpea)\
**Post date:** [January 8, 2018, 4:07am UTC](https://bbs.aprbrother.com/t/how-to-pair-2-bleepeds-together/1166/11 "2018-01-08T04:07:01Z")

</div>

One should run central code, another run AT command sketch. Did you flash sketch right?

---

<div class="post-metadata">

**Author:** ![Jaydon](https://bbs.aprbrother.com/letter_avatar_proxy/v4/letter/j/a88e4f/32.png) [@Jaydon](https://bbs.aprbrother.com/u/Jaydon)\
**Post date:** [January 8, 2018, 4:15am UTC](https://bbs.aprbrother.com/t/how-to-pair-2-bleepeds-together/1166/13 "2018-01-08T04:15:22Z")

</div>

yes i did, is there any way i can upload a screenshot to let u see my output?

---

<div class="post-metadata">

**Author:** ![aprilpea](https://bbs.aprbrother.com/user_avatar/bbs.aprbrother.com/aprilpea/32/9_2.png) [@aprilpea](https://bbs.aprbrother.com/u/aprilpea)\
**Post date:** [January 8, 2018, 4:16am UTC](https://bbs.aprbrother.com/t/how-to-pair-2-bleepeds-together/1166/14 "2018-01-08T04:16:17Z")

</div>

You can upload screenshot to imgur or flickr.

---

<div class="post-metadata">

**Author:** ![Jaydon](https://bbs.aprbrother.com/letter_avatar_proxy/v4/letter/j/a88e4f/32.png) [@Jaydon](https://bbs.aprbrother.com/u/Jaydon)\
**Post date:** [January 8, 2018, 4:25am UTC](https://bbs.aprbrother.com/t/how-to-pair-2-bleepeds-together/1166/15 "2018-01-08T04:25:40Z")

</div>

Blepad [https://imgur.com/gallery/IchV0](https://imgur.com/gallery/IchV0)

These are my outputs  
First picture is the slave one  
Second is central

---

<div class="post-metadata">

**Author:** ![aprilpea](https://bbs.aprbrother.com/user_avatar/bbs.aprbrother.com/aprilpea/32/9_2.png) [@aprilpea](https://bbs.aprbrother.com/u/aprilpea)\
**Post date:** [January 8, 2018, 6:13am UTC](https://bbs.aprbrother.com/t/how-to-pair-2-bleepeds-together/1166/16 "2018-01-08T06:13:06Z")

</div>

1. Please open the serial monitor for the central BLEPAD.
2. Type after you saw the word “OK”.

You can check the connection status for it. two response: `<CONNECTED>` or `<DISCONNECTED>`

---

<div class="post-metadata">

**Author:** ![Jaydon](https://bbs.aprbrother.com/letter_avatar_proxy/v4/letter/j/a88e4f/32.png) [@Jaydon](https://bbs.aprbrother.com/u/Jaydon)\
**Post date:** [January 8, 2018, 6:24am UTC](https://bbs.aprbrother.com/t/how-to-pair-2-bleepeds-together/1166/17 "2018-01-08T06:24:33Z")

</div>

it is now conncted, however i still cant send data from the central to the peripheral

---

<div class="post-metadata">

**Author:** ![Jaydon](https://bbs.aprbrother.com/letter_avatar_proxy/v4/letter/j/a88e4f/32.png) [@Jaydon](https://bbs.aprbrother.com/u/Jaydon)\
**Post date:** [January 8, 2018, 6:35am UTC](https://bbs.aprbrother.com/t/how-to-pair-2-bleepeds-together/1166/18 "2018-01-08T06:35:10Z")

</div>

i tried to send 123 from the central to the peripheral, the output of the central is " CONFIG MODE BUSY

---

<div class="post-metadata">

**Author:** ![aprilpea](https://bbs.aprbrother.com/user_avatar/bbs.aprbrother.com/aprilpea/32/9_2.png) [@aprilpea](https://bbs.aprbrother.com/u/aprilpea)\
**Post date:** [January 8, 2018, 6:42am UTC](https://bbs.aprbrother.com/t/how-to-pair-2-bleepeds-together/1166/19 "2018-01-08T06:42:52Z")

</div>

Wait central about 10 seconds. it will exit config mode soon. see [this line](https://github.com/AprilBrother/BLEPad_UART/blob/master/examples/central/central.ino#L50)

---

<div class="post-metadata">

**Author:** ![Jaydon](https://bbs.aprbrother.com/letter_avatar_proxy/v4/letter/j/a88e4f/32.png) [@Jaydon](https://bbs.aprbrother.com/u/Jaydon)\
**Post date:** [January 8, 2018, 7:05am UTC](https://bbs.aprbrother.com/t/how-to-pair-2-bleepeds-together/1166/20 "2018-01-08T07:05:25Z")

</div>

thanks! its working now.  
but blepad (central) with hj580(peripheral) still not working, i am unable to send AT command to the hj580 which is connected to a Mega

---

<div class="post-metadata">

**Author:** ![aprilpea](https://bbs.aprbrother.com/user_avatar/bbs.aprbrother.com/aprilpea/32/9_2.png) [@aprilpea](https://bbs.aprbrother.com/u/aprilpea)\
**Post date:** [January 8, 2018, 7:07am UTC](https://bbs.aprbrother.com/t/how-to-pair-2-bleepeds-together/1166/21 "2018-01-08T07:07:12Z")

</div>

What device name is the HJ580 module when you scan it with mobile? Is it HJ580X or HJ580?

[Next page](https://bbs.aprbrother.com/t/how-to-pair-2-bleepeds-together/1166.md?page=2)
