Mise en veille du Shield GSM arduino

Bonjour a tous ,

La mise en veille des SIMCOM passe par des commandes AT :
AT+CSCLK=2 par exemple que je préfère utiliser . Mais attente envoyer deux fois de suite la commande AT puis un AT+CSCLK=0 pour eviter de repasser en mode DODO.

Sinon AT+CSCLK=1 mais dans ce cas tu va devoir gérer le signal DTR.

La doc :

[i]4.3.2. Sleep Mode 1 (AT+CSCLK=1)
Customer can control SIM800L module to enter or exit the sleep mode (AT+CSCLK=1) by DTR signal. When
DTR is in high level and without interrupt (on air and hardware such as GPIO interrupt or data in serial port),
SIM800L will enter sleep mode automatically. In this mode, SIM800L can still receive paging or SMS from
network but the serial port is not accessible.

4.3.3. Wake Up SIM800L from Sleep Mode 1
When SIM800L is in sleep mode 1(AT+CSCLK=1), the following methods can wake up the module:
 Pull down DTR pin.
 The serial port will be active after DTR pin is pulled to low level for about 50ms.
 Receive a voice or data call from network.
 Receive a SMS from network.
 Receive external interrupt.
Note: After module has received incoming call or new SMS, serial port can report URC, but the serial port can not input AT
command. Only after the DTR pin is pulled to low level for 50ms, the serial port can input AT command.

4.3.4. Sleep Mode 2 (AT+CSCLK=2)
In this mode, SIM800L will continuously monitor the serial port data signal. When there is no data transfer over 5
seconds on the RXD signal and there is no on air and hardware interrupts (such as GPIO interrupt), SIM800L will
enter sleep mode 2 automatically. In this mode, SIM800L can still receive paging or SMS from network .
SIMCOM CONFIDENTIAL FILE
 Smart Machine Smart Decision
SIM800L(MT6261)_Hardware Design_V1.01 27 2016-07-07
4.3.5. Wake Up SIM800L from Sleep Mode 2
When SIM800L is in sleep mode 2 (AT+CSCLK=2), the following methods can wake up the module:
 Send data to SIM800L via main serial port (the first character will lose).
 Receive a voice or data call from network.
 Receive a SMS from network.
Note: Autobauding is default. It cannot enter sleep mode in the absence of synchronous serial port baud rate after module power [/i]

Dans tous les cas tu passes a environs 1mA de conso. Si tu désires économiser encore plus le Mosfet sera un bon complément.
Il y a aussi la commande AT+CFUN (equivalent d'un mode avion) et AT+CREG

Dernier conseil pense a avoir une très bonne alimentation avec des capas au tantal pour assurer ton alimentation car au démarrage le SIM800 est gourmand et tu risques de te prendre des resets en boucle.
Lorsque tu passes la phases de démarrage un simple AT+CPAS avec une réponse +CPAS: 0 permet de confirmer que le SIM800 est déclaré correctement sur le réseaux 2G.

J'avais tenté d’insérer mon multimètre en série (ampèremètre) sur la ligne d'alimentation et jackpot reset en boucle .dans ce cas éteindre l'alimentation du SIM800 et re alimenter.

Source des commandes AT :
https://simcom.ee/documents/SIM800L/SIM800L(MT6261)_Hardware%20Design_V1.01.pdf

Bon tests

Richard