Hi Erdem,
1. To turn on/off the radio, the above functions are correct (vAHI_ProtocolPower, vAppApiSaveMacSettings, vAppApiRestoreMacSettings); guidance on how to use these can be found in the JN-UG-3087 user guide, as well as, the example code attached.
2. The attached example code is based on the AN1180_154_HomeSensor-Demo Application; it sends data every 2 seconds and turns off the radio for around 1.5s between sending data. (Tested using the JN-SW-4163 SDK v1307).
3. This could be due to calling the function vAHI_ProtocolPower(FALSE) while the 802.15.4 MAC layer is active which can cause incorrect behaviour in the device (see function description in the JN-UG-3087 user guide). In the attached application, a change in current consumption of about 15mA was observed from when the end device is in doze and the radio off (~8mA) to when the radio is on and the end device is not in doze(~23mA).
4. "after RestoreMacSettings I cant send data any more"
More application context may need to be restored, for example, in the AN1180_154_HomeSensor-Demo Application attached, the end device needs to re-synchronise with the coordinator after the radio is turned back on, in order to continue sending data.
Regards,
Mario