|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
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? |
|
#2
|
||||
|
||||
|
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
|
||||
|
||||
|
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.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|