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

    What is maximum number of sending payload at AS923?

    Scheduled Pinned Locked Moved LoPy
    2 Posts 1 Posters 28 Views 1 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.
    • Gusti Made Arya WijayaG Offline
      Gusti Made Arya Wijaya
      last edited by

      Hello, I've tried to send sensor data using Lopy4 at AS923, I'm using Thethingstack network server and kerlink gateway. It can send maximum only 9 byte data at SF10, and then I check in lorawan airtime calculator (https://avbentem.github.io/airtime-calculator/ttn/as923/) the overhead size in lopy4 uplink is 15 byte.
      8b17f869-fac5-48f1-8e80-a11efa0f787b-image.png .

      I've tried to send 2 payload at SF7 for each 1 hour and it is successfully received in network server and application server. and then I tried to send 10 payloads with 60 second each payload. 27270a5b-7220-4cd7-ae1b-9dcee77abb26-image.png ,
      but after that the uplink from mylopy is can't be received in network server until waiting 5 hours. what caused this issue to happen?

      Gusti Made Arya WijayaG 1 Reply Last reply Reply Quote 0
      • Gusti Made Arya WijayaG Offline
        Gusti Made Arya Wijaya @Gusti Made Arya Wijaya
        last edited by Gusti Made Arya Wijaya

        @Gusti-Made-Arya-Wijaya I using downlink to trigger lopy4 to send payload data that saved in .txt file, here is the code

        def new_req_log(self):
                try:
                    print('fungsi new_req_log')
        
                    downlink = self.dlink[2:]
                    print(downlink)
                    targetfile = downlink[:2]
                    print(targetfile)
                    targetmsg = downlink[2:]
                    print(targetmsg)
                    cari_tgl=(''.join(['{:02x}'.format(b) for b in targetfile]))
                    print(cari_tgl)
                    print('Request Log tanggal '+ cari_tgl)
                    header = b"\xee" + targetfile[1:]
        
                    print('selecting file')
                    file_log = os.listdir('log')
                    file_log.sort(reverse=True)
        
                    c = 0
                    targeted = 0
                    for a in range(len(file_log)):
        
                        c = c
                        cari = file_log[a]
                        target = cari[4:8]
        
                        if target == cari_tgl:
        
                            targeted = c
        
                        c = c + 1
        
                    read_log_last = file_log[targeted]
                    print(read_log_last)
        
                    with open('log/' + read_log_last) as f:
                        content = f.readlines()
        
                    for n in range(len(targetmsg)):
                        i = int.from_bytes(targetmsg[n:n+1], 'big')
                        data = content[i].replace('FF04', 'FF05')  # log data id
                        log_data = ubinascii.unhexlify(data.replace('\n', ''))  # convert string log to byte
                        print(log_data)
                        replaceHead = header + log_data[2:11]
                        print(replaceHead)
                        self.s.send(replaceHead)
                        utime.sleep(60)
                except:
                    print("downlink error")
        
        
        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 / 1
        • First post
          Last post

        Pycom on Twitter

        Pycom