Go to Post Its Mario Kart with balls and really, whats more fun and frustrating (FIRST style) than Mario Kart? - Adama [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 13-01-2015, 12:32
jtrv's Avatar
jtrv jtrv is offline
github.com/jhtervay
AKA: Justin
FRC #2791 (Shaker Robotics)
Team Role: College Student
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Latham, NY
Posts: 148
jtrv is a name known to alljtrv is a name known to alljtrv is a name known to alljtrv is a name known to alljtrv is a name known to alljtrv is a name known to all
In need of help with FTP.

Hi,

I'm not very good at networking (but i'm good at syntax in coding so i guess that's why im a programmer), but I know you could transfer files between the cRio and the computer via FTP last year. I know what FTP stands for but I honestly don't know how to use it to our potential. Let alone code it (Java).

I'd like to load joystick configuration files into the code via a .txt file. (so if we want to change controls quickly we can do it without rebuilding, we just change a .txt file). I tried a local .txt file on the computer and after several minutes of pondering why the robot couldn't find the file, I realized I was a bit tired.

Anyways, I was hoping if anyone could help me out. I'd like to easily change a .txt file hosted on the RIO and have the robot scan numbers into the code. I have the scanner class and such coded it's just a matter of getting the correct directory in the code.

So my question - how do I access the RIO via FTP, and where do I find the directory of a file located on the rio?
__________________
2791 (2012-2017)
  #2   Spotlight this post!  
Unread 13-01-2015, 12:37
Sparkyshires Sparkyshires is offline
Registered User
AKA: Michael Shires
FRC #0384 (Sparky)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2006
Location: Virginia
Posts: 226
Sparkyshires is an unknown quantity at this point
Re: In need of help with FTP.

Look up Filezilla. FTP stands for file transfer protocol, it's a way of sending files across a network. Same as HTTP is hyper text transfer protocol.

(this may be a bad analogy but it works for me) same as you use chrome or Firefox to view HTTP, you would use Filezilla to view and browse FTP.

Filezilla is an open-source program that makes this a breeze. Just download it and follow the instructions!

If you've got any questions, shoot!
__________________
"Measure with a micrometer, mark with chalk, cut with an axe."
  #3   Spotlight this post!  
Unread 13-01-2015, 12:46
adciv adciv is offline
One Eyed Man
FRC #0836 (RoboBees)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2010
Location: Southern Maryland
Posts: 478
adciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to all
Re: In need of help with FTP.

I haven't tried it lately, but I believe FTP is disabled by default on the RoboRIO. SFTP is permitted (over port 22).
__________________
Quote:
Originally Posted by texarkana View Post
I would not want the task of devising a system that 50,000 very smart people try to outwit.
  #4   Spotlight this post!  
Unread 13-01-2015, 12:58
jtrv's Avatar
jtrv jtrv is offline
github.com/jhtervay
AKA: Justin
FRC #2791 (Shaker Robotics)
Team Role: College Student
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Latham, NY
Posts: 148
jtrv is a name known to alljtrv is a name known to alljtrv is a name known to alljtrv is a name known to alljtrv is a name known to alljtrv is a name known to all
Re: In need of help with FTP.

Thank you.

Do you think it would be far simpler with SmartDashboard?

I don't really have any clue how to get it working, last year it just starting showing up one day and it has yet to do so yet even with code.

Here's what I have for a simple electronics board with a 4 talons attached:

https://github.com/jtervay97/testBoardBot

You can safely ignore any arrays or .txt files, they're works in progress... and failures also... hehe

Quote:
Originally Posted by adciv View Post
I haven't tried it lately, but I believe FTP is disabled by default on the RoboRIO. SFTP is permitted (over port 22).
Is there any major difference in this context?
__________________
2791 (2012-2017)
  #5   Spotlight this post!  
Unread 13-01-2015, 13:22
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: In need of help with FTP.

Quote:
Originally Posted by adciv View Post
I haven't tried it lately, but I believe FTP is disabled by default on the RoboRIO. SFTP is permitted (over port 22).
Anonymous ftp is enabled on the roboRIO (despite the objections of certain developers).

Windows explorer does ftp. Just type "ftp://roboRIO-2791.local" in the address bar.
  #6   Spotlight this post!  
Unread 13-01-2015, 14:03
weaversam8 weaversam8 is offline
Team Captain
AKA: Sam Weaver
FRC #4534 (Wired Wizards)
Team Role: Leadership
 
Join Date: Jan 2014
Rookie Year: 2014
Location: Wilmington, North Carolina
Posts: 137
weaversam8 is a splendid one to beholdweaversam8 is a splendid one to beholdweaversam8 is a splendid one to beholdweaversam8 is a splendid one to beholdweaversam8 is a splendid one to beholdweaversam8 is a splendid one to behold
I highly recommend using SmartDashboard for this, instead of FTP. If you have a limited amount of these control schemes, I suggest what my team did. Last year half of our drive teams liked tank drive, while the rest prefers arcade. We used a button on our controller, clicking a stick, to switch control schemes on the fly. Pretty useful.
__________________
ORB Haow!

  #7   Spotlight this post!  
Unread 13-01-2015, 14:24
jtrv's Avatar
jtrv jtrv is offline
github.com/jhtervay
AKA: Justin
FRC #2791 (Shaker Robotics)
Team Role: College Student
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Latham, NY
Posts: 148
jtrv is a name known to alljtrv is a name known to alljtrv is a name known to alljtrv is a name known to alljtrv is a name known to alljtrv is a name known to all
Re: In need of help with FTP.

Quote:
Originally Posted by weaversam8 View Post
I highly recommend using SmartDashboard for this, instead of FTP. If you have a limited amount of these control schemes, I suggest what my team did. Last year half of our drive teams liked tank drive, while the rest prefers arcade. We used a button on our controller, clicking a stick, to switch control schemes on the fly. Pretty useful.
I've been considering SD but I've always found it to be a royal PITA to configure and keep consistent. I only need it to store about 20 int values that I can configure anyway, I could use it but I just prefer not to. Personal experience is all.

Has retrieving numbers from SD changed between 2014 and 2015?

edit: probably just going to wind up using this for my case: http://wpilib.screenstepslive.com/s/...smartdashboard
__________________
2791 (2012-2017)

Last edited by jtrv : 13-01-2015 at 14:42.
  #8   Spotlight this post!  
Unread 13-01-2015, 14:56
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,600
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: In need of help with FTP.

We've been using using text files for autonomous and settings for several years. However, because of how fast it is to redownload code (7 seconds for Java), we are planning to go back to embedding those in code (albeit in separate files). This makes version control much easier. Several times we've bagged the robot and then remembered we weren't sure what was the final constants file on the robot.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 02:55.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi