AT+COPS=? returns "Operation not allowed" - gsm

I'm trying to get a modem with a Quectel BG96 chip connected to the internet from Linux, but every time I try to scan for carriers I get
AT+COPS=?
+CME ERROR: 3
after 60 or so seconds. Why would scanning give me this error?

Related

Arduino Portenta + Vision Shield unable to connect to Wifi with OpenMV

I'm running micropython and connecting to office wifi that is available. However, i keep getting an error; the error is = OSError: [Errno 110] ETIMEDOUT
the device is ‘approved’ to connect to office wifi thus it's not an issue of needing access.
I’ve tried connecting from my personal mobile hotspot and it works well. The scan wifi code runs and it is able to detect the office wifi too. However connecting to wifi fails as the code does not detect and GET the same value (whereas on personal hotspot it successfully does so).
Running a template 'connect' script gets me the
# We should have a valid IP now via DHCP
print("WiFi Connected ", wlan.ifconfig()
However when i combine it into my code it returns
Error connecting: 1
AttributeError: 'NoneType' object has no attribute 'ifconfig'
It is probably not connecting correctly or at all as the rest of the code doesn't retrieve the details needed

"short message transfer rejected" m590 device

Im trying to get a M590 circuit to send a GSM/GPRS SMS,
I have communication with the cirtuit using serial communication using PUTTY.exe
on power on the M590 starts up, giving the following printout:
MODEM: STARTUP
+PBREADY
It has registered to the GSM network since
+AT+CSQ ;given as input gives
22,2
+AT+CREG?
+CREG: 0,1
to sen an SMS i enter the following (Ok is the response recieved)
+AT+CMGF=1 ;ie set mode text
OK
+AT+CSCS="GSM" ;ie GSM coding of chars
OK
+AT+CMGS="+46739550618" ; the sending command (my phone ;)
"hii" ctrl-z
... it goes away a while
ERROR
Instead of ctrl z, you can try : push alt then 026 and then release alt. It did work for me.

Getting error on uploading code into esp8266 nodemcu by Arduino

Recently I bought a esp8266 nodemcu for my project.
For running the blink code, I followed this tutorial esp8266 quick start.
But ended up with this :
Sketch uses 246,319 bytes (23%) of program storage space.Maximum is 1,044,464 bytes.
Global variables use 32,276 bytes (39%) of dynamic memory, leaving 49,644 bytes for local variables.Maximum is 81,920 bytes.
Uploading 250464 bytes from C:\Users\test\AppData\Local\Temp\build544514107263874658.tmp/arduinowifi.cpp.bin to flash at 0x00000000
.error: failed sending 1044 bytes
error: failed sending 0xC0
warning: espcomm_send_command: didn't receive command response
warning: espcomm_send_command(FLASH_DOWNLOAD_DATA) failed
error: failed sending 0xC0
error: failed sending 8 bytes
error: failed sending 4 bytes
error: failed sending 0xC0
warning: espcomm_send_command: didn't receive command response
error: espcomm_upload_mem failed
I tried with different baud rate but failed.
Arduino IDE: 1.6.5 and 1.8.5
OS: Windows 10 and Ubuntu 16.04LTS
Update: Solved after using USB HUB.
The problem may come from circuit breakdown. I have this problem today and solved by following. Jump D3 (or GPIO00) to GND (if your PC still can see port). However, GPIO0 is set to OUTPUT/HIGH by default and may cause excessive current consumption. To prevent board fail, 1K resister may add between GPIO0(D3) and GND. Plug module power and upload program. Sometimes, please remember that you may need to unplug and plug module every new upload.
For another method,direct program to chip, use FTD232 (switch jumper to 3.3V) connect between FTD232 and NodeMCU like as Vcc(check it is 3.3V):3.3V , Tx:Rx, Rx:Tx, Gnd:Gnd, Gnd:D3. (you may use on board GND to D3)
Plug and upload. if the second method cannot work your ESP8266 IC may be gone.
As mention above, if your ESP8266 set GPIO0 as OUTPUT/HIGH, ground it may damage chip. Make sure that you
1) unplug power before ground GPIO0 (or add a resister)
2) power it and upload
3) remove GPIO0 when enter upload to prevent short out the output when program start to run.
First, you have to install the driver for the nodeMCU! You can get it here:
https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers
And then go to control panel->devices and check if your system detects the nodeMCU.
Next go to preferences and add the board to Arduino IDE
Next disconnect and reconnect (just for confirmation) to verify if a led(blue usually) blinks upon connection.
After these steps, then go to Arduino IDE and select the board as ESP -12E module
Set the programmer as AVRiSP mk ll
And then compile and upload!

GSM Modem show CME ERROR:262 Sim is blocked, but working in Cell Phone

I have been using GSM Modem at work for sending sms notifications for a while. It was working good, however when I tried using it today it gives me +CME ERROR: 262. This means: Sim Card is Blocked, I have no idea why.
Previously these commands worked:
ATZ
OK
AT+CMEE = 1
OK
AT+CSCS="UCS2"
OK
AT+CSMP=17,167,0,0
+CME ERROR: 262
AT+CMGF = 0
OK
AT+CMGS = 81
+CME ERROR: 262
I have tried other SIM cards, and used GSM 7 encoding, but I still get same error.
UPDATE: I tested this Card on mobile phone, ant it works perfectly, however any SIM I put in GSM modem, is Blocked somehow.
UPDATE: I changed my modem with same model modem, ant it works. Probably some hardware malfunction of this old modem.
So I have found that was causing this issue.
It seems what SIM card inserted into GSM modem didn't have good contact. I changed my modem and now it works like a charm

Is my SIM card faulty or is my provider annoying me?

I'm trying to establish a PPP connection using pppd and AT Commands. This usually works fine with a SIM card of my local provider. However, I received a card from a friend that is living in Germany and I wanted to give it a try from Switzerland but I have a very strange behavior.
First I cannot activate the error message (AT+CMEE), I always get the error message "ERROR" despite I activated the full verbose previously (AT+CMEE=2). This commands works with my local provider SIM card ...
Then if I check the network status:
AT+CGREG?
+CGREG: 1,3
Believing the "3", this means "Registration denied".
When I try to attach or detach, I always have an error without more explanation (Despite AT+CMEE=2):
AT+CGATT=0
ERROR
AT+CGATT=1
ERROR
AT+CGATT?
+CGATT: 0
OK
I can send SMS with AT commands! Putting the SIM card in a phone, I cannot establish any call!
So is it possible to send SMS without the need to register to the network? Is it possible that error message reporting is deactivated on the SIM card? I'm wondering if this is a problem of configuration, a problem of the SIM card or a problem of provider...
Edit
If this could help someone. I tried to send an SMS when I'm detached from the network with my working SIM card, it works! Believing this website I guess my friend didn't pay the bill or my local network provider refuses me to use its network ...
Probably roaming of circuit switched data (GSM) is allowed. And roaming of GPRS service is not allowed.
AT+CGREG? returns status of GPRS registration.
AT+CREG? returns status of network registration (GSM/UMTS).
Try command:
AT+CREG?
It probably will return 5 (Registered, roaming).
SMS message sending works because it does not need GPRS. Attach and +CGREG stuff are all for GPRS.

Resources