[Ovmsdev] SIMCOM modem getting started

Mark Webb-Johnson mark at webb-johnson.net
Fri Oct 6 09:25:43 HKT 2017


With OTA working, I’m now moving on to the SIMCOM driver. For those of you trying to get it working, here are some starting points:

You can toggle modem power on/off with:

OVMS > egpio output 0 0
OVMS > egpio output 0 1
OVMS > egpio output 0 0

You can talk to the modem with:

OVMS > power simcom on
I (16814) uart: queue free spaces: 10

OVMS > egpio output 3 0

OVMS > simcom tx AT
SIMCOM rx 41 54 0d 0d 0a 4f 4b 0d 0a                      AT...OK..

OVMS > simcom tx AT+CGMI
SIMCOM rx 41 54 2b 43 47 4d 49 0d                         AT+CGMI.
SIMCOM rx 0d 0a 53 49 4d 43 4f 4d 20 49 4e 43 4f 52 50 4f ..SIMCOM INCORPO
SIMCOM rx 52 41 54 45 44 0d 0a 0d 0a 4f 4b 0d 0a          RATED....OK..

OVMS > simcom tx AT+CGMM
SIMCOM rx 41 54 2b 43 47 4d 4d 0d                         AT+CGMM.
SIMCOM rx 0d 0a 53 49 4d 43 4f 4d 5f 53 49 4d 35 33 36 30 ..SIMCOM_SIM5360
SIMCOM rx 45 0d 0a 0d 0a 4f 4b 0d 0a                      E....OK..

OVMS > simcom tx AT+CGMR
SIMCOM rx 41 54 2b 43 47 4d 52 0d                         AT+CGMR.
SIMCOM rx 0d 0a 2b 43 47 4d 52 3a 20 33 35 33 31 36 42 31 ..+CGMR: 35316B1
SIMCOM rx 31 53 49 4d 35 33 36 30 45 0d 0a 0d 0a 4f 4b 0d 1SIM5360E....OK.

OVMS > simcom tx AT+CGSN
SIMCOM rx 41 54 2b 43 47 53 4e 0d                         AT+CGSN.
SIMCOM rx 0d 0a 38 36 33 37 38 ...
SIMCOM rx 34 0d 0a 0d 0a 4f 4b 0d 0a                      4....OK..

OVMS > simcom tx AT+CIMI
SIMCOM rx 41 54 2b 43 49 4d 49 0d                         AT+CIMI.
SIMCOM rx 0d 0a 32 33 34 35 ...
SIMCOM rx 31 0d 0a 0d 0a 4f 4b 0d 0a                      1....OK..

OVMS > simcom tx AT+CICCID
SIMCOM rx 41 54 2b 43 49 43 43 49 44 0d                   AT+CICCID.
SIMCOM rx 0d 0a 2b 49 43 43 49 44 ...
SIMCOM rx 0a 4f 4b 0d 0a                                  .OK..

(note that the 'egpio output 3 0’ is needed at the moment, to set DTR and wake up the modem, you can also ‘egpio output 3 1’ to make it sleep)

Regards, Mark.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.teslaclub.hk/pipermail/ovmsdev/attachments/20171006/20b71031/attachment.html>


More information about the OvmsDev mailing list