Maybe it is Data. Thank you for the suggestion. A few details I noticed have been marked.
A few people convinced me that the Sonoff's are not defective because of these issues.
Below a part of the code. (The network name has been replaced for "Network-SSID). Even if COM10 is selected in this case,
it says that it is setting COM1 to COM10.
By the looks of it
uploading where it goes wrong. (Arduino does the compiling without Error).
It does not make any difference if
TX and RX are inverted, the result is the same which is strange too.
(Same result with the Arduino and the USB to Serial adapter)
There is some information that if the following messages appear that the Sonoff is not correct in the flash mode.
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
Also some write that it could be an issue of that the USB port can not deliver enough current.
-------------------
De schets gebruikt 248.947 bytes (25%) programma-opslagruimte. Maximum is 958.448 bytes.
Globale variabelen gebruiken 35.864 bytes (43%) van het dynamisch geheugen. Resteren 46.056 bytes voor lokale variabelen. Maximum is 81.920 bytes.
C:\Users\K\AppData\Local\Arduino15\packages\esp8266\tools\esptool\0.4.9/esptool.exe -vv -cd ck -cb 115200 -cp COM10 -ca 0x00000 -cf C:\Users\K\AppData\Local\Temp\arduino_build_599610/"Network-SSID".ino.bin
esptool v0.4.9 - (c) 2014 Ch. Klippel <
ck@atelier-klippel.de>
setting board to ck
setting baudrate from 115200 to 115200
setting port from COM1 to COM10
setting address from 0x00000000 to 0x00000000
espcomm_upload_file
espcomm_upload_mem
setting serial port timeouts to 1000 ms
opening bootloader
resetting board
trying to connect
flush start
setting serial port timeouts to 1 ms
setting serial port timeouts to 1000 ms
flush complete
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
read 0, requested 1
trying to connect
flush start
setting serial port timeouts to 1 ms
setting serial port timeouts to 1000 ms
flush complete
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
read 0, requested 1
trying to connect
flush start
setting serial port timeouts to 1 ms
setting serial port timeouts to 1000 ms
flush complete
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
read 0, requested 1
resetting board
trying to connect
flush start
setting serial port timeouts to 1 ms
setting serial port timeouts to 1000 ms
flush complete
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
read 0, requested 1
trying to connect
flush start
setting serial port timeouts to 1 ms
setting serial port timeouts to 1000 ms
flush complete
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
read 0, requested 1
trying to connect
flush start
setting serial port timeouts to 1 ms
setting serial port timeouts to 1000 ms
flush complete
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
read 0, requested 1
resetting board
trying to connect
flush start
setting serial port timeouts to 1 ms
setting serial port timeouts to 1000 ms
Er is een fout opgetreden bij het uploaden van de schets
flush complete
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
read 0, requested 1
trying to connect
flush start
setting serial port timeouts to 1 ms
setting serial port timeouts to 1000 ms
flush complete
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
read 0, requested 1
trying to connect
flush start
setting serial port timeouts to 1 ms
setting serial port timeouts to 1000 ms
flush complete
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
read 0, requested 1
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
@ Mans-H, Putty does not allow me to do that. But I can give it another try.