Connecting from Pymakr over wifi generates Keyboardinterrupt

  • Hello all,

    this is my first post and question on this forum so please bare with me ;)

    Lopy4 + Pysense 1.1 both fully up to date '1.18.1.r1'

    I have assembled a piece of code which works well and over USB and sends all the sensors as Cayenne LPP and all is great!!
    I now have added wifi STA to and successfully connected to my home network.
    Code continues to work well and it's possible (although not very reliably to connect to the board via ftp) and check on the files or such (wifi is working ;) )

    Time has now come to unplug the board from my computer USB and power it from somewhere else.
    Except the moment I try to connect in atom the connection seems to be establish successfully but that also seems to generate an undesired "KeyboardInterrupt" at the moment of the connection.

    I don't think it's the code so what does generate the keyboard interrupt on connection?

    Reseting the lopy4 using the button works but after wifi reconnect the interrupt occurs nontheless at a random code location...

    ** 3-Axis Accelerometer (LIS2HH12)
    Acceleration (-0.04162598, 0.01672363, 1.001953)
    Roll 2.378976
    Pitch -1.016557
    ** Digital Ambient Light Sensor (LTR-329ALS-01)
    Light (259, 233)
    ** Humidity and Temperature Sensor (SI7006A20)
    Humidity 36.16385
    Temperature 27.60363
    Traceback (most recent call last):
    File "", line 88, in <module>
    File "", line 47, in init
    Pycom MicroPython 1.18.1.r1 [v1.8.6-849-b0520f1] on 2018-08-29; LoPy4 with ESP32
    Type "help()" for more information.

    resetting and reconnecting after 30 s:

    Failed to connect ( Connection was reset). Click here to try again.
    Connecting on
    Traceback (most recent call last):
    File "", line 109, in <module>
    Connection error: Error: timeout
    Pycom MicroPython 1.18.1.r1 [v1.8.6-849-b0520f1] on 2018-08-29; LoPy4 with ESP32
    Type "help()" for more information.

  • @theshade Don't worry. It will slowly drift out of sight and until then be helpful for others.

  • Thanks that was it.!!!. Is there a way to erase this thread so that it doesn't show in my history? ;)

  • @theshade Did you enable Ctrl-c on connect in Pymakr settings? That could be the issue

Log in to reply

Pycom on Twitter