0

USB to serial cable not working in Android of Things
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

USB to serial cable not working in Android of Things

by BALAJIBABU on Sat Jul 15, 2017 12:45 am

Hi , I purchased https://www.adafruit.com/product/954 USB to TTL Serial Cable

Android of things raspberry pi 3 - Serial cable not working

Note: https://www.adafruit.com/product/954

Host PC : -> Device Manager:Silicon Labs CP210x USB to UART Bridge (COM3)

Error message
Code: Select all | TOGGLE FULL SIZE
dmesg log:
[   11.448762] init: write_file: Unable to open '/sys/kernel/debug/tracing/traci
ng_on': No such file or directory
[   11.449714] init: Starting service 'console'...
[   11.450597] init: Starting service 'adbd'...
[   11.451900] init: cannot find '/system/bin/update_verifier' (No such file or
directory), disabling 'exec 4 (/system/bin/update_verifier)'
[   11.451978] init: cannot find '/system/bin/install-recovery.sh' (No such file
 or directory), disabling 'flash_recovery'
[   11.452587] init: Starting service 'zygote'...
[   11.454129] init: Starting service 'audioserver'...
[   11.455709] init: Starting service 'cameraserver'...
[   11.457318] init: Starting service 'drm'...
[   11.458778] init: Starting service 'installd'...
[   11.460201] init: Starting service 'keystore'...
[   11.461722] init: Starting service 'mediacodec'...
[   11.463255] init: Starting service 'mediadrm'...
[   11.464823] init: Starting service 'mediaextractor'...
[   11.466329] init: Starting service 'media'...
[   11.467839] init: Starting service 'netd'...
[   11.469413] init: Starting service 'peripheralman'...
[   11.470848] init: Starting service 'crash_reporter'...
[   11.472310] init: Starting service 'crash_sender'...
[   11.474140] init: Starting service 'gatekeeperd'...
[   11.475895] init: Starting service 'inputdriverserv'...
[   11.477504] init: Starting service 'metricscollector'...
[   11.479265] init: Starting service 'metricsd'...
[   11.635596] init: Starting service 'perfprofd'...
[   11.642258] init: Starting service 'update_engine'...
[   11.678940] init: write_file: Unable to open '/sys/class/android_usb/android0
/enable': No such file or directory
[   11.689686] init: write_file: Unable to open '/sys/class/android_usb/android0
/idVendor': No such file or directory
[   11.704998] init: write_file: Unable to open '/sys/class/android_usb/android0
/idProduct': No such file or directory
[   11.715856] init: write_file: Unable to open '/sys/class/android_usb/android0
/functions': No such file or directory
[   11.727173] init: write_file: Unable to open '/sys/class/android_usb/android0
/enable': No such file or directory
[   11.738913] init: write_file: Unable to open '/sys/class/android_usb/android0
/enable': No such file or directory
[   11.749474] init: write_file: Unable to open '/sys/class/android_usb/android0
/idVendor': No such file or directory
[   11.762892] init: write_file: Unable to open '/sys/class/android_usb/android0
/idProduct': No such file or directory
[   11.774254] init: write_file: Unable to open '/sys/class/android_usb/android0
/functions': No such file or directory
[   11.774564] healthd: No battery devices found
[   11.789488] init: write_file: Unable to open '/sys/class/android_usb/android0
/enable': No such file or directory
[   11.936155] init: avc:  denied  { set } for property=ctl.mdnsd pid=152 uid=20
00 gid=2000 scontext=u:r:adbd:s0 tcontext=u:object_r:ctl_mdnsd_prop:s0 tclass=pr
operty_service permissive=1
[   11.956832] init: Starting service 'mdnsd'...
[   12.347169] init: Service 'crash_reporter' (pid 165) exited with status 0
[   12.557863] random: nonblocking pool is initialized
[   14.058341] init: Starting service 'bootanim'...
[   14.120559] type=1400 audit(14.069:9): avc: denied { read } for pid=155 comm=
"cameraserver" name="/" dev="tmpfs" ino=8193 scontext=u:r:cameraserver:s0 tconte
xt=u:object_r:device:s0 tclass=dir permissive=1
[   14.145288] type=1400 audit(14.069:10): avc: denied { open } for pid=155 comm
="cameraserver" path="/dev" dev="tmpfs" ino=8193 scontext=u:r:cameraserver:s0 tc
ontext=u:object_r:device:s0 tclass=dir permissive=1
[   15.951369] type=1400 audit(15.899:11): avc: denied { execmem } for pid=307 c
omm="BootAnimation" scontext=u:r:bootanim:s0 tcontext=u:r:bootanim:s0 tclass=pro
cess permissive=1
[   15.969049] type=1400 audit(15.919:12): avc: denied { execute } for pid=307 c
omm="BootAnimation" path="/dev/ashmem" dev="tmpfs" ino=6700 scontext=u:r:bootani
m:s0 tcontext=u:object_r:ashmem_device:s0 tclass=chr_file permissive=1
[   16.803051] type=1400 audit(16.749:13): avc: denied { dac_override } for pid=
164 comm="peripheralman" capability=1 scontext=u:r:peripheralman:s0 tcontext=u:r
:peripheralman:s0 tclass=capability permissive=1
[   18.427376] type=1400 audit(18.379:14): avc: denied { sys_module } for pid=16
3 comm="netd" capability=16 scontext=u:r:netd:s0 tcontext=u:r:netd:s0 tclass=cap
ability permissive=1
[   22.504592] capability: warning: `main' uses 32-bit capabilities (legacy supp
ort in use)
[   34.105680] healthd: battery l=100 v=0 t=42.4 h=2 st=2 chg=a
[   38.797856] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   38.806316] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   39.472172] init: Starting service 'wpa_supplicant'...
[   39.875343] brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
[   39.890257] brcmfmac: brcmf_add_if: ignore IF event
[   39.917461] brcmfmac: power management disabled
[   49.429977] brcmfmac: power management disabled
[   50.135707] brcmfmac: power management disabled
[   75.508254] nf_conntrack: automatic helper assignment is deprecated and it wi
ll be removed soon. Use the iptables CT target to attach helpers instead.
[   79.147249] init: Service 'bootanim' (pid 252) exited with status 0
[  117.680372] binder: 691:701 refcount change on invalid ref 121
[  117.882123] binder: 691:1093 refcount change on invalid ref 121
[  117.890540] binder: 691:1093 refcount change on invalid ref 121
[  117.896635] binder: transaction release 29063 bad handle 121
[  195.473066] type=1400 audit(1496203707.667:15): avc: denied { read } for pid=
955 comm="IntentService[D" name="/" dev="tmpfs" ino=8193 scontext=u:r:priv_app:s
0:c512,c768 tcontext=u:object_r:device:s0 tclass=dir permissive=1
[  195.494263] type=1400 audit(1496203707.667:16): avc: denied { open } for pid=
955 comm="IntentService[D" path="/dev" dev="tmpfs" ino=8193 scontext=u:r:priv_ap
p:s0:c512,c768 tcontext=u:object_r:device:s0 tclass=dir permissive=1
rpi3:/ $
Last edited by franklin97355 on Sat Jul 15, 2017 3:02 pm, edited 1 time in total.
Reason: Please use code tags when posting code or logs to the forums. It preserves formatting and makes it easier for everyone to read the code. Click the </> button above the reply box and past your code between the tags created.

BALAJIBABU
 
Posts: 2
Joined: Mon May 29, 2017 11:32 pm

Re: USB to serial cable not working in Android of Things

by adafruit_support_rick on Mon Jul 17, 2017 11:11 am

Looks like you haven't disabled the console port on the Pi. You need to do that. run raspi-config and disable the console port.

adafruit_support_rick
 
Posts: 35095
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: USB to serial cable not working in Android of Things

by BALAJIBABU on Mon Jul 17, 2017 10:54 pm

Hi ,

Thanks for your response.

Am using Raspberry pi 3 board with android of things. Serial console not working https://developer.android.com/things/pr ... nload.html

Regards

Balaji Babu

BALAJIBABU
 
Posts: 2
Joined: Mon May 29, 2017 11:32 pm

Re: USB to serial cable not working in Android of Things

by adafruit_support_rick on Tue Jul 18, 2017 7:56 am

Oh, I see. I'm not familiar with Android of Things. Looks like you've got some errors showing up in dmesg. Don't know if those are related.

You can test the serial cable. Connect a jumper wire between the green and white wires. Run a terminal emulation program on your computer. Whatever you type into it should be echoed back.

adafruit_support_rick
 
Posts: 35095
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Please be positive and constructive with your questions and comments.