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

    New firmware release 1.6.7.b1 (LoRaWAN Nano Gateway with TTN example!!)

    Scheduled Pinned Locked Moved Announcements & News
    firmware
    113 Posts 34 Posters 88.5k Views 32 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.
    • C Offline
      Colateral @robert-hh
      last edited by

      @robert-hh Yes. It is passive mode. My environment is on Windows10. I tried with WinScp, TotalCommander and Windows10 ftp in passive mode. I saw that is working if I use the default 192.168.4.1 IP instead of the custom IP 192.168.10.1 .

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

        @Colateral That sounds strange that 192.168.4.1 works, but not 192.168.10.1. The other thing that suprises me is, that you used command line ftp on WIndows 10 in passive mode. The one I have here does not support it. Do you have a special version?

        C 2 Replies Last reply Reply Quote 0
        • G Offline
          gas @jmarcelino
          last edited by

          @jmarcelino
          doesn't this in lower case
          I tried the lorwan nano but no luck i don't see it connected
          I changed the WiFi parameters and the use the code snippet to generate the gateway_id (i added .lower())
          added the gateway on TTN using the same Id
          but no lock i don't see pull/push arriving to TTN

          do we need to change the router address too ?

          Thanks

          R 1 Reply Last reply Reply Quote 0
          • L Offline
            livius @robert-hh
            last edited by

            @robert-hh said in New firmware release 1.6.7.b1 (LoRaWAN Nano Gateway with TTN example!!):

            I tried your setting and it worked fine for both addresses (STA and AP)

            Did you tried WLAN.STA_AP? or separately? WLAN.STA and another try WLAN.AP. Separately it work but not as WLAN.STA_AP.
            I have tested this and i can not connect to AP in that mode.
            But i have while True: loop.
            Inside loop i have machine.idle but this do not help.
            I see Wipy on the list of networks but can't connect.

            think about people first, then computers

            1 Reply Last reply Reply Quote 0
            • R Offline
              rskoniec @gas
              last edited by

              @gas On the TTN gateway configuration you should use router.eu.thethings.network:1700 from config.py @jmarcelino addons generating GATEWAY_ID are OK.

              The machine is working as good as it's code.

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

                @livius Yes, I used STA_AP mode, and connected without rebooting the LoPy to the STA and AP, one after the other. At the same time it's not possible since only one connection at a time is allowed. But the behaviour was a little bit inconsistent. In active mode, trying the ls command, I got two different error messages, when it should be the same all the time.

                1 Reply Last reply Reply Quote 0
                • C Offline
                  Colateral @livius
                  last edited by

                  @livius I tried and STA_AP is working. I am connected with my laptop on AP (ftp getting files) and the WiPy is connected to local server sending data. I replied to your topic ... seems that is missing connect

                  1 Reply Last reply Reply Quote 0
                  • G Offline
                    gas @rskoniec
                    last edited by

                    @rskoniec
                    Thanks itis exactly what i have
                    I see push pull but nothing on the TTN
                    I'm missing something .. not sure where (wifi is connected )

                    G 1 Reply Last reply Reply Quote 0
                    • C Offline
                      Colateral @robert-hh
                      last edited by

                      @robert-hh I believe I know what was happening. If you jump from Wipy default AP to the new AP (as STA_AP) having the same MAC and you try to connect Wipy to the wifi router where computer is plugged with the Lan cable... . Windows 10 is going to be confused. After I restarted windows and unplugged the cable everything is working fine.

                      Z 1 Reply Last reply Reply Quote 0
                      • G Offline
                        gas @gas
                        last edited by

                        @gas said:

                        router.eu.thethings.network:1700

                        we are talking at the TTN side right

                        Description            lopyNanoGW
                        Status                      not connected
                        Frequency Plan      Europe868MHz
                        Router      router.eu.thethings.network:1700
                        
                        J R 2 Replies Last reply Reply Quote 0
                        • J Offline
                          jmarcelino @gas
                          last edited by

                          @gas
                          On TTN have you registered the gateway as "gateway connector" or "packet forwarder" under Protocol?

                          You have to register as "packet forwarder"

                          TTN will also automatically add a 'eui-' prefix to your gateway ID if you chose the correct one.

                          G 1 Reply Last reply Reply Quote 1
                          • R Offline
                            rskoniec @gas
                            last edited by rskoniec

                            @gas Here is my TTN config:

                            0_1488837842948_ttn.jpg

                            Gateway should be packet forwarder type.

                            The machine is working as good as it's code.

                            1 Reply Last reply Reply Quote 0
                            • G Offline
                              gas @jmarcelino
                              last edited by

                              @jmarcelino
                              your right i was using the Gateway not the packet forwarder

                              now it is connected cool
                              but the exampe of otaa is wrong
                              lora.join don't se deveui
                              my node is connected over my Lopy LoRaWAN nanaGW OTAA

                              github should be updated

                              lora.join(activation=LoRa.OTAA, auth=(app_eui, app_key), timeout=0)
                              
                              1 Reply Last reply Reply Quote 0
                              • D Offline
                                daniel
                                last edited by

                                @gas, yes, the example force the deveui to some value, I'll update the code on githb to clarify that. Thanks!

                                G 1 Reply Last reply Reply Quote 0
                                • G Offline
                                  gas @daniel
                                  last edited by

                                  @daniel

                                  Thanks
                                  Great Job any and impressive both micropython and Pycom
                                  now let me try the range with my sample code of GPS ...

                                  1 Reply Last reply Reply Quote 0
                                  • D Offline
                                    daniel
                                    last edited by

                                    @thanks! keep us posted about your results :-)

                                    1 Reply Last reply Reply Quote 0
                                    • C Offline
                                      Colateral @robert-hh
                                      last edited by

                                      @robert-hh I tried Windows10 ftp in browser as ftp://micro:python@192.168.4.1

                                      1 Reply Last reply Reply Quote 0
                                      • T Offline
                                        ThatStudentGuy
                                        last edited by

                                        After upgrading to the latest firmware i'm no longer able to send using raw Lora mode. I'm running the same code as i did before the weekend and it worked then. The code is basically the LoPy to LoPy code for sending and receiving. I did the firmware update. I tried to play around with the public parameter as told earlier but with no result.
                                        Anyone else experiencing the same problem?

                                        C 1 Reply Last reply Reply Quote 0
                                        • C Offline
                                          Clemens @ThatStudentGuy
                                          last edited by

                                          @ThatStudentGuy The public parameter is for talking from LoPy to RFMs necessary. Your problem is related to theat but not the public variable. Unfortunately there was a major change in the LoRa specification section, you have to set parameter expicitly now, see
                                          https://forum.pycom.io/topic/770/lora-receiving-only-b

                                          It's a bit annoying that now all defailt examples here in the forum and also on git no more working, from y perspectiv a no go and very frustrating for new users. You are tolde that you have to update your board but the "simplest code you can get" is not working, see my comments about that under:
                                          https://forum.pycom.io/topic/770/lora-receiving-only-b/4

                                          In case there is a need for this heavily change it must be documented on a prominent location or the next release must have a kind of change or fix. Just my 2 cents! ;-)

                                          T 1 Reply Last reply Reply Quote 0
                                          • T Offline
                                            ThatStudentGuy @Clemens
                                            last edited by

                                            @Clemens
                                            Thanks for your answer. That was indeed 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
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 3 / 6
                                            • First post
                                              Last post

                                            Pycom on Twitter

                                            Pycom