• AVR Freaks

Helpful ReplyHot!SAMR34 Xplained "APPS_ENDDEVICE_DEMO" Testing

Author
indusconn
New Member
  • Total Posts : 6
  • Reward points : 0
  • Joined: 2019/09/04 23:22:38
  • Location: 0
  • Status: offline
2019/11/03 09:17:37 (permalink)
0

SAMR34 Xplained "APPS_ENDDEVICE_DEMO" Testing

Hello,
im trying to test the "APPS_ENDDEVICE_DEMO"
everything is fine but have a certain issue 
sending data with "2" option works well but if trying to directly sleep after with "3" option it doesn't sleep with the defined value set in conf_app.h file
it seems to sleep for a arbitrary time under 18000ms always
but if i go to sleep after certain time it works fine.
any hint?
best regards
Mike
#1
Mustang1945
New Member
  • Total Posts : 3
  • Reward points : 0
  • Joined: 2015/10/15 15:13:05
  • Location: 0
  • Status: offline
Re: SAMR34 Xplained "APPS_ENDDEVICE_DEMO" Testing 2019/11/28 17:49:44 (permalink)
0
Hi, I am having the same issue, did you find the solution?
 
thanks
post edited by Mustang1945 - 2019/11/28 17:50:48
#2
indusconn
New Member
  • Total Posts : 6
  • Reward points : 0
  • Joined: 2019/09/04 23:22:38
  • Location: 0
  • Status: offline
Re: SAMR34 Xplained "APPS_ENDDEVICE_DEMO" Testing 2019/11/30 02:31:53 (permalink)
0
sad: sad
Not yet
last time I was debugging looks that they are overwriting in pmm.c (PMM_sleep Function) the time with an already running timer 
MM_Status_t PMM_Sleep(PMM_SleepReq_t *req)
{
............
sysSleepTime = SwTimerNextExpiryDuration();
sysSleepTime = (SWTIMER_INVALID_TIMEOUT == sysSleepTime) ? PMM_SLEEPTIME_MAX_MS : US_TO_MS( sysSleepTime );
.............
}
 
#3
indusconn
New Member
  • Total Posts : 6
  • Reward points : 0
  • Joined: 2019/09/04 23:22:38
  • Location: 0
  • Status: offline
Re: SAMR34 Xplained "APPS_ENDDEVICE_DEMO" Testing 2019/12/03 07:01:38 (permalink)
0
looks like a dutycycle timer???
anyone got a way to disable duty cycle monitoring 
I mean why the duty cycle is taken into consideration even after trying to sleep even with a large
sleep time
post edited by indusconn - 2019/12/03 08:44:18
#4
indusconn
New Member
  • Total Posts : 6
  • Reward points : 0
  • Joined: 2019/09/04 23:22:38
  • Location: 0
  • Status: offline
Re: SAMR34 Xplained "APPS_ENDDEVICE_DEMO" Testing 2019/12/06 14:59:30 (permalink) ☄ Helpfulby fishbeetle 2019/12/12 06:57:38
5 (1)
Smile: Smile
@Mustang1945
ok bypassed the duty cycle check
replace in lorawan_multiband.c ->SearchAvailableChannel2
.............
bool bandWithoutDutyCycle = true;//(((1 << RegParams.band) & (ISM_EUBAND | ISM_ASBAND | (1 << ISM_JPN923))) == 0);
.............
 
and in pmm.c -> PMM_Sleep
.............
comment
//sysSleepTime = SwTimerNextExpiryDuration();
.............
just make sure to respect the duty cycle time while sleeping wink: wink
Mike
#5
Jump to:
© 2020 APG vNext Commercial Version 4.5