You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
######################################## Diagnostics#######################################importipaddressimportsupervisorimportmicrocontrolleraddr=os.getenv("PING_ADDRESS")
ip1=ipaddress.ip_address(addr)
print("pinging", ip1, 'from', IP)#, end=' ')t=time.time()
whileTrue:
try:
GreenLED.value=notGreenLED.valueif (wifi.radio.connectedand ((t+25) >time.time())):
#print(' Ping round trip time: %1.3f Are we good!' % (wifi.radio.ping(ip1)), end='\r')# R G BNeo_Pixel[0] = (0, 0, 50)
time.sleep(0.03125)
Neo_Pixel[0] = (25, 0, 0)
_=wifi.radio.ping(ip1) # ping DNS CRASH HAPPENNS HERE!# R G BNeo_Pixel[0] = (0, 25, 0)
#print((' %3.1f' % (_)), end='')u=time.time()-t+1ifu<10: print(' ', end='')
print(u, end='')
print(' ', _, ' \t\b\b\b\bWe are Bad:-( ') if_==Noneelseprint((' %3.0f'% (_*1000))+'ms\t\b\b\b\bWe are Good:-)')
time.sleep(1) # 1 secondelse:
print('\n\t\aTimeout/Lost Connection\a')
time.sleep(1) # 1 secondsupervisor.reload() # Like Ctrl-C, Ctrl-Dmicrocontroller.reset() # Like RESET button or remove/connect power, REPL will disconnectexcept:
supervisor.reload()
microcontroller.reset()
print('')
Behavior
The crash happens after it has run for a while. One to 12+ hours after start.
REPL stops and disconnects from Putty without comment.
The board has crashed.
Minutes to hours later I then close Putty and then reopen Putty to get the crash notification.
It is like it just waits for me to reconnect Putty to give me the bad news.
Auto-reload is off.
Running in safe mode! Not running saved code.
You are in safe mode because:
CircuitPython core code crashed hard. Whoops!
Hard fault: memory access or instruction error.
Please file an issue with your program at github.com/adafruit/circuitpython/issues.
Press reset to exit safe mode.
Press any key to enter the REPL. Use CTRL-D to reload.
Description
REPL output:
Connected if True
pinging 8.8.8.8 from 192.168.1.88
1 64ms We are Good:-)
2 58ms We are Good:-)
3 59ms We are Good:-)
4 None We are Bad:-(
6 142ms We are Good:-)
7 139ms We are Good:-)
8 58ms We are Good:-)
9 64ms We are Good:-)
CircuitPython version and board name
Code/REPL
Behavior
The crash happens after it has run for a while. One to 12+ hours after start.
REPL stops and disconnects from Putty without comment.
The board has crashed.
Minutes to hours later I then close Putty and then reopen Putty to get the crash notification.
It is like it just waits for me to reconnect Putty to give me the bad news.
Description
REPL output:
Connected if True
pinging 8.8.8.8 from 192.168.1.88
1 64ms We are Good:-)
2 58ms We are Good:-)
3 59ms We are Good:-)
4 None We are Bad:-(
6 142ms We are Good:-)
7 139ms We are Good:-)
8 58ms We are Good:-)
9 64ms We are Good:-)
It just stops. No response in REPL/
Additional information
https://forums.adafruit.com/viewtopic.php?p=1052990#p1052990
From AdaFruit Forum.
The text was updated successfully, but these errors were encountered: