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

    Delay in sending AT command

    Scheduled Pinned Locked Moved FiPy
    8 Posts 4 Posters 78 Views 4 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.
    • L Offline
      Lars van Velzen
      last edited by

      Hello,

      I'm trying to register to the LTE-M network of T-Mobile. Although this does not work I'am unable to review the AT commands since these are printed with some errors. It might be because of the standard delay but the command on the Pycom documentation is not workiing. The retrun i get from lte.send_at_cmd('AT+COPS=?') is:

      +COPS: (2,"20416","20416","20416",7)(1,"NL KPN","NL KPN","20408",7)(1,"vodafone NL","voda NL","20404",7),,(0,1,2,3,4),(0,1,2)

      I already tried lte.send_at_cmd('AT+COPS=?', [delay=1000]) this results in an invalid syntax.

      Is there a way to adjust the command to be able to see the entire message?

      Thanks,

      Lars

      L 1 Reply Last reply Reply Quote 0
      • L Offline
        livius @Lars van Velzen
        last edited by livius

        @Lars-van-Velzen

        brackets [] tell that something is optional to specify.
        when you decide to specify it you must put it without brackets

        lte.send_at_cmd('AT+COPS=?', delay=1000) 
        

        think about people first, then computers

        1 Reply Last reply Reply Quote 0
        • L Offline
          Lars van Velzen
          last edited by

          Hello,

          Thanks for the reaction.

          I tried the line but it is not working.

          c7bc1061-c480-432f-ab2b-b5517b0b92ed-image.png

          Any more suggestions?

          Thanks!

          L 1 Reply Last reply Reply Quote 0
          • L Offline
            livius @Lars van Velzen
            last edited by livius

            @Lars-van-Velzen

            i see that in recent firmware it is solved differently. Do not specify delay at all.
            @Gijs docs should be fixed i think

            think about people first, then computers

            1 Reply Last reply Reply Quote 0
            • L Offline
              Lars van Velzen
              last edited by

              Is there an other soltion to view the entire command?

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

                The supposed 'delay' is (and always was) implemented as a timeout. The keyword argument was changed from 'delay' to 'timeout' some time ago to better reflect the functionality.
                The AT commands are sent immediately after the function call.

                I will change the docs to reflect the correct naming

                J L 2 Replies Last reply Reply Quote 0
                • J Offline
                  jcaron @Gijs
                  last edited by

                  @Gijs Don't forget to keep a history of the change in the documentation. E.g. "Before version X, the timeout argument was named delay". There are still plenty of people using lots of different versions for a number of reasons...

                  1 Reply Last reply Reply Quote 0
                  • L Offline
                    Lars van Velzen @Gijs
                    last edited by

                    @Gijs Thanks this solved the problem!

                    1 Reply Last reply Reply Quote 0

                    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