PHP Classes
elePHPant
Icontem

access to serial usb

Recommend this page to a friend!

      PHP Termux API  >  PHP Termux API package blog  >  How to Use Termux Tut...  >  All threads  >  access to serial usb  >  (Un) Subscribe thread alerts  
Subject:access to serial usb
Summary:communicate with arduino via termux + otg
Messages:4
Author:Francesco
Date:2017-02-15 10:18:34
 

  1. access to serial usb   Reply   Report abuse  
Francesco - 2017-02-15 10:18:34
I want to know if there's possibility to send o receive serial data from usb using termux. Notably i want to communicate with Arduino via usb/otg. Thanks in advance.

  2. Re: access to serial usb   Reply   Report abuse  
Manuel Lemos - 2017-02-15 11:11:42 - In reply to message 1 from Francesco
Good question. Well on Linux serial ports are under /dev/ttySx or something like that.

I am not sure if you would need to have root permissions or if some device needs to be mounted for sending and receiving data through USB.

You may want to look at this serial communication class to see how it works.

phpclasses.org/package/3679-PHP-Com ...

  3. Re: access to serial usb   Reply   Report abuse  
Francesco - 2017-02-15 12:58:58 - In reply to message 2 from Manuel Lemos
I think i must have root permission, but i don't find any confirmation about it. I'll buy an android device and try it. I hope it works :) .. thanks!

  4. Re: access to serial usb   Reply   Report abuse  
Luis Martinez Ulloa - 2017-02-15 18:01:59 - In reply to message 3 from Francesco
Francesco:
I hope it works easily too, because other apps in Android don't need to root the device (as another usb serial monitors almost there).

Good luck and thanks for your interest.