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 += MiniMACINCFLAGS += -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.
Solved! Go to Solution.
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
Hi Lim ,
Did you only used vAHI_HighPowerModuleEnable(TRUE,TRUE) ? or there's another thing I should do to enable high power mode ?
Thanks
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.
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.
Thank You for your instant reply
i will go through it.
Hi David,
Please check the document attached.
Hope it helps.
Best Regards,
Mario
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 ?
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
I 'm using JN5168-M06 module. And I add it in AppMain() function. It seems works!
For completion sake to anyone down the line reading this, vAHI_HighPowerModuleEnable(TRUE,TRUE); was used to enable high power.
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