Android Question Seriallibjab on Cubietruck ???

Discussion in 'Android Questions' started by Pietro Pancino, Mar 21, 2016.

  1. Pietro Pancino

    Pietro Pancino Member Licensed User

    Hi Herel,

    I worked around to make a uart based communication beetween a cubiebord2 running android and a PC.
    There is a connector with TX and RX uart pin refering to /dev/ttyS0.
    On Terminal I configure the ttys0 to read/write using :
    su
    chmod 777 /dev/ttyS0

    It's working well from the cubie to the PC, but the reception of data from the pc seem to be corrupted. In fact Android is using this serial port as console uart, and data are probably grabbed by the system.
    So I have two questions:
    Is it possible to send the SU and chmod commands directly from B4A (configuration is lost after reboot)?
    Do you know, if it's possible to force android to don't use ttyS0 as console using a command or editing a bash file?

    Waiting for reading you...

    :) Pietro
     

    Attached Files:

  2. Erel

    Erel Administrator Staff Member Licensed User

    This is a community forum. Please don't limit your questions to a single member.
     
  3. Pietro Pancino

    Pietro Pancino Member Licensed User

    Sorry ! So Hi everybody :)
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    You can use Phone.Shell to run these commands.
    I don't know.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice