[PATCH] use AT+COPS=0 for operator selection

Philipp Zabel philipp.zabel at gmail.com
Fri Apr 20 17:13:51 CEST 2007


The standard says that the parameter is not optional. Some modems
(correctly) return "ERROR" in response to "AT+COPS".

Index: gsm/src/gsmd/usock.c
===================================================================
--- gsm.orig/src/gsmd/usock.c	2007-04-17 22:57:36.000000000 +0200
+++ gsm/src/gsmd/usock.c	2007-04-17 22:57:49.000000000 +0200
@@ -388,7 +388,7 @@
 
 	switch (gph->msg_subtype) {
 	case GSMD_NETWORK_REGISTER:
-		cmd = atcmd_fill("AT+COPS", 9+1,
+		cmd = atcmd_fill("AT+COPS=0", 11+1,
 				 &null_cmd_cb, gu, 0);
 		break;
 	case GSMD_NETWORK_VMAIL_GET:





More information about the gsmd-devel mailing list