Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

I've got a legacy Brew app that has been rebuilt against brewmp and run on a pre-release handset. All is working fine, except for one scenario wherein an IWeb based download (running in the background) gets interrupted by a voice call. I see the data connection go dormant as I expect, but when the voice call ends, the data connection stays dormant. (it doesn't wake up, it doesn't timeout). The network code was originally derived from the qualcomm netdiagnostics sample. When I run that original sample app on this handset (modified to do do its IWEB download in the background) I see expected behavior. i.e., when the interrupting voice call ends, the paused/dormant data connection wakes, the download resumes and completes successfully and the data connection closes normally.

My question is: what could my app be doing that would cause this data connection to stay dormant after the interrupting voice call ends? Any ideas..?

thx

 

-steve

As you said netdiagnostic app is working fine on this handset, Can you please make sure to stop any current network or web access processes on suspend event. Please see code under EVT_APP_SUSPEND.
You can also try using INETMGR_SetDormancyTimeout(INetMgr * pINetMgr, uint8 ucSecs) api which sets data dormancy timeout for the
network connection specified by pINetMgr to the value specified by ucSecs. When
the connection is created, the default dormancy timeout is set to 30 seconds but i don't think this is needed. you should have a close look in netdiagnostic app first as it is working. Can you provide the model and software build of device.

As you said netdiagnostic app is working fine on this handset, Can you please make sure to stop any current network or web access processes on suspend event. Please see code under EVT_APP_SUSPEND.
You can also try using INETMGR_SetDormancyTimeout(INetMgr * pINetMgr, uint8 ucSecs) api which sets data dormancy timeout for the
network connection specified by pINetMgr to the value specified by ucSecs. When
the connection is created, the default dormancy timeout is set to 30 seconds but i don't think this is needed. you should have a close look in netdiagnostic app first as it is working. Can you provide the model and software build of device.

device is samsung sch R270. (i see it's listed as commercial in the device database. It just hasn't gotten released for the context I'm working in)
This legacy app is preloaded and automatically loads to background at device startup. Transparent download of specific files in the background is a long standing part of the program design. Can't turn it off. 

device is samsung sch R270. (i see it's listed as commercial in the device database. It just hasn't gotten released for the context I'm working in)
This legacy app is preloaded and automatically loads to background at device startup. Transparent download of specific files in the background is a long standing part of the program design. Can't turn it off.