Run EV3 C-programs without a network connection

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.
Post Reply
lvoc
Posts: 38
Joined: 10 Sep 2013, 13:34

Run EV3 C-programs without a network connection

Post by lvoc »

I found a way of running native c-programs directly from the EV3 menu and without using a network connection. I am making the details available at:
http://www.robotnav.com/run-programs-without-network/
Last edited by lvoc on 20 Nov 2013, 15:11, edited 2 times in total.
gloomyandy
Posts: 323
Joined: 29 Sep 2010, 05:03

Re: Run EV3 c-programs without a network connection

Post by gloomyandy »

Interesting. Can you access sensors and other devices without the Lego VM interfering with them?
pepijndevos
Posts: 175
Joined: 28 Dec 2011, 13:07
Location: Gelderland, Netherlands
Contact:

Re: Run EV3 C-programs without a network connection

Post by pepijndevos »

Very good find!

I wonder indeed if the C program can access the sensors without freaking out lms.

Possibly, this program could communicate over stdio with the system call and control the motors and sensors. That'd be a lot of work probably. Or maybe it could simply allow reverse arbitrary code execution? :P
-- Pepijn
http://studl.es Mindstorms Building Instructions
pepijndevos
Posts: 175
Joined: 28 Dec 2011, 13:07
Location: Gelderland, Netherlands
Contact:

Re: Run EV3 C-programs without a network connection

Post by pepijndevos »

The assembler itself can be found here: https://github.com/mindboards/ev3source ... embler.jar
-- Pepijn
http://studl.es Mindstorms Building Instructions
lvoc
Posts: 38
Joined: 10 Sep 2013, 13:34

Re: Run EV3 C-programs without a network connection

Post by lvoc »

I think this method has the potential of “preventing” problems with the Lego-VM. The fact that the VM is in charge of executing the C-program, also guarantees that all the services will be available for this single program. This is not the case when the program runs within a terminal, since users may still be able to run a Lego-program using the menus, which can cause conflicts.
Last edited by lvoc on 20 Nov 2013, 15:15, edited 1 time in total.
totokan
Posts: 45
Joined: 28 Sep 2013, 04:22

Re: Run EV3 C-programs without a network connection

Post by totokan »

What is preventing you from just writing a rudimentary shell to run on top of the official VM? If you wanted to you could implement it using the current API that John Hansen released for button and screen manipulation, with some low-level linux system calls to handle directory reading and running programs. Come to think of it, I may try this myself!
Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests