# Communication over laptop's Bluetooth

**URL:** https://discourse.processing.org/t/communication-over-laptops-bluetooth/14056
**Category:** Processing for Android
**Created:** [September 18, 2019, 8:33pm UTC](https://discourse.processing.org/t/communication-over-laptops-bluetooth/14056 "2019-09-18T20:33:54Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![Alex\_Pr](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@Alex\_Pr](https://discourse.processing.org/u/Alex_Pr)
#### Post date: [September 18, 2019, 8:33pm UTC](https://discourse.processing.org/t/communication-over-laptops-bluetooth/14056/1 "2019-09-18T20:33:54Z")

</div>

How can I send & receive data through the laptop’s bluetooth? For example, have an android sketch communicate with a java sketch (running on the laptop) over bluetooth? It’s fairly straightforward how to do the android side (with Ketai library), but how can I implement the PC side?

Note: I’m interested in using the laptop’s embedded Bluetooth. Not in any solutions involving 3rd party modules (i.e. arduino + Bluetooth module over Serial).

---

<div class="post-metadata">

### Author: ![damien.muti](https://avatars.discourse-cdn.com/v4/letter/d/aeb1de/32.png) [@damien.muti](https://discourse.processing.org/u/damien.muti)
#### Post date: [November 14, 2020, 6:01pm UTC](https://discourse.processing.org/t/communication-over-laptops-bluetooth/14056/2 "2020-11-14T18:01:10Z")

</div>

Hello Alex,  
I have the same problem to solve. So far, I have not found any library on classical processing that can help in Bluetooth communication on a laptop…  
I Think we have to check on JAVA API :

- [https://www.oracle.com/technical-resources/articles/javame/bluetooth-wireless-technology-part1.html](https://www.oracle.com/technical-resources/articles/javame/bluetooth-wireless-technology-part1.html)
- [https://www.oracle.com/technical-resources/articles/javame/bluetooth2.html](https://www.oracle.com/technical-resources/articles/javame/bluetooth2.html)

---

<div class="post-metadata">

### Author: ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)
#### Post date: [November 14, 2020, 6:40pm UTC](https://discourse.processing.org/t/communication-over-laptops-bluetooth/14056/3 "2020-11-14T18:40:31Z")

</div>

Maybe [this](https://www.hackster.io/victruino/proyecto-arduino-processing-bluetooth-hc-05-8039d6) will be of interest? Instead of Arduino code, use the Ketai library on Android.  
Let me know if you succeeded.

---

<div class="post-metadata">

### Author: ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)
#### Post date: [November 14, 2020, 7:04pm UTC](https://discourse.processing.org/t/communication-over-laptops-bluetooth/14056/4 "2020-11-14T19:04:32Z")

</div>

Hello,

You can use the [Bluetooth SPP](https://en.wikipedia.org/wiki/List_of_Bluetooth_profiles#Serial_Port_Profile_(SPP)).

I have done this with an app on my phone such as:  
[Bluetooth RGB](https://play.google.com/store/apps/details?id=nextprototypes.bluetoothtRGB&hl=en)

And also with an Arduino + HC05, an app written with [Ketai library](http://ketai.org/) for an Android device (phone and tablet) and across two PCs.

On the W10 PC side find “More Bluetooth Options” and set up a COM port:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/3/38410a0f5c9c2d6fd2e9d64f8705935a73f5385c.png)

You can then use the Processing serial library to communicate over the COM port:

> **[Serial \\ Libraries \\ Processing.org](https://processing.org/reference/libraries/serial/index.html)**

Processing does not know it is serial over Bluetooth, serial over USB or otherwise… it is just serial communication over a COM port.

`:)`

---

<div class="post-metadata">

### Author: ![damien.muti](https://avatars.discourse-cdn.com/v4/letter/d/aeb1de/32.png) [@damien.muti](https://discourse.processing.org/u/damien.muti)
#### Post date: [November 15, 2020, 11:37am UTC](https://discourse.processing.org/t/communication-over-laptops-bluetooth/14056/5 "2020-11-15T11:37:27Z")

</div>

Thank you Noel. I have already studied the Ketai library which is made for an Android device. In my case, I have to run my Processing sketch on a PC with Windows 10 or Linux…  
I was pretty sure the Ketai library won’t work in my case, but it seems that the next post from glv explains how to proceed.  
Tank’s anyway for your advice :-).

---

<div class="post-metadata">

### Author: ![damien.muti](https://avatars.discourse-cdn.com/v4/letter/d/aeb1de/32.png) [@damien.muti](https://discourse.processing.org/u/damien.muti)
#### Post date: [November 15, 2020, 11:41am UTC](https://discourse.processing.org/t/communication-over-laptops-bluetooth/14056/6 "2020-11-15T11:41:01Z")

</div>

OK Great ! I’m going to try asp !! Thank’s a lot 😉

---

<div class="post-metadata">

### Author: ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)
#### Post date: [November 15, 2020, 11:41am UTC](https://discourse.processing.org/t/communication-over-laptops-bluetooth/14056/7 "2020-11-15T11:41:13Z")

</div>

You don’t need to run the same library. Use Ketai on Android and Serial on PC

---

<div class="post-metadata">

### Author: ![damien.muti](https://avatars.discourse-cdn.com/v4/letter/d/aeb1de/32.png) [@damien.muti](https://discourse.processing.org/u/damien.muti)
#### Post date: [November 15, 2020, 1:22pm UTC](https://discourse.processing.org/t/communication-over-laptops-bluetooth/14056/8 "2020-11-15T13:22:51Z")

</div>

It works perfectly ;-)!!! Thanks. It is finally very easy ;-)…

---

<div class="post-metadata">

### Author: ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)
#### Post date: [November 15, 2020, 2:08pm UTC](https://discourse.processing.org/t/communication-over-laptops-bluetooth/14056/9 "2020-11-15T14:08:58Z")

</div>

Hello,

> [@damien.muti](#):
>
> It works perfectly ;-)!!! Thanks. It is finally very easy ;-)…

Great!

You have also inspired me to get back into programming my Android devices!

`:)`

---

<div class="post-metadata">

### Author: ![damien.muti](https://avatars.discourse-cdn.com/v4/letter/d/aeb1de/32.png) [@damien.muti](https://discourse.processing.org/u/damien.muti)
#### Post date: [November 15, 2020, 4:21pm UTC](https://discourse.processing.org/t/communication-over-laptops-bluetooth/14056/10 "2020-11-15T16:21:02Z")

</div>

Your very welcom :-)…

---

<div class="post-metadata">

### Author: ![Douhane](https://avatars.discourse-cdn.com/v4/letter/d/e79b87/32.png) [@Douhane](https://discourse.processing.org/u/Douhane)
#### Post date: [January 23, 2021, 10:01pm UTC](https://discourse.processing.org/t/communication-over-laptops-bluetooth/14056/12 "2021-01-23T22:01:21Z")

</div>

Please …comment tu as fait…moi j ai tien compris j arive pas a envoyer les donner visa bluetooth a arduino …poir allumer.mes leds
