Using the NXT as an EV3 remote control – Part II

I have figured out what the protocol is for the EV3 for the different types (string, number and boolean). I am lucky that the ‘write protocol’ is exactly the same as the ‘read protocol’. So, I figured out the protocol by writing a simple program on the EV3 to send a string, a number and a boolean and then read the bytes at a PC test application. Then it is simple: just write these bytes back to the EV3 for the different types.

The NXT to EV3 Connection Hub is now able to handle the 10 mailboxes, for the three different types (see below the screenshot for the current state of the application):Screenshot NXT2EV3 Connection Hub

Now, I have to make the application more robust. E.g. at this moment, if you [disconnect] the NXT or EV3, the application will crash since the NXT mailboxes are still being polled for incoming messages. If I have solved these problems I will start a beta test…. Volunteers can send me an email.

To be continued…

83 thoughts on “Using the NXT as an EV3 remote control – Part II

      1. Hey can I get those too? I just received my new ev3 and have had the nxt for quiet a bit. I was disappointed when I realized that the language that is between the two is not the same ):

    1. sorry but can you send me a copy of the program please? I am working on a project for my club and I need to transfer information about the degrees of the motors from NXT to EV3. Thanks

  1. I never received any email for the link…? are you sure you sent it to the email associated with my account? I also checked my junk email just in case.

    Thanks, Shubh (Shubh21)

  2. Thanks Hans it was a simple misinterpretation, I do appreciated your generosity and thought for ultimately sending me the files. I am still fairly new to Visual Studio and started when I was thirteen. I am now fourteen and am not able to understand why this error is showing up when I try to run the program. Many thanks, Shubh S.

    PS here are the errors:

    Warning 1 A custom tool ‘ResXFileCodeGenerator’ is associated with file ‘Properties\Resources.resx’, but the output of the custom tool was not found in the project. You may try re-running the custom tool by right-clicking on the file in the Solution Explorer and choosing Run Custom Tool. PC Connection EV3

    Warning 2 A custom tool ‘SettingsSingleFileGenerator’ is associated with file ‘Properties\Settings.settings’, but the output of the custom tool was not found in the project. You may try re-running the custom tool by right-clicking on the file in the Solution Explorer and choosing Run Custom Tool. PC Connection EV3

  3. Dear Hans,

    Frank here again. I asked a few months ago for a download link. You sended me that link but I think you give me the wrong one. (Please correct me if I’m wrong) Because the program is used for sending messages from the pc to ev3 that you explain on this link: https://siouxnetontrack.wordpress.com/2013/09/27/connecting-the-pc-to-our-ev3/ Please, if I’m right, send me the download link of the program to connect the ev3 with the nxt through a PC.

    I’m really fascinated by your ideas and buildings. Keep going!

    Greetings,
    Frank

    1. Dear Frank,

      Thank you for your kind words. Hopefully we can meet in person at Lego World 2014.

      Anyway, with respect to your question: the link that I have sent to you is a link to C# source code, not a ‘ready-to-run’ program. Maybe that is what you expected? I don’t have this ready-to-run program, so if you need it you will have to compile it yourself (Visual Studio Express Edition is free).

      Hope this helps.

      Kind regards,
      Hans

      1. Thanks a lot… Now I have been playing around with your software for some days, but I’m not really sure how it’s supposed to work in between the NXT and EV3. Do you have a small guide or can you explain it to me?

        Regards, Nicolai

  4. I’m in a competition were they won’t let use use anything non Lego even though Lego made an app for a smart phone to control the ev3 we can’t use it. Is there a way to link the nxt and ev3 with USB and have them communicate?

    1. As far as I know, this is not possible. You will have to adapt the firmware (of the EV3 and/or NXT) to make this possible. The most easiest way it communication with a PC, but if that is not possible: you can’t. The only way you could make it work without a connection, is make a light based protocol using the light sensors of both the bricks.

      Best, Hans

      1. You sent me the dropbox link and I downloaded the files but I am completely new to c# and I have no idea how to run the program! Any tips?

  5. hello dear !
    i have a job which need to connect with multiple nxt and ev3 brick ( 5 or more brick)
    can u give me the program for help my job
    the !!!

    1. Hi Oldguy,

      Yes of course, I will send you the Dropbox link as well.

      Good luck with connection all the bricks. Please take care that the reliability in the case of more bluetooth connections drops rapidly.

      Best,
      Hans

      1. hi
        thx a lot of ur reply!!
        i had recevie the your mail, and will try it later!!
        thx again!!

      1. Hi Chris,

        Sorry for the late reply, but of course you can have the source code as well. Will send you the Dropbox link.

        Kind regards / Groetjes,
        Hans O.

  6. Hey, if you don’t mind me asking in 2019, I am in need of your Dropbox link. If you could potentially share it with me, I would love that. Thanks.

Leave a reply to Aaditya karthik Cancel reply