Get error when try read sms with at command - serial-port

I'm trying to use AT command for send/read the sms with nokia 5530 serial port on com6
I can connect and send sms correctly without any error and recipient get the message.
But the problem: I can't read any message and get "Error" nothing more !!!! check the below image for more info:
What is the problem and how can I read the sms?

Try using the AT+CNMI command before the AT+CMGL. It tells the device what to do with incoming messages.
try: AT+CNMI=1,2,0,0,0
Also, try this: AT+CMGL=? to see if the command is supported by your device. It should respond "OK" if it is. If not, it isn't supported.

Related

How Can IBM Bluemix Node-RED Iotout node be set up correctly to send command to Device (Arduino)?

I have an Arduino Uno that is successfully registered as a device with IBM IoTF. It can send information to the Bluemix Node-RED app without any issues now.
Now, I would like the Node-RED app to send commands to the device (the Arduino Uno). The Arduino is subscribed to the MQTT without any error. But, it is not receiving any commands from the Node-RED. I followed the directions at the link below to create another flow in Node-RED to show when a command is published and the commands are being shown, so they seem to be going to the MQTT broker. But, the device (Arduino) is not receiving them.
How can I figure out how to get this working?
Node-RED, IOT Foundation Out Node Not Sending Commands
I have the IBM IoT Out Node parameters set as follows:
Authentication: Bluemix Service
Output type: Device command
Device type: Arduino-tempsensor (this is the same string I used for the device type (name) when I registered it in IoTF)
Device ID: I put the MAC address here, should it be more
Command Type: status (I used the word "status" here. Does capitalization matter? Where should I get this value from? I used "status" because it is in the topic: "iot-2/cmd/status/fmt/json" is that correct?)
Format: json (does capitalization matter here?)
data: {"d":{"myName":"Arduino Uno", "temperature":989}} (I used this because it's JSON and I wanted to just see anything at the device)
Name: IBM IoT App Out
I typed up this whole question and then it occurred to me that the test flow to look for the published command should have all of the parameters set to exactly the same as the output. When I tried that, I was not getting the command message coming back. Then, I realized that my mac address (device ID) was capitalized in one place, but not the other. The MAC address (Device ID) I used to register the device was all in caps, so I make the Iot-out node for the command so that it was all capitalized and made the Iot-in node to test for the message so that it was all capitalized. Now it works! Then, I looked back at the device (which was printing to the serial monitor so I could see what was happening) and I am now seeing the messages! So, make sure your parameters follow the same capitaliztion!

No new sms message notifications Sim900

I have problems with the sim900. When I'm reading the serial port and the sim900 module receives a sms. It send an alert via serial port and cause problems with the reading.
I have tried using this command "AT+CNMI=0,0,0,0,0", it works fine if I really don't need sms, but I need them. what can i do if i don't want to receive new sms message notifications when I'm reading the serial port???
Thanks!
You may use AT+CNMI command to enable or disable New Message Indication messages on uart. Keep in mind that you wont get any notification for a message that is received when notifications are disabled so you need to implement a check for it.
You may either delete all existing messages using the AT+CMGD=1,4 command before disabling the notifications and check for all messages after after resuming notifications or implement any other check.
TO ENABLE NOTIFICATIONS "AT+CNMI=1,2,0,0,0"
TO DISABLE NOTIFICATIONS "AT+CNMI=0,0,0,0,0"

ESP8266 Wifi Module - prints "ready" but not responding to AT commands

Just received my first ESP8266 wifi module with some excitement. However I've been unable to fully communicate with it. I have connected the module to my computer via a usb to serial cable and I'm power the module via a separate power supply (3.3v).
After powering the module up I receive the following information (via PuTTY or and Arduino serial monitor window):
[Vendor:www.ai-thinker.com Version:0.9.2.4]
ready
I have tried sending various AT commands e.g.
AT+RST
But I get no response. Using ctrl+m and ctrl+j in putty didn't help either.
Please see my youtube video if its helpful:
https://www.youtube.com/watch?v=RvasOuHuWDc
To get AT OK .
1.AT + PRESS ENTER + THEN CTRL +J WILL GIVE OK
2.Then Enter commands to execute
eg AT+GMR ->presss enter then ctrl+j
to get firmware
repeat step 1 for each command.
Make sure that you have putty or the Arduino serial console configured to send both a newline \n and a carriage return \r character. So AT+RST actually ends up being AT+RST\r\n. This took me a bit when I first received my ESP8266 modules. On the Arduino serial console this option is at the bottom of the window. I can see in your video you have it set to no line ending. Hopefully that does it for you.

AT COMMANDS - USSD returns only OK

I have bought ZTE MF667 GSM Modem and i am using Hyper Terminal to send AT COMMANDS, i have a problem with USSD e.g :
AT+CUSD=1,"*111#",15 (to check balance) but it returns only OK
AT+CUSD=1,"*111#" returns only OK
I have tested another AT COMMADS which work fine like
AT+CMGL="ALL" to read SMS (WORKS)
How could i resolve the problem please ?
First of all USSD messages are fairly similar to SMS in that a message is sent from the mobile device to the operator network. This means when you execute a USSD command on your mobile device you will not receive an immediate response as the operator network's USSD service must answer your message. This explains why you receive only a "OK" answer to your USSD command. The "OK" is basically telling you the USSD command syntax was valid and a USSD command was sent from your mobile device to the operator network, nothing more.
Secondly as USSD command responses will be returned as an unsolicited response and therefore will not be stored alongside your SMS's.
Quote from wikipedia regarding this:
USSD is generally associated with real-time or instant messaging services. There is no store-and-forward capability, as is typical of other short-message protocols like SMS.
Addressing concretely your problem I would either assume that the operator network is being incredibly slow in responding. Or alternatively the "get balance" command you are sending is incorrect for your operator network. I would recommend checking your operator networks website to check the "get balance" USSD command code.
for past 20 days i try to solve this issues on my GSM Modem. finally i solved by follow below steps
here its a solution :
STEP 01 : AT+CSCS="GSM" Enter, it will return ok
STEP 02 : AT+QURCCFG="urcport","uart1" Enter, it will return ok
Now test your USSD like : AT+CUSD=1,"USSD CODE",15
My GSM modem Details - 4G Quectel (4G) EC20 Revision: EC20EQAR02A11E2G
Just send the command "AT" and you'll receive your ussd response.

AT Commands CMGS return ERROR

I am using Prolink PSH300 HSUPA GSM Modem connect to my laptop and using tera term to test the connect.
First I entered AT it will response me OK
AT
OK
AT+CMGF=1
OK
AT+CMGS="+6581XXXXXX" (then I pressed enter error was returned)
ERROR
Sometime it won't return me error but just hang there no > return.
Could anybody advise me what to do?
In your port initialization I would suggest you add these two lines-
port.DiscardOutBuffer();
port.DiscardInBuffer();
These will do a PurgeComm native WIN32 call, that will be resetting the hardware flow control lines.
Also add DtrEnable/RtsEnable = true lines to before opening the port connection.
Scenario: My nokia mobile conected to pc over bluetooth link.
commands: at (result ok), at+Cmgf=1(ok), but at+cmgs="mob.no">"hello"ctrl+z (result +cms error 500). I solved it by making a small change to extra initialisation setting in bluetooth modem. How, i explain here.
conrol panel -> phone and modem -> selected the blue tooth modem -> click properties. In the dialog window that opens goto advance tabs and change the existing extra initialisation commands: from whatever existed to any of the following as mentioned in the website below:
cksaheb.blogspot.in/2011/03/extra-initialization-command-for-gprs.html. My problem for sending sms solved.
I have the same problem. you must check antena connection.
Your GSM can't fine the network.

Resources