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

Gateway Error: Unable to open!

Scheduled Pinned Locked Moved Troubleshooting
8 Posts 3 Posters 1.5k 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 4 Jan 2018, 15:56

    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

    J 1 Reply Last reply 4 Jan 2018, 16:39 Reply Quote 0
    • J Offline
      jkandasa @SamuelMills
      last edited by jkandasa 1 Apr 2018, 22:09 4 Jan 2018, 16:39

      @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 4 Jan 2018, 16:50

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

        J 1 Reply Last reply 4 Jan 2018, 17:04 Reply Quote 0
        • J Offline
          jkandasa @SamuelMills
          last edited by 4 Jan 2018, 17:04

          @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 4 Jan 2018, 18:42

            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 5 Jan 2018, 07:07 Reply Quote 0
            • T Offline
              Tag MOD @SamuelMills
              last edited by Tag 1 May 2018, 12:39 5 Jan 2018, 07:07

              @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 5 Jan 2018, 14:40

                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 5 Jan 2018, 16:54 Reply Quote 0
                • T Offline
                  Tag MOD @SamuelMills
                  last edited by 5 Jan 2018, 16:54

                  @samuelmills
                  👍 great work!!

                  1 Reply Last reply Reply Quote 0
                  8 out of 8
                  • First post
                    8/8
                    Last post

                  0

                  Online

                  624

                  Users

                  531

                  Topics

                  3.4k

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