• Categories
    • Recent
    • Tags
    • Popular
    • Register
    • Login

    Gateway Error: Unable to open!

    Scheduled Pinned Locked Moved Troubleshooting
    8 Posts 3 Posters 1.3k Views 2 Watching
    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.
    • S Offline
      SamuelMills
      last edited by

      I have installed MyController on a Raspberry Pi 3 and have built a serial gateway with an Arduino Nano and uploaded the example sketch. Based on the serial monitor output read in the Arduino IDE, the gateway is working, and receiving data from my other sensor. When I attempt to add a controller from the MyController resources page, I get "Error: Unable to open!" for the status message. Under connection details, I have listed
      "Port:/dev/tty/USB0, BaudRate:115200, Driver:Auto[jSerialComm], RetryFrequency:60 Second(s)"

      I have selected each of the driver options, but they give me worse (and more clear) status messages.

      Any ideas on how to over come this issue?

      Thanks

      jkandasaJ 1 Reply Last reply Reply Quote 0
      • jkandasaJ Offline
        jkandasa @SamuelMills
        last edited by jkandasa

        @samuelmills I guess in your serial port name there is a typo. It should be /dev/ttyUSB0

        1 Reply Last reply Reply Quote 0
        • S Offline
          SamuelMills
          last edited by

          Yes, that was a typo, unfortunately it did not fix the problem.

          jkandasaJ 1 Reply Last reply Reply Quote 0
          • jkandasaJ Offline
            jkandasa @SamuelMills
            last edited by

            @samuelmills When you change your gateway details you need to perform reload action for your gateway on your MyController GUI.

            Kindly check your Arduino Nano lists on the /dev/ttyUSB0 port. Run this command on your RPI 3

            sudo ls -lh /dev/ttyUSB* 
            
            1 Reply Last reply Reply Quote 0
            • S Offline
              SamuelMills
              last edited by

              I have deleted and re-installed the gateway with the correct port name.
              I also ran the command you requested and returned this result:
              crw-re---- 1 root dialout 188, 0 Jan 4 06:26 /dev/ttyUSB0

              Thanks for the help

              T 1 Reply Last reply Reply Quote 0
              • T Offline
                Tag MOD @SamuelMills
                last edited by Tag

                @samuelmills

                Does it work now?,
                if you execute the command

                tail -f < /dev/ttyUSB0 
                

                does that give you any output?

                if not it might be that you need to add your user account to the dialout group in /etc/group

                It might also be that the device file you use is another one, in that case verify with:

                1. unplug your arduino
                2. issue the command dmesg
                3. plug in your arduino
                4. issue the command dmesg

                Now check which device file is created in the output of the dmesg command,
                an original arduino might use /dev/ttyACM0 depending on the usb--> serial chip that is used....

                1 Reply Last reply Reply Quote 1
                • S Offline
                  SamuelMills
                  last edited by

                  Thank you all for the help. I added my user to the tty group and was able to connect to my gateway.

                  T 1 Reply Last reply Reply Quote 0
                  • T Offline
                    Tag MOD @SamuelMills
                    last edited by

                    @samuelmills
                    👍 great work!!

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

                    0

                    Online

                    586

                    Users

                    529

                    Topics

                    3.4k

                    Posts
                    Copyright © 2015-2025 MyController.org | Contributors | Localization