QN9020 eddystone

cancel
Showing results for 
Search instead for 
Did you mean: 

QN9020 eddystone

74 Views
Contributor I

hi
Can QN9020 be changed to eddystone? If there is any reference case procedure?
Thank you!

0 Kudos
5 Replies

10 Views
NXP TechSupport
NXP TechSupport

Hi,

Please look at the next community post.

Implementing Bluetooth® LE Beacons on the KW40Z Wireless Microcontroller  

Look at the usr_config.c file to the Eddystone data type that you want.

uint8_t adv_data[] = {0x02,GAP_AD_TYPE_FLAGS,GAP_BR_EDR_NOT_SUPPORTED,0x04,GAP_AD_TYPE_SHORTENED_NAME,
                        'N', 'X' , 'P'}; // "NXP"

Regards,

Mario

0 Kudos

10 Views
Contributor I

Hi

I'm sorry, I can't find usr_config.c file, where can I find usr_config.c file? (I use QN9020 firmware)

Thank you very much!

0 Kudos

10 Views
NXP TechSupport
NXP TechSupport

Hi,

I am sorry, the file is usr_desing.c

"C:\NXP\QN902x_SDK_1.4.0\Projects\BLE\prj_broadcaster\src\usr_design.c"

You could add something like this.

uint8_t adv_data[9] = {   
    /* ID */ 0xAA, 0xFE,  
    /* Frame Type */    0x10,  
    /* TX Power */      0xEE,  
    /* URL scheme */    0x00,  
    /* Encode URL */    'n', 'x, 'p', 0x07};  ‍‍‍‍‍‍‍‍‍‍‍‍

Regards,

Mario

0 Kudos

10 Views
Contributor I

HI

HI

I added the following program.

//uint8_t adv_data[] = {0x02,GAP_AD_TYPE_FLAGS,GAP_BR_EDR_NOT_SUPPORTED,0x04,GAP_AD_TYPE_SHORTENED_NAME,

//                        'N', 'X' , 'P'}; // "NXP"

//TLM csq

uint8_t adv_data[16] = {  

    /* ID */                     0xAA, 0xFE, 

    /* Frame Type */     0x20, 

    /* TLM Version */    0x00, 

    /* VBATT */             0x00, 0x00, 

    /* TEMP */              0x00, 0x00, 

    /* ADV_CNT */       0x00, 0x00, 0x00, 0x00, 

    /* SEC_CNT */       0x00, 0x00, 0x00, 0x00};

After compiling and downloading the firmware, I'm sorry that I can't detect the broadcast.

I want to use eddystone TLM to send temperature and other parameters. Is there any software that can monitor the broadcast content sent by eddystone? I use an Android mobile phone.

Thank you very much!

0 Kudos

10 Views
NXP TechSupport
NXP TechSupport

Hi

You need to disable the scan response.

// start adv
 app_gap_adv_start_req(GAP_GEN_DISCOVERABLE,
                       adv_data, sizeof(adv_data), 
                       NULL, NULL,
                       GAP_ADV_INTV1, GAP_ADV_INTV2);

Unfortunately, you have to implement your own application by the Android side.

Regards,

Mario

0 Kudos