Sonoff troubles -

Posted on
  • I am trying to flash a Sonoff with Espruino.

    It seems that erasing flash and flashing works, but the Espruino Web IDE does not. After connecting (while holding the button I insert the connected USB programmer into an USB port) I select the correct port and get a connected message in the console. However, the console does not respond to any key I enter.

    In Settings -> Console I see:

    >>> Connecting...
    Set Slow Write = true
    [object Object]
    Connected [object Object]
    Found a prompt... great!
    >>> Sending...
    ---> "echo(0);\nconsole.log(\"<\",\"<<\",JSON­.stringify(process.env),\">>\",\">\");ec­ho(1);\n"
    Sending block "echo(0);\nconsol", wait 50ms
    Sent
    Sending block "e.log(\"<\",\"<<\",", wait 50ms
    Sent
    Sending block "JSON.stringify(", wait 50ms
    Sent
    Sending block "process.env),\">", wait 50ms
    Sent
    Sending block ">\",\">\");echo(1)", wait 50ms
    Sent
    Sending block ";\n", wait 50ms
    Sent
    >>> Sent
    WARNING: No result found - just got ""
    Device found (connectionId=9)
    >>> Connected to port COM4
    

    Please note the: Warning No result found - just go"". This has been discussed in this thread too, however the suggestions do not seem to work.

    Also when connecting to the Sonoff through Putty does not show any characters coming from Sonoff.

    After each erase or flash I disconnect the Sonoff from my PC.

    I appreciate any suggestions to try.

  • My (2) sonoff is worked good without any problem.

    But now I try to flash a simple esp8266. The flasing is success. And I think I got the same:

    >>> Connecting...
    Set Slow Write = true
    [object Object]
    Connected [object Object]
    Found a prompt... great!
    >>> Sending...
    ---> "echo(0);\nconsole.log(\"<\",\"<<\",JSON­.stringify(process.env),\">>\",\">\");ec­ho(1);\n"
    Sending block "echo(0);\nconsol", wait 50ms
    Sent
    Sending block "e.log(\"<\",\"<<\",", wait 50ms
    Sent
    Sending block "JSON.stringify(", wait 50ms
    Sent
    Sending block "process.env),\">", wait 50ms
    Sent
    Sending block ">\",\">\");echo(1)", wait 50ms
    Sent
    Sending block ";\n", wait 50ms
    Sent
    >>> Sent
    WARNING: No result found - just got ""
    Device found (connectionId=20)
    >>> Connected to port /dev/ttyUSB0
    Sending block "1", wait 50ms
    Sent
    Sending block "1", wait 50ms
    Sent
    Sending block "\r", wait 50ms
    Sent
    Sending block "1", wait 50ms
    Sending block "2", wait 50ms
    
  • I think it will be a power supply issue. When espurino on the esp8266 boots for the first time, the AP mode is on which draws more current.

    From memory the ftdi boards can can't supply enough current.

  • For those who has not sent this on gitter, here is a blog that talks about the insides...

    http://tech.scargill.net/itead-slampher-­and-sonoff/

    The relay is on gpio12.

    Also on dx.com
    http://www.dx.com/p/diy-smart-wi-fi-wire­less-switch-w-abs-shell-case-for-home-wh­ite-422387#.V1lWlcqeqrV

  • Thanks @Wilberforce. I will try to power my Sonoff from external power while connecting tx/rx over the ftdi usb programmer.

  • Hello, how is your problem solved? I now also encounter the same problem, the connection, the console can not accept the keyboard operation

  • I solved it by disconnecting and reconnecting the Sonoff and make a connection with Putty first. Then disconnect and connect again with the Espruino IDE. Make sure your FTDI USB programmer can provide enough current at 3V.

  • Putty?
    screen /dev/tty.usbserial 115200? no response
    Disconnected, connected, repeated several times?
    current at 3.3V

  • Does Sonoff need access to power?

  • Does Sonoff need access to power?

    Not if you provided 3.3v to it. Did the flashing process complete successfully?

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Sonoff troubles -

Posted by Avatar for CrashingDutchman @CrashingDutchman

Actions