How to enable High Power on JenNet-IP w/ JN5168-001-M05/6?

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

How to enable High Power on JenNet-IP w/ JN5168-001-M05/6?

Jump to solution
2,569 Views
limcb
Contributor IV

Hi, 

If I start fresh using JN-AN-1190-JenNet-IP-Application-Template, how do I enable high power mode for the JN5168-001-M06 module ?

SDK used is JN-SW-4165. 

It seems like AppApi, MiniMac, & Jennet do not mix well ?

I have tried:

PRIVATE void *pvMac;
PRIVATE MAC_Pib_s *psPib;

pvMac = pvAppApiGetMacHandle();
psPib = MAC_psPibGetHandle(pvMac);

eAppApiPlmeSet(2, (uint32)(-11)); // 2 = PHY_PIB_ATTR_TX_POWER

and

vAppApiSetHighPowerMode(2, TRUE); // 2 = APP_API_MODULE_HPM06

For the makefile, I tried alternating between AppApi and MiniMAC: 

APPLIBS += AppApi
#APPLIBS += MiniMAC

INCFLAGS += -I$(COMPONENTS_BASE_DIR)/AppApi/Include

#INCFLAGS += -I$(COMPONENTS_BASE_DIR)/MiniMAC/Include

#ADDITIONAL_SRC_DIR += $(COMPONENTS_BASE_DIR)/MiniMAC/Source

but it never once worked. 

Any help would be appreciated. 

1 Solution
1,637 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Lim,

By default our modules use the highest power level allowed for the module type specified in the call to vMiniMac_SetHighPowerMode() there should be no need to alter the power level (except to lower it).

Best Regards,

Mario

View solution in original post

11 Replies
1,636 Views
davidashraf
Contributor V

Hi Lim , 
Did you only used vAHI_HighPowerModuleEnable(TRUE,TRUE) ? or there's another thing I should do to enable high power mode ?

Thanks 

0 Kudos
1,636 Views
dheerajsawant
Contributor V

Hello davidashraf‌, 

I am trying to use RF communication between 2 JN5168-001-M00 

i just configure

vAHI_AntennaDiversityOutputEnable(TRUE, TRUE);
vAHI_AntennaDiversityEnable(TRUE,TRUE);
vAHI_AntennaDiversityControl(25,25);

u8AHI_AntennaDiversityStatus();

i don't understand what will be my next step. 

 how to send and receive packets. 

Need your help..

Thank You for your Time.

0 Kudos
1,637 Views
dheerajsawant
Contributor V

Hello davidashraf‌, 

i read that link (SIMPLE DATA TRANSFER). 

but i am still don't understand how to make one module as coordinator and another as end point. 

i am also reading document JN-AN-3113 PDF. but unable to understand how to make coordinator and another one as end point and how to send data.

there is no sequence for this.

please need your help!

Thank you for your time.

0 Kudos
1,637 Views
dheerajsawant
Contributor V

Thank You for your instant reply 

i will go through it.

0 Kudos
1,637 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi David,

Please check the document attached.

Hope it helps.

Best Regards,

Mario

0 Kudos
1,637 Views
limcb
Contributor IV

Ok, the LQI values are now aligned correctly. 

Next question, how do I configure the power level ?

I've tried adding vMiniMac_PLME_SetReq_Power(3) right after the vMiniMac_SetHighPowerMode but the RSSI/LQI levels do not change. 

Any help ?

0 Kudos
1,638 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Lim,

By default our modules use the highest power level allowed for the module type specified in the call to vMiniMac_SetHighPowerMode() there should be no need to alter the power level (except to lower it).

Best Regards,

Mario

1,637 Views
spikeyang
Contributor I

I 'm using JN5168-M06 module. And I add it in AppMain() function. It seems works!

0 Kudos
1,637 Views
limcb
Contributor IV

For completion sake to anyone down the line reading this, vAHI_HighPowerModuleEnable(TRUE,TRUE); was used to enable high power. 

0 Kudos
1,637 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Lim,

You should find code already in place to do this, near the top of Node.c you will find the commented out line:

/* Optionally define a module type */
//#define NODE_MODULE_TYPE E_MODULE_HPM05

If you comment this line in and use a value as passed into vMiniMac_SetHighPowerMode() it should enable high power mode for the specified module. Available values are as follows (from Components\MiniMAC\Include\MiniMac.h):

typedef enum PACK
{
    E_MODULE_STD   = 0,
    E_MODULE_HPM05 = 1,
    E_MODULE_HPM06 = 2
} teModuleType;

Best Regards,

Mario

0 Kudos