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

    CRC handling in raw LoRa mode

    Scheduled Pinned Locked Moved Discussion
    lora
    2 Posts 2 Posters 1.1k Views 3 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.
    • bmarkusB Offline
      bmarkus
      last edited by

      What is about the CRC handling in raw LoRa mode? I do not find any reference in the docs.

      1 Reply Last reply Reply Quote 0
      • N Offline
        nevercast
        last edited by

        Sorry for the year late grave-dig on this, I wanted this answer for myself and I landed on this post.

        Here we see a crcOn parameter in the driver
        https://github.com/pycom/pycom-micropython-sigfox/blob/4481a1c283be97640592ea2a0440830e336064de/drivers/sx127x/sx1276/sx1276.c#L364

        Here we see the lora micropython module invoking these functions
        https://github.com/pycom/pycom-micropython-sigfox/blob/4481a1c283be97640592ea2a0440830e336064de/esp32/mods/modlora.c#L1093-L1101

        The arguments and parameters formatted:

        RadioModems_t modem = MODEM_LORA, 
        uint32_t bandwidth = init_data->bandwidth, 
        uint32_t datarate = init_data->sf,
        uint8_t coderate = init_data->coding_rate, 
        uint32_t bandwidthAfc = 0, 
        uint16_t preambleLen = init_data->preamble,
        uint16_t symbTimeout = symbol_to, 
        bool fixLen = LORA_FIX_LENGTH_PAYLOAD_OFF,
        uint8_t payloadLen = 0, 
        bool crcOn = true,   <-- CRC enabled.
        bool freqHopOn = 0, 
        uint8_t hopPeriod = 0, 
        bool iqInverted = init_data->rxiq, 
        bool rxContinuous = true
        

        This is the same for both tx and rx.

        This setup function is invoked when in LORA (Raw) mode: https://github.com/pycom/pycom-micropython-sigfox/blob/4481a1c283be97640592ea2a0440830e336064de/esp32/mods/modlora.c#L821

        TL;DR; Yes, CRC is enabled internally.

        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