Go to Post So please, think twice before you click that little button that says "reply". - Ken Leung [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 04-07-2014, 19:10
lucas.alvarez96's Avatar
lucas.alvarez96 lucas.alvarez96 is offline
Registered User
AKA: Lucas Alvarez
FRC #2576 (Chilean Heart)
 
Join Date: Dec 2013
Rookie Year: 2013
Location: Chile
Posts: 123
lucas.alvarez96 is a name known to alllucas.alvarez96 is a name known to alllucas.alvarez96 is a name known to alllucas.alvarez96 is a name known to alllucas.alvarez96 is a name known to alllucas.alvarez96 is a name known to all
Remote cRIO code deploying

Has anyone ever attempted to set up a cRIO to receive code remotely? For example, to wire it up to a router at your team's workshop and upload code from a team member's house. I was wondering if it could be done while programming a socket client on the cRIO to connect to the NVIDIA Jetson TK1 dev board. My idea is to get vision processing done on the Jetson and send the results over to the cRIO (and eventually roboRIO) via sockets.

Cheers!

P.S. Is there any way of running a thread on the cRIO to constantly update the value from the socket input stream in the background?
__________________
FRC 2576 2015-2016: Mentor
FRC 2576 2013-2015: Programmer & Chairman's Presenter

Los Angeles Regional 2014: Regional Chairman's Award
  #2   Spotlight this post!  
Unread 04-07-2014, 20:10
Jared's Avatar
Jared Jared is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Aug 2013
Rookie Year: 2012
Location: Connecticut
Posts: 602
Jared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond repute
Re: Remote cRIO code deploying

It's possible to receive code remotely, but only if you can set up port forwarding at your work space. All the netbeans deploy script does is build your code, FTP the built files to the cRIO, then tell the cRIO to restart itself.

As for the network communication, yes it is possible to have a separate thread. If you're using Java, I'd use a TimerTask. You can create a class which extends TimerTask, create a new java.util.Timer object, then call timer.scheduleAtFixedRate(this, 0, period), where period is the time (in ms) between each iteration.
  #3   Spotlight this post!  
Unread 05-07-2014, 03:50
yash101 yash101 is offline
Curiosity | I have too much of it!
AKA: null
no team
 
Join Date: Oct 2012
Rookie Year: 2012
Location: devnull
Posts: 1,191
yash101 is an unknown quantity at this point
Re: Remote cRIO code deploying

Place a RasPi, running PPTPd. Log into the PPTPd. You're entire computer will be forwarded onto the robotics network. Then, you won't be able to just program the robot, but also be able to drive it and view camera footage, etc.
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 03:02.

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