Faced a mechanical beaver in Ubuntu with a problem. I launch the Putty SSH client (guevskiy so that everything is “dialed” with the mouse) and I select the serial tab. I enter the address /dev/ttyUSB0 press open and displays an error:

Unable to open connection to / dev / ttyUSB0:

Unable to open serial port

I check the device in the dev folder and there really is a file /dev/ttyUSB0 when the wire is pulled out, it disappears, and the folders /dev/serial/by-id and /dev/serial/by-path also appear and disappear in each of them according to the file in general as it should be.

I thought the device "breaks" decided to send messages to him (FIG know why)

 echo ":0101010000" > /dev/ttyUSB0 bash: /dev/ttyUSB0: Отказано в доступе echo ":0101010000" > /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AI05HLY6-if00-port0 bash: /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AI05HLY6-if00-port0: Отказано в доступе 

    1 answer 1

    In general, it is surprising, but you just had to use the console and enter the command

     sudo putty /dev/ttyUSB0 -serial -sercfg 9600,8,n,1,N 

    You will say too little for an answer and, in fact, this is not a question, I don’t argue BUT I have been struggling with this crap for half a day (I have all “sinned” on the device), but in fact I thought I was too accustomed to working on Windows according to this and “getting scared” . And yes surprised Guichka did not work, but the console worked: 3

    • 3
      and it is even better to see what group the device has and add your user to it (without forgetting to relogin) ... - Fat-Zer pm
    • @FatZer, logging is not necessary if you know the newgrp command. - 0andriy