Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Remote cRIO code deploying (http://www.chiefdelphi.com/forums/showthread.php?t=129973)

lucas.alvarez96 04-07-2014 19:10

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?

Jared 04-07-2014 20:10

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.

yash101 05-07-2014 03:50

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.


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

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