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

    Multitech conduit and Lopy "Not joined yet"

    Scheduled Pinned Locked Moved LoPy
    lopymultitechconduitfailureconnect
    22 Posts 5 Posters 6.6k Views 5 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.
    • J Offline
      jcaron @MOnsteroz
      last edited by

      @monsteroz please edit your post and add ``` on a line before and after your code so it’s properly formatted.

      M 1 Reply Last reply Reply Quote 0
      • robert-hhR Offline
        robert-hh
        last edited by robert-hh

        @monsteroz May I assume that you registered your application and device beforehand and inserted the proper app_eui and app_key in the script?
        I have a FiPy here that joins properly. The join statement is:

        lora.join(activation=LoRa.OTAA, auth=(dev_eui, app_eui, app_key), timeout=0, dr=config.LORA_NODE_DR)
        

        But the difference are default values.

        M 2 Replies Last reply Reply Quote 0
        • M Offline
          MOnsteroz @robert-hh
          last edited by

          @robert-hh The values in the script are correct as this is just a testbed to get things working. I did not use the Dev_eui as I read it will use a default address. What does the " dr=config.LORA_NODE_DR) " do?

          Cheers

          Sean

          robert-hhR 1 Reply Last reply Reply Quote 0
          • M Offline
            MOnsteroz @jcaron
            last edited by

            @jcaron someone fixed it for me ????

            1 Reply Last reply Reply Quote 0
            • M Offline
              MOnsteroz @robert-hh
              last edited by

              @robert-hh

              Hi this is the config and the history

              1_1522019679824_lora setup.jpg 0_1522019679820_lora log.jpg

              robert-hhR 1 Reply Last reply Reply Quote 0
              • robert-hhR Offline
                robert-hh @MOnsteroz
                last edited by

                @monsteroz said in Multitech conduit and Lopy "Not joined yet":

                What does the " dr=config.LORA_NODE_DR)

                It sets the data rate, and in my example it is set to 5.

                M 1 Reply Last reply Reply Quote 0
                • M Offline
                  MOnsteroz @robert-hh
                  last edited by

                  @robert-hh Thanks Robert. I am still getting my head around Lora :)

                  robert-hhR 1 Reply Last reply Reply Quote 0
                  • robert-hhR Offline
                    robert-hh @MOnsteroz
                    last edited by

                    @monsteroz I do not understand all the settings, but some comments.

                    • The xxPy software has problems with the RX2 window, so always the RX1 should be used.
                    • The OTAA join delay is 5 seconds.
                    J 1 Reply Last reply Reply Quote 0
                    • robert-hhR Offline
                      robert-hh @MOnsteroz
                      last edited by

                      @monsteroz said in Multitech conduit and Lopy "Not joined yet":

                      I am still getting my head around Lora :)

                      I'm still at the beginning too, starting with LoRa a few weeks ago.

                      1 Reply Last reply Reply Quote 0
                      • J Offline
                        jcaron @robert-hh
                        last edited by

                        @robert-hh Never had an issue with RX2 on the receiving side. What kind of issue are you seeing?

                        robert-hhR M 2 Replies Last reply Reply Quote 0
                        • robert-hhR Offline
                          robert-hh @jcaron
                          last edited by

                          @jcaron There were complaint about the in another thread.

                          1 Reply Last reply Reply Quote 0
                          • J Offline
                            jmarcelino @MOnsteroz
                            last edited by jmarcelino

                            @monsteroz
                            Ok some problems...

                            In the AU915 region need to restrict the LoPy to what your gateway is set to:
                            Frequency Sub-Band 4

                            Because as configured the LoPy expects to use all valid 72 channels. However most real world gateways are limited to only 8 channels, hence the full channel map is partitioned into subbands.

                            So add a function like this

                            def select_subband_au915(lora, subband):
                                if (type(subband) is int):
                                    if ((subband<1) or (subband>8)):
                                        raise ValueError("subband out of range (1-8)")
                                else:
                                    raise TypeError("subband must be 1-8")
                                
                                for channel in range(0, 64):
                                    lora.remove_channel(channel)
                                
                                for channel in range((subband-1)*8, ((subband-1)*8)+8):
                                    lora.add_channel(channel, frequency=915200000+channel*200000, dr_min=0, dr_max=5)
                            

                            the call select_subband_au915(lora, 4) to remove all channels which don't belong to sub-band 4 after initialising your LoRa object (and before joining)

                            M 1 Reply Last reply Reply Quote 0
                            • M Offline
                              MOnsteroz @jcaron
                              last edited by

                              @jcaron
                              The Lopy and Lopy4 just does not exit the loop and says "not joined yet."

                              J 1 Reply Last reply Reply Quote 0
                              • M Offline
                                MOnsteroz @jmarcelino
                                last edited by

                                @jmarcelino Hi,

                                If I lock it to sub band 4 it seems to just hang

                                # Europe = LoRa.EU868
                                # United States = LoRa.US915
                                lora = LoRa(mode=LoRa.LORAWAN, region=LoRa.AU915)
                                select_subband_au915(lora, 4)
                                # create an ABP authentication params
                                
                                

                                If I add the below I get the same 'Not joined yet" message

                                lora = LoRa(mode=LoRa.LORAWAN, region=LoRa.AU915)
                                def select_subband_au915(lora, subband):
                                    if (type(subband) is int):
                                        if ((subband<1) or (subband>8)):
                                            raise ValueError("subband out of range (1-8)")
                                    else:
                                        raise TypeError("subband must be 1-8")
                                    
                                    for channel in range(0, 64):
                                        lora.remove_channel(channel)
                                    
                                    for channel in range((subband-1)*8, ((subband-1)*8)+8):
                                        lora.add_channel(channel, frequency=915200000+channel*200000, dr_min=0, dr_max=5)
                                select_subband_au915(lora, 4)
                                # create an ABP authentication params
                                app_eui = binascii.unhexlify('1122334455667788')
                                app_key = binascii.unhexlify('11112222333344445555666677778888')
                                # Join the network
                                #lora.join(activation=LoRa.OTAA, auth=(app_eui, app_key), timeout=600)
                                lora.join(activation=LoRa.OTAA, auth=(app_eui, app_key), timeout=0)
                                
                                1 Reply Last reply Reply Quote 0
                                • J Offline
                                  jmarcelino @MOnsteroz
                                  last edited by jmarcelino

                                  Thanks @monsteroz

                                  I'm not an expert on Multitech but I think your "Join Delay" isn't according to the specification.

                                  That should be 5 (seconds) as Robert already pointed out. Did you change it already?

                                  Do keep the sub channel selection code. That's also necessary, but not sufficient.

                                  M 1 Reply Last reply Reply Quote 0
                                  • M Offline
                                    MOnsteroz @jmarcelino
                                    last edited by

                                    @jmarcelino

                                    I did not change the Join Delay but I have now changed it to 5 seconds with no change

                                    thanks

                                    Sean

                                    1 Reply Last reply Reply Quote 0
                                    • M Offline
                                      MOnsteroz
                                      last edited by

                                      Hi guys,

                                      I reset to factory setting on the conduit and just added ID nd Key .. still no luck with the lopy..

                                      Sean

                                      J 1 Reply Last reply Reply Quote 0
                                      • J Offline
                                        jmarcelino @MOnsteroz
                                        last edited by

                                        @monsteroz
                                        Can you post what are you current gateway settings please?

                                        M 2 Replies Last reply Reply Quote 0
                                        • M Offline
                                          MOnsteroz @jmarcelino
                                          last edited by

                                          @jmarcelino

                                          Hi I have been changing settings to try and make it work but here is what it is at the moment. I have changed to FSB 2 in case I want to use the TTN in the future.

                                          Cheers

                                          Sean0_1522878494362_LORA.jpg

                                          1 Reply Last reply Reply Quote 0
                                          • M Offline
                                            MOnsteroz @jmarcelino
                                            last edited by

                                            @jmarcelino

                                            Hi I was trying the code on Leo Gaggl's blog page .

                                            Cheers

                                            Sean

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

                                            Pycom on Twitter

                                            Pycom