setFrequencySubBand?
- This topic has 8 replies, 2 voices, and was last updated 8 years, 2 months ago by
Mike Fiore.
-
AuthorPosts
-
March 1, 2017 at 2:48 pm #17599
simeoni lorenzo
ParticipantHello 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? 🙂
March 1, 2017 at 3:07 pm #17602Mike Fiore
BlockedSimeoni,
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.
Cheers,
MikeMarch 1, 2017 at 3:19 pm #17604simeoni lorenzo
ParticipantHello! For exemple, here https://developer.mbed.org/teams/MultiTech/code/Dot-Examples/docs/tip/ in Dot_util.cpp!:)
March 1, 2017 at 3:26 pm #17605Mike Fiore
BlockedThere’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.
March 1, 2017 at 3:28 pm #17606simeoni lorenzo
ParticipantI’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
March 1, 2017 at 3:29 pm #17607simeoni lorenzo
ParticipantIt’s in mDot.h that we see that the function is only used in USA with FB_915
March 1, 2017 at 3:30 pm #17608Mike Fiore
BlockedThe 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.March 1, 2017 at 3:31 pm #17609simeoni lorenzo
ParticipantOk thanks man!:)
March 1, 2017 at 3:35 pm #17610Mike Fiore
BlockedThe 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 -
AuthorPosts
- You must be logged in to reply to this topic.