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/
Run EV3 C-programs without a network connection
Run EV3 C-programs without a network connection
Last edited by lvoc on 20 Nov 2013, 15:11, edited 2 times in total.
Lauro
http://www.robotnav.com
http://www.robotnav.com
-
- Posts: 323
- Joined: 29 Sep 2010, 05:03
Re: Run EV3 c-programs without a network connection
Interesting. Can you access sensors and other devices without the Lego VM interfering with them?
-
- Posts: 175
- Joined: 28 Dec 2011, 13:07
- Location: Gelderland, Netherlands
- Contact:
Re: Run EV3 C-programs without a network connection
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?
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?
-- Pepijn
http://studl.es Mindstorms Building Instructions
http://studl.es Mindstorms Building Instructions
-
- Posts: 175
- Joined: 28 Dec 2011, 13:07
- Location: Gelderland, Netherlands
- Contact:
Re: Run EV3 C-programs without a network connection
The assembler itself can be found here: https://github.com/mindboards/ev3source ... embler.jar
-- Pepijn
http://studl.es Mindstorms Building Instructions
http://studl.es Mindstorms Building Instructions
Re: Run EV3 C-programs without a network connection
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.
Lauro
http://www.robotnav.com
http://www.robotnav.com
Re: Run EV3 C-programs without a network connection
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!
Who is online
Users browsing this forum: No registered users and 2 guests