🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    ATOMDTU UIFlow Error

    Scheduled Pinned Locked Moved General
    4 Posts 2 Posters 6.8k Views
    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.
    • M Offline
      MTal
      last edited by

      I got this error un UIFlow with your ATOMDTU sample program:

      Traceback (most recent call last):
      File "flow/m5cloud.py", line 82, in _exec_fun
      File "<string>", line 41, in <module>
      File "libs/simcom/common.py", line 156, in get_network_registration
      ValueError: need more than 1 values to unpack

      1 Reply Last reply Reply Quote 0
      • felmueF Offline
        felmue
        last edited by felmue

        Hello @MTal

        I assume you're trying the MQTT Test example? Yes?

        I think the command Check network registration is confused about the echo sent from the modem.

        Try moving the command Set command echo mode off before the command Check network registration. E.g. move it right after the command Check module status.

        Thanks
        Felix

        GPIO translation table M5Stack / M5Core2
        Information about various M5Stack products.
        Code examples

        M 1 Reply Last reply Reply Quote 0
        • M Offline
          MTal @felmue
          last edited by

          @felmue Hello, thank you for your help! If I move the block as you say, it does nothing. Serial monitor doesn't even show the OK after that block. (see attached)

          0_1633603655470_sshot.png

          1 Reply Last reply Reply Quote 0
          • felmueF Offline
            felmue
            last edited by felmue

            Hello @MTal

            upon closer look I don't see how waiting while Check network registration < 6 would make any sense. The command, I guess that it issues, is: AT+CREG which would yield something like: +CREG: 0, 1 if connected to the home network or +CREG: 0, 5 in case of roaming.

            You could add a print of the result code of check network registration to see the value you get. If it's 1 or 5 then the modem is registered to the network and you could change the code accordingly.

            BTW: Interestingly on the product page there is a Chinese version of the UIFlow code which omits the registration check. (I wonder why.)

            Thanks
            Felix

            GPIO translation table M5Stack / M5Core2
            Information about various M5Stack products.
            Code examples

            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
            • First post
              Last post