Web IDE does not connect with 8266 NodeMCU v.3

Posted on
  • This has been flashed with

    VERSION: "2v04",
      GIT_COMMIT: "3956264e",
      BOARD: "ESP8266_4MB",
      FLASH: 0, RAM: 81920,
      SERIAL: "dc4f227e-3bcd",
      CONSOLE: "Telnet",
      MODULES: "Flash,Storage,hea" ... "r,crypto,neopixel",
      EXPTR: 1073643636
    

    Able to connect and set up Wifi using:

    screen /dev/tty.wchusbserial1460 115200
    

    as well as "nc" over Wifi:

    nc 192.168.0.19 23
    

    However, on a Mac Mojave Chrome, the serial connection does not show (baud rate changed to 115200):

    Handling URL "https://www.espruino.com/ide/#"
    WARNING: Unknown config type 'bool' for Config.SERIAL_FLOW_CONTROL
    No navigator.serial - Web Serial not enabled
    Couldn't connect to wss://localhost:31234 - disabling websockets for this session
    ERROR: serial_frame: getPorts timeout, disabling
    ERROR: getURL("/serial/ports") error : 
    /serial/ports doesn't exist - disabling WebSocket support
    ERROR: getURL("/serial/ports") error : 
    /serial/ports doesn't exist - disabling WebSocket support
    >>> Connecting...
    Set Slow Write = true
    BT> ERROR: NotFoundError: User cancelled the requestDevice() chooser.
    ERROR: [notify_error] Connection Failed.
    >>> Connection Failed.
    WARNING: Unknown config type 'bool' for Config.SERIAL_FLOW_CONTROL
    Config.SERIAL_IGNORE => 
    Config.SET_TIME_ON_WRITE => true
    

    Also can't connect via Wifi.

    Is there a Chrome setting I'm missing?

    I won't mind pasting code using "screen" however I don't know how to include "require"d modules if not already included.

  • Based on the error message No navigator.serial - Web Serial not enabled I guess you are not using the "installed" chrome app. Try to install it: https://chrome.google.com/webstore/detail/espruino-web-ide/bleoifhkdalbjfbobjackfdifdneehpo and that should have access to the serial port.

  • Thanks - I am now running the Chrome app. When I try to connect, both "TCP/IP" and serial ports show up.

    When I tried to connect to /dev/wcusbserial, I could see the Espruino respond but the "Select a port ..." panel does not go away.

    (In the Console, it still shows No navigator.serial even though the IDE could see the serial ports now.)

    I also tried unsuccessfully to connect over Wifi. The 'port' is available but the IDE cannot connect to it.


    2 Attachments

    • Screen Shot 2019-12-15 at 9.00.11 AM.png
    • Screen Shot 2019-12-15 at 9.01.45 AM.png
  • Are you working offline?

  • No ... I'm on the network if that's what you mean.

  • I am now able to connect by Wifi! That gets me going without resorting to serial. Thanks.

  • Ok, so it might be a OS / serial driver issue.
    Just to add: Telnet connection is much faster than serial connection - have fun.

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

Web IDE does not connect with 8266 NodeMCU v.3

Posted by Avatar for user104751 @user104751

Actions