Fipy : Guru Meditation Error when I try to connect my socket



  • Hello,

    Every time I try to connect my socket in order to test my connectity in LTE CAT-M to internet I have a Guru Meditation Error.

    My main code is as follow :

    import pycom # we need this module to control the LED
    import math
    import os
    import socket
    import ssl
    import time
    from  network import LTE
    from network import Bluetooth
    from network import LoRa
    from network import WLAN
    from network import Server
    from LTEfunction import func
    from machine import SD
    from pytrack import Pytrack
    from L76GNSV4 import L76GNSS
    
    print()
    
    print('Switching off Heartbeat')
    pycom.heartbeat(False)
    pycom.rgbled(0x000000)
    
    print('Switching off WLAN')
    wlan = WLAN()
    wlan.deinit()
    
    print('Switching off Server')
    server = Server()
    server.deinit()
    
    print('Switching off Bluetooth')
    bt = Bluetooth()
    bt.deinit()
    
    print('Switching off LoRa')
    lora = LoRa(mode=LoRa.LORAWAN, region=LoRa.EU868, power_mode=LoRa.SLEEP)
    
    wakeReason = machine.wake_reason()
    #print("Wake Reason = " + str(wakeReason[0]))
    
    try:
       py = Pytrack()                                        # Expansion Board Init
    except:
        print("ERROR : Pytrack non available")
    l76 = L76GNSS(pytrack=py,timeout=30, debug=False)    # GPS Init
    
    SDInBoard =0
    
    # setup SD card
    try:
        sd = SD()
        os.mount(sd, '/sd')
        LoF = os.listdir('/sd')
        SDInBoard = 1
    except:
        SDInBoard = 0
        print ("WARNING : Put a SD card if you want some records")
    
    if(SDInBoard == 1):
        i = 0
        nameFound = 0
        while nameFound == 0:
            RecordFileName = 'LTEGPS-record'+str(i)+'.txt'
            j = 0
            namePresent = 0
            while j < len(LoF):
                if RecordFileName == LoF[j]:
                    namePresent = 1
                    break
                else:
                    j+=1
    
            if((j>=len(LoF)) and namePresent == 0):
                nameFound = 1
                break
            else:
                i+=1
    
        if(wakeReason[0] != 0 and i > 0):
            RecordFileName = 'LTEGPS-record'+str(i-1)+'.txt'
        print("INFO : RecordFileName : " + RecordFileName)
    
    lteAttached = 0
    lteData = 0
    lteConnected = 0
    
    functionLTE = func()
    #functionLTE.lteFuncDeInit()                         # DeInit of the LTE Modem
    
    functionLTE.lteFuncInit()                             # LTE Modem Init
    
    #pycom.rgbled(0x007f00) # green
    
    loc = l76.get_location(debug=False)                   # Get localization with the GPS
    tim = l76.getUTCDateTime(debug=False)                 # Get date and time with the GPS
    
    lteAttached = functionLTE.lteFuncAttach(80)           # Start LTE Attach
    if lteAttached != 0:                                  # If attached
        lteConnected = functionLTE.lteFuncConnect(20)     # Start LTE Connect
        if lteConnected:                                  # If connected
            lteData = functionLTE.lteFuncSocket()         # Start a socket in order to receive data
            #lteData = functionLTE.lteFuncMQTT(msgFipy="Date : {} - LOC : {}".format(tim, loc))
    
    functionLTE.lteFuncDeInit()                           # Reset & DeInit of the LTE Modem
    
    if(SDInBoard == 1):                                   # Record data in the SD if a SD card is inserted
        try:
            pycom.rgbled(0x7f0000) # red
            f = open('/sd/' + RecordFileName, 'a')
            f.write("Date : {} - loc : {}\t".format(tim, loc))
            f.write("LTE Attached: "+str(lteAttached)+",\tLTE Connected: "+str(lteConnected)+",\tLTE Data: "+str(lteData)+"\n")
            f.close()
            pycom.rgbled(0x0)
        except:
            print ("ERROR : SD card not reachable anymore")
    
    print("INFO : Date : {} - LOC : {}".format(tim, loc))
    print("INFO : LTE Attached: "+str(lteAttached)+", LTE Connected: "+str(lteConnected)+", LTE Data: "+str(lteData)+"\n")
    
    machine.deepsleep(2000)
    

    The LTE functions code is below.

    import socket
    import ssl
    import time
    import machine
    from  network import LTE
    from mqtt import MQTTClient
    from network import WLAN
    
    class func:
        def sub_cb(self,topic, msg):
           print(msg)
        def lteFuncInit(self):
            self.lte = LTE()         # instantiate the LTE object
            #self.lte.init()
            print(self.lte.imei())
            print(self.lte.iccid())
            #print(lte.send_at_cmd('AT!="showver"'))
            print(self.lte.send_at_cmd('AT+CGCONTRDP'))
        def lteFuncAttach(self, timeout):
            i=0
            self.lte.attach()        # attach the cellular modem to a base station
            print ("LTE Attach :")
            while (not self.lte.isattached()) and (i <= timeout) :
                time.sleep(0.25)
                #print (".", end="")
                i+=1
    
            if(self.lte.isattached()):
                print("i attach : "+ str(i))
                print (" Attached OK")
                return 1
            else:
                print (" Attached NOK")
                return 0
    
    
        def lteFuncConnect(self, timeout):
            i=0
            self.lte.connect()       # start a data session and obtain an IP address
            print ("LTE connect :")
            while (not self.lte.isconnected()) and (i <= timeout):
                time.sleep(0.25)
                #print (".", end="")
                i+=1
    
            if self.lte.isconnected():
                print("i connect : "+ str(i))
                print (" Connect OK")
                return 1
            else:
                print (" Connect NOK")
                try:
                    self.lte.dettach()
                except:
                    print ("ERROR : LTE dettach problem")
                return 0
    
        def lteFuncSocket(self):
            print ("Creation Socket")
            s = socket.socket()
            print("AFTER CREATE SOCKET")
            s = ssl.wrap_socket(s)
            print("AFTER WRAP")
            s.connect(socket.getaddrinfo('8.8.8.8', 443)[0][-1])  # Error at this line
            print("Socket Connected")
            s.send(b"GET / HTTP/1.0\r\n\r\n")
            print(s.recv(4096))
            try:
                s.close()
                self.lte.disconnect()
                self.lte.dettach()
            except:
                print ("ERROR : Socket close, LTE deconnect and/or dettach problem")
            if s.recv(4096) != "":
                return 1
            else:
                return 0
        def lteFuncMQTT(self, msgFipy):
            client = MQTTClient("FiPy", "52.70.203.194",user="XXXX", password="XXXXXXXXXXXXXXXX", port=1883)
    
            client.set_callback(self.sub_cb)
            print("MQTT")
            client.connect()
            print("Connected")
            client.subscribe(topic="MaloM/feeds/FipyPos")
    
            print("Sending ...")
            client.publish(topic="MaloM/feeds/FipyPos", msg=msgFipy)
            print("End Send")
    
            try:
                self.lte.disconnect()
                self.lte.dettach()
            except:
                print ("ERROR : LTE deconnect and/or dettach problem")
            return 1
        def lteFuncDeInit(self):
             print('Switching off LTE')
             quit = False
             while quit == False:
                 try:
                     self.lte.deinit()
                 except OSError:
                     print('  Exception occured and retrying...')
                     #machine.reset()
                 else:
                     quit = True
    

    Below you can see a copy of the console with the error.

    rst:0x7 (TG0WDT_SYS_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
    configsip: 0, SPIWP:0xee
    clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
    mode:DIO, clock div:1
    load:0x3fff8028,len:8
    load:0x3fff8030,len:1984
    load:0x4009fa00,len:0
    load:0x4009fa00,len:19088
    entry 0x400a05e4
    Initializing filesystem as FatFS!
    
    Switching off Heartbeat
    Switching off WLAN
    Switching off Server
    Switching off Bluetooth
    Switching off LoRa
    INFO : RecordFileName : LTEGPS-record4.txt
    Switching off LTE
    LTE Attach :
    i attach : 53
     Attached OK
    LTE connect :
    i connect : 0
     Connect OK
    Creation Socket
    AFTER CREATE SOCKET
    AFTER WRAP
    Guru Meditation Error: Core  1 panic'ed (InstrFetchProhibited). Exception was unhandled.
    Core 1 register dump:
    PC      : 0x00000000  PS      : 0x00060a30  A0      : 0x800fa655  A1      : 0x3ffe2ec0
    A2      : 0x3f955b10  A3      : 0x3f955b26  A4      : 0x3f955b34  A5      : 0x00000000
    A6      : 0x00000000  A7      : 0x00000a6e  A8      : 0x800e4197  A9      : 0x3ffe2ea0
    A10     : 0x3f955b10  A11     : 0x3f955b26  A12     : 0x000001bb  A13     : 0x3f955b34
    A14     : 0x000000fe  A15     : 0x3fbc1467  SAR     : 0x0000001a  EXCCAUSE: 0x00000014
    EXCVADDR: 0x00000000  LBEG    : 0x4009cb8c  LEND    : 0x4009cb97  LCOUNT  : 0xffffffff
    
    Backtrace: 0x00000000:0x3ffe2ec0 0x400fa652:0x3ffe2ef0 0x400f6e69:0x3ffe2f10 0x400f6ed1:0x3ffe2f30 0x40102472:0x3ffe2f50 0x400fa744:0x3ffe2ff0 0x400f6e69:0x3ffe3020 0x400f6ed1:0x3ffe3040 0x40102472:0x3ffe3060 0x400fa744:0x3ffe3100 0x400f6e69:0x3ffe3180 0x400f6e96:0x3ffe31a0 0x400df22e:0x3ffe31c0 0x400df4a1:0x3ffe3260 0x400de181:0x3ffe3280
    
    ================= CORE DUMP START =================
    9DgAABEAAABsAQAA
    pFr8PwAu/j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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAAAAAAAAAAAAPwQ+j8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAAMX/4/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAAAAAAA
    ================= CORE DUMP END =================
    Rebooting...
    ets Jun  8 2016 00:22:57
    
    rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
    configsip: 0, SPIWP:0xee
    clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
    mode:DIO, clock div:1
    load:0x3fff8028,len:8
    load:0x3fff8030,len:1984
    load:0x4009fa00,len:0
    load:0x4009fa00,len:19088
    entry 0x400a05e4
    Initializing filesystem as FatFS!
    

    My Fipy is running 1.20.0.rc4

    Thanck you.

    Best regards,

    Malo



  • Hello @iwahdan,
    I put the LoRa Init after the LTE connection and it works now ! Thank you.
    Best Regards,
    Malo



  • Hello @Malo , the Issue is indeed in Firmware, this crash is reproducible only when LoRa/Sigfox is initialised before LTE as you have in your Code, I'll push a Fix to be included in next stable and Development release.
    For now you can fix this issue by removing LoRa init if you don't use it or do it after LTE connection.



  • @malo said in Fipy : Guru Meditation Error when I try to connect my socket:

    import socket
    import ssl
    import time
    import machine
    from network import LTE
    from mqtt import MQTTClient
    from network import WLAN

    class func:
    def sub_cb(self,topic, msg):
    print(msg)
    def lteFuncInit(self):
    self.lte = LTE() # instantiate the LTE object
    #self.lte.init()
    print(self.lte.imei())
    print(self.lte.iccid())
    #print(lte.send_at_cmd('AT!="showver"'))
    print(self.lte.send_at_cmd('AT+CGCONTRDP'))
    def lteFuncAttach(self, timeout):
    i=0
    self.lte.attach() # attach the cellular modem to a base station
    print ("LTE Attach :")
    while (not self.lte.isattached()) and (i <= timeout) :
    time.sleep(0.25)
    #print (".", end="")
    i+=1

        if(self.lte.isattached()):
            print("i attach : "+ str(i))
            print (" Attached OK")
            return 1
        else:
            print (" Attached NOK")
            return 0
    
    
    def lteFuncConnect(self, timeout):
        i=0
        self.lte.connect()       # start a data session and obtain an IP address
        print ("LTE connect :")
        while (not self.lte.isconnected()) and (i <= timeout):
            time.sleep(0.25)
            #print (".", end="")
            i+=1
    
        if self.lte.isconnected():
            print("i connect : "+ str(i))
            print (" Connect OK")
            return 1
        else:
            print (" Connect NOK")
            try:
                self.lte.dettach()
            except:
                print ("ERROR : LTE dettach problem")
            return 0
    
    def lteFuncSocket(self):
        print ("Creation Socket")
        s = socket.socket()
        print("AFTER CREATE SOCKET")
        s = ssl.wrap_socket(s)
        print("AFTER WRAP")
        s.connect(socket.getaddrinfo('8.8.8.8', 443)[0][-1])  # Error at this line
        print("Socket Connected")
        s.send(b"GET / HTTP/1.0\r\n\r\n")
        print(s.recv(4096))
        try:
            s.close()
            self.lte.disconnect()
            self.lte.dettach()
        except:
            print ("ERROR : Socket close, LTE deconnect and/or dettach problem")
        if s.recv(4096) != "":
            return 1
        else:
            return 0
    def lteFuncMQTT(self, msgFipy):
        client = MQTTClient("FiPy", "52.70.203.194",user="XXXX", password="XXXXXXXXXXXXXXXX", port=1883)
    
        client.set_callback(self.sub_cb)
        print("MQTT")
        client.connect()
        print("Connected")
        client.subscribe(topic="MaloM/feeds/FipyPos")
    
        print("Sending ...")
        client.publish(topic="MaloM/feeds/FipyPos", msg=msgFipy)
        print("End Send")
    
        try:
            self.lte.disconnect()
            self.lte.dettach()
        except:
            print ("ERROR : LTE deconnect and/or dettach problem")
        return 1
    def lteFuncDeInit(self):
         print('Switching off LTE')
         quit = False
         while quit == False:
             try:
                 self.lte.deinit()
             except OSError:
                 print('  Exception occured and retrying...')
                 #machine.reset()
             else:
                 quit = True
    

    Hello @Malo ,

    I could reproduce the crash using your code, I'll keep you updated with my analysis.

    Thanks for your help.



Pycom on Twitter