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

    FiPy as Gateway

    Scheduled Pinned Locked Moved FiPy
    fipyttnerror
    11 Posts 2 Posters 1.8k Views 2 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.
    • A Offline
      AmKet
      last edited by AmKet

      Hello all,
      Initially I have registered my FiPy as a device and Dragino LG-01 as Gateway. Dragino was shown not connected on TTN. I checked the configuration many times, but it didnot work.
      So I wanted to check if its the issue withe Gateway or Server. So now, I registered the same FiPy as Gateway. This is the result I got on minicom.

      configsip: 0, SPIWP:0xee                                                        
      clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00         
      mode:DIO, clock div:1                                                           
      load:0x3fff8028,len:8                                                           
      load:0x3fff8030,len:1728                                                        
      load:0x4009fa00,len:0                                                           
      load:0x4009fa00,len:14584                                                       
      entry 0x400a059c                                                                
      �ets Jun  8 2016 00:22:57                                                       
                                                                                      
      rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)                         
      configsip: 0, SPIWP:0xee                                                        
      clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00         
      mode:DIO, clock div:1                                                           
      load:0x3fff8028,len:8                                                           
      load:0x3fff8030,len:1728                                                        
      load:0x4009fa00,len:0                                                           
      load:0x4009fa00,len:14584                                                       
      entry 0x400a059c                                                                
      �ets Jun  8 2016 00:22:57                                                       
                                                                                      
      rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)                         
      configsip: 0, SPIWP:0xee                                                        
      clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00         
      mode:DIO, clock div:1                                                           
      load:0x3fff8028,len:8                                                           
      load:0x3fff8030,len:1728                                                        
      load:0x4009fa00,len:0                                                           
      load:0x4009fa00,len:14584                                                       
      entry 0x400a059c  
      

      I trasferred main.py and config.py to /flash folder and nanogateway.py to /flash/lib/ folder. Then I did factory reset as I could not find Wifi access point. deleted the nanogateway.py from libraries and put that file along with main.py in falsh folder.
      The device does not enter REPL mode at all.

      Can one anyone suggest what would have gone wrong.
      Can I delete the device registration of FiPy from TTN

      X 1 Reply Last reply Reply Quote 1
      • X Offline
        Xykon administrators @AmKet
        last edited by

        @amket Not sure what went wrong but I suggest re-flashing the device with the firmware updater and selecting the option "Erase flash file system" in the Communication window. This will make sure all custom scripts are erased from the device.

        Did you use the code from https://github.com/pycom/pycom-libraries/tree/master/examples/lorawan-nano-gateway

        You should be able to delete your gateway in the TTN console by choosing settings and using the "Delete gateway ...." link at the bottom.

        Christian Ehlers

        1 Reply Last reply Reply Quote 0
        • A Offline
          AmKet
          last edited by AmKet

          Hello @Xykon ,
          I wanted to delete the application, I did it.
          I did update the device with firmware making sure to erase the flash file.

          Just wanted to confirm, which of the files from the link you mentioned above, I should be uploading to get my device working as nano gateway.

          Sorry the question might seem lame, but just dont want the FiPy to stop working

          X 1 Reply Last reply Reply Quote 1
          • X Offline
            Xykon administrators @AmKet
            last edited by

            @amket The whole process is explained in https://docs.pycom.io/chapter/tutorials/lora/lorawan-nano-gateway.html

            For the nano gateway the files are main.py, config.py and nanogateway.py all of which should be uploaded to the /flash folder on the device after making the necessary modifications.

            Christian Ehlers

            1 Reply Last reply Reply Quote 0
            • A Offline
              AmKet
              last edited by

              Hi ,
              @Xykon I did do what have been mention by you. The result is the same. My device doenot enter REPL at all.

              A 1 Reply Last reply Reply Quote 1
              • A Offline
                AmKet @AmKet
                last edited by

                This is what the result look like

                configsip: 0, SPIWP:0xee
                clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
                mode:DIO, clock div:1
                load:0x3fff8028,len:8
                load:0x3fff8030,len:1728
                load:0x4009fa00,len:0
                load:0x4009fa00,len:14584
                entry 0x400a059c
                ?ets Jun  8 2016 00:22:57
                
                rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
                configsip: 0, SPIWP:0xee
                clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
                mode:DIO, clock div?????????Ғ??Ҫ???UI=9}IMQ????5Յ}     JJC??Vp: 0, SPIWP:0xee
                clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
                mode:DIO, clock div:1
                load:0x3fff8028,len:8
                load:0x3fff8030,len:1728
                load:0x4009fa00,len:0
                load:0x4009fa00,len:14584
                entry 0x400a059c
                ets???? 00:22:57
                ??ᗼLB?=]I=9}IMQ?,boot:0x13 (SPI_FAST_FLASH_BOOT)
                configsip: 0, SPIWP:0xee
                clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
                mode:DIO, clock div:1
                load:0x3fff8028,len:8
                load:0x3fff8030,len:1728
                load:0x4009fa00,len:0
                load:0x4009fa00,len:14584
                entry 0x400a059c
                ?E (414) esp_image: Checksum failed. Calculated 0xbb read 0xa8
                
                X 1 Reply Last reply Reply Quote 1
                • X Offline
                  Xykon administrators @AmKet
                  last edited by

                  @amket How are you uploading the files?

                  Christian Ehlers

                  A 1 Reply Last reply Reply Quote 0
                  • A Offline
                    AmKet @Xykon
                    last edited by AmKet

                    @xykon I did it over FTP on Terminal(ubuntu) .

                    usr@usr-ThinkPad-T460s:~$ ftp 192.168.4.1
                    Connected to 192.168.4.1.
                    220 Micropython FTP Server
                    Name (192.168.4.1:amulya): micro
                    331 
                    Password:
                    230 
                    Remote system type is UNIX.
                    Using binary mode to transfer files.
                    ftp> passive
                    Passive mode on.
                    ftp> bin
                    200 
                    ftp> cd /flash
                    250 
                    ftp> put nanogateway.py
                    local: nanogateway.py remote: nanogateway.py
                    227 (192,168,4,1,7,232)
                    150 
                    226 
                    8859 bytes sent in 0.00 secs (67.5888 MB/s)
                    ftp> ls
                    227 (192,168,4,1,7,232)
                    150 
                    -rw-rw-r--   1 root  root       506 Jan  1 00:01 main.py
                    drw-rw-r--   1 root  root         0 Jan  1 00:00 sys
                    drw-rw-r--   1 root  root         0 Jan  1 00:00 lib
                    drw-rw-r--   1 root  root         0 Jan  1 00:00 cert
                    -rw-rw-r--   1 root  root         0 Jan  1 00:00 boot.py
                    -rw-rw-r--   1 root  root       571 Jan  1 00:01 config.py
                    -rw-rw-r--   1 root  root      8859 Jan  1 00:01 nanogateway.py
                    226 
                    ftp>
                    

                    I should also mention, after I wrote you a reply, I thought of adding another antenna for wifi and check, I am not very sure if thats the reason but it seemed to work . It entered REPL mode.

                    But it wasn't consistent. It breaks and enters REPL.
                    CAn you tell me if there is anything to do with Wifi connection

                    A 2 Replies Last reply Reply Quote 1
                    • A Offline
                      AmKet @AmKet
                      last edited by

                      This post is deleted!
                      1 Reply Last reply Reply Quote 0
                      • A Offline
                        AmKet @AmKet
                        last edited by

                        Sorry for the inconvinience. I did not notice it earlier. It is taking time to connect to wifi so it takes time to enter REPL.

                        X 1 Reply Last reply Reply Quote 1
                        • X Offline
                          Xykon administrators @AmKet
                          last edited by

                          @amket Thanks for the feedback, I'll look into adding some output such as "Connecting to Wifi network..." to make it more clear what is happening.

                          Christian Ehlers

                          1 Reply Last reply Reply Quote 1

                          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