Hallo,
versuche meinen Arduino Uno für Signalduino zu pimpen, aber bekomme keine Verbindung.
Bin nach dem Wiki vorgegangen:
ls -l /dev/serial/by-id
insgesamt 0
lrwxrwxrwx 1 root root 13 Mai 26 09:38 usb-Arduino__www.arduino.cc__0043_95432313138351316160-if00 -> ../../ttyACM0
update
update all https://raw.githubusercontent.com/RFD-FHEM/RFFHEM/dev-r33/controls_signalduino.txt
define SignalDuino1 SIGNALduino dev/serial/by-id/usb-Arduino__www.arduino.cc__0043_95432313138351316160-if00-port0@57600
LOG
2017.05.26 10:32:39 0: Server shutdown
2017.05.26 10:32:42 1: Including fhem.cfg
2017.05.26 10:32:42 3: telnetPort: port 7072 opened
2017.05.26 10:32:42 3: WEB: port 8083 opened
2017.05.26 10:32:42 3: WEBphone: port 8084 opened
2017.05.26 10:32:42 3: WEBtablet: port 8085 opened
2017.05.26 10:32:42 2: eventTypes: loaded 16 events from ./log/eventTypes.txt
2017.05.26 10:32:42 3: Opening Fritzbox device 192.168.1.1:2002
2017.05.26 10:32:42 1: FBAHA Fritzbox registered with handle: 0000000c
2017.05.26 10:32:42 3: Fritzbox device opened
2017.05.26 10:32:43 3: SignalDuino1: IDlist MS 0 1 13 14 15 17 2 22 23 25 3 32 33 35 38 4 41 51 55 6 7
2017.05.26 10:32:43 3: SignalDuino1: IDlist MU 13.1 16 20 21 24 26 27 28 29 30 31 34 36 37 39 40 44 44.1 45 46 48 49 5 50 56 59 60 61 62 63 64 65 8 9
2017.05.26 10:32:43 3: SignalDuino1: IDlist MC 10 11 12 18 43 47 52 57 58
2017.05.26 10:32:43 3: Opening SignalDuino1 device dev/serial/by-id/usb-Arduino__www.arduino.cc__0043_95432313138351316160-if00-port0
2017.05.26 10:32:43 3: Can't open dev/serial/by-id/usb-Arduino__www.arduino.cc__0043_95432313138351316160-if00-port0: Datei oder Verzeichnis nicht gefunden
2017.05.26 10:32:43 1: Including ./log/fhem.save
2017.05.26 10:32:43 1: usb create starting
2017.05.26 10:32:43 3: Probing CUL device /dev/ttyACM0
2017.05.26 10:32:44 3: Probing TCM_ESP3 device /dev/ttyACM0
2017.05.26 10:32:44 3: Probing ZWDongle device /dev/ttyACM0
2017.05.26 10:32:44 3: Probing FRM device /dev/ttyACM0
2017.05.26 10:32:50 3: Probing CUL device /dev/ttyAMA0
2017.05.26 10:32:50 3: Can't open /dev/ttyAMA0: Keine Berechtigung
2017.05.26 10:32:50 1: usb create end
2017.05.26 10:32:50 2: SecurityCheck: WEB,WEBphone,WEBtablet has no associated allowed device with basicAuth. telnetPort has no associated allowed device with password/globalpassword. Restart FHEM for a new check if the problem is fixed, or set the global attribute motd to none to supress this message.
2017.05.26 10:32:50 0: Featurelevel: 5.8
2017.05.26 10:32:50 0: Server started with 18 defined entities (fhem.pl:14348/2017-05-22 perl:5.020002 os:linux user:fhem pid:762)
Zitat von: noxx am 26 Mai 2017, 10:27:07
lrwxrwxrwx 1 root root 13 Mai 26 09:38 usb-Arduino__www.arduino.cc__0043_95432313138351316160-if00 -> ../../ttyACM0
define SignalDuino1 SIGNALduino dev/serial/by-id/usb-Arduino__www.arduino.cc__0043_95432313138351316160-if00-port0@57600
Diese beiden Angaben passen auch nicht zusammen: Das "-port0" im define dürfte zu viel des Guten sein...
Gruß, Beta-User
define SignalDuino1 SIGNALduino dev/serial/by-id/usb-Arduino__www.arduino.cc__0043_95432313138351316160-if00@57600
sieht auch nicht besser aus
Log sieht auch nicht besser aus, Pfad ist aber korrekt
2017.05.26 10:47:48 3: Opening SignalDuino1 device dev/serial/by-id/usb-Arduino__www.arduino.cc__0043_95432313138351316160-if00
2017.05.26 10:47:48 3: Can't open dev/serial/by-id/usb-Arduino__www.arduino.cc__0043_95432313138351316160-if00: Datei oder Verzeichnis nicht gefunden
OK, vieleleicht solltne wir den Pfad noch mit einem "/" beginnen ::) ...
Also
define SignalDuino1 SIGNALduino /dev/serial/by-id/usb-Arduino__www.arduino.cc__0043_95432313138351316160-if00@57600
danke, das wars
EDIT
Flashen will er aber anscheinend nichtflashing Arduino SignalDuino1
hex file: ./FHEM/firmware/SIGNALduino_uno.hex
port: /dev/serial/by-id/usb-Arduino__www.arduino.cc__0043_95432313138351316160-if00
log file: ./log/SIGNALduino-Flash.log
SignalDuino1 closed
command: avrdude -c arduino -b 57600 -P /dev/serial/by-id/usb-Arduino__www.arduino.cc__0043_95432313138351316160-if00 -p atmega328p -vv -U flash:w:./FHEM/firmware/SIGNALduino_uno.hex 2>./log/SIGNALduino-Flash.log
--- AVRDUDE ---------------------------------------------------------------------------------
avrdude: Version 6.1, compiled on Jul 7 2015 at 10:29:47
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "/etc/avrdude.conf"
Using Port : /dev/serial/by-id/usb-Arduino__www.arduino.cc__0043_95432313138351316160-if00
Using Programmer : arduino
Overriding Baud Rate : 57600
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
avrdude done. Thank you.
--- AVRDUDE ---------------------------------------------------------------------------------
SignalDuino1 opened
Hmmm;
das kann nun viele Ursachen haben...
Die Rechte scheinen zu stimmen (fhem ist Mitgleid in dialout?), ich würde daher entweder auf ein Stromproblem tippen oder das reset-Problem eines China-FTDI-Clons. Also:
- erstmal abziehen und wieder einstecken, evtl. reicht das schon
- ggf. reset-Knopf am Arduino drücken kurz vor dem flash-Befehl
- dann: Aktiver Hub, alles andere mal weg von USB
- Netzteil hinreichend stark?
- anderer Rechner vorhanden, mit dem man das flashen erledigen könnte
Gruß, Beta-User
Hi,
Es handelt sich um einen Fehler beim Flashen, den ich leider auch noch nicht behoben habe.
Avrdude wird zum Flaschen mit einer für den UNO nicht kompatiblen Baudrate aufgerufen.
Du könntest die Firmware versuchen von der Kommandozeile zu flashen.
Grüße Sidey
Gesendet von meinem Nexus 5 mit Tapatalk
Du kannst das Attribut flashCommand ändern, dann klappt der Flash Befehl direkt aus FHEM:
attr sduno flashCommand avrdude -c arduino -b 115200 -P [PORT] -p atmega328p -vv -U flash:w:[HEXFILE] 2>[LOGFILE]
Danke
Gesendet von meinem GT-I9195 mit Tapatalk