atmodem: let +COPS: report access technology
RFC 1/1 atmodem: let +COPS: report access technology
When using the SIMCom A7672E-FASE in gsm mode, gsm is never reported as access technology. Fix this by letting +COPS: report it.
---
For EUTRAN networks at_creg_cb() is setting the correct technology. But as I read it, CREG doesn't differentiate between GSM and UMTS. Can we fix this by using the technology from +COPS: ?
drivers/atmodem/network-registration.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/atmodem/network-registration.c +3 -0
@@ -353,6 +353,9 @@ static void cops_cb(gboolean ok, GAtResult *result, gpointer user_data) op.status =2 ; op.tech = tech; +/* Set current access technology */ + nd->tech = tech; +DBG ("cops_cb: %s, %s %s %d" , name, nd->mcc, nd->mnc, tech);cb (&error, &op, cbd->data);
Signature · 1 line
2.46.2
Hi Sean,
Quoted 15 lines · Sean Nyekjaer
When using the SIMCom A7672E-FASE in gsm mode, gsm is never reported as access technology. Fix this by letting +COPS: report it.
---
For EUTRAN networksat_creg_cb()is setting the correct technology. But as I read it, CREG doesn't differentiate between GSM and UMTS. Can we fix this by using the technology from +COPS: ?drivers/atmodem/network-registration.c | 3 +++ 1 file changed, 3 insertions(+)drivers/atmodem/network-registration.c +0
-0
drivers/atmodem/network-registration.c static void cops_cb(gboolean ok, GAtResult *result, gpointer user_data) · line 358
Quoted 6 lines
drivers/atmodem/network-registration.c +3
-0@@ -353,6 +353,9 @@ static void cops_cb(gboolean ok, GAtResult *result, gpointer user_data) op.status =2 ; op.tech = tech; +/* Set current access technology */ + nd->tech = tech; +
Maybe behind a vendor check with an explanation? COPS isn't really meant to be used for this as it can contain the cell capabilities rather than the actual registration technology.
drivers/atmodem/network-registration.c static void cops_cb(gboolean ok, GAtResult *result, gpointer user_data) · line 361
Quoted 3 lines
drivers/atmodem/network-registration.c +0
-0DBG ("cops_cb: %s, %s %s %d" , name, nd->mcc, nd->mnc, tech);cb (&error, &op, cbd->data);
Regards,
-Denis
Hi Denis,
Quoted 13 lines · Denis Kenzior
Hi Sean,
Quoted 10 lines · Sean Nyekjaer
When using the SIMCom A7672E-FASE in gsm mode, gsm is never reported as access technology. Fix this by letting +COPS: report it.
---
For EUTRAN networksat_creg_cb()is setting the correct technology. But as I read it, CREG doesn't differentiate between GSM and UMTS. Can we fix this by using the technology from +COPS: ?drivers/atmodem/network-registration.c | 3 +++ 1 file changed, 3 insertions(+)
Quoted 8 lines
drivers/atmodem/network-registration.c static void cops_cb(gboolean ok, GAtResult *result, gpointer user_data) · line 355
Quoted 8 lines
drivers/atmodem/network-registration.c +1
-0@@ -353,6 +353,9 @@ static void cops_cb(gboolean ok, GAtResult *result, gpointer user_data) op.status =2 ; op.tech = tech; +/* Set current access technology */ a
So something like:
if (nd->vendor == OFONO_VENDOR_SIMCOM_A76XX) ?
Quoted 6 lines
drivers/atmodem/network-registration.c static void cops_cb(gboolean ok, GAtResult *result, gpointer user_data) · line 358
Quoted 2 lines
drivers/atmodem/network-registration.c +2
-0+ nd->tech = tech; +Maybe behind a vendor check with an explanation? COPS isn't really meant to be used for this as it can contain the cell capabilities rather than the actual registration technology.
And an explanation from the SIMCom datasheet?
Quoted 6 lines
drivers/atmodem/network-registration.c static void cops_cb(gboolean ok, GAtResult *result, gpointer user_data) · line 361
Quoted 3 lines
drivers/atmodem/network-registration.c +0
-0DBG ("cops_cb: %s, %s %s %d" , name, nd->mcc, nd->mnc, tech);cb (&error, &op, cbd->data);Regards,
-Denis
/Sean
Hi Sean,
Quoted 6 lines
So something like:
if (
nd->vendor==OFONO_VENDOR_SIMCOM_A76XX) ?Quoted 2 lines
drivers/atmodem/network-registration.c static void cops_cb(gboolean ok, GAtResult *result, gpointer user_data) · line 358
Quoted 2 lines
drivers/atmodem/network-registration.c +2
-0+ nd->tech = tech; +
Yep.
Quoted 7 lines
Quoted 4 lines
Maybe behind a vendor check with an explanation? COPS isn't really meant to be used for this as it can contain the cell capabilities rather than the actual registration technology.
And an explanation from the SIMCom datasheet?
Yeah, that would be great.
Regards,
-Denis