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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
5,912 次查看
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 解答
4,980 次查看
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

在原帖中查看解决方案

11 回复数
4,979 次查看
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 项奖励
回复
4,979 次查看
dheerajsawant
Contributor V

Hello ‌, 

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 项奖励
回复
4,979 次查看
davidashraf
Contributor V
0 项奖励
回复
4,980 次查看
dheerajsawant
Contributor V

Hello ‌, 

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 项奖励
回复
4,980 次查看
dheerajsawant
Contributor V

Thank You for your instant reply 

i will go through it.

0 项奖励
回复
4,980 次查看
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi David,

Please check the document attached.

Hope it helps.

Best Regards,

Mario

0 项奖励
回复
4,980 次查看
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 项奖励
回复
4,981 次查看
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

4,980 次查看
spikeyang
Contributor I

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

0 项奖励
回复
4,980 次查看
limcb
Contributor IV

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

0 项奖励
回复
4,980 次查看
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 项奖励
回复