How to run TestProject on Linux

HomeForumsMonoBrick Communication LibraryHow to run TestProject on Linux

This topic contains 9 replies, has 2 voices, and was last updated by Author Image Anders Søborg 3 years, 5 months ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #4014
    Author Image
    Felipe
    Participant

    Hello,
    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,
    FC

    #4020
    Author Image
    Anders Søborg
    Key Master

    Hi

    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

    #4026
    Author Image
    Felipe
    Participant

    Hi, 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,
    FC

    #4027
    Author Image
    Anders Søborg
    Key Master

    Hi

    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

    #4028
    Author Image
    Felipe
    Participant

    Hi, 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,
    FC

    #4029
    Author Image
    Anders Søborg
    Key Master

    Hi

    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

    #4031
    Author Image
    Felipe
    Participant

    Hi, 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

    • This reply was modified 3 years, 5 months ago by Author Image Felipe. Reason: change
    • This reply was modified 3 years, 5 months ago by Author Image Felipe. Reason: change
    #4035
    Author Image
    Anders Søborg
    Key Master

    Hi

    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

    #4036
    Author Image
    Felipe
    Participant

    Hi,
    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,
    FC

    #4038
    Author Image
    Anders Søborg
    Key Master

    Great

    Anders

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.

Posted in

Make a donation