Antonio Prieto

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: Setting up #4188
    Author Image
    Antonio Prieto
    Participant

    Ok, perfect. With this “mono someFile.exe”, now I can work from my Mac.

    Thank you very much.

    in reply to: Setting up #4175
    Author Image
    Antonio Prieto
    Participant

    Hi again Anders, this is a video of the project we’re doing. This is a “replica” of the mars curiosity robot :).

    http://www.youtube.com/watch?v=a-dyAohAi1U

    in reply to: Setting up #4174
    Author Image
    Antonio Prieto
    Participant

    Hi Anders,

    good news, I got it to work BUT in a windows machine. I compiles it in mac, and made it run in a pc with w7. Let me sum up all the things here, and why I am using a VM.

    1) What do I mean with “I have established a tcp/ip connection with the brick.”?
    In this guide: http://goo.gl/eE2cVN, After connecting, it is said that you must establish that TCP connection so I did it with wireshark and packetsender (Mac). That was before I reviewed your code of the library and realized that the library did it automatically :s

    Let me suggest that you delete that part of the guide, or make it clear that it is not necessary.

    2) If I work in a Mac with xamarin / Mono, I can compile the code, BUT, the console program is generated as an .exe for windows. I haven’t found any way to compile it for mac os, even though the compiler is in a mac.

    This is very confusing, and if this mac console cannot be generated, I would suggest that the guides explain this issue very clear, again for us, amateur programmers :).

    3) I have executed this .exe console program in a virtual machine in mac os (with windows 7 installed with Parallels 9). However, I received this failure to connnect message mentioned before. The firewall is deactivated, by the way.

    4) Exactly the same .exe program, I copy it to a windows 7 machine, and it works perfectly!!!

    I hope this helps. I don’t klnow what do you mean with “the library works in MAC”. It compiles, but does not generate a mac console.

    Thanks again for the help. great work.

    in reply to: Setting up #4170
    Author Image
    Antonio Prieto
    Participant

    Hi Anders,

    I am getting a “Failed to open connection” error when trying to execute my first simple program. The program is very simple, the first example from the guide. Literally, I get this error:

    en MonoBrick.WiFiConnection2.Open()
    en Program.Main(String[] args)
    Error: Failed to open connection
    Press any key yo end….`

    The ev3 brick is connected to wifi and I have established a tcp/ip connection with the brick.

    Compiling the program I get an .exe program, that I execute in the windows virtual machine, as I am using a mac.

    <strong>So, what problem may I have with the program?</strong>

    The program is:

    using System;
    using MonoBrick.EV3;
    
    public static class Program{
    	static void Main(string[] args)
    	{
    		var ev3 = new Brick<Sensor,Sensor,Sensor,Sensor>("wifi");
    		try{
    			ev3.Connection.Open();
    			ev3.MotorA.On(50);
    			System.Threading.Thread.Sleep(3000);
    			ev3.MotorA.Off();
    		}
    		catch(Exception e){
    			Console.WriteLine(e.StackTrace);
    			Console.WriteLine("Error: " + e.Message);
    			Console.WriteLine("Press any key to end...");
    			Console.ReadKey();				
    		}
    		finally{
    			ev3.Connection.Close();
    		}
    	}
    }
    in reply to: Setting up #4160
    Author Image
    Antonio Prieto
    Participant

    Hi Anders and thanks again for your response.

    Yes, I understood that from other meesages from you and already realized that. So now:

    I have removed SD
    I have connected EV3 to wifi (followinf your guide here)

    But I’m stuck with UDP receiving and sending messages! I need a tool to do that as it is not mentioned in the guide how to do it from a Mac OS Computer. Can you help me with that?

    Many thanks

    Antonio

    in reply to: Setting up #4131
    Author Image
    Antonio Prieto
    Participant

    Sorry.

    As you suggested me, I am trying to use standard firmware, with the monobrick communication library to be able to control de ev3 brick from my mac computer.

Viewing 6 posts - 1 through 6 (of 6 total)
Posted in

Make a donation