My T-Mobile SIM card can register on T-Mobile / Sprint / AT&T. I am trying to set the preferred operator, every time I send AT+COPS=?, I get SIM card cannot be registered. Please check: 1. You are using the compatible modem for your carrier; 2. Whether a specific APN or data plan is required. (Internet still works tho) and no AT commands work any more ERROR: Failed to execute command!
from EP06&EG06&EM06_AT_Commands_Manual_V1.0, 6.1. AT+COPS Operator Selection, this test command should return available operators. Is this a firmware issue?
I just tried on my Opal with an external EC25-AF and both AT+COPS? and AT+COPS=? completed in under 2 seconds in the GL modem manager when not connected.
AT+COPS=?
+COPS: (2,"Visible","Visible","311480",7),,(0-4),(0-2)
OK
AT+COPS?
+COPS: 0,0,"Visible",7
OK
Have you tried running it from ssh/putty to bypass the timeout? I know I’ve seen it take several moments when looking on an android device. You can get the correct bus setting from the dmesg command. The command did not return information for me on the CLI, so its just a suggestion, but the EP06 may behave differently.
root@GL-SFT1200:~# dmesg | grep ttyUSB
[ 29.218461] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
[ 29.233569] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
[ 29.248885] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
[ 29.264094] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB3
gl_modem -B 1-1 -D AT /dev/ttyUSB2 COPS=?
under 2 seconds in the GL modem manager when not connected.
Does it behave differently when the modem is connected to a network? That’s how I ran the AT commands (remotely)
I got the same results with socat over SSH, even with ignoreeof (not sure why sometimes I got EOF causing socat to exit), AT+COPS=? never returns the response
is there a syntax guide for gl_modem? not sure what I am doing wrong here, /dev/ttyUSB2 is the correct path
root@GL-X750:~# gl_modem -B 1-1 -D AT /dev/ttyUSB2 COPS=?
Error opening serial port - No such file or directory(2).
Usage:<gl_modem> <command> [option]
root@GL-X750:~# ls -l /dev/ttyUSB2
crw-rw---- 1 root dialout 188, 2 Jan 18 09:06 /dev/ttyUSB2
thanks, I figured out the command to use. At least this time it shows an error on network scan. I wonder if it requires the modem to be not currently connected to network
root@GL-X750:~# gl_modem -B 1-1.2 AT /dev/ttyUSB2 'AT+COPS=?'
+CME ERROR: 3
I just tried AT+COPS=? on my GL-X750 (also an EC25-AF) and it took a 20 seconds (initially timed-out, but completed the 2nd time) while connected and completed immediately when not connected from the GL GUI modem manager.