• header.categories
    • header.recent
    • header.tags
    • header.popular
    • register
    • login

    Gateway Error: Unable to open!

    scheduled pinned locked moved Troubleshooting
    8 posts 3 posters 1.7k views 2 watching
    loading-more-posts
    • oldest-to-newest
    • newest-to-oldest
    • most-votes
    reply
    • reply-as-topic
    guest-login-reply
    deleted-message
    • S offline
      SamuelMills
      global: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 one-reply-to-this-post last-reply-time reply quote 0
      • jkandasaJ offline
        jkandasa @SamuelMills
        global:last-edited-by, jkandasa

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

        one-reply-to-this-post last-reply-time reply quote 0
        • S offline
          SamuelMills
          global:last-edited-by,

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

          jkandasaJ one-reply-to-this-post last-reply-time reply quote 0
          • jkandasaJ offline
            jkandasa @SamuelMills
            global: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* 
            
            one-reply-to-this-post last-reply-time reply quote 0
            • S offline
              SamuelMills
              global: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 one-reply-to-this-post last-reply-time reply quote 0
              • T offline
                Tag MOD @SamuelMills
                global: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....

                one-reply-to-this-post last-reply-time reply quote 1
                • S offline
                  SamuelMills
                  global: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 one-reply-to-this-post last-reply-time reply quote 0
                  • T offline
                    Tag MOD @SamuelMills
                    global:last-edited-by,

                    @samuelmills
                    👍 great work!!

                    one-reply-to-this-post last-reply-time reply quote 0
                    • first-post
                      last-post

                    0

                    online

                    644

                    users

                    532

                    topics

                    3.4k

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