# APDE USB / OTG communication

**URL:** <https://discourse.processing.org/t/apde-usb-otg-communication/30114>\
**Category:** Processing for Android\
**Created:** [May 16, 2021, 12:13am UTC](https://discourse.processing.org/t/apde-usb-otg-communication/30114 "2021-05-16T00:13:07Z")\
**Posts on this page:** 20\
**Page:** 4

<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 21, 2021, 8:55pm UTC](https://discourse.processing.org/t/apde-usb-otg-communication/30114/61 "2021-05-21T20:55:03Z")

</div>

> [@ZENAR57](#):
>
> -glv- wrote that he also did it on the phone. but he did not indicate which library he was using

Hello,

I updated my post above:  
_[APDE USB / OTG communication - #24 by glv](https://discourse.processing.org/t/apde-usb-otg-communication/30114/24)_

`:)`

---

<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 21, 2021, 9:03pm UTC](https://discourse.processing.org/t/apde-usb-otg-communication/30114/62 "2021-05-21T21:03:19Z")

</div>

> [@jafal](#):
>
> what is the serial driver chip or your Arduino ?

 ![IMG_20210522_000131](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/5/5dfc13c50fc725d4e9d952cd6da4bda2ed3962e7.jpeg)  
 ![Screenshot_20210522_000109](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/1/13b807723c119ce3f6d488a7a0d29ca76e15e2c7.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 21, 2021, 9:07pm UTC](https://discourse.processing.org/t/apde-usb-otg-communication/30114/63 "2021-05-21T21:07:34Z")

</div>

@glv  
@jafal  
Thanks.  
I will check everything within 90 ± 30 minutes.

---

<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 21, 2021, 9:44pm UTC](https://discourse.processing.org/t/apde-usb-otg-communication/30114/64 "2021-05-21T21:44:33Z")

</div>

ch340 the cloned chicness Arduino i have one did not check if  
it is work or not i used the original with atmega 16 driver

i am going to check ch340 if it work or not

---

<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 21, 2021, 10:12pm UTC](https://discourse.processing.org/t/apde-usb-otg-communication/30114/65 "2021-05-21T22:12:17Z")

</div>

Sorry.  
Chick- I have a translation of a young hen. is it possible to replace this word with another? writes me that you are trying to kill a young hen. can’t grasp the meaning of the message. 🤔

---

<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 21, 2021, 10:14pm UTC](https://discourse.processing.org/t/apde-usb-otg-communication/30114/66 "2021-05-21T22:14:51Z")

</div>

> [@jafal](#):
>
> ch340 the cloned chicness Arduino

i did not try it i am using Arduino with atmega16 serial

check not chick i was wrong

---

<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 21, 2021, 10:25pm UTC](https://discourse.processing.org/t/apde-usb-otg-communication/30114/67 "2021-05-21T22:25:52Z")

</div>

Ok. I realized. difficulties arose with both libraries. this hour I will write in detail,  
I have little experience in installing libraries. Only automatically-zip and manually dfx.  
but in both cases, the archive must have a “libraries” directory, which must contain the core library files with the .jar extension.  
The libraries you referenced do not contain this “libraries” directory and there are no .jar files.  
Don’t know how to install them on APDE.  
please give instructions.

---

<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 21, 2021, 10:27pm UTC](https://discourse.processing.org/t/apde-usb-otg-communication/30114/68 "2021-05-21T22:27:18Z")

</div>

> [@ZENAR57](#):
>
> automatically-zip

not working with 5,1 as i think

---

<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 21, 2021, 10:31pm UTC](https://discourse.processing.org/t/apde-usb-otg-communication/30114/69 "2021-05-21T22:31:42Z")

</div>

so what, you can put it manually through dfx.but there is no directory and no files .jar

---

<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 21, 2021, 10:34pm UTC](https://discourse.processing.org/t/apde-usb-otg-communication/30114/70 "2021-05-21T22:34:16Z")

</div>

And how did you put them @glv ? He used 5.1 alpha

---

<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 21, 2021, 10:37pm UTC](https://discourse.processing.org/t/apde-usb-otg-communication/30114/71 "2021-05-21T22:37:28Z")

</div>

Usually I follow this procedure

1. If the library is in a ZIP or other type of compressed file, then extract it.
2. Copy the extracted folder to the libraries folder in the Sketchbook folder and rename it to the desired name of the library., e.g. “path/to/Sketchbook/libraries/Ketai/”.
3. Ensure that the library JAR file is located in the “library” folder in the library’s folder with the same name as the enclosing folder, e.g. “Ketai/library/Ketai.jar”. Copy any additional JAR files to this folder.
4. Optionally, ensure that the library’s examples are located in the “examples” folder in the library’s folder, e.g. “Ketai/examples/”.
5. Optionally, ensure that the “library.properties” file is located at the root of the library’s folder, e.g. “Ketai/library.properties”.
6. Create a new folder at the same level as the “library” folder with the name “library-dex”, e.g. “Ketai/library-dex/”.
7. Open APDE and navigate to (action overflow) \> Tools \> Import Library \> Manage Libraries \> (action overflow) \> DX Dexer. Note: The library should already appear in the list, but it has not been fully installed yet.
8. In the “Input File” text box, enter the path to the library JAR file, e.g. “path/to/Sketchbook/libraries/Ketai/library/Ketai.jar”. You may use the file select button to aid in locating this file.
9. In the “Output File” text box, enter the same path as above, but change the “library” folder to “library-dex” and change the library JAR file to " _libraryName_ -dex.jar", e.g. “path/to/Sketchbook/libraries/Ketai/library-dex/Ketai-dex.jar”.
10. Press the “Dex” button. Wait for the dexing process to complete.
11. Repeat steps 7 through 10 for any additional library JAR files.
12. When the dialog closes, the library has been fully installed. It will now be automatically added to any sketch with the import statements at the top.

![](https://github.githubassets.com/favicons/favicon.svg)[github.com](https://github.com/Calsign/APDE/wiki/Installing-Contributed-Libraries#installation-steps-1)

![](https://opengraph.githubassets.com/a77b120f7135274c9bf30af16d0b65cfa108171a98e580448307eef64db932f0/Calsign/APDE)

### [Calsign/APDE - Installation Steps](https://github.com/Calsign/APDE/wiki/Installing-Contributed-Libraries#installation-steps-1)

[Installing-Contributed-Libraries](https://github.com/Calsign/APDE/wiki/Installing-Contributed-Libraries#installation-steps-1)

Source code for APDE: Create and run Processing sketches on an Android device.

---

<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 21, 2021, 10:39pm UTC](https://discourse.processing.org/t/apde-usb-otg-communication/30114/72 "2021-05-21T22:39:41Z")

</div>

I’ve read it 100 times! I’ll send you a picture now.

---

<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 21, 2021, 10:42pm UTC](https://discourse.processing.org/t/apde-usb-otg-communication/30114/73 "2021-05-21T22:42:11Z")

</div>

![Screenshot_20210522_014012_com.ghisler.android.TotalCommander](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/4/4031abf0975080054e8f9ac6e3e7a792f1325789.jpeg)  
 ![Screenshot_20210522_014001_com.ghisler.android.TotalCommander](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/a/aee73d4aa5aa6a75a2d32015621c72e9f1c27016.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 21, 2021, 10:45pm UTC](https://discourse.processing.org/t/apde-usb-otg-communication/30114/74 "2021-05-21T22:45:11Z")

</div>

![Screenshot_20210522_014426](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/9/9e8b117d4ca5e26b67344ceae737595b548091d7.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 21, 2021, 10:45pm UTC](https://discourse.processing.org/t/apde-usb-otg-communication/30114/75 "2021-05-21T22:45:57Z")

</div>

i could not import it i am using the alpha reals the one you posted up

---

<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 21, 2021, 10:52pm UTC](https://discourse.processing.org/t/apde-usb-otg-communication/30114/76 "2021-05-21T22:52:47Z")

</div>

> [@jafal](#):
>
> alpha reals

did it work?  
.  
.  
.  
Did you advise me libraries that you yourself could not install?

---

<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 21, 2021, 10:52pm UTC](https://discourse.processing.org/t/apde-usb-otg-communication/30114/77 "2021-05-21T22:52:53Z")

</div>

you have a complete run sketch as you reach this

 ![Screenshot_20210521_191432](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/a/ac5d194bc059990e28eb360781efecb10da3c8f4.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 21, 2021, 10:55pm UTC](https://discourse.processing.org/t/apde-usb-otg-communication/30114/78 "2021-05-21T22:55:21Z")

</div>

> [@jafal](#):
>
> you have a complete run sketch as you reach this

Do you want to know how I did it?

---

<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 21, 2021, 10:55pm UTC](https://discourse.processing.org/t/apde-usb-otg-communication/30114/79 "2021-05-21T22:55:23Z")

</div>

> [@ZENAR57](#):
>
> did it work?  
> .  
> .  
> .  
> Did you advise me libraries that you yourself could not install?

i am not advise you i am informing you what run with me using Android mode

---

<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 21, 2021, 10:57pm UTC](https://discourse.processing.org/t/apde-usb-otg-communication/30114/80 "2021-05-21T22:57:03Z")

</div>

> [@ZENAR57](#):
>
> Do you want to know how I did it?

yes in details and step by step because it is working sketch

[Previous page](https://discourse.processing.org/t/apde-usb-otg-communication/30114.md?page=3)

[Next page](https://discourse.processing.org/t/apde-usb-otg-communication/30114.md?page=5)
