Difference between revisions of "FTC adb Android Debugging Bridge 202008"

From wikidb
Jump to: navigation, search
(Install)
(References)
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
= References =
 
= References =
  
* [https://blog.jcole.us/2017/04/13/wireless-programming-for-ftc-robots/ Wireless Programming for FTC Robots]
+
* [http://developer.android.com/tools/help/adb.html Official Android adb reference]
 
* [https://www.xda-developers.com/install-adb-windows-macos-linux/ install Android Debug Bridge (adb)]
 
* [https://www.xda-developers.com/install-adb-windows-macos-linux/ install Android Debug Bridge (adb)]
 
* [https://www.androidauthority.com/android-customization-transfer-files-adb-push-adb-pull-601015/ Android customization – how to transfer files using ADB push and pull commands]
 
* [https://www.androidauthority.com/android-customization-transfer-files-adb-push-adb-pull-601015/ Android customization – how to transfer files using ADB push and pull commands]
  
* [http://flyset.org/wp-content/uploads/2015/07/FTC-workshop-debugging.pdf FTC workshop debugging]
+
== Related ==
** log on page 72
+
** also ADB Android Debug Bridge  http://developer.android.com/tools/help/adb.html
+
  
= Install =
+
* [https://blog.jcole.us/2017/04/13/wireless-programming-for-ftc-robots/ Wireless Programming for FTC Robots]
 +
 
 +
= Windows =
 +
 
 +
== Install ==
  
 
I found adb in  
 
I found adb in  
Line 15: Line 17:
 
Probably from an Android Studio install
 
Probably from an Android Studio install
  
<pre>
+
== Connecting ==
 
+
C:\Users\epp\AppData\Local\Android\sdk\platform-tools>adb connect 192.168.43.1
+
connected to 192.168.43.1:5555
+
 
+
C:\Users\epp\AppData\Local\Android\sdk\platform-tools>adb devices
+
List of devices attached
+
192.168.43.1:5555      device
+
 
+
 
+
C:\Users\epp\AppData\Local\Android\sdk\platform-tools>adb shell ls
+
acct
+
bugreports
+
cache
+
charger
+
config
+
d
+
data
+
default.prop
+
dev
+
drmboot.ko
+
etc
+
file_contexts.bin
+
fstab.rk30board
+
fstab.rk30board.bootmode.emmc
+
fstab.rk30board.bootmode.unknown
+
ftc_startup.sh
+
init
+
init.box.rc
+
init.box.samba.rc
+
init.connectivity.rc
+
init.environ.rc
+
init.ftc.rc
+
init.optee.rc
+
init.rc
+
init.rk30board.bootmode.emmc.rc
+
init.rk30board.bootmode.nvme.rc
+
init.rk30board.bootmode.unknown.rc
+
init.rk30board.environment.rc
+
init.rk30board.rc
+
init.rk30board.usb.rc
+
init.rockchip.rc
+
init.usb.configfs.rc
+
init.usb.rc
+
init.zygote32.rc
+
init.zygote64_32.rc
+
metadata
+
mnt
+
oem
+
proc
+
property_contexts
+
res
+
rk30xxnand_ko.ko
+
root
+
sbin
+
sdcard
+
seapp_contexts
+
selinux_version
+
sepolicy
+
service_contexts
+
storage
+
sys
+
system
+
ueventd.rc
+
ueventd.rk30board.rc
+
vendor
+
 
+
C:\Users\epp\AppData\Local\Android\sdk\platform-tools>
+
 
+
 
+
C:\Users\epp\AppData\Local\Android\sdk\platform-tools>adb pull sdcard/robotControllerLog.txt
+
sdcard/robotControllerLog.txt: 1 file pulled. 3.3 MB/s (1257240 bytes in 0.364s)
+
 
+
C:\Users\epp\AppData\Local\Android\sdk\platform-tools>dir
+
Volume in drive C is OS
+
Volume Serial Number is 081E-1B30
+
  
Directory of C:\Users\epp\AppData\Local\Android\sdk\platform-tools
+
Open a command Window get into Android's platform-tools directory
  
08/01/2020  01:39 PM    <DIR>          .
+
TBD set up path to find adb
08/01/2020  01:39 PM    <DIR>          ..
+
09/27/2019  01:13 PM        3,233,280 adb.exe
+
09/27/2019  01:13 PM            97,792 AdbWinApi.dll
+
09/27/2019  01:13 PM            62,976 AdbWinUsbApi.dll
+
09/27/2019  01:13 PM    <DIR>          api
+
09/27/2019  01:13 PM          242,176 dmtracedump.exe
+
09/27/2019  01:13 PM          419,328 etc1tool.exe
+
09/27/2019  01:13 PM        1,339,392 fastboot.exe
+
09/27/2019  01:13 PM            43,008 hprof-conv.exe
+
09/27/2019  01:13 PM    <DIR>          lib64
+
09/27/2019  01:13 PM          211,018 libwinpthread-1.dll
+
09/27/2019  01:13 PM          413,696 make_f2fs.exe
+
09/27/2019  01:13 PM            1,170 mke2fs.conf
+
09/27/2019  01:13 PM        1,049,600 mke2fs.exe
+
09/27/2019  01:13 PM          298,286 NOTICE.txt
+
09/27/2019  01:13 PM            17,783 package.xml
+
08/01/2020  01:39 PM        1,257,240 robotControllerLog.txt
+
09/27/2019  01:13 PM                38 source.properties
+
09/27/2019  01:13 PM        1,354,240 sqlite3.exe
+
09/27/2019  01:13 PM    <DIR>          systrace
+
              16 File(s)    10,041,023 bytes
+
              5 Dir(s)  70,512,762,880 bytes free
+
  
C:\Users\epp\AppData\Local\Android\sdk\platform-tools>
+
  >cd  C:\Users\epp\AppData\Local\Android\sdk\platform-tools
 +
 +
  >adb connect 192.168.43.1
 +
      connected to 192.168.43.1:5555
 +
 +
  >adb devices
 +
      List of devices attached
 +
      192.168.43.1:5555      device
  
 +
== FTC Android File System ==
  
 +
Selected files
  
 +
  C:\Users\epp\AppData\Local\Android\sdk\platform-tools>adb shell ls
 +
      ...
 +
      config
 +
      ...
 +
      data
 +
      ...
 +
      dev
 +
      ...
 +
      etc
 +
      ...
 +
      init.ftc.rc
 +
      ..
 +
      mnt
 +
      ...
 +
      proc
 +
      ...
 +
      root
 +
      sbin
 +
      sdcard
 +
      ...
 +
      selinux_version
 +
      ...
 +
      storage
 +
      sys
 +
      system
 +
      ...
  
 +
== Getting Log files ==
  
C:\Users\epp\AppData\Local\Android\sdk\platform-tools>adb pull storage/emulated/0/FIRST/velocityRamp202008101352.csv
+
Log files are in the sdcard direcotry
storage/emulated/0/FIRST/velocityRamp202008101352.csv: 1 file pulled. 0.1 MB/s (1041 bytes in 0.013s)
+
  
C:\Users\epp\AppData\Local\Android\sdk\platform-tools>
+
  >adb pull sdcard/robotControllerLog.txt
 +
      sdcard/robotControllerLog.txt: 1 file pulled. 3.3 MB/s (1257240 bytes in 0.364s)
  
 +
It will be downloaded to the Window's Command window local command local directory. In this case;
  
</pre>
+
  C:\Users\epp\AppData\Local\Android\sdk\platform-tools\robotControllerLog.txt
  
 
= Notes and Logs =
 
= Notes and Logs =
  
 
* [[FTC adb pull 202008 Note and Log]]
 
* [[FTC adb pull 202008 Note and Log]]

Latest revision as of 11:09, 21 August 2020

References

Related

Windows

Install

I found adb in

  • Users\epp\AppData\Local\Adroid\sdk\platform-tools

Probably from an Android Studio install

Connecting

Open a command Window get into Android's platform-tools directory

TBD set up path to find adb

 >cd  C:\Users\epp\AppData\Local\Android\sdk\platform-tools

 >adb connect 192.168.43.1
     connected to 192.168.43.1:5555

 >adb devices
     List of devices attached
     192.168.43.1:5555       device

FTC Android File System

Selected files

 C:\Users\epp\AppData\Local\Android\sdk\platform-tools>adb shell ls
     ...
     config
     ...
     data
     ...
     dev
     ...
     etc
     ...
     init.ftc.rc
     ..
     mnt
     ...
     proc
     ...
     root
     sbin
     sdcard
     ...
     selinux_version
     ...
     storage
     sys
     system
     ...

Getting Log files

Log files are in the sdcard direcotry

 >adb pull sdcard/robotControllerLog.txt
     sdcard/robotControllerLog.txt: 1 file pulled. 3.3 MB/s (1257240 bytes in 0.364s)

It will be downloaded to the Window's Command window local command local directory. In this case;

 C:\Users\epp\AppData\Local\Android\sdk\platform-tools\robotControllerLog.txt

Notes and Logs