View Single Post
  #3   Spotlight this post!  
Unread 29-01-2017, 22:40
teletype-guy's Avatar
teletype-guy teletype-guy is offline
Old Fart Electrical Engineer
AKA: Gil Smith
FRC #0698 (Microbots)
Team Role: Mentor
 
Join Date: Dec 2016
Rookie Year: 2014
Location: Chandler, AZ
Posts: 16
teletype-guy is a jewel in the roughteletype-guy is a jewel in the roughteletype-guy is a jewel in the rough
Re: Is there a deploy-only utility to load roborio?

Ahh, well that is encouraging, but I am not quite sure how to ftp to the roborio.

I presume that the file to send is C:\...\project-name\dist\FRCUserProgam.jar, and it is ftp'd over USB to 172.22.11.2:22, but that is about as far as I can get at the moment.

The output from the eclipse deploy is:

Code:
Buildfile: C:\Users\USER\Desktop\frc-code\test-bot-7\build.xml
Trying to override old definition of task classloader
clean:
   [delete] Deleting directory C:\Users\USER\Desktop\frc-code\test-bot-7\build
   [delete] Deleting directory C:\Users\USER\Desktop\frc-code\test-bot-7\dist
compile:
    [mkdir] Created dir: C:\Users\USER\Desktop\frc-code\test-bot-7\build
     [echo] [athena-compile] Compiling src with classpath=C:\Users\USER\wpilib\user\java\lib\CTRLib.jar;C:\Users\USER\wpilib\user\java\lib\navx_frc.jar;C:\Users\USER\wpilib\java\current\lib\WPILib.jar;C:\Users\USER\wpilib\java\current\lib\NetworkTables.jar;C:\Users\USER\wpilib\java\current\lib\opencv.jar;C:\Users\USER\wpilib\java\current\lib\cscore.jar to build
    [javac] Compiling 1 source file to C:\Users\USER\Desktop\frc-code\test-bot-7\build
jar:
     [echo] [athena-jar] Making jar dist/FRCUserProgram.jar.
    [mkdir] Created dir: C:\Users\USER\Desktop\frc-code\test-bot-7\dist
    [mkdir] Created dir: C:\Users\USER\Desktop\frc-code\test-bot-7\build\jars
     [echo] [athena-jar] Copying jars to build/jars.
     [copy] Copying 6 files to C:\Users\USER\Desktop\frc-code\test-bot-7\build\jars
      [jar] Building jar: C:\Users\USER\Desktop\frc-code\test-bot-7\dist\FRCUserProgram.jar
get-target-ip:
     [echo] Finding roboRIO, please ignore any [hostinfo] error messages
     [echo] Trying USB: 172.22.11.2
     [echo] Trying DNS: roboRIO-698-FRC.lan
     [echo] Trying mDNS: roboRIO-698-FRC.local
     [echo] roboRIO found at 172.22.11.2
dependencies:
     [echo] Trying Static Ethernet: 10.6.98.2
     [echo] roboRIO image version validated
     [echo] Checking for JRE. If this fails install the JRE using these instructions: https://wpilib.screenstepslive.com/s/4485/m/13503/l/288822-installing-java-8-on-the-roborio-using-the-frc-roborio-java-installer-java-only
  [sshexec] Connecting to 172.22.11.2:22
  [sshexec] cmd : test -d /usr/local/frc/JRE
deploy:
   [delete] Deleting: C:\Users\USER\wpilib\java\current\lib\native\lib\WPI_Native_Libraries.properties
      [scp] Connecting to 172.22.11.2:22
      [scp] Receiving file: /usr/local/frc/lib/WPI_Native_Libraries.properties
      [scp] Receiving: WPI_Native_Libraries.properties : 2570
      [scp] File transfer time: 0.02 Average Rate: 151,176.47 B/s
      [scp] done
   [delete] Deleting: C:\Users\USER\wpilib\user\java\lib\User_Libraries.properties
      [scp] Connecting to 172.22.11.2:22
      [scp] Receiving file: /usr/local/frc/lib/User_Libraries.properties
      [scp] Receiving: User_Libraries.properties : 127
      [scp] File transfer time: 0.0 Average Rate: 127,000.0 B/s
      [scp] done
     [echo] [athena-deploy] Copying code over.
      [scp] Connecting to 172.22.11.2:22
      [scp] done.
  [sshexec] Connecting to 172.22.11.2:22
  [sshexec] cmd : ldconfig
  [sshexec] Connecting to 172.22.11.2:22
  [sshexec] cmd : killall -q netconsole-host || :
   [delete] Deleting: C:\Users\USER\wpilib\java\current\ant\netconsole-host.properties
      [scp] Connecting to 172.22.11.2:22
      [scp] Receiving file: /usr/local/frc/bin/netconsole-host.properties
      [scp] Receiving: netconsole-host.properties : 127
      [scp] File transfer time: 0.0 Average Rate: 127,000.0 B/s
      [scp] done
      [scp] Connecting to 172.22.11.2:22
      [scp] done.
     [echo] [athena-deploy] Starting program.
  [sshexec] Connecting to 172.22.11.2:22
  [sshexec] cmd : . /etc/profile.d/natinst-path.sh; /usr/local/frc/bin/frcKillRobot.sh -t -r;
  [sshexec] Connecting to 172.22.11.2:22
  [sshexec] cmd : sync
BUILD SUCCESSFUL
Total time: 10 seconds
But this is all a bit muddy to me. I am much more comfortable with gcc and using a jlink to deploy via jtag or swd into an arm cortex.

Can you tell me the appropriate ftp command I can use from the command prompt (and embed into a bat file)? The jar file and ftp address seem obvious, but where in the roborio file system is it placed?

thx, gil
Reply With Quote