• 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?


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

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

  • @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* 

  • 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

  • MOD


    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....

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

  • MOD

    👍 great work!!

Suggested Topics