5GHz und 2,4GHz haben unterschiedliche SSIDs, insofern kommen sich die nicht in die Quere. Und das 5GHz Netz sieht der SONOFF ja nicht.
Kann es aber gerne auch noch kreutz-testen... Hab selsbt auch keine Ideen mehr...
5GHz und 2,4GHz haben unterschiedliche SSIDs, insofern kommen sich die nicht in die Quere. Und das 5GHz Netz sieht der SONOFF ja nicht.
Kann es aber gerne auch noch kreutz-testen... Hab selsbt auch keine Ideen mehr...
Ok, hab es nun auch explizit mit deaktiviertem 5GHz WLAN getestet. Leider kein Unterschied.
Ich vermute das Modul ist leider doch defekt und wandert jetzt erst mal in meine Ersatzteilkiste, bis ein zweites Modul zum Kreuztest da ist... oder ich noch eine Idee habe. Zur Zeit bin ich Ratlos.
Danke für eure Unterstützung!
Wenn du die möglichkeit hast, kannst das Ding ja mal mit zu einem Bekannten nehmen, und versuchen Ihn da mit dem Wlan zu verbinden. Vorher IP Adresse wieder auf 0.0.0.0 stellen und Wifi Config auf Wifi Manager.
Oder du versuchst es bei dir mal mit dem WPS Modus.
schon versucht bei den Eltern und Schwiegereltern. Hab alles an Hardware in der Familie durch.
Werde es kommende Woche einem Arbeitskollegen mal mitgeben. Evtl. hat er Erfolg beim connect.
kannst du deine user_config mal bitte anhängen? und passwort zensieren nicht vergessen.
Hi Nils,
anbei die user_config
Vorab aber noch ein Hinweis. Ohne jede Verschlüsselung klappt der Zugriff. Hatte eben noch eine Antwort auf github und den Vorschlag mal ohne WPA/WPA2 zu testen!
/*
user_config.h - user specific configuration for Sonoff-Tasmota
Copyright (C) 2018 Theo Arends
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _USER_CONFIG_H_
#define _USER_CONFIG_H_
/*********************************************************************************************\
* ATTENTION: Changes to most PARAMETER defines will only override flash settings if you change
* define CFG_HOLDER.
* Most parameters can be changed online using commands via MQTT, WebConsole or serial
*
* Corresponding MQTT/Serial/Console commands in [brackets]
\*********************************************************************************************/
// -- Localization --------------------------------
//#define MY_LANGUAGE en-GB // English in Great Britain. Enabled by Default
//#define MY_LANGUAGE nl-NL // Dutch in the Netherlands
//#define MY_LANGUAGE de-DE // German in Germany
//#define MY_LANGUAGE pl-PL // Polish in Poland
//#define MY_LANGUAGE it-IT // Italian in Italy
// -- Project -------------------------------------
#define PROJECT "sonoff" // PROJECT is used as the default topic delimiter and OTA file name
// As an IDE restriction it needs to be the same as the main .ino file
#define CFG_HOLDER 0x20180101 // [Reset 1] Change this value to load following default configuration parameters
#define SAVE_DATA 10 // [SaveData] Save changed parameters to Flash (0 = disable, 1 - 3600 seconds)
#define SAVE_STATE 1 // [SetOption0] Save changed power state to Flash (0 = disable, 1 = enable)
// -- Wifi ----------------------------------------
#define WIFI_IP_ADDRESS "0.0.0.0" // [IpAddress1] Set to 0.0.0.0 for using DHCP or IP address
#define WIFI_GATEWAY "192.168.178.1" // [IpAddress2] If not using DHCP set Gateway IP address
#define WIFI_SUBNETMASK "255.255.255.0" // [IpAddress3] If not using DHCP set Network mask
#define WIFI_DNS "192.168.178.1" // [IpAddress4] If not using DHCP set DNS IP address (might be equal to WIFI_GATEWAY)
#define STA_SSID1 "sonoffIoT" // [Ssid1] Wifi SSID
#define STA_PASS1 "01234567890" // [Password1] Wifi password
#define STA_SSID2 "indebuurt2" // [Ssid2] Optional alternate AP Wifi SSID
#define STA_PASS2 "nix" // [Password2] Optional alternate AP Wifi password
#define WIFI_CONFIG_TOOL WIFI_RETRY // [WifiConfig] Default tool if wifi fails to connect
// (WIFI_RESTART, WIFI_SMARTCONFIG, WIFI_MANAGER, WIFI_WPSCONFIG, WIFI_RETRY, WIFI_WAIT)
// -- Syslog --------------------------------------
#define SYS_LOG_HOST "domus1" // [LogHost] (Linux) syslog host
#define SYS_LOG_PORT 514 // [LogPort] default syslog UDP port
#define SYS_LOG_LEVEL LOG_LEVEL_NONE // [SysLog]
#define SERIAL_LOG_LEVEL LOG_LEVEL_DEBUG // [SerialLog]
#define WEB_LOG_LEVEL LOG_LEVEL_INFO // [WebLog]
// -- Ota -----------------------------------------
#define OTA_URL "http://domus1:80/api/arduino/" PROJECT ".ino.bin" // [OtaUrl]
// -- MQTT ----------------------------------------
#define MQTT_USE 0 // [SetOption3] Select default MQTT use (0 = Off, 1 = On)
// !!! TLS uses a LOT OF MEMORY (20k) so be careful to enable other options at the same time !!!
//#define USE_MQTT_TLS // EXPERIMENTAL Use TLS for MQTT connection (+53k code, +20k mem) - Disable by //
// Needs Fingerprint, TLS Port, UserId and Password
#ifdef USE_MQTT_TLS
#define MQTT_HOST "m20.cloudmqtt.com" // [MqttHost]
#define MQTT_FINGERPRINT "A5 02 FF 13 99 9F 8B 39 8E F1 83 4F 11 23 65 0B 32 36 FC 07" // [MqttFingerprint]
#define MQTT_PORT 20123 // [MqttPort] MQTT TLS port
#define MQTT_USER "cloudmqttuser" // [MqttUser] Mandatory user
#define MQTT_PASS "cloudmqttpassword" // [MqttPassword] Mandatory password
#else
#define MQTT_HOST "domus1" // [MqttHost]
#define MQTT_PORT 1883 // [MqttPort] MQTT port (10123 on CloudMQTT)
#define MQTT_USER "DVES_USER" // [MqttUser] Optional user
#define MQTT_PASS "DVES_PASS" // [MqttPassword] Optional password
#endif
#define MQTT_BUTTON_RETAIN 0 // [ButtonRetain] Button may send retain flag (0 = off, 1 = on)
#define MQTT_POWER_RETAIN 0 // [PowerRetain] Power status message may send retain flag (0 = off, 1 = on)
#define MQTT_SWITCH_RETAIN 0 // [SwitchRetain] Switch may send retain flag (0 = off, 1 = on)
#define MQTT_STATUS_OFF "OFF" // [StateText1] Command or Status result when turned off (needs to be a string like "0" or "Off")
#define MQTT_STATUS_ON "ON" // [StateText2] Command or Status result when turned on (needs to be a string like "1" or "On")
#define MQTT_CMND_TOGGLE "TOGGLE" // [StateText3] Command to send when toggling (needs to be a string like "2" or "Toggle")
#define MQTT_CMND_HOLD "HOLD" // [StateText4] Command to send when button is kept down for over KEY_HOLD_TIME * 0.1 seconds (needs to be a string like "HOLD")
// -- MQTT topics ---------------------------------
//#define MQTT_FULLTOPIC "tasmota/bedroom/%topic%/%prefix%/" // Up to max 80 characers
#define MQTT_FULLTOPIC "%prefix%/%topic%/" // [FullTopic] Subscribe and Publish full topic name - Legacy topic
// %prefix% token options
#define SUB_PREFIX "cmnd" // [Prefix1] Sonoff devices subscribe to %prefix%/%topic% being SUB_PREFIX/MQTT_TOPIC and SUB_PREFIX/MQTT_GRPTOPIC
#define PUB_PREFIX "stat" // [Prefix2] Sonoff devices publish to %prefix%/%topic% being PUB_PREFIX/MQTT_TOPIC
#define PUB_PREFIX2 "tele" // [Prefix3] Sonoff devices publish telemetry data to %prefix%/%topic% being PUB_PREFIX2/MQTT_TOPIC/UPTIME, POWER and TIME
// May be named the same as PUB_PREFIX
// %topic% token options (also ButtonTopic and SwitchTopic)
#define MQTT_TOPIC PROJECT // [Topic] (unique) MQTT device topic
#define MQTT_GRPTOPIC "sonoffs" // [GroupTopic] MQTT Group topic
#define MQTT_CLIENT_ID "DVES_%06X" // [MqttClient] Also fall back topic using Chip Id = last 6 characters of MAC address
// -- MQTT - Telemetry ----------------------------
#define TELE_PERIOD 300 // [TelePeriod] Telemetry (0 = disable, 10 - 3600 seconds)
// -- MQTT - Domoticz -----------------------------
#define USE_DOMOTICZ // Enable Domoticz (+6k code, +0.3k mem) - Disable by //
#define DOMOTICZ_IN_TOPIC "domoticz/in" // Domoticz Input Topic
#define DOMOTICZ_OUT_TOPIC "domoticz/out" // Domoticz Output Topic
#define DOMOTICZ_UPDATE_TIMER 0 // [DomoticzUpdateTimer] Send relay status (0 = disable, 1 - 3600 seconds) (Optional)
// -- HTTP ----------------------------------------
#define USE_WEBSERVER // Enable web server and wifi manager (+66k code, +8k mem) - Disable by //
#define WEB_SERVER 2 // [WebServer] Web server (0 = Off, 1 = Start as User, 2 = Start as Admin)
#define WEB_PORT 80 // Web server Port for User and Admin mode
#define WEB_USERNAME "admin" // Web server Admin mode user name
#define WEB_PASSWORD "admin" // [WebPassword] Web server Admin mode Password for WEB_USERNAME (empty string = Disable)
#define FRIENDLY_NAME "Sonoff" // [FriendlyName] Friendlyname up to 32 characters used by webpages and Alexa
#define USE_EMULATION // Enable Belkin WeMo and Hue Bridge emulation for Alexa (+16k code, +2k mem)
#define EMULATION EMUL_NONE // [Emulation] Select Belkin WeMo (single relay/light) or Hue Bridge emulation (multi relay/light) (EMUL_NONE, EMUL_WEMO or EMUL_HUE)
........#endif // _USER_CONFIG_H_
Echt ne harte nuss xD
Handy als HotSpot einrichten kannst du noch versuchen und dann den Sonoff mit dem Handy verbinden.
und nochmal probierme mit LOG_LEVEL_DEBUG_MORE
Hab im code nachgeguckt, es gibt mehr ausgaben beim wifi verbinden mit LOG_LEVEL_DEBUG_MORE
Ja definitiv ne harte nuss...
Android-AP und iOS-Hotspot klappen leider auch nicht. Offenbar geht Verschlüsselung irgendwie bei meinem TH16 nicht... Sehr seltsam... habe aber nun nen Ansatzpunkt...
Werde ich morgen mal weiter analysieren.
Der erhöhte LOG-LEVEL sagt die ganze Zeit, dazwischen wechselt er dann zwischen AP1 und AP2
00:00:16 WIF: Attempting connection...
00:00:17 WIF: Attempting connection...
00:00:18 WIF: Attempting connection...
00:00:19 WIF: Attempting connection...
00:00:20 WIF: Attempting connection...
00:00:21 WIF: Attempting connection...
00:00:22 WIF: Attempting connection...
00:00:23 WIF: Attempting connection...
00:00:24 WIF: Attempting connection...
00:00:25 WIF: Attempting connection...
00:00:26 WIF: Attempting connection...
00:00:27 WIF: Attempting connection...
00:00:28 WIF: Attempting connection...
00:00:29 WIF: Attempting connection...
00:00:30 WIF: Connect failed with AP timeout
Alles anzeigen
Besten Dank für die Unterstützung bisher!
Hallo, wie muss die user_config.h geschrieben werden das es automatisch nach dem Flashen der Module als Standart im AP Modus starten?
Hallo, wie muss die user_config.h geschrieben werden das es automatisch nach dem Flashen der Module als Standart im AP Modus starten?
Also für den Wifi Manager damit du dich mit dem Sonoff verbinden kannst?
#define STA_SSID1 "" // [Ssid1] Wifi SSID
#define STA_PASS1 "" // [Password1] Wifi password
#define STA_SSID2 "" // [Ssid2] Optional alternate AP Wifi SSID
#define STA_PASS2 "" // [Password2] Optional alternate AP Wifi password
#define WIFI_CONFIG_TOOL WIFI_MANAGER
// [WifiConfig] Default tool if wifi fails to connect
// (WIFI_RESTART, WIFI_SMARTCONFIG, WIFI_MANAGER, WIFI_WPSCONFIG, WIFI_RETRY, WIFI_WAIT)
Also einfach WIFI_MANAGER eintragen?
Also für den Wifi Manager damit du dich mit dem Sonoff verbinden kannst?
Genau das
Wird es dann nach einem Reset wieder genommen?
Also einfach WIFI_MANAGER eintragen?
Wird es dann nach einem Reset wieder genommen?
jop, aber auch wenn er wifi verliert
hab es als default auch in der mod so.
wenn du allerdings wifi daten hinterlegst solltest du retry oder wait benutzen
retry oder wait benutzen
Wo ist das genau?
Und muss man die " " bei ssid und passwort lassen?
Hi, das ist in der UserConfigh.
Die SSID und das Passwort kommen zwischen die Anführungszeichen
"SSID"
"Passwort"
Hallo zusammen,
kurzes Update (back to topic) bezgl. der WiFi AP timeouts.
Das Problem scheint TH16 spezifisch oder Geräte spezifisch zu sein. Zumindest konnte ich einen am vergangenen Freitag (02.03.) gelieferten Sonoff Basic/DIY ohne Probleme mit Tasmota bespielen und der AP inkl. Verschlüsselung WPA2 wurde sofort verbunden. Der zweite TH16 ist leider noch unterwegs, ich hoffe, dass er diese Woche für einen Kreuztest ankommt.
Beste Grüße
Robert
Ich häng mich hier mal rein .. hab einen Sonoff 4ch Pro r2, der per Handytethering 1a funktioniert aber mit meiner Fritzbox so gar nicht will. Bin ratlos .. falls hier einer nen Tipp hat .. gerne! VG daniello
In aller Kürze möchte ich hier auch noch meine Lösung nennen (immerhin 6 Stunden später ;-).
Tasmota Classic Bin mit ESPeasy flashen. Danach statische IP per Serial vergeben. Alles andere Mods, DHCP, WPS, AP, verschiedene Programmer, usw. haben mich leider kein bisschen weiter gebracht.