setFrequencySubBand?

Home Forums mDot/xDot setFrequencySubBand?

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #17599
    simeoni lorenzo
    Participant

    Hello guys, I’m trying to understand well the code in exemple for mDot, and I see a function, FB_915 that i don’t really understand, and they say that with this function you had to be in USA, why? And what function use if I’m in Europe plz? 🙂

    #17602
    Mike Fiore
    Blocked

    Simeoni,

    Can you provide a link to the example program you’re referring to?

    The frequency band of the device is normally stored in protected device configuration and can’t be changed by software.

    Some documentation about LoRa and an introduction to LoRa can be found in the links below.

    LoRa

    Introduction to LoRa

    Cheers,
    Mike

    #17604
    simeoni lorenzo
    Participant
    #17605
    Mike Fiore
    Blocked

    There’s no reference to FB_915 in that file. There is a reference to FB_EU868. Perhaps you’re referring to the debug output from the example program.

    The function that reference is in is just displaying the current device configuration. Some configuration items are only relevant for certain frequency bands, so the code is switching on the frequency band in order to only show relevant configuration.

    Your mDot was programmed in the factory to operate in a certain frequency band. The band your device is configured for should come out as part of the debug output from the example program. It should also be on the sticker on your mDot.

    #17606
    simeoni lorenzo
    Participant

    I’m trying to not use the library dot_util.h for the moment, i try to make all my program with only mdot.h, I don’t know if I really need to use dot_util.h

    #17607
    simeoni lorenzo
    Participant

    It’s in mDot.h that we see that the function is only used in USA with FB_915

    #17608
    Mike Fiore
    Blocked

    The Dot-Examples code show how to use the Dot library in your application.
    You’re free to use that code as a starting point or write your own code from scratch, but stealing code from the Dot-Examples might make things a bit easier.

    #17609
    simeoni lorenzo
    Participant

    Ok thanks man!:)

    #17610
    Mike Fiore
    Blocked

    The 915 band is divided into 8 frequency sub bands because there are 64 uplink channels and the gateway can only listen on 8 at a time. So this setting (1-8) must match on the Dot and the gateway. The device will only transmit on the 8 channels in the sub band if the setting is between 1 and 8. If the setting is 0, it will hop all 64 channels.

    /** Set frequency sub band
    * only applicable if frequency band is set for United States (FB_915)
    * sub band 0 will allow the radio to use all 64 channels
    * sub band 1 – 8 will allow the radio to use the 8 channels in that sub band
    * for use with Conduit gateway and MTAC_LORA, use sub bands 1 – 8, not sub band 0
    * @param band the sub band to use (0 – 8)
    * @returns MDOT_OK if success
    */
    int32_t setFrequencySubBand(const uint8_t& band);

    Cheers,
    Mike

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.