Multi-Tech Systems iCell GPRS (MTSMC-G2-IP manual AT#GPIOR=parameter, Gpio Port, Send AT#GPIOR=1\r

Page 89

Part 5 – GPIO AT Commands

Chapter 15 – GPIO AT Commands

Hangup: Determines whether to disconnect from the network after GPIOs have been processed. Values: 0 - Physical connection will disconnect when all GPIOs have been processed

1 - Physical connection will stay connected.

2 - Physical connection will disconnect when all GPIOs have been processed; suppress responses

3 - Physical connection will stay connected; suppress responses

Default: 1,1,0,0,0,0,x 2,1,0,0,0,0,x 3,0,0,0,0,0,x 4,0,0,0,0,0,x 5,3,0,0,0,0,x

Note: The final number (represented by ‘x’) is variable and not supported at this time.

Example: AT#GPIO=1,0,1,180,1,0

GPIO 1 would be configured as a Digital Input with internal pullup (0). A positive voltage will trigger the GPIO (1).

A Debounce time of 180 ms (180) will be used. #SENDMAIL1 will be called if the GPIO triggers (1).

After processing the GPIO, the physical connection will be disconnected (0) and all responses will be printed to the user.

#GPIOR – Read the Current Register Status of the Specified GPIO Pin

Description:

The current status of the specific GPIO pin is displayed according to its configuration.

Syntax:

AT#GPIOR=<parameter>

Values:

parameter

 

1 GPIO Port 1

 

2 GPIO Port 2

 

3 GPIO Port 3

 

4 GPIO Port 4

 

5 GPIO Port 5

Responses:

\r\n#GPIOR: VALUE1,VALUE2\r\n

 

\r\nOK\r\n

 

\r\nERROR\r\n

Examples:

send: AT#GPIOR=1\r

 

 

reply: \r\n#GPIOR: 1,1\r\n

 

reply: \r\nOK\r\n

Universal IP AT Commands Reference Guide (Document S000457K)

89

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