Dear friends, I have a beginners question.

esp8266
gplus
(Helmut “Quasi” Qualtinger) #1

Dear friends,

I have a beginners question. I had my 8266 running happily under Windows and the arduino IDE. Now I switched to Ubuntu Linux, and when I compile my sketch it works fine but it does not download to the board. I get the following message in a mixture of English and German

Arduino: 1.8.5 (Linux), Board: “Arduino Yún”

Der Sketch verwendet 3706 Bytes (12%) des Programmspeicherplatzes. Das Maximum sind 28672 Bytes.
Globale Variablen verwenden 151 Bytes (5%) des dynamischen Speichers, 2409 Bytes für lokale Variablen verbleiben. Das Maximum sind 2560 Bytes.
Erzwinge Reset durch öffnen/schließen mit 1200 bps auf dem Port /dev/ttyUSB0
processing.app.debug.RunnerException
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:160)
at cc.arduino.UploaderUtils.upload(UploaderUtils.java:78)
at processing.app.SketchController.upload(SketchController.java:713)
at processing.app.SketchController.exportApplet(SketchController.java:686)
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2168)
at java.lang.Thread.run(Thread.java:748)
Caused by: processing.app.SerialException: Fehler beim Ansprechen des seriellen Ports “/dev/ttyUSB0”.
at processing.app.Serial.touchForCDCReset(Serial.java:107)
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:144)
… 5 more
Caused by: jssc.SerialPortException: Port name - /dev/ttyUSB0; Method name - openPort(); Exception type - Permission denied.
at jssc.SerialPort.openPort(SerialPort.java:170)
at processing.app.Serial.touchForCDCReset(Serial.java:101)
… 6 more

Has anyone run into this problem, and found a solution?

Thanx so much

(Robert Schreiner) #2

Prüf’ auf der Kommandozeile mit dem Befehl “id” Deine Gruppenzugehörigkeit!
Bist Du in der Gruppe “dialout”?

(Helmut “Quasi” Qualtinger) #3

@Robert_Schreiner helmut@helmut:~/Schreibtisch$ id
uid=1000(helmut) gid=1000(helmut) Gruppen=1000(helmut),4(adm),5(tty),10(uucp),20(dialout),24(cdrom),27(sudo),30(dip),46(plugdev),118(lpadmin),126(sambashare)

Soviel ich verstehe bin ich das

(Robert Schreiner) #4

Ja, ich wollte das prüfen, wg. dem “Permission denied”

(Robert Schreiner) #5

Arduino Yun ist doch kein ESP8266?!

(Robert Schreiner) #6

Hast Du die Boardbibliotheken installiert?

(Eric Davies) #7

Your baud rate looks a bit low at 1200 bps.

(Michael Gebetsroither) #8

Welche Rechte hat dein /dev/ttyUSB0? Weil deine arduino IDE bekommt beim Zugriff darauf ein permission denied.
Z.b output von ls -lah des devices posten, hast du irgendwelche Gruppenrechte deines Users gerade erst geändert, dann u.u neu einloggen.
In einer Shell einfach Mal ein cat auf das device machen, u.u ein terminal draufhängen zum manuellen damit zu reden.

(Mano Biletsky (Open MAKER)) #9

Your baudrate should be 115200

(Helmut “Quasi” Qualtinger) #10

Sorry for replying so late, the solution was finally to install the IDE application not through ubuntu app-get but get it directly from arduino.cc. The issue was more compicated than setting user groups and name but had to do with a special access control in Unbuntu. Now I can access at least my ESP8266s and Unos. I still have an issue with the Nanos. I will resolve it when I return to this board if ever… There is very littly reason left to work with below ESP8266

(Michael Gebetsroither) #11

Sounds like missing udev rules and thus your device not being in the correct groups.
Hint: you can also just make a chmod 777 on the device as a temporary measure.

(Walter Rorschach) #12

@Michael_Gebetsroithe Thank you for this advice, unfortunately it did not resolve my problem. In the end the complete reinstallation of the IDE did the trick.