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

    Sigfox downlink and callback

    Scheduled Pinned Locked Moved Discussion
    sigfoxdownlinkblocking
    1 Posts 1 Posters 600 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.
    • E Offline
      Eric73
      last edited by

      Hello, i have somes questions about how to design my software using sigfox network on lopy4
      At this time all software work on TimerCallBack for processing and my "main" contain only machine.idle() after all timer callback initialisation. My smaller timer periodicity is one second (it's important to be as more accurate as possible to run every second this callback)

      I plan to have some sigfox (RCZ1) uplink and downlink and i suppose that lopy use sx1276 or sx1272 chip, with this chip (i use it in several embedded product), i now that a sigfox TX (payload 12bytes) is about 3*(2.1+0.5) seconds and for this time (2.1s) the CPU must process DPBSK modulation "by hand" during TX phase.
      [3 for replicat frame (on different frequency), 0.5s between replicat and after an OOB frame is send]

      My question is : during this time of CPU activity (dbpsk modulation), will my callback still be running every second or not ?

      For downlink (in FSK), i am aware that we must wait 20s and the open a 25s RX windows in sigfox protocol, i would like to now is i do something like this

      ''' SfxSoc = socket.socket(socket.AF_SIGFOX, socket.SOCK_RAW)
      SfxSoc.setsockopt(socket.SOL_SIGFOX, socket.SO_RX, True) # we expect downlink msg
      SfxSoc.setblocking(True)
      SfxSoc.send(bytes([0,127,255]))
      SfxSoc.settimeout(50)
      downlink=SfxSoc.recv(32)
      SfxSoc.close() '''

      Will my callback still running every second during RX phase or not?

      In simple word, does sigfox function is blocking my callback work or processing software is really multithreaded/multicore ?

      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