Avatar for Sacha

Sacha

Member since Feb 2014 • Last active Sep 2018
  • 41 conversations
  • 224 comments

Most recent activity

  • in Pico / Wifi / Original Espruino
    Avatar for Sacha

    Hi Gordon
    I would like to let you know that the following seems to work.
    When i catch the first Error: "InternalError: Timeout on I2C Write Transmit Mode 2"
    i call another I2c1.setup. Everything is working again.

    A test of 36 hours was successfull.

    Sacha

  • in The Place for Patreon Patrons
    Avatar for Sacha

    Will do so Gordon.

  • in Pico / Wifi / Original Espruino
    Avatar for Sacha

    Hello Gorden
    Tested it about 30 minutes. Crashing is fixed i think. A lot of garbage, that i will filter out.
    Here is the output:

    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","name":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","nam
    UDP Msg: 101.34.58.34:19807 - "cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","name":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","name":
    UDP Msg: 34.95.77.34:8748 - g":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","name":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","name":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","name":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","name":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","name":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","name":"_M"
    UDP Msg: 44.34.99.102:8807 - 87}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","name":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","nam
    UDP Msg: 101.34.58.34:19807 - "cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","name":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","name":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","name":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","name":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":
    UDP Msg: 34.83.89.83:11298 - ame":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type"
    UDP Msg: 58.34.83.89:8787 - name":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","name":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","name":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","n
    UDP Msg: 97.109.101.34:8762 - ","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","name":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","name":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","name":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","name":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":
    UDP Msg: 34.83.89.83:11298 - ame":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","name":"
    UDP Msg: 95.77.34.44:25378 - ":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","name":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","name":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","name":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type"
    UDP Msg: 58.34.83.89:8787 - name":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"
    UDP Msg: 83.89.83.34:8748 - me":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"ty
    UDP Msg: 112.101.34.58:21282 - ","name":"_M","cfg":187}
    

    Thanks Gorden for fixing the crash that fast.

    Sacha

  • in Pico / Wifi / Original Espruino
    Avatar for Sacha

    Hi Gordon
    Thank you very much. Will give you feedback as soon as i have tested it.
    Regards
    Sacha

  • in Pico / Wifi / Original Espruino
    Avatar for Sacha

    Last message for today Gordon.
    I managed to capture a crash using the isolated code above with debug enabled.
    I changed the UDP server code to send a UDP package each 100ms and not every 10 seconds.

    ] "\r\n+IPD,0,36,1"
    ] "92.168.68.13,51158:{\"type\":\"SYS\",\"­name\":\"_M\",\"cfg\":187}"
    UDP Msg: 192.168.68.13:51158 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,36,192."
    ] "168.68.13,51158:{\"type\":\"SYS\",\"nam­e\":\"_M\",\"cfg\":187}"
    UDP Msg: 192.168.68.13:51158 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IP"
    ] "D,0,36,192.168.68.13,51158:{\"type\":\"­SYS\",\"name\":\"_M\",\"cfg\":187}"
    UDP Msg: 192.168.68.13:51158 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,36,192.168.68.13"
    ] ",51158:{\"type\":\"SYS\",\"name\":\"_M\­",\"cfg\":187}"
    UDP Msg: 192.168.68.13:51158 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n"
    ] "+IPD,0,36,192.168.68.13,51158:{\"type\"­:\"SYS\",\"name\":\"_M\",\"cfg\":187}"
    UDP Msg: 192.168.68.13:51158 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+"
    ] "IPD,0,36,192.168.68.13,51158:{\"type\":­\"SYS\",\"name\":\"_M\",\"cfg\":187}"
    UDP Msg: 192.168.68.13:51158 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,36,192.168.68."
    ] "13,51158:{\"type\":\"SYS\",\"name\":\"_­M\",\"cfg\":187}"
    UDP Msg: 192.168.68.13:51158 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,36"
    ] ",192.168.68.13,51158:{\"type\":\"SYS\",­\"name\":\"_M\",\"cfg\":187}"
    UDP Msg: 192.168.68.13:51158 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,36,192.168.68.13,"
    ] "51158:{\"type\":\"SYS\",\"name\":\"_M\"­,\"cfg\":187}"
    UDP Msg: 192.168.68.13:51158 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,36,192.1"
    ] "68.68.13,51158:{\"type\":\"SYS\",\"name­\":\"_M\",\"cfg\":187}"
    UDP Msg: 192.168.68.13:51158 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD"
    ] ",0,36,192.168.68.13,51158:{\"type\":\"S­YS\",\"name\":\"_M\",\"cfg\":187}"
    UDP Msg: 192.168.68.13:51158 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r"
    ] "\n+IPD,0,36,192.168.68.13,51158:{\"type­\":\"SYS\",\"name\":\"_M\",\"cfg\":187}"­
    UDP Msg: 192.168.68.13:51158 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,36,192.168"
    ] ".68.13,51158:{\"type\":\"SYS\",\"name\"­:\"_M\",\"cfg\":187}"
    UDP Msg: 192.168.68.13:51158 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,3"
    ] "6,192.168.68.13,51158:{\"type\":\"SYS\"­,\"name\":\"_M\",\"cfg\":187}"
    UDP Msg: 192.168.68.13:51158 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,36,192.168.68.13,51158:{\"ty­pe\":\"SYS\",\"name\":\"_M\",\"cfg"
    UDP Msg: 192.168.68.13:51158 - {"type":"SYS","name":"_M","cfg
    ERR: UPD packet not JSON, ignore
    --- crash ----
    

    The last message was truncated to. Not two chars.

    I think you should be abe to reproduce it with my isolated code. Just change the linux server to 100ms and enable debug on the espruino side.

  • in Pico / Wifi / Original Espruino
    Avatar for Sacha

    Next test in isolated code. Turbomode enabled debug not enabled. It crashed too.

    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M"
    ERR: UPD packet not JSON, ignore
    UDP Msg: 44.34.99.102:8807 - 87}
    ERR: UPD packet not JSON, ignore
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    UDP Msg: 192.168.68.13:45962 - {"t
    ERR: UPD packet not JSON, ignore
    UDP Msg: 121.112.101.34:8762 - S","name":"_M","cfg":187}
    ERR: UPD packet not JSON, ignore
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":
    ERR: UPD packet not JSON, ignore
    -- crash --
    
  • in Pico / Wifi / Original Espruino
    Avatar for Sacha

    I enabled turbomode in the isolated code and the mixed up data is shown up. I was able to catch debug code. Did not crash.

    ____                 _
    |  __|___ ___ ___ _ _|_|___ ___
    |  __|_ -| . |  _| | | |   | . |
    |____|___|  _|_| |___|_|_|_|___|
             |_| espruino.com
     1v96 (c) 2017 G.Williams
    >
    =undefined
    >save();
    =undefined
    Compacting Flash...
    Calculating Size...
    Writing..
    Compressed 114368 bytes to 26882
    pong
    Connected: 192.168.68.158
    ["AT+CIPSTART=0,\"UDP\",\"255.255.255.25­5\",7077,7077,2\r\n"
    ] "0,CONNECT\r\n\r\nOK\r\n"
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\",\"name\":\"_M\",\"cfg\":187­}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­p"
    UDP Msg: 192.168.68.13:45962 - {"typ
    ERR: UPD packet not JSON, ignore
    UDP Msg: 101.34.58.34:22867 - ,"name":"_M","cfg":187}
    ERR: UPD packet not JSON, ignore
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\",\"name\":\"_M\",\"cfg\":187­}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\",\"name\":\"_M\",\"cfg\":187­}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IP"
    ] "D,0,36,192.168.68.13,45962:{\"type\":\"­SYS\",\"name\":\"_M\",\"cfg\":187}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\",\"name\":\"_M\",\"cfg\":187­}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\",\"name\":\"_M\",\"cfg\":187­}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\",\"name\":\"_M\",\"cfg\":187­}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\nIPD,0,36,192.168.68.13,45962:{\"typ­e\":\"SYS\",\"name\":\"_M\",\"cfg\":187}­"
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\",\"name\":\"_M\",\"cfg\":187­}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\",\"name\":\"_M\",\"cfg\":187­}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\",\"name\":\"_M\",\"cfg\":187­}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\",\"name\":\"_M\",\"cfg\":187­}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\""
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS"
    ERR: UPD packet not JSON, ignore
    UDP Msg: 44.34.110.97:25965 - "_M","cfg":187}
    ERR: UPD packet not JSON, ignore
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\",\"name\":\"_M\",\"cfg\":187­}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\",\"name\":\"_M\",\"cfg\":187­}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\",\"name\":\"_M\",\"cfg\":187­}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\",\"name\":\"_M\",\"cfg\":187­}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\",\"name\":\"_M\",\"cfg\":187­}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\",\"name\":\"_M\",\"cfg\":187­}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\",\"name\":\"_M\",\"cfg\":187­}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\",\"name\":\"_M\",\"cfg\":187­}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\",\"name\":\"_M\",\"cfg\":187­}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    
Actions