Home→Forums→MonoBrick Communication Library→How to run TestProject on Linux
- This topic has 9 replies, 2 voices, and was last updated 10 years, 9 months ago by Anders Søborg.
-
AuthorPosts
-
March 2, 2014 at 13:29 #4014
FelipeParticipantHello,
I am trying to connect the EV3 through WiFi on Linux.
I have downloaded “TestProject” and tested it using Monodevelop.I just replaced “usb” to “wifi” on Program.cs.
From my debug it seems that it doesn’t work in the following line on Network.cs.
bytes = listener.Receive( ref groupEP)Do I need to modify the program to run it on Linux (Ubuntu 64 bit)?
BTW, the TestProject worked on Windows 8.1, 64 bit using WiFi.
Thanks,
FCMarch 4, 2014 at 18:41 #4020
Anders SøborgKeymasterHi
Thanks for trying MonoBrick
Do I need to modify the program to run it on Linux (Ubuntu 64 bit)?
No modifying the project should not be necessary.
Is the EV3 connected to the WiFi network?
Anders
March 5, 2014 at 12:37 #4026
FelipeParticipantHi, thanks for your reply.
Yes, the EV3 is connected to the WiFi network.
I can log in to the EV3 through telnet on Terminal in Ubuntu.
Also I can get echo on my Ubuntu from the EV3 through TCP using a simple C program.
I am wondering if this is an issue with my settings etc. in Monodevelop on Ubuntu….. 🙁Thanks,
FCMarch 5, 2014 at 15:26 #4027
Anders SøborgKeymasterHi
Try to check out this guide. As you can see the EV3 broadcasts UDP messages on the WiFi network. Are your computer blocking these messages somehow?
Anders
March 6, 2014 at 14:22 #4028
FelipeParticipantHi, thanks for your help.
The TestProject is based on the guide, isn’t it?
I will try to understand that …
Is the port 3015 for EV3 or PC?I tested simple C programs today. The EV3 can get a UDP message from Ubuntu but Ubuntu can’t receive a message from the EV3 yet.
How can I check if my PC is blocking UDP messages?thanks,
FCMarch 6, 2014 at 18:50 #4029
Anders SøborgKeymasterHi
The EV3 can get a UDP message from Ubuntu but Ubuntu can’t receive a message from the EV3 yet.
How did you test that?
How can I check if my PC is blocking UDP messages?
The best way is to test whether or not data is being send back and forth between the PC and the EV3. Use wireshark for this. You should see something like the dump that can be downloaded from the guide…
Anders
March 7, 2014 at 12:52 #4031
FelipeParticipantHi, thanks for the info.
As for the test, firstly I tested this using UDP where the EV3 is a server and the Ubuntu is a client.
http://en.wikipedia.org/wiki/Berkeley_sockets
It worked. While I am testing this I did not see the EV3 on Interface List on Wireshark though..
Then I set EV3 to a client and Ubuntu to a server but it doesn’t work..FC
March 7, 2014 at 19:54 #4035
Anders SøborgKeymasterHi
As for the test, firstly I tested this using UDP where the EV3 is a server and the Ubuntu is a client….
You kind of lost me here… what is it you are trying to do? Are you not using MonoBrick communication library on Linux/Ubuntu to connect to a EV3 brick running the standard firmware?
When you connect the EV3 to your WiFi network it will broadcast UDP messages to show that it is alive… are you receiving these? If not your PC might be blocking UDP traffic or the router might be set to block UDP and/or block broadcast messages.
Anders
March 8, 2014 at 09:14 #4036
FelipeParticipantHi,
I was just testing simple programs temporarily to find out my problems..
I have changed the network type from NAT to Bridged on VMWare where I use Ubuntu.
Then the TestProject using MonoBrick communication library works now on Linux.
Thanks,
FCMarch 11, 2014 at 20:07 #4038
Anders SøborgKeymasterGreat
Anders
-
AuthorPosts
You must be logged in to reply to this topic.
Follow