MDot not connecting to Lorawan
- This topic has 4 replies, 2 voices, and was last updated 5 years ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Using the Dot examples application from Mbed online compiler
Config the example_config.h
// the active example is the one that will be compiled
#if !defined(ACTIVE_EXAMPLE)
#define ACTIVE_EXAMPLE AUTO_OTA_EXAMPLE
#endif
// the active channel plan is the one that will be compiled
// options are :
// CP_US915
// CP_AU915
// CP_EU868
// CP_KR920
// CP_AS923
// CP_AS923_JAPAN
// CP_IN865
#if !defined(CHANNEL_PLAN)
#define CHANNEL_PLAN CP_EU868
in the auto_ota_example.cpp config as:
static std::string network_name = “LoraWAN-001”;
static std::string network_passphrase = “LoraWAN-001”;
static uint8_t network_id[] = { 0x00,0x80,0x00,0x00,0x00,0x01,0x1d,0xab};
static uint8_t network_key[] = { 0x82, 0x74, 0x11, 0x21, 0x1e, 0x6b, 0x67, 0x64, 0x38, 0x53, 0xcb, 0xdb, 0xb3, 0x68, 0xa5, 0xe3};
static uint8_t frequency_sub_band = 0;
static lora::NetworkType network_type = lora::PUBLIC_LORAWAN;
static uint8_t join_delay = 5;
static uint8_t ack = 0;
static bool adr = true;
// deepsleep consumes slightly less current than sleep
// in sleep mode, IO state is maintained, RAM is retained, and application will resume after waking up
// in deepsleep mode, IOs float, RAM is lost, and application will start from beginning after waking up
// if deep_sleep == true, device will enter deepsleep mode
static bool deep_sleep = false;
did check the lib version for mbed-os compile with the right version
can not connect to chipstack server
i did check the keys are matching .
Did you change the config setup to use the ID/KEY instead of NAME/PASSPHRASE?
// in OTA and AUTO_OTA join modes, the credentials can be passed to the library as a name and passphrase or an ID and KEY
// only one method or the other should be used!
// network ID = crc64(network name)
// network KEY = cmac(network passphrase)
update_ota_config_name_phrase(network_name, network_passphrase, frequency_sub_band, network_type, ack);
//update_ota_config_id_key(network_id, network_key, frequency_sub_band, network_type, ack);
Did you verify the JoinEUI in the JoinRequest received at the server matches?
Yes did check them
Do you have an example Join Request received by the chirpstack server?