Multi-Tech Systems iCell GPRS (MTSMC-G2-IP Gpio AT Commands, About Gpio, Values Gpio Function

Page 88

Part 5 – GPIO AT Commands

Chapter 15 – GPIO AT Commands

Chapter 15 – GPIO AT Commands

About GPIO

If the specific hardware allows GPIO (check availability with AT#GPIO=1), then you may specify certain external events from the GPIOs to trigger specific stack functions; i.e., email, upload files, download files. In order for this to work, you must configure the specific function first. For instance, if SENDMAIL1 will be called, then all settings pertaining to SENDMAIL1 must be configured before the #GPIO command is configured.

Note:

MultiModem iCell: The MultiModem iCell allows for the following GPIO IDs and GPIO function combinations:

GPIO 1 - 2:

GPIO function 0 may be selected

GPIO 3 - 4:

GPIO functions 0, 1, 2 and 3 may be selected

GPIO 5:

GPIO function 3 may be selected

SocketModem iCell: The SocketModem iCell allows for the following GPIO IDs and GPIO function combinations: GPIO 1 - 2: GPIO function 0 may be selected

GPIO 3 - 4: GPIO functions 0, 1, 2 and 3 may be selected

GPIO 5: GPIO 5 is non-functional

#GPIO – Enable/Disable and Configure External GPIO Driven Events

Description: If GPIO is enabled and configured correctly, a specific external trigger (Digital HI/LOW or Analog value from 0-3.3V) will trigger a specified function from the stack.

Syntax:

AT#GPIO=ID, GPIO Function, Trigger Level, Debounce, Stack Function, Hangup

 

AT#GPIO=<n> where n is the GPIO number or AT#VALL

ID:

GPIO number as described in the hardware documentation

Values:

1

- 5

GPIO Function:

Allows the GPIO to be a Digital Input, Digital Output or ADC input

Values:

0

- Digital Input without internal pullup

 

1

- Digital Input with internal pullup

 

2

- Digital Output

 

3

- ADC input

Trigger Level:

The Voltage level at which GPIO will trigger.

 

For Digital input, a value greater than 0 indicates high. 0 indicates low.

 

For Digital output, a positive value will drive the line high. A zero value will drive the line low.

Values:

For ADC input, the trigger value will be in the range of 0 to 3300 millivolts.

0

- 3300 in milliVolts

Debounce:

The time between successive reads on the GPIO.

Values:

0

- 65535 milliseconds

Stack Function: The desired stack function to be specified on a GPIO trigger. The stack function must be properly configured; i.e., for a sendmail function, all proper sendmail items must be configured.

Values: 0 - Disabled (The GPIO will not trigger) 1 - #SENDMAIL1

2 - #SENDMAIL2

3 - #SENDMAIL3

4 - #PUTMAIL

5 - #GETMAIL

6 - #LTCPSTART=1

7 - #OTCP=1

8 - #OUDP=1

9 - #LUDPSTART=1

Universal IP AT Commands Reference Guide (Document S000457K)

88

Image 88
Contents Universal IP Product Number of This Document S000457K, Version K CopyrightContents Display Command Ping AT Commands for All Universal IP Devices Set Commands #VTELNET View Telnet Settings Incoming Call Management Commands 103 104105 106Part AT Commands for All Universal IP Devices Set Commands AT Command ModeTurn Echo ON/OFF IdentificationDefault Configuration Reset Factory DefaultsRlsd DCD Option Turn On or Off DTR OptionStore Factory Defaults to NVM +ICF DTE-DCE Character Framing+IFC Set Flow Control +IPR Set Serial Speed#DELFLASH Erase Flash Memory Parameter Values Display#RESET Reset Main Processor or Internal Modem #LEGACYMODE Legacy Mode Enable/Disable#SHIELDCHAR Configure the Shielding Character for Dlemode Display Commands #ESCAPECHAR Configure the Escape Character for DlemodeAT#ESCAPECHAR=parameter1 AT#VSHOWSERIAL#VVERSION Display Software Version #VSTATE Display Current State of Physical ConnectionAT#VSHOWUPTIME AT#VSHOWUPTIMES#VALL Display All Parameters Syntax AT#VALL Possible Responses MT100SEM-IPSyntax AT#VALL Possible Responses Applies to All Except MT100SEM-IPSmtp AT Commands for All Universal IP Devices #SENDERNAME Set Sender Name#SENDERADDR Set Sender Address #CCRECi Set Additional Recipient CC#DOMAIN Set Domain Name of the Sender #RECiADD Set Email Address#SUBJi Set Email Pre-Defined Subject Text Syntax AT#DOMAIN=valueSyntax AT#SMTPNETWORKTIMER=parameter1 #BODYi Set Pre-Defined Email Combinations#SMTPPORT Set Smtp Server Port Syntax AT#SMTPPORT=value#SMTPSERV Set Smtp Server Address #SMTPPW Set Smtp Password#SMTPUN Set Smtp User Name AT#SENDMAILi #SENDMAILi Send Mail without Interactive Mode#SENDMAIL3 Command Possible Responses #PUTMAIL Send Mail to Recipient with Interactive ModeSyntax AT#PUTMAIL #SMTPAUTH Authentication on or OFF #VSMTP Display Smtp Parameters#VMAILi Display Email Parameters for Respective Mail ID OFFPOP3 AT Commands for All Universal IP Devices #POP3PW Set POP3 Password#POP3HEADERMODE POP3 Header #POP3PORT Set POP3 Server PortDisplay Command #POP3UN Set POP3 User Name#GETMAIL Retrieve Host Mail #VPOP3 POP3 Module ParametersFTP AT Commands for All Universal IP Devices #FTPMODE Enter FTP Mode#FTPPORT Enter FTP Server Port #FTPTYPE Specify Data Type#FTPPW Set FTP Password #FTPSERV Specify FTP Server Address#FTPUN Set FTP User Name #FTPGETFILENAME Set FTP Download File Name#FTPGET Download Files from FTP Server #FTPPUT Upload Files to FTP ServerAT#FTPGET AT#FTPPUT#FTPPUTPATH Set Path to Send Files to FTP Server #FTPGETPATH Set Path to Get a File from FTP Server#FTPAPPEND Append Data to Server #VFTP Display FTP Parameters Syntax AT#VFTP Values FtpservTCP AT Commands for All Universal IP Devices #DLEMODE Set DLE ModeDefaults 0,1 #PERSISTENTSOCKET Persistent Socket#TCPTXDELAY Time Delay #TCPPORT Set TCP Port for Remote Peer#TCPSERV Set Address of Remote TCP Server AT#TCPPORT=id,TCP Port number for remote peer value#TCPPACKETMIN TCP Client Transmit Packet Minimum Size #TCPPACKETMAX TCP Client Transmit Packet Maximum SizeAT#TCPPACKETMIN=parameter1, parameter2 ParameterAT#TCPINACTIVITYTIMER=parameter1, parameter2 #TCPINACTIVITYTIMER TCP Client Inactivity Timeout ValueAT#TCPNETWORKTIMER=parameter1, parameter2 #TCPTELNETMODE Enable/Disable TCP Client Telnet Protocol Line feed character not just any keyAT#TCPTELNETMODE=parameter1, parameter2 AT#TCPTELNETPW=parameter1, parameter2#LTCPSTART Open Listening Mode #TCPTELNETUN Set the TCP Client Telnet Protocol User NameAT#TCPTELNETUN=parameter1, parameter2 Syntax AT#LTCPSTART=id#LTCPSTOP Close TCP Listening Mode #OUTPORT UDP/TCP Local Port Number#OTCP Open a TCP Connection Dlemode Value NotesExample Command Possible Responses Tcptxdelay 2#VTCP Display TCP Parameters AT#VTCP=id or AT#VTCPUDP AT Commands for All Universal IP Devices Defaults Example#UDPPACKETMIN UDP Client Transmit Packet Minimum Size Result Codes#UDPINACTIVITYTIMER UDP Client Inactivity Timeout Value AT#UDPINACTIVITYTIMER=parameter1Command Examples #UDPPACKETMAX UDP Client Transmit Packet Maximum SizeDefault Responses #UDPIGNORESRCPORT Ignore Send Source Port#UDPREMOTEPORT Remote Port Number #UDPPORT UDP Port Number#UDPTXDELAY Delay before Sending UDP Datagram Syntax AT#UDPTXDELAY=ValueDefault Value #UDPSERV UDP Server Address#UDPDLEMODE Set DLE Mode #LUDPSTART Initiate the UDP Session in Listen ModeUdpsesrv Udptxdelay AT#UDPDLEMODE=parameter1#LUDPSTOP Close UDP Listening Mode #OUDP Initiate UDP Session in Active Mode#VUDP Display UDP Module Configuration Syntax AT#VUDPPing AT Commands for All Universal IP Devices #PINGDELAY Ping Delay Time#PINGNUM Number of Ping Requests #PINGREMOTE IP Address of Ping RequestPingnum Pingremote Pingenable Pingdelay #VPING Display Ping ParametersSyntax AT#VPING Values DisplayedPart AT Commands for SocketEthernet IP General AT Commands for SocketEthernet IP #DHCP Dhcp On or Off#IPADDR Set Static IP Address #IPGATEWAY Set Gateway Address#IPNETMASK Set Subnet Mask #DNSSERV1 Set DNS Server IP Address#DNSSERV2 Set Secondary DNS Server #EMACSPD Set Ethernet Connection#HOSTNAME Configure the Dhcp Client Host Name #ETHIFSTATUS View Network Interface Settings#VDNS Display Configuration of DNS Servers Values None Display Example Interface UP#VIP View Address Settings Syntax AT#VIP Values NoneAuto Discovery AT Commands for the SocketEthernet IP #AUTODISCTIMER Auto Discovery Timer#AUTODISC Auto Discovery On/Off #AUTODISCPORT Auto Discovery Port#VAUTODISC Display Auto Discovery Commands #AUTODISCPASSWORD Sets Auto Discover Password#AUTODISCUSERNAME Set Auto Discover User Name Part AT Commands for SocketWireless Wi-Fi Devices IP AT Commands for SocketWireless Wi-Fi #IPDNSSERV Configure the DNS Server Disables DNSEnable DNS AT#IPDNSSERV#IPRELEASE Release a Dhcp Address Assigned by the Server #IPRENEW Renew the Dhcp Information from the Server#IPQUERY Give a Domain Name #IPRESOLV Is There a Connection with DNS or Not#IPDNSTABLE Display DNS Table AT#IPDNSTABLEResponse Values Syntax AT#VDNSGeneral AT Commands for SocketWireless Wi-Fi Previous CommandManual Answer of TCP or UDP Connection S2 Escape Sequence#BOOTMSG Enable/Disable Boot Message #WATCHDOG Enable/Disable Watchdog#WATCHDOGTIMER Watchdog Timer AT#BOOTMSG=0,1Values Default #TELNET Start/Stop Telnet Session#TELNETPORT- Set Telnet Port #TELNETUSER Set Telnet User#TELNETPASSWORD Set Telnet Password #VTELNET View Telnet SettingsAT# Telnetpassword = 64 char string AT#TELNETPASSWORD?Wlan AT Commands for SocketWireless Wi-Fi #WLANSECURITYMODE Security Mode of Wlan Module#WLANNETWORKMODE Wlan Network Mode #WLANCOUNTRYCODE Country Code#WLANSCANMODE Scanning Mode #WLANIBSSCHANNEL Channel for Ad-Hoc Mode#WLANSSID Ssid of Wlan #WLANDATARATE Wlan Transmission Data Rate#WLANENABLE Auto Connect Module with AP #WLANDOZE= Moves Module into or out of Power Save#WLANCONNECT Connect with AP #WLANDISCONNECT Disconnect with AP#WLANSCAN Scan Wireless Networks #WLANPROFILEn=n Change the Wlan ProfileKeyindex = Syntax AT#WLANSCAN#WLANGETRSSI Received Signal Strength #WLANACTIVATE Move Module out of Power Save#WLANROAM Enable/Disable Roaming #WEP64KEY Keys for WEP64 Security Mode#WEP128KEY Keys for WEP128 Security Mode #WPAPSKKEY Keys for WPA PSK Security Mode#WPA2PSKKEY Keys for WPA2 PSK Security Mode #WEPKEYID Set the Default TX Key Index#WEP? See the Value of the WEP Keys #WLANPROFILE Display the Wlan ProfileAT#WEP? AT#WLANSETPROFILEvalue?#WLAN? Wlan Module #WLANASSOCINFO Display Association InformationAT#WLAN? AT#WLANASSOCINFOAT Commands for the Following Devices +WOPEN Set IP Mode or Modem Mode AT Commands for#AUTHENT Authentication Type #ANSWERMODE Set Answering Mode #SMSPHRASE Set Incoming SMS PhraseAT#ANSWERMODE=value AT#SMSPHRASE=parameter1#CALLBACKTIMER Set Automatic Call-Back Wait #CALLSCREENNUM Set Caller ID Service#KEEPALIVEMODE Keep-Alive Mode Default Example#KEEPALIVEPORT Keep-Alive Port Number #KEEPALIVEDELAY Keep-Alive Delay#KEEPALIVESERV Keep-Alive Server Address #ATCMD Customize Dial-Up Commands #REDIALDELAY Set Call Retry Delay#PHYTIMEOUT Set Inactivity Time #REDIALCOUNT Set Connection Attempts Allowed#DIALN1 Set Primary Dial-Up Number #RINGCOUNT Set Number of Rings/Automatic Operation#DIALN2 Set Secondary Dial-Up Number #DIALSELECT Set Internet Connection Number #ISPPW Set ISP Password#ISPUN Set ISP User Name Incoming Call Management Commands #ACCEPT Answer Incoming Call#CONNECTIONSTOP Stop Communication AT#ACCEPT#CONNECTIONSTART Start Communication AT#CONNECTIONSTART#PPPMYIP Set IP Address When Using PPP #AUTOCONNECT Automatically Connect the PPP Link#PPPMODE Set TCP/IP Behavior #PPPPEERIP Set IP Address for Remote PPP#PPPSERVPW Set Remote PPP Client Password #APNPW Set Access Point Name Password#APNSERV Set Access Point Name #APNUN Set Access Point User Name#GPRSCID Set PDP Context Identifier #GPRSMODE Activate Switching Between GSM and Gprs#DISPLAYIP Display IP Addresses #VPPP Display PPP Parameters #VPHY Display Physical ParametersAT#VPPP AT#VPHYPart Gpio AT Commands Gpio AT CommandsGpio AT Commands About GpioValues Gpio Function Trigger LevelAT#GPIOR=parameter Gpio Port\r\n#GPIOR VALUE1,VALUE2\r\n Send AT#GPIOR=1\rDescription Configure the Gpio pin and trigger type #GPIOTRIGGER Configure the Gpio pin and trigger typeSyntax AT#GPIOTRIGGER=parameter1,parameter2 Part AT Commands for GPS-Enabled Device Commands for GPS-Enabled DeviceAT Commands for GPS Enable Products #GPSSERV Set GPS Host Server Address#GPSPORT Set GPS Host Port #GPSPROTO Set GPS Host Protocol#GPSPW Set GPS Host Login Password #GPSGPGGA Enable/Disable Gpgga Message#GPSURAIS Set GPS Unique Remote Asset Identification String #GPSINTERVAL Set GPS Server Transmission Interval#GPSGPGLL Enable/Disable Gpgll Message #GPSGPGSA Enable/Disable Gpgsa Message#GPSGPGSV Enable/Disable Gpgsv Message #GPSGPRMC Enable/Disable Gprmc Message#GPSINTERVALLOC GPS Local Transmission Interval #GPSGPVTG Enable/Disable Gpvtg Message#GPSGETMESSAGE Get Queued GPS Message GPS Message Syntax GPS Message ExamplesGpsprefixgpsuraisnmeamessagecrlf WhereGPS Configuration Examples Application Note GPS Nmea Messages Introduction Nmea Protocol OverviewStructure GGA Global Positioning System Fix DataExample GLL Latitude/Longitude GSA Gnss DOP and Active Satellites$GPGSV GSV Gnss Satellites in ViewSNR RMC Recommended Minimum Specific Gnss Data VTG Course Over Ground and Ground Speed$GPRMC $GPVTGPart Appendixes Appendix a Response Messages Error Codes Response MessagesStandard AT Messages Numeric Verbose Description RingError Codes Error CodesNumeric Description Sending an Email AT#PUTMAIL Commands Responses Appendix B Response Message ExamplesResponse Messages Examples Sending/Retrieving Email Response MessagesRetrieving an Email AT#GETMAIL Commands Responses AT#POP3PORT=110 AT#GETMAILUpload a file to an FTP Server AT#FTPPUT Commands Responses FTP Download / Upload Files Response MessagesAT#FTPPUTPATH= AT#FTPPUTAct as a TCP Client AT#OTCP Commands Responses Act as a TCP Server AT#LTCPSTART Commands ResponsesTCP Socket Response Messages Index #FTPAPPEND Append Data to Server#UDPTXDELAY Delay before Sending UDP Datagram Close TCP Listening Mode #LTCPSTOP #LTCPSTART Open Listening Mode #PINGNUM Number of Ping Requests Commands for SocketModem IP Commands for SocketWireless Wi-Fi #PERSISTENTSOCKET Delay before Sending UDP Initiate the UDP Session in Listen Mode 119

iCell GPRS (MTSMC-G2-IP specifications

Multi-Tech Systems iCell GPRS (MTSMC-G2-IP) is a versatile and powerful device designed for seamless connectivity in various applications, particularly in industrial and commercial environments. Known for its robust performance, the iCell GPRS module incorporates advanced technologies that enable effective communication over GPRS networks, making it an ideal solution for IoT applications, remote monitoring, and data collection processes.

One of the main features of the iCell GPRS is its dual SIM capability, which enhances network reliability and ensures continuous connectivity even in the event of network outages. By allowing the use of two SIM cards from different carriers, the device can switch between networks automatically, thereby minimizing downtime and maintaining critical communication channels.

The iCell GPRS supports various protocols including TCP/IP, UDP, and MQTT, which facilitates seamless integration with a range of applications. This flexibility in communication protocols allows developers to create customized solutions tailored to their specific needs, ensuring that the device can fit seamlessly into their existing infrastructure.

Another key characteristic of the MTSMC-G2-IP is its compact design and durability, making it suitable for deployment in a variety of environments. It features a wide operating temperature range that allows it to function efficiently in both extreme heat and cold, thereby catering to diverse applications across different industries. Additionally, the device is designed for easy installation and integration, which helps reduce deployment time and costs.

The iCell GPRS also includes built-in security features such as firewalls and secure data transmission protocols, protecting sensitive information from unauthorized access. This is particularly important for applications in sectors such as healthcare, finance, and transportation, where data integrity and security are paramount.

Furthermore, the device is equipped with various I/O ports that facilitate connectivity with external sensors, actuators, and other hardware. This feature makes it highly adaptable for monitoring and control systems, enabling users to gather real-time data and respond promptly to changing conditions.

In sum, the Multi-Tech Systems iCell GPRS (MTSMC-G2-IP) is a reliable and feature-rich solution designed for modern communication needs. Its dual SIM support, protocol versatility, robust design, and integrated security features make it an ideal choice for IoT and remote monitoring applications across numerous industries. Whether used in industrial automation, environmental monitoring, or smart cities, the iCell GPRS stands out as a dependable device that enhances connectivity and operational efficiency.