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

    AtomDTU NB-IoT

    Atom
    2
    32
    13.1k
    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.
    • felmueF
      felmue
      last edited by

      Hello @Felix22

      hmm, that's a tricky one. Now that your modem gets an IP address; have you tried the official MQTT blocks?

      Thanks
      Felix

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

      1 Reply Last reply Reply Quote 0
      • F
        Felix22
        last edited by

        you mean the blocks at "Fortgeschritten" / MQTT ?
        over there it connects over Wlan/Wifi...
        Is there a MQTT-Block how i can say the RX and TX pin ?

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

          Hello @Felix22

          no, I meant in UIFlow1 with M5Atom selected. Then it's under Base - DTU - NB-IoT - MQTT. There even is an MQTT example.

          0_1708568772576_UI1_NBIoT_DTU_20240222.png

          Thanks
          Felix

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

          1 Reply Last reply Reply Quote 0
          • F
            Felix22
            last edited by Felix22

            this hangs by the "Init NB-IoT DTU" Blockly if you have not Load the Unit NB-IoT.
            But with the NB-IoT-Unit and the correct RX/TX Pin's it works fine.

            0_1708613718672_fedaa32a-bb09-4ea0-932d-d74fcb0bee74-grafik.png

            Do you also use the Atom DTU NB-IoT ?

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

              Hello @Felix22

              not exactly; I use an C-Back NB-loT Global version (SIM7020G) which I connected to an M5Atom the same way it is connected in the AtomDTU NB-IoT.

              And no, I do not need to add the NB-IoT unit for the Init NB-IoT DTU block to work.

              Thanks
              Felix

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

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

                Hello @Felix22

                I have successfully connected, subscribed and published to the following free MQTT brokers: mqtt.m5stack.com, broker.mqtt.cool, test.mosquitto.org, broker.hivemq.com, broker.emqx.io, and public.mqttserver.eu using below UIFlow:

                0_1708675376620_UI1_MQTT_Broker_Test_20240223.png

                Thanks
                Felix

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

                1 Reply Last reply Reply Quote 0
                • F
                  Felix22
                  last edited by

                  Do you have a list with the Status Codes ?
                  Signal Qualität: 16
                  MQTT-Connection: 0
                  Network-Registration: 7
                  GPRS network registration

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

                    Hello @Felix22

                    sure, here you are:

                    • Signal Quality: 17
                    • MQTT-Connection: 0
                    • Network Registration: 7
                    • GPRS Network Registration: 5

                    and when connected to MQTT broker

                    • MQTT-Connection: 1

                    Thanks
                    Felix

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

                    1 Reply Last reply Reply Quote 0
                    • F
                      Felix22
                      last edited by

                      Hello Felix
                      By the error code I meant what the individual numbers mean.
                      Each code 0 to x
                      Do you have a code list ?
                      Greeting
                      Felix

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

                        Hello @Felix22

                        no, sorry, I don't have such a list. But if the error code is from an AT command you should be able to find its meaning from the AT command document linked on the product page.

                        Thanks
                        Felix

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

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post