# No serial library Processing for smartphone. Help

**URL:** <https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870>\
**Category:** Processing for Android\
**Created:** [May 5, 2021, 9:34am UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870 "2021-05-05T09:34:04Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZENAR57](https://avatars.discourse-cdn.com/v4/letter/z/a698b9/32.png) [@ZENAR57](https://discourse.processing.org/u/ZENAR57)\
**Post date:** [May 5, 2021, 9:34am UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/1 "2021-05-05T09:34:04Z")

</div>

Hello. Help with the Serial Library for APDE Processing. On the smartphone, I can not find anywhere and connect the zip file. Therefore, an error in the line -import processing.Serial. \*;

When binding to the Arduino and Smartphone serial interface (APDE Processing), there is no SERIAL library for the processing smartphone. In Processing for a computer, it is. (built-in), do not even connect, but for Android I can not find anywhere for a long time. Maybe someone knows, or how to get around it with other libraries, then what?

Because of the lack of this library, all communication examples written by Processing for a computer do not work in Processing for a smartphone.

Maybe someone knows, or tell me where to read?  
Thank you.

---

<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:** [May 5, 2021, 10:24am UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/2 "2021-05-05T10:24:37Z")

</div>

Hello,

Some related posts:

- [APDE ketai example](https://discourse.processing.org/t/apde-ketai-example/27133)

- [Android Bluetooth to Arduino and vice versa](https://discourse.processing.org/t/android-bluetooth-to-arduino-and-vice-versa/26578)

- [Communication over laptop's Bluetooth - #7 by noel](https://discourse.processing.org/t/communication-over-laptops-bluetooth/14056/7)

There are many posts on this subject! Find what suits you.

Search through some of the posts from @noel and others here.

Just enough to get you started…

`:)`

---

<div class="post-metadata">

**Author:** ![ZENAR57](https://avatars.discourse-cdn.com/v4/letter/z/a698b9/32.png) [@ZENAR57](https://discourse.processing.org/u/ZENAR57)\
**Post date:** [May 5, 2021, 10:45am UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/3 "2021-05-05T10:45:55Z")

</div>

thanks, I will study.  
(but i don’t have bluetooth, only OTG USB)  
And what, just the serial.zip library does not exist in nature, in order to transfer the code without editing and correcting?

---

<div class="post-metadata">

**Author:** ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)\
**Post date:** [May 5, 2021, 12:24pm UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/4 "2021-05-05T12:24:21Z")

</div>

> [@ZENAR57](#):
>
> (but i don’t have bluetooth, only OTG USB)

your smart phone already has bluetooth

---

<div class="post-metadata">

**Author:** ![ZENAR57](https://avatars.discourse-cdn.com/v4/letter/z/a698b9/32.png) [@ZENAR57](https://discourse.processing.org/u/ZENAR57)\
**Post date:** [May 5, 2021, 12:52pm UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/5 "2021-05-05T12:52:49Z")

</div>

🙂  
On the second device, no.  
OTG-USB-UART \<-\> UARTH-USB-OTG  
There is no bluetooth and will not be.

---

<div class="post-metadata">

**Author:** ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)\
**Post date:** [May 5, 2021, 12:54pm UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/6 "2021-05-05T12:54:46Z")

</div>

> [@ZENAR57](#):
>
> On the second device, no.

what is it ? \>\>\>\>\>\>\>\>\>\>

---

<div class="post-metadata">

**Author:** ![ZENAR57](https://avatars.discourse-cdn.com/v4/letter/z/a698b9/32.png) [@ZENAR57](https://discourse.processing.org/u/ZENAR57)\
**Post date:** [May 5, 2021, 12:59pm UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/7 "2021-05-05T12:59:07Z")

</div>

Atmel Tiny  
And PIC microcontroller.

---

<div class="post-metadata">

**Author:** ![ZENAR57](https://avatars.discourse-cdn.com/v4/letter/z/a698b9/32.png) [@ZENAR57](https://discourse.processing.org/u/ZENAR57)\
**Post date:** [May 5, 2021, 10:41pm UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/8 "2021-05-05T22:41:15Z")

</div>

> [@jafal](#):
>
> what is it ?

 ![IMG_20210506_013911](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/9/9767da37afa2c75dfe342e908f6b45c8ad4f27f1.jpeg)

---

<div class="post-metadata">

**Author:** ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)\
**Post date:** [May 5, 2021, 11:13pm UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/9 "2021-05-05T23:13:13Z")

</div>

this is the usb connection ic  
 ![learn_arduino_atmega8u2](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/0/022d47166d237ba64a6872634962796124c9b567.jpeg)

---

<div class="post-metadata">

**Author:** ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)\
**Post date:** [May 5, 2021, 11:15pm UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/10 "2021-05-05T23:15:37Z")

</div>

but you can add Bluetooth for Arduino if you desire i can guide how to if you like

---

<div class="post-metadata">

**Author:** ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)\
**Post date:** [May 5, 2021, 11:23pm UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/11 "2021-05-05T23:23:17Z")

</div>

this is how to connect Bluetooth to Arduino i can walk more with you if you want to use it

 ![103151805-28179a00-4760-11eb-9139-fdabf51894ba](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/3/37f5e38dec55f18e1673f3f23faddf5fe56a469c.png)

> **[EmmanuelPil/Android-java-code-utilities-widgets-for-Processing-for-Android](https://github.com/EmmanuelPil/Android-java-code-utilities-widgets-for-Processing-for-Android)**
>
> Android code for Processing for Android. Contribute to EmmanuelPil/Android-java-code-utilities-widgets-for-Processing-for-Android development by creating an account on GitHub.

[noel](https://discourse.processing.org/u/noel)

[Dec '20](https://discourse.processing.org/t/android-bluetooth-to-arduino-and-vice-versa/26578/2)

Hi, @jafal See the first file [here](https://github.com/EmmanuelPil/Android-java-code-utilities-widgets-for-Processing-for-Android) for an example. The setup wiring image you can find in the README.

---

<div class="post-metadata">

**Author:** ![ZENAR57](https://avatars.discourse-cdn.com/v4/letter/z/a698b9/32.png) [@ZENAR57](https://discourse.processing.org/u/ZENAR57)\
**Post date:** [May 5, 2021, 11:55pm UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/12 "2021-05-05T23:55:57Z")

</div>

arduino is for example.  
to make it clear.  
there is no question about connecting additional peripherals, this is impossible. question about simple old communication serial UART RX TX 2400, 4800, 9600, 19200, 33600,56000 … for processing-android APDE for smartphones and tablets.

 ![PL2303-UART-Module-Overview](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/1/18270d9fc520cacc70e283e657d6ee3d365fb2b6.jpeg)  
 ![IMG_20201106_155202](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/5/520b7d42b58d7bc27a670eb8cebedf8a7e54a3a5.jpeg)  
 ![Screenshot_20210506_023808](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/8/8be4236baa2a428b7730fd3a5d21a05bcc92833e.jpeg)  
 ![6a06ab1s-960](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/d/d0eb4cd74221e3c26ccc050b65209fdbb0f23e64.jpeg)

---

<div class="post-metadata">

**Author:** ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)\
**Post date:** [May 6, 2021, 12:11am UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/13 "2021-05-06T00:11:02Z")

</div>

same as arduino you can add bluetooth

 ![Bluetooth-module-HC-05-interfacing-with-pic16f877a-microcontroller](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/9/92ca5c75b4798e85e5b093cd2ed669af6e4d7d25.png)

---

<div class="post-metadata">

**Author:** ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)\
**Post date:** [May 6, 2021, 12:49am UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/14 "2021-05-06T00:49:49Z")

</div>

just replace this with Bluetooth module then you can go throw with android Bluetooth

 ![PL2303-UART-Module-Overview](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/1/18270d9fc520cacc70e283e657d6ee3d365fb2b6.jpeg)

---

<div class="post-metadata">

**Author:** ![ZENAR57](https://avatars.discourse-cdn.com/v4/letter/z/a698b9/32.png) [@ZENAR57](https://discourse.processing.org/u/ZENAR57)\
**Post date:** [May 6, 2021, 9:49am UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/15 "2021-05-06T09:49:14Z")

</div>

I’m trying to modernize a little old working systems that have been working for a long time  
**There is no way to add a body kit and make changes to the software of the microcontrollers.**  
everything has been around for a long time and works great with old computers.  
TINY2313 UART\<-\>RS232 PC (9 or 25pin connector)

 ![IMG_20210506_115006](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/1/161da4866bbfb121369abbf3b50077150b89c40b.jpeg)

I need to dump old computers and replace them with tablets or smartphones. this requires the serial library android-processing APDE  
Help mе with standart serial library for processing-android APDE. I searched the entire internet.

 ![symbols_over_mouth_animated_sticker](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/c/c7018c02280c36a2d44a0cd11f658e58633aebd9.gif)

I looked at the forum, I see that you and others help people a lot, give many examples on the serial port too, but I did not find any for a smartphone, all examples are ONLY for a computer.

---

<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:** [May 6, 2021, 10:14am UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/16 "2021-05-06T10:14:33Z")

</div>

Hello,

I came across these:

- [GitHub - mik3y/usb-serial-for-android: Android USB host serial driver library for CDC, FTDI, Arduino and other devices.](https://github.com/mik3y/usb-serial-for-android)
- [GitHub - inventit/processing-android-serial: Android Serial Library for Processing](https://github.com/inventit/processing-android-serial)

You could also do this:  
Android to PC or RPI (BlueTooth)  
PC or RPI to Arduino (Serial)

A bit more complicated but you could make it work.

I also have a lot of old hardware and make use of my old RPIs sometimes.

`:)`

---

<div class="post-metadata">

**Author:** ![ZENAR57](https://avatars.discourse-cdn.com/v4/letter/z/a698b9/32.png) [@ZENAR57](https://discourse.processing.org/u/ZENAR57)\
**Post date:** [May 6, 2021, 10:40am UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/17 "2021-05-06T10:40:40Z")

</div>

> [@glv](#):
>
> I came across these:

I found these libraries too, but having problems. I gave a screen with an error in a duplicate (sorry) topic.  
Have you actually started serial data transfer using these libraries in practice?  
If yes, then there are only 10-20 lines of code, could you put them here for an example. I’m a weak programmer, it’s hard for me to deal with a broken library and errors.

---

<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:** [May 6, 2021, 10:47am UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/18 "2021-05-06T10:47:33Z")

</div>

> [@ZENAR57](#):
>
> Have you actually started serial data transfer using these libraries in practice?

I generally prefer to test out libraries and code before sharing but I have not tested either of these.

An Android to PC\Arduino direct serial connection is on my _to do_ list.

One day…

`:)`

---

<div class="post-metadata">

**Author:** ![ZENAR57](https://avatars.discourse-cdn.com/v4/letter/z/a698b9/32.png) [@ZENAR57](https://discourse.processing.org/u/ZENAR57)\
**Post date:** [May 6, 2021, 10:58am UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/19 "2021-05-06T10:58:26Z")

</div>

![thank_you](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/3/34fe6dfbb5b9ca18529c11cea0b49f72cb1f17d5.gif)

---

<div class="post-metadata">

**Author:** ![paulgoux](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Post date:** [May 6, 2021, 8:48pm UTC](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870/20 "2021-05-06T20:48:01Z")

</div>

you would probably have to make use of a java original library.

I cannot test for now as I do not have an arduino, perhaps others might be able to help

[https://fazecast.github.io/jSerialComm/](https://fazecast.github.io/jSerialComm/)

[Next page](https://discourse.processing.org/t/no-serial-library-processing-for-smartphone-help/29870.md?page=2)
