I am trying to simple code to transmit a message from a SED ( jn5168-001-M00) to a coordinator of the same type,
The SED should wake up on external event on a certain DIO , Transmit message , then enter deep sleep.
But the module fails to Transmit and enter deep sleep without sending the message.
Note: I try the same code with changing sleep mode to PWRM_vInit(E_AHI_SLEEP_OSCON_RAMON);
and it succeeds, so I think the problem is related to deepsleep.
Also I notice that during deepsleep , the connected serial-to-uart module keeps receiving on RX pin
I don't know if this is related
Any Help ?