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

From wikidb
Jump to: navigation, search
(Created page with "= adb = == References == * [https://blog.jcole.us/2017/04/13/wireless-programming-for-ftc-robots/ Wireless Programming for FTC Robots] * [https://www.xda-developers.com/inst...")
 
(References)
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
= adb =
+
= References =
  
== References ==
+
* [http://developer.android.com/tools/help/adb.html Official Android adb reference]
 
+
* [https://blog.jcole.us/2017/04/13/wireless-programming-for-ftc-robots/ Wireless Programming for FTC Robots]
+
 
* [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
+
* [https://blog.jcole.us/2017/04/13/wireless-programming-for-ftc-robots/ Wireless Programming for FTC Robots]
 +
 
 +
= Windows =
  
 
== Install ==
 
== Install ==
Line 16: Line 16:
 
* Users\epp\AppData\Local\Adroid\sdk\platform-tools
 
* Users\epp\AppData\Local\Adroid\sdk\platform-tools
 
Probably from an Android Studio install
 
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 =
 +
 +
* [[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