MonoBrick Tunnel for Android

BlockDiagram
The MonoBrick Tunnel for Android allows you to control a LEGO Mindstorms Brick over a Wi-Fi or 3G connection from the MonoBrick Remote while streaming live video. The tunnel works by placing the phone on the robot and connecting to the LEGO Mindstorms Brick via Bluetooth. Then from the MonoBrick Remote you connect to the Tunnel which then forwards messages from TCP/IP to Bluetooth and vice versa.

All features from the MonoBrick communication library and the MonoBrick Remote can be used with the Tunnel. This includes reading sensors, starting a program, upload a file and controlling  a vehicle – the tunnel can be downloaded from Google Play. With the MonoBrick Android Tunnel you can:

  • Control a vehicle over Wi-Fi or 3G
  • Stream live video using VLC (needs to be installed)
  • Connect to the phone when it is NAT’ed (when the phone is using 3G)
  • Select between three different resolutions and bitrates to match the bandwidth of your connection

In order to stream video you need to download and install VLC

Pairing your phone with the LEGO Brick

The first time you run MonoBrick Tunnel you will be guided through the process of  pairing you phone with your LEGO Brick. This is shown on the screenshots below.

Once the phone and LEGO Brick has been paired use the settings to determine what port to use for TCP/IP communication and video streaming. This is described below.

Running the tunnel on a Wi-Fi network

Make sure that the phone is only connected to the Wi-Fi network and not a 3G network before starting the tunnel. To start the tunnel and create a connection from the MonoBrick Remote simply follow the procedure as shown below.

You should now be able control the brick over a Wi-Fi network. To start video streaming go to the tunnel tab and press start streaming. Note that it is only necessary to set the RTSP port and video port on the phone. If you are not able to establish a connection please make sure to disable any firewalls that you might have running.

Running the tunnel over a 3G network

Make sure that the phone is only connected to the 3G network and not a Wi-Fi network before starting the tunnel. You also need to make sure that traffic to your PC is forwarded – normally this involves setting up port forwarding on your router. Once you have made sure that traffic on the Tunnel port, RTSP port and video port is forwarded establishing a connection from the phone to a PC running the MonoBrick Remote is done as shown below.

Following this procedure you should now be able control the brick over a 3G network.

Support

Questions related to the MonoBrick Tunnel for Android can be found in the MonoBrick communication library forum.

13 comments on “MonoBrick Tunnel for Android
  1. Author Image Fabien RIVOIRE says:

    Great Job ! And tks for All !
    I have a problem with the Monobrick Tunnel soft under W7 X64 Bit :
    I am able to connect to my android phone but i received this status message “Error reading NXT reply”

    Do you have an idea ? (last firmware install in my ev3 / and GTK# 2.12.21)

    Best regards.

    Fabien

    • The Tunnel does not work with the EV3. The firs sentence on the page says

      The MonoBrick Tunnel makes it possible to communicate with the LEGO Mindstorms NXT Brick over a Wi-Fi or internet connection using…

      But I will add support once I have completed my C# firmware replacement project for the EV3.

      Anders

  2. Author Image M42 says:

    Hi. Is it possible to control the NXT from a PC wired to a Wi-Fi network?

    Thanks!

  3. Hello,can you please make this app on iOS? My tablet cant download it(

Leave a Reply

Login with:

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Download

Make a donation