Skip to Content

GPRSH Command — Socket Disconnection

Forces the disconnection of the active UDP/TCP communication socket (cellular) and also triggers a reconnection of the WiFi module.


What is it for?

🔌 Main use cases:

  • ⚙️ Apply changes to destination IP addresses
  • 🔄 Force reconnection to server
  • 📡 Network or carrier change
  • 📶 Also reconnect the WiFi channel (not just cellular)
  • 🔧 Resolve connection issues
  • 🔁 Restart communication channel

Executing this command interrupts active communication. Use only when necessary to update destination configuration.


Commands

OperationSyntaxResponse
DisconnectSGPRSHRGPRSHOK

SGPRSH reconnects both channels: it forces the disconnection/reconnection of the cellular socket and also reconnects the WiFi module, not just the GPRS/cellular link.


Example

>SIP0"new.server.com",5000< // Change destination IP >SGPRSH< // Force reconnection with new IP >RGPRSHOK... // Confirmation

Typical server change sequence

>SIP0192.168.1.200/5000< // New primary IP >SIP1192.168.1.201/5000< // New redundant IP >SGPRSH< // Apply changes (reconnection)

Compatibility

💾Firmware v1.03.00
SPLegacy
ULLegacy
MTLegacy
C3Legacy
C5Legacy
💾Firmware v1.00.00
SP-IOT
SM-IOT
ZE-IOT

See Also

Last updated