Wifi lora 32 v2

Hi Heltec support team
I decided to evaluate the HELTEC WiFi LORA 32 V2 as the option for our future products.
I bought two modules to start testing and between them they work perfectly, but we have a problem trying to find the necessary parameters (DevEui, AppEui and AppKey) to connect to any LORA server (this is necessary for our project).
My question is the following: how can I obtain the following parameters from any Heltec WiFi Lora 32 V2 card:

  1. DevEui
  2. AppEui
  3. AppKey
    Thanks


You can modify it here.

Hi Quency

I modify the parameters based on your suggestions. Below the modifications on the program

uint32_t license[4] = {0xDF470836, 0xDC9726B8, 0x75357572, 0x4A43705E}; //0xDF470836,0xDC9726B8,0x75357572,0x4A43705E

/* OTAA para*/
//uint8_t DevEui[] = { 0x22, 0x32, 0x33, 0x00, 0x00, 0x88, 0x88, 0x02 }; b4fd0d05613c
uint8_t DevEui[] = { 0xb4, 0xfd, 0x0d, 0xff, 0xfe, 0x05, 0x61, 0x3c }; //b4fd0d05613c
//uint8_t AppEui[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
uint8_t AppEui[] = { 0x2F, 0xCA, 0x6F, 0x2C, 0x17, 0xDE, 0x92, 0x00 }; ////2FCA6F2C17DE9200
//uint8_t AppKey[] = { 0x88, 0x88, 0x88, 0x88, 0x88, 0x88, 0x88, 0x88, 0x88, 0x88, 0x88, 0x88, 0x88, 0x88, 0x66, 0x01 };
uint8_t AppKey[] = { 0x27, 0x64, 0xA2, 0x71, 0x67, 0x07, 0x11, 0x09, 0x2F, 0xCA, 0x6F, 0x2C, 0x17, 0xDE, 0x92, 0x00 }; //2764A27167071109

/* ABP para*/
uint8_t NwkSKey[] = { 0x15, 0xb1, 0xd0, 0xef, 0xa4, 0x63, 0xdf, 0xbe, 0x3d, 0x11, 0x18, 0x1e, 0x1e, 0xc7, 0xda,0x85 };
uint8_t AppSKey[] = { 0xd7, 0x2c, 0x78, 0x75, 0x8c, 0xdc, 0xca, 0xbf, 0x55, 0xee, 0x4a, 0x77, 0x8d, 0x16, 0xef,0x67 };
uint32_t DevAddr = ( uint32_t )0x007e6ae1;

And have the same error.

Any other suggestion?

F Medina

To connect to the server, you can refer to this page:
https://heltec-automation-docs.readthedocs.io/en/latest/esp32/lorawan/index.html

Pay attention to the configuration of the corresponding parameters. In addition, what gateway are you using?

Hi Xiao
Thanks for your reply but i can’t resolve if you are not more specific in your explanation

I’ll try to explain all the parameters and probably you can find what are the problem

uint32_t license[4] = {0xDF470836, 0xDC9726B8, 0x75357572, 0x4A43705E};

These are the 4 licenses that Heltec give me for this device.

uint8_t DevEui[] = { 0xb4, 0xfd, 0x0d, 0xff, 0xfe, 0x05, 0x61, 0x3c }; //b4fd0d05613c

This is teh DevEui that Heltec give me for this device.

uint8_t AppEui[] = { 0x2F, 0xCA, 0x6F, 0x2C, 0x17, 0xDE, 0x92, 0x00 }; ////2FCA6F2C17DE9200

I generate this App EUI based on a random number.

uint8_t AppKey[] = { 0x27, 0x64, 0xA2, 0x71, 0x67, 0x07, 0x11, 0x09, 0x2F, 0xCA, 0x6F, 0x2C, 0x17, 0xDE, 0x92, 0x00 }; //2764A27167071109

I generate the App Key based in a random number

And I used like a Gateway an Heltec HT-M00. If you have any suggestion to connect both i appreciate

best Regards

F Medina

Yes - where do I find the value for APPEUI please.