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?

  • @CrashingDutchman Please describe your operation steps in detail!

    https://github.com/arendst/Sonoff-Tasmot­a Arduino firmware is no problem

    Help!!!


    2 Attachments

    • E85E08F9-63BF-4BFD-B55A-5D6EED0124A7.png
    • 6703EFF5-5311-4337-B78B-010A13AF1D03.png
  • Hello,

    I'm exactly in the case shown on the 2 attachments. I'm on Mac Os. I got esptool 2.2 (latest). I've tried Espruino 1.94 and 1.93.
    Do you think it's matter of power ?
    If my ftdi doesn't deliver enough current, how can I provide good power ? Is it ok to plug a lipo battery 3.7 if I don't plug the 3.3 of the ftdi ?

    Thank you

  • After flashing Espruino firmware to my Sonoff you have to disconnect it from power (USB). Then connect again and make a connection to it with Putty (Serial / 115200 bd).

    Re-connect again and now use Espruino.

  • @BruceChao have you set the baud rate in the Web IDE's settings to 115200?

  • @Gordon 115200


    1 Attachment

    • D99D5E0C-A2F0-4615-A75B-A9D40C4DBF8B.png
  • @CrashingDutchman youtube recording a teaching video? hehe

  • Have you tried unplugging it from USB and re-plugging it - without holding down the button?

  • Do not press the button, repeat the plug three times, and then use the "espruino-p /dev/cu.SLAB_USBtoUART" connection


    1 Attachment

    • D52FE0E4-4B2A-4021-A714-73A97A80D04A.png
  • Connect the IDE before the Sonoff button, press?

  • Ah, you are on a Mac. Not sure how it would work there. I am on Windows.

  • 好吧, 我放弃了!

  • Translates as - Okay, I gave up

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

Sonoff troubles -

Posted by Avatar for CrashingDutchman @CrashingDutchman

Actions