Hello everyone again,
I’ve just received a couple of new devices to take a shufti at, and I would love to get a couple of things clarified about their behavior.
In the past I’ve been using some Q2687’s and I’ve now got some Q26Extremes.
I notice that after booting I’m getting the GPRS event:
GPRS EVENT: ADL_GPRS_EVENT_ME_ATTACH
sporadically even though nothing as been started yet (i.e. sitting there idle).
Now I’ve had a look and the only main difference I can see, at this early point, between this new device and the old is the result of:
Where only the Q26Extreme has the result:
I understand from the docs that is: ‘sets ACTIVABLE automatically after init a define PDP context’
(which I wouldn’t take to mean try to attach. … ?)
The code that I would take to mean ‘attempt to attach automatically’ is the same in both as:
(I read the docs that +WGPRS: 0,0 would mean that it should attach automatically?)
Am I mis-understanding some fundamentals here? My understanding is that the device should (attempt to) attach when you want to connect, in my case, using wip_bearerOpen, wip_bearerSetOpts, wip_bearerStart.
Is there another configuration detail that I’ve missed so far?
Another issue ('m considering splitting this into a separate post, if this is considered better taste please let me know) is that the 2 devices act differently.
I’ve flashed the firmware to 7.44 on both and uploaded the application (different apps for each device as they are 2 parts of the same project, but the gprs code is the same).
The 1st device connects fine, but when the 2nd device attempts to it initially doesn’t but the 2nd attempt (some time later) appears to get it sorted.
I’ve taken a trace of the two, I can see where it’s different, but not why it might be.
First attempt (this is after a fresh power-up)
(the ‘|B|’ lines are diagnostic messages from my bearer event handler)
... ->GPRS EVENT: ADL_GPRS_EVENT_SETUP_OK [GPRS]: GPRS CTX (cid=1) found [GPRS]: GPRS EVENT SETUP OK (cid=1): GPRS activate ->GPRS EVENT: ADL_GPRS_EVENT_ACTIVATE_KO [GPRS]: GPRS CTX (cid=1) found |B| Bearer Event Handler [GPRS]: GPRS EVENT SETUP/ACTIVATE KO (cid=1): -> DISCONNECTED [WIP] No more ctx, call adl_gprsUnsubscribe() ...
and the 2nd (a little later in the same run):
... ->GPRS EVENT: ADL_GPRS_EVENT_SETUP_OK [GPRS]: start: -> CONNECTING [GPRS]: GPRS CTX (cid=1) found [GPRS]: GPRS EVENT SETUP OK (cid=1): GPRS activate ->GPRS EVENT: ADL_GPRS_EVENT_ACTIVATE_OK [GPRS]: GPRS CTX (cid=1) found |B| Bearer Event Handler |B| Connected [GPRS]: GPRS EVENT ACTIVATE OK (cid=1) [GPRS]: GPRS: -> CONNECTED ...
Would anyone be able to point me the right direction to figure this stuff out?
It’s a little frustrating as I’m not doing anything before or after the first attempt and yet the 2nd works and it does this every time.
Any information that anyone could shed would be most appreciated, for now i’ll continue digging.