Skip to content

Instantly share code, notes, and snippets.

@berezovskyi
Created February 19, 2016 22:42
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save berezovskyi/5508763bfc60392fa210 to your computer and use it in GitHub Desktop.
Save berezovskyi/5508763bfc60392fa210 to your computer and use it in GitHub Desktop.

M590 introduction

AT serial commands

A successful connection is initialized in this way:

➟  sudo picocom -b 115200 /dev/ttyUSB0 
picocom v1.7

port is        : /dev/ttyUSB0
flowcontrol    : none
baudrate is    : 115200
parity is      : none
databits are   : 8
escape is      : C-a
local echo is  : no
noinit is      : no
noreset is     : no
nolock is      : no
send_cmd is    : sz -vv
receive_cmd is : rz -vv
imap is        : 
omap is        : 
emap is        : crcrlf,delbs,

Terminal ready

In order to check that the modem is alive (from now and forward, first line is what you type and the rest is what a modem reports back):

AT OK

More information about the mode (commands start with AT):

ATI
NEOWAY
M590
REVISION 01.30d

OK
AT+CGMM?
M590

When you reboot the modem (by pulling the BOOT pin to the ground - it behaves as a toggle switch, more on this later), you should see the following output

MODEM:STARTUP

+PBREADY

After the boot, you need to connect to the network:

AT+CREG=1

You must wait until your command receives such response:

AT+CREG?
+CREG: 1,1

After that, you are free to go into SMS mode:

AT+CSMS=1
+CSMS: 1,1,1

OK

Now GSM & plain text mode:

AT+CMGF=1
OK
AT+CSCS="GSM"
OK

Finally, list all messages:

AT+CMGL=4

Sample response:

+CMGL: 1,"REC READ","+4673964****","","16/02/19,14:25:35+04"
Gtfo!?

OK

And finally, send an SMS:

AT+CMGS="073964****"
> Hello, my name is C3PO from planet M590�<Ctrl+Z>
+CMGS: 11

OK

Note that:

  • > sign (a.k.a. prompt) was printed by the modem, not typed in;
  • <Ctrl+Z> was a key combination that marks the End Of Message.

Check the balance:

AT+CUSD=1,"*111#",15
+CUSD: 0,"Du ringer nu med Bas. Tanka direkt i vår app, på m.comviq.se eller comviq.se
SALDO: 66,24 kr
Prisplan: Bas",1

OK

Physical layout

On the bottom side, pin headers are labeled in the following way:

14 12 10 8 6 4 2
13 11 9 7 5 3 1
PIN USE
14 BOOT
13 DTR
8 TX
7 RX
4 VCC
2 & 1 GND (VCC & SER)

Current draw

Max mode w/ Fluke 87 III:

Off: 2 mA Power on: 130 mA Registration: 340 mA Low consumption mode: 10 mA (DTR must be GND'ed all the time, enters low consumption mode after ~ 15s)


Written with StackEdit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment