Setting BLE to BLE Long Range (125Kbps) in KW38 FRMD

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Setting BLE to BLE Long Range (125Kbps) in KW38 FRMD

Jump to solution
1,196 Views
ArianRF
Contributor IV

Dear NXP helpdesk,

I would like to change the BLE mode to BLE Long Range (125Kbps) in the Wireless UART example of the KW38 FRDM board.

 Could you please guide me on the changes need to be applied?

 

Regards

Nader 

0 Kudos
Reply
1 Solution
1,014 Views
ArianRF
Contributor IV

@hgazeri 

Thanks @EduardoZamora 

We will try and get back to you.

 

Regards,

Nader

View solution in original post

0 Kudos
Reply
4 Replies
1,133 Views
ArianRF
Contributor IV

Thanks @Gavin_Jia .

In the same .h file, there is also the following:

typedef enum {
gLePhy1M_c = 0x01U, /*!< Tx/Rx Phy on the connection is LE 1M */
gLePhy2M_c = 0x02U, /*!< Tx/Rx Phy on the connection is LE 2M */
gLePhyCoded_c = 0x03U, /*!< Tx/Rx Phy on the connection is LE Coded */
} gapLePhyMode_tag;

Does this need to be changed for LE Long Range (125Kbps)?

Also, what/where exactly do I need to change in the code to set the RX and TX into LE Long Range (125Kbps)?

 

Cheers,

Nader

0 Kudos
Reply
1,073 Views
EduardoZamora
NXP TechSupport
NXP TechSupport

Hello @ArianRF

Hope you are doing well.

To configure the CodedPhy, you can try the following modifications in the ble_conn_manager.h

EduardoZamora_0-1694019440148.png

Please, test your application with these changes and let me know your findings.

Regards,
Eduardo.

0 Kudos
Reply
1,015 Views
ArianRF
Contributor IV

@hgazeri 

Thanks @EduardoZamora 

We will try and get back to you.

 

Regards,

Nader

0 Kudos
Reply
1,174 Views
Gavin_Jia
NXP TechSupport
NXP TechSupport

Hi @ArianRF ,

Please refer to this enum struct in ble_general.h:

/*! Le Phys Options Preferences flags. */
typedef enum {
    gLeCodingNoPreference_c = 0x00U,         /*!< Host has no preference on the LE Coded Phy */
    gLeCodingS2_c           = 0x01U,         /*!< Host prefers to use S=2 on the LE Coded Phy */
    gLeCodingS8_c           = 0x02U,         /*!< Host prefers to use S=8 on the LE Coded Phy */
} gapLePhyOptionsFlags_t;

This one “S=8”, means Coded Phy@125Kbps

Hope it could be helpful.

Our colleague Eduardo is supporting the ticket, and he'll follow up this.

 

Best regards,

Gavin

0 Kudos
Reply