Home→Forums→MonoBrick Communication Library→Problem while setting up MonoBrick
- This topic has 3 replies, 2 voices, and was last updated 10 years, 4 months ago by ramacc0 ..
-
AuthorPosts
-
June 29, 2014 at 17:47 #4463
ramacc0 .ParticipantHey all,
I’m new to using MonoBrick and I’m having trouble running my first program. I have installed Xamarin Studio as wel as the 3 Mono development files. Afterwards I downloaded the testproject from the monobrick.dk website and copied the example code for people who are using USB, since I don’t have a wifi dongle. I also have installed the image of mono brick on a 4gb SD card and that seems to boot up on the EV3.
I have included a print screen of the message that I get from the terminal when trying to compile in Xamarin Studio.
Hopefully anyone can help, as I’m eager to start developing with mono brick.
Regards,
RamaccoAttachments:
You must be logged in to view attached files.June 30, 2014 at 10:30 #4468
Anders SøborgKeymasterHi
I think that you are mixing the Monobrick firmware and the communication library… they are two different things….
Communication library: Let’s you control the NXT/EV3 over Blutooth, USB and network and works with the standard firmware.
MonoBrick firmware: is a firmware replacement for the EV3
Anders
June 30, 2014 at 10:52 #4469
ramacc0 .ParticipantHi,
I figured last night that you have to use the standard firmware (read it somewhere on this forum). So, after downloading the testprogram again, I tried to run it via usb, but I got exact the same error message.
I used this program and in the attachement you can see the imported files in Xamarin Studio
using System;
using MonoBrick.EV3;namespace ev3
{
class MainClass
{
public static void Main (string[] args)
{var ev3 = new Brick<Sensor,Sensor,Sensor,Sensor>(“usb”);
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();
}
}
}
}Also, what is it easier to develop with the custom firmware? Or is it not necessary to use the custom firmware when trying to progam as efficient as possible?
Hope you can help me.
Regards,
RamaccoAttachments:
You must be logged in to view attached files.June 30, 2014 at 17:02 #4472
ramacc0 .ParticipantI have tried to run the porgram from above on a NXT and it works fine, on the EV3 however, I still get the samen error.Hopefully there is a solution for my problem.
Regards,
Ramacco -
AuthorPosts
You must be logged in to reply to this topic.
Follow