Copyright ©

Mongoose OS Forum

ATTENTION! This forum has moved to:

Do not post any new messages.

Unable to connect NodeMcu device via wizard mode

Pradeep_CSEPradeep_CSE Bangalore
edited April 2017 in Mongoose Binary

E0424 20:37:28.144625 1160 reconnect_wrapper.go:72] [reconnectWrapperCodec to COM3; connected] Connection closed
Calling Sys.GetInfo

Version: 20170424-142928/master@e733dbf3

Platform : Windows10


  • After looking into infologs, I doubt tool is not considering the Serialport input( by default it is considering COM3 which is invalid)

    I0424 21:38:58.404984 1160 ui.go:75] Websocket recv error: EOF, closing connection
    I0424 21:38:58.666999 1160 serial.go:155] closing serial COM3
    E0424 21:38:58.699002 1160 reconnect_wrapper.go:72] [reconnectWrapperCodec to COM3; connected] Connection closed
    I0424 21:38:58.699002 1160 mgrpc.go:228] devConn is disconnected, breaking out of the recvLoop%!(EXTRA *errors.Err=The handle is invalid.)
    I0424 21:38:59.199456 1160 serial.go:45] Opening COM3...
    I0424 21:38:59.320737 1160 serial.go:55] COM3 opened: &{0x130b42a0 1368 {0 0} {0 0} 0x12f54e00 0x12f54e20}, err:
    I0424 21:38:59.320737 1160 reconnect_wrapper.go:98] [reconnectWrapperCodec to COM3; connected] connected
    I0424 21:38:59.701094 1160 serial.go:186] handshake complete

  • SergeySergey Dublin, Ireland

    Is port dropdown populated correctly on the first wizard screen?

  • Yes, the port dropdown is populated correctly, when we select the right port and say next it just keeps loading. No error will be popped up.

  • SergeySergey Dublin, Ireland

    Try to run mos from the command line like this:

    mos --port YOUR_COM_PORT ui

    And see if the UI works properly. Also, make sure you don't have any other mos process hanging around.

  • "mos --port YOUR_COM_PORT ui" works properly :) Thanks.

    The only overhead is we need to use command line to set wifi / connect AWS .
    The new tool is pretty good ! Hope this wizard issue will be fixed soon.

    Thank you :)

  • Pradeep_CSEPradeep_CSE Bangalore


    There is a problem
    "failed to upload aws-iot-c6edc48d4f.crt.pem: context deadline exceeded"
    how to fix ?

  • Pradeep_CSEPradeep_CSE Bangalore

    unable to see any msgs on AWS console ( using example Button MQTT)

    my region / thing info

    Published: yes topic: $aws/things/esp8266_0DD8CA/shadow/update message: {"free_ram":36100,"total_ram":51752}
    mgos_mqtt_ev MQTT Disconnect
    mqtt_global_reconnec MQTT connecting after 1893 ms
    mqtt_global_connect MQTT connecting to
    SW ECDSA verify curve 3 hash_len 32 sig_len 72
    SW ECDSA verify curve 3 hash_len 32 sig_len 71
    ATCA is not available (-20096), using sw ECDH
    Published: no topic: $aws/things/esp8266_0DD8CA/shadow/update message: {"free_ram":22788,"total_ram":51752}
    mgos_mqtt_ev MQTT Connect (1)
    mgos_mqtt_ev MQTT CONNACK 0
    mgos_mqtt_ev Subscribing to 'esp8266_0DD8CA/rpc'
    mgos_mqtt_ev Subscribing to 'esp8266_0DD8CA/rpc/#'

    I have checked in $aws/things/esp8266_0DD8CA/shadow/update/accepted and $aws/things/esp8266_0DD8CA/shadow/update/rejected
    but did not get any msg!

    Working on windows 10 (Is this an issue?)

    I using mongoose os to teach students how to work with AWS easily with MOS.

  • Pradeep_CSEPradeep_CSE Bangalore

    I figured out shadow is not getting updated even mos is telling published!

  • SergeySergey Dublin, Ireland

    You most probably send a wrong report.

  • Pradeep_CSEPradeep_CSE Bangalore
    Any fix for this ?
     Since the Activity says Connected / Disconnected but no msgs received on shadow.

    Previously i have not faced this issue. Can we use the older Mos tool ?
    Any repository contains older versions of mos tool ?

  • SergeySergey Dublin, Ireland
    You can build a firmware at any point in time. Clone cesanta/mongoose-os repo, go to examples/fw/mjs_base , sync to a date you want, and do "mos build --arch esp8266 --local --repo ../../.. --verbose".
Sign In or Register to comment.