REXYGEN Community Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Login

    REXduino - REXLANG Error

    General
    2
    6
    1.0k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mtomek
      last edited by

      Hi,
      I have a big problem with communication between the Raspberry PI and the ArduinoMega2560. RPI stoped communication with Arduino after the error, see below. It happens several times per a day. I use REXYGEN 2.50.10.12932, Arduino IDE 1.8.12 and REXduino master/slave version 2.2.0.
      Thanks for the reply.
      Best regards.
      Michal
      e67d04fa-0873-486f-ab4b-c3f6cc88605a-obrazek.png

      R 1 Reply Last reply Reply Quote 0
      • R
        reitinge @mtomek
        last edited by reitinge

        @mtomek Hi Michal,
        it seems that the problem occurs when REXYGEN sends some user data to Arduino and Arduino responds. Are you using userSendV input of the Arduino_MEGA2560hex block?

        Cheers,
        Jan

        M 1 Reply Last reply Reply Quote 0
        • M
          mtomek @reitinge
          last edited by

          @reitinge Hi Jan,
          I don't use the userSend input of block Arduino_MEGA2560Hex.
          Thanks.
          Michal
          8752eea3-a610-4335-885c-863c4a952bc7-obrazek.png

          R 1 Reply Last reply Reply Quote 0
          • R
            reitinge @mtomek
            last edited by

            @mtomek It occurs to me that you do not have the latest version of REXduino block library. The Arduino_MEGA2560hex block should have the last input and output named userSendV and userRecvV. Please, download the git repository and look into REXduino_master/Examples/51_MEGA2560hex_IO.
            obrázek_2021-07-02_144656.png

            If you downloaded the new version of REXduino recently, you should replace the original Arduino_MEGA block with a new one. Also, please update the REXduino_master.c script and upload a new REXduino_slave.ino sketch into Arduino.

            M 1 Reply Last reply Reply Quote 0
            • M
              mtomek @reitinge
              last edited by

              @reitinge Hi Jan,
              I had downloaded the latest version 2.2.0 of the Rexduino library. The problem was that I only replaced the REXduino_master.c library, but I forgot replace the REXduino_library.mdl library. So I have an old function block left in the project.
              Now the error didn´t appear.
              Thank you so much for the solution.
              Best regards
              Michal

              R 1 Reply Last reply Reply Quote 0
              • R
                reitinge @mtomek
                last edited by

                @mtomek Hi Michal,
                you are welcome. I'm glad the problem has been fixed.

                Cheers,
                Jan

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post

                This is a community forum for REXYGEN users and fans. Detailed information can be found at REXYGEN homepage.

                There is also an outdated REXYGEN community forum.

                Powered by NodeBB.