SIGNALduino Selbstbau, Flash will einfach nicht

Begonnen von KlausJ, 08 September 2019, 15:43:07

Vorheriges Thema - Nächstes Thema

KlausJ

Hallo,

als Fhem Anfänger versuche ich ich am Selbstbau eines SIGNALduino mit Arduino Nano und CC1101 Modul.

Zunächst musste ich feststellen, dass der gekaufte Nano keinen Bootloader drauf hatte. Mit einem stk500 und der Arduino IDE hab ich den installiert. Damit kann das Blink Demo sowohl mit der Arduino IDE, als auch mit Visual Studio plus Visual Micro ohne Programmiergerät, also direkt mit einem USB Kabel am Nano angeschlossen hochgeladen werden und das Teil blinkt mit der richtigen Rate.

Anschließend hab ich versucht genau nach der Beschreibung https://wiki.fhem.de/wiki/SIGNALduino#Flashen_des_Arduino_mit_der_SIGNALduino_Firmware vorzugehen. Dabei gehe ich von der Annahme aus, dass beim Flashen mit Fhem kein Programmiergerät nötig ist. Täusche ich mich da? Immerhin wird dem SIGNALduino Device ja nur ein COM Port definiert. Ein Programmiergerät würde ja auf einem anderen COM Port zu sehen sein.

Nach einem "define sduino SIGNALduino /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0@57600" unter Linux bzw. "define sduino SIGNALduino COM4@57600" sehe ich das sduino, das ein set und ein get Kommando anbietet. "get sduino availableFirmware" liefert aber nur die Fehlermeldung "sduino is not active, may firmware is not suppoted, please flash or reset".

Setze ich die Attribute für "hardware" und oder "updateChannelFW" wird das get Kommando nicht mal mehr angezeigt. Und vor allem funktioniert das Flashen nicht. Weder unter Linux, noch unter Windows.

Unter Linux liefert es folgenden Flashlog:

avrdude: Version 6.3
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "/etc/avrdude.conf"
         User configuration file is "/root/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0
         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.

Vermutlich mache ich nur irgend einen dummen Anfängerfehler. Im Web und im Forum finden sich zwar unendlich viele Infos, aber alles, was ich ausprobiert habe führt zum selben Ergebnis.

Beste Grüße,

Klaus

Beta-User

Welchen Bootloader hast du installiert?

Ich würde darauf tippen, dass du den Optiboot drauf hast, aber die Signalduino-firmware noch für den "langjährigen alten" BL compiled wurde.

Also entweder die firmware selber für den neuen BL backen oder den BL nochmal tauschen...

(Vielleicht verschiebst du das auch in den passenden Forumsbereich, würde m.E. eventuell Sinn machen, eine "Optiboot-Variante" anzubieten, aber hier sieht das ggf. das zuständige Entwicklerduo nicht).
Server: HP-elitedesk@Debian 12, aktuelles FHEM@ConfigDB | CUL_HM (VCCU) | MQTT2: ZigBee2mqtt, MiLight@ESP-GW, BT@OpenMQTTGw | ZWave | SIGNALduino | MapleCUN | RHASSPY
svn: u.a Weekday-&RandomTimer, Twilight,  div. attrTemplate-files, MySensors