Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    AT+CEREG? returns empty string && 1.20.2.rX "bricks" GPy

    Scheduled Pinned Locked Moved GPy
    4 Posts 2 Posters 61 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G Offline
      goldfishalpha
      last edited by goldfishalpha

      I recently had to go through a major rigmarole of of debugging, testind and eventually reflashing my GPy with a old firmware (1.20.2r2 --> 1.20.1) to recover from a scenario where the device would not boot (even with safe boot).

      Anyway, looking through the docs, I thought I'd try looking at the LTE configs that I have. Running the recommended print(lte.send_at_cmd('AT+CEREG?')) I get an empty line. You can see the output below:

      >>> print(lte.send_at_cmd('AT+CEREG?'))
      
      >>> lte.send_at_cmd('AT+CEREG?')
      ''
      

      This doesn't seem to be normal behaviour so wondering of this is a symptom of something?

      I will proceed to try to get the device firmware up to a more recent version, and see where that takes me.

      1 Reply Last reply Reply Quote 0
      • G Offline
        goldfishalpha
        last edited by goldfishalpha

        Right, I just updated the GPy from firmware 1.20.1 to 1.20.2.r0 and it's "bricked".
        Get the following when starting up VSCode (and Pymakr).

        AutoConnect enabled, ignoring 'address' setting (see Global Settings)
        Searching for PyCom boards on serial...
        Connecting to COM3...
        Connection error: Error: timeout
        Previous board is not available anymore
        > Failed to connect (Error: Port is not open). Click here to try again.
        Connecting to COM3...
        Connection error: Error: timeout
        

        And after pressing the reboot button:

        ets Jun  8 2016 00:22:57
        
        rst:0x1 (POWERON_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:0x3fff8020,len:8
        load:0x3fff8028,len:2140
        ho 0 tail 12 room 4
        load:0x4009fa00,len:19760
        entry 0x400a05bc
        

        Powercycling (unplug and plug in) gets me back to the first output.

        This is essentially the issue I started with a day ago but assumed it must have been something I did.
        So far, firmware version that I have tested and have failed, in ascending order, are:

        • 1.20.1.r2
        • 1.20.2.r0
        • 1.20.2.r2
        • 1.20.2.r6

        Essentially, so far I haven't found anything boot apart from 1.20.1. This has gotten very weird.

        1 Reply Last reply Reply Quote 0
        • G Offline
          goldfishalpha
          last edited by

          As per this topic, I should have erased the filesystem, and reset the CONFIG and NVS partitions during firmware reflashing. Doh!

          It is now working on 1.20.2.r6.

          R 1 Reply Last reply Reply Quote 0
          • R Offline
            Richard Johnson @goldfishalpha
            last edited by

            @goldfishalpha Found a snippet somewhere about that and it is now a religious expectation to select both, it should just enable them by defult.

            1 Reply Last reply Reply Quote 1

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • 1 / 1
            • First post
              Last post

            Pycom on Twitter

            Pycom