6. List of Supported AT Commands
This section provides a list of all AT commands that can be used for the 2N® SmartCom PRO configuration including their formats and brief function description. Refer to the interface subsections mentioned in the headers for details.
GSM Commands | Subs 3.1 |
---|---|
at^sccfg="mode",1 | Sets the mode: TCPCLIENT, STANDALONE and DATA_OFF. |
at^sccfg="gprs_apn","internet.open" | Sets the access APN to the mobile provider. |
at^sccfg="gprs_user","internet" | Sets the user name for provider authentication. |
at^sccfg="gprs_pass","hfsdj515d" | Sets the user password for provider authentication. |
at^sccfg="local_ip" | Returns the IP address assigned by the provider. |
at^sccfg="server_ip","90.182.112.54" | Sets the server IP address. |
at^sccfg="server_port",1564 | Sets the SC server port. |
at^sccfg="auth_pass","xJ32ppp_v1" | Sets the authorisation password for the above mentioned server. |
at^sccfg="sim_pin","1156" | Sets the PIN. |
at^sccfg="auth_ip",1 | Enables/disables IP address access authorisation. |
at^sccfg="encrypt",1 | Sets the encryption mode. |
at^sccfg="encrypt_key", "E2978FE2978FE2978FE2978FE2978F20" | Sets the encryption key. |
at^sccfg="save" | Saves the changes. |
at^sccfg="restart" | Restarts the interface. |
at^sccfg="srestart" | Saves the changes and restarts the interface. |
at^sccfg? | Displays the currently set values. |
at^sccfg=? | Displays the interface setting options. |
at^sccfg="listenportcmd",10000 | Specifies the listening port for IP access to the configuration port. |
at^sccfg="listen_port1",10001 | Specifies the listening port for IP access to port1. |
at^sccfg="listen_port2",10002 | Specifies the listening port for IP access to port2. |
Port 1 (RS 232) | Subs. 3.3 |
---|---|
at^scport1="baudrate",115200 | Sets the baud rate to 115200 bps. |
at^scport1="data_bits",8 | Sets the data bit count to 8. |
at^scport1="stop_bits",2 | Sets the stop bit count to 2. |
at^scport1="parity",2 | Sets the parity security type. |
at^scport1="flowcontrol",1 | Sets the flow control type. |
at^scport1="save" | Saves the changes. |
at^scport1="restart" | Restarts the interface. |
at^scport1="srestart" | Saves the changes and restarts the interface. |
at^scport1? | Displays the currently set interface values. |
at^scport1=? | Displays the interface setting options. |
at^sc232tmclose=5 | Sets tmclose to 5 s. |
at^sc232tmclose? | Displays the currently set values. |
at^sc232tmclose=? | Displays the setting options. |
Port 2 (RS 485/M-Bus/RS 232) | Subs. 3.3 |
---|---|
at^scport2="baudrate",9600 | Sets the baud rate to 9600 bps. |
at^scport2="data_bits",8 | Sets the data bit count to 8. |
at^scport2="stop_bits",2 | Sets the stop bit count to 2. |
at^scport2="parity",2 | Sets the parity security type. |
at^scport2="save" | Sets the flow control type. |
at^scport2="restart" | Saves the changes. |
at^scport2="srestart" | Saves the changes and restarts the interface. |
at^scport2? | Displays the currently set interface values. |
at^scport2=? | Displays the interface setting options. |
Relay Outputs | Subs. 3.1 |
---|---|
at^screl1? | Detects the state of relay 1. |
at^screl1=0 | Switches relay 1 to the open state. |
at^screl1=0,0 | Switches relay 1 to the open state. The relay will be open upon terminal restart. |
at^screl1=0,1 | Switches relay 1 to the open state. The relay will be closed upon terminal restart. |
at^screl1=0,2 | Switches relay 1 to the open state. Upon terminal restart, the relay will be in the state in which it was before restart. |
at^screl1=1 | Switches relay 1 to the closed state. |
at^screl1=1,0 | Switches relay 1 to the closed state. The relay will be open upon terminal restart. |
at^screl1=1,1 | Switches relay 1 to the closed state. The relay will be closed upon terminal restart. |
at^screl1=1,2 | Switches relay 1 to the closed state. Upon terminal restart, the relay will be in the state in which it was before restart. |
at^screl2? | Detects the state of relay 2. |
at^screl2=0 | Switches relay 2 to the open state. |
at^screl2=0,0 | Switches relay 2 to the open state. The relay will be open upon terminal restart. |
at^screl2=0,1 | Switches relay 2 to the open state. The relay will be closed upon terminal restart. |
at^screl2=0,2 | Switches relay 2 to the open state. Upon terminal restart, the relay will be in the state in which it was before restart. |
at^screl2=1 | Switches relay 2 to the closed state. |
at^screl2=1,0 | Switches relay 2 to the closed state. The relay will be open upon terminal restart. |
at^screl2=1,1 | Switches relay 2 to the closed state. The relay will be closed upon terminal restart. |
at^screl2=1,2 | Switches relay 2 to the closed state. Upon terminal restart, the relay will be in the state in which it was before restart. |
ADC - Input Circuits | Subs. 3.1 |
---|---|
at^scadc1="get_value" | Performs measurement and sends the value measured. |
at^scadc1="adc_value" | Performs measurement and returns the A/D converter value. |
at^scadc1="calib_min" | Interface calibration according to the currently measured value. |
at^scadc1="calib_max" | Interface calibration according to the currently measured value. |
at^scadc1="threshold_low",200 | Manual calibration setting (minimum values). |
at^scadc1="threshold_high",250 | Manual calibration setting (maximum values). |
at^scadc1="save" | Saves the changes. |
at^scadc1? | Displays the currently set interface values. |
at^scadc1=? | Displays the interface setting options. |
at^scadc2="get_value" | Performs measurement and sends the value measured. |
at^scadc2="adc_value" | Performs measurement and returns the A/D converter value. |
at^scadc2="calib_min" | Interface calibration according to the currently measured value. |
at^scadc2="calib_max" | Interface calibration according to the currently measured value. |
at^scadc2="threshold_low",200 | Manual calibration setting (minimum values). |
at^scadc2="threshold_high",250 | Manual calibration setting (minimum values). |
at^scadc2="save" | Saves the changes. |
at^scadc2? | Displays the currently set interface values. |
at^scadc2=? | Displays the interface setting options. |
at^scdin1="get_value" | Performs measurement and sends the value measured. |
at^scdin1="adc_value" | Performs measurement and returns the A/D converter value. |
at^scdin1="calib_min" | Interface calibration according to the currently measured value. |
at^scdin1="calib_max" | Interface calibration according to the currently measured value. |
at^scdin1="threshold_low",200 | Manual calibration setting (minimum values). |
at^scdin1="threshold_high",250 | Manual calibration setting (minimum values). |
at^scdin1="save" | Saves the changes. |
at^scdin1? | Displays the currently set interface values. |
at^scdin1=? | Displays the interface setting options. |
at^scdin2="get_value" | Performs measurement and sends the value measured. |
at^scdin2="adc_value" | Performs measurement and returns the A/D converter value. |
at^scdin2="calib_min" | Interface calibration according to the currently measured value. |
at^scdin2="calib_max" | Interface calibration according to the currently measured value. |
at^scdin2="threshold_low",200 | Manual calibration setting (minimum values). |
at^scdin2="threshold_high",250 | Manual calibration setting (minimum values). |
at^scdin2="save" | Saves the changes. |
at^scdin2? | Displays the currently set interface values. |
at^scdin2=? | Displays the interface setting options. |
S0 - Pulse Input | Subs. 3.1 |
---|---|
at^scpulse1="state" | Detects the current state. |
at^scpulse1="get_value" | Reads out the counter state. |
at^scpulse1="set_value",100 | Sets the immediate pulse count. |
at^scpulse1="stimer",60 | Sets the EEPROM storing interval for counter values. |
at^scpulse1="start" | Starts counting on input 1. |
at^scpulse1="stop" | Stops counting on input 1. |
at^scpulse1="clear" | Clears the counter. |
at^scpulse1="save" | Manual value storing. |
at^scpulse1? | Displays the currently set values. |
at^scpulse1=? | Displays the setting options. |
at^scpulse2="state" | Detects the current state. |
at^scpulse2="get_value" | Reads out the counter state. |
at^scpulse2="set_value",100 | Sets the immediate pulse count. |
at^scpulse2="stimer",60 | Sets the EEPROM storing interval for counter values. |
at^scpulse2="start" | Starts counting on input 1. |
at^scpulse2="stop" | Stops counting on input 1. |
at^scpulse2="clear" | Clears the counter. |
at^scpulse2="save" | Manual value storing. |
at^scpulse2? | Displays the currently set values. |
at^scpulse2=? | Displays the setting options. |
ETH Settings | Subs. 3.1 |
---|---|
at^sceth="ip_method","DHCP" | Sets the IP address setting mode. |
at^sceth="local_mac" | Writes out the currently used MAC address. |
at^sceth="local_ip" | Writes out the currently used IPv4 address. |
at^sceth="fixed_ip","192.168.1.1" | Manual IP address setting. |
at^sceth="mask","255.255.255.0" | Manual network mask setting. |
at^sceth="gateway","192.168.1.254" | Manual default gateway setting. |
at^sceth="dns1","0.0.0.0" | Manual primary DNS setting. |
at^sceth="dns2","0.0.0.0" | Manual secondary DNS setting. |
at^sceth="save" | Saves the changes. |
at^sceth="restart" | Restarts the Ethernet port. |
at^sceth="srestart" | Saves the changes and restarts the Ethernet port. |
at^sceth? | Displays the currently set values. |
at^sceth=? | Displays the setting options. |
at^scchprim="GSM" | Sets the primary communication channel. |
at^scchprim? | Displays the currently set values. |
at^scchled1="GSM" | Sets the LED indicating function. |
at^scchled1? | Displays the currently set values. |
IP Address Access Authorisation | Subs. 3.9 |
---|---|
at^sccfg="auth_ip",1 | Enables/disables IP address access authorisation. |
at^scipauth="add","54.182.153.21" | Adds an IP address to the list. |
at^scipauth="remove",2 | Removes an IP address from the list. |
at^scipauth="clear" | Clears all addresses from the list. |
at^scipauth? | Displays the currently set values. |
at^scipauth=? | Displays the setting options. |
Charger | Subs. 3.1 |
---|---|
at^scchg="max_voltage",6800 | Sets the maximum accumulator voltage. |
at^scchg="max_current",350 | Sets the maximum charging current. |
at^scchg="state" | Detects the current charging state. |
at^scchg="start" | Starts charging. |
at^scchg="stop" | Stops charging. |
at^scchg="save" | Saves the changes. |
at^scchg="srestart" | Saves the changes and resets the charging parameters immediately. |
at^scchg? | Displays the currently set values. |
at^scchg=? | Displays the setting options. |
Real Time Clock | Subs. 3.1 |
---|---|
at^scclk? | Displays the real time value. |
at^scclk="RR/MM/DD,hh:mm:ss+ZZzz" | Sets the real time clock. |
WM-Bus | Subs. 3.6 |
---|---|
at^scwmbus="dev_add","MAN",12345678,600,01,07 | Adds a meter to the list. |
at^scwmbus="decrypt",1 | Enables decryption of messages captured on the module. |
at^scwmbus="key_add",1,A5B95C144134DE257AF2ED4F384C7EB7 | Sets the encryption key for meter 1. |
at^scwmbus="dev_remove",1 | Removes a meter from the meter list. |
at^scwmbus="dev_clear" | Clears the whole meter list. |
at^scwmbus="get_oldest" | Writes out the oldest record from the data zone. |
at^scwmbus="get_oldest"<,n> | Provides bulk reading of n messages. |
at^scwmbus="del_oldest" | Deletes the oldest record. |
at^scwmbus="del_oldest"<,n> | Provides bulk deleting of n messages. |
at^scwmbus="del_all" | Deletes all records in the data zone. |
at^scwmbus="mode",11 | Sets the device working mode. |
at^scwmbus="get_space" | Displays free memory space for WM-Bus message storing. |
at^scwmbus="mess_cnt" | Displays the count of WM-Bus messages received. |
at^scwmbus="RF_channel",1 | Specifies the WM-Bus transmission channel. |
at^scwmbus="preamble_len",0 | Specifies the framework format. |
at^scwmbus="Install_mode",0 | Selects the normal or filter off mode. |
at^scwmbus="restart" | Restarts the WM-Bus module. |
at^scwmbus="sniff" | Switches the WM-Bus module into the sniff mode. |
at^scwmbus="module_type" | Displays information on the WM-Bus module. |
at^scwmbus="cf_discard",0 | Switches on the mode in which messages captured in the Compact Frame (CF) format are discarded. |
at^scwmbus? | Displays the currently set interface values. |
at^scwmbus=? | Displays the setting options for the Wireless M–Bus interface. |
AMS | Subs. 3.8 |
---|---|
AT^SCAMS=? | Writes out the list of AMS module control commands. |
AT^SCAMS? | Writes out the contents of the AMS-served device list. |
AT^SCAMS="ENABLE",1 | Writes out the current on/off state of the AMS module. |
AT^SCAMS="RETRY",5 | Sets the count of device data reading retries. |
AT^SCAMS="RETRY" | Detects the currently set count of data reading retries. |
AT^SCAMS="DEV_ADD",2,2,"128","1H" | Adds a device connected to port 2 to the device list. |
AT^SCAMS="DEV_ADD",128,"AIN_DIN","2/DIN","2H" | Adds a device connected to the A/D input port to the device list. |
AT^SCAMS="DEV_REMOVE",4 | Removes the index 4 device from the device list. |
AT^SCAMS="DEV_CLEAR" | Clears all devices from the device list. |
AT^SCAMS="DEV_INTERVAL",3,"1H" | Changes the reading interval to 1 hour for index 3 device in the device list. |
AT^SCAMS="DEV_INTERVAL","ALL","30M" | Changes the reading interval to 30 minutes for all devices in the device list. |
AT^SCAMS="DIRECT_READ",2,1,"947833" | Performs immediate data reading and listing for a defined device. |
AT^SCAMSADD=2,2,"default","2h",3 | Detects a device on the bus. |
AT^SCDATA=? | Writes out a control command list for the stored data record reading module. |
AT^SCDATA="MESS_CNT" | Returns the count of stored data records. |
AT^SCDATA="GET_SPACE" | Returns the available memory size for data record storing. |
AT^SCDATA="GET_OLDEST",5 | Provides bulk listing of 5 messages. |
AT^SCDATA="GET_FILTERED","RECORD_TYPE==WMBUS" | Writes out all the data records stored in the data record memory. |
AT^SCDATA="DEL_OLDEST" | Deletes the oldest record. |
AT^SCDATA="DEL_OLDEST",5 | Deletes 5 oldest records. |
AT^SCDATA="DEL_ALL" | Deletes all records in the data zone. |
ZigBee | Subs. 3.7 |
---|---|
AT^SCZB="ADD",00124B00042635C1,6 | Adds a device to the list. |
AT^SCZB? | Reads out the meter list. |
AT^SCZB="DEL",4 | Removes a device from the list. |
AT^SCZB="CLEAR" | Clears all devices from the list. |
AT^SCZB="PANID",0458 | Sets the network identifies to the value specified in the parameter. |
AT^SCZB="PANID_READ" | Reads out the current PANID value. |
AT^SCZB="CHANNEL",00001000 | Sets the used channel to the value specified in the parameter. |
AT^SCZB="CHANNEL_READ" | Reads out the currently set value. |
AT^SCZB="PRECFGKEY"[,<32 HEX>] | Sets the pre-configured key to be used for encrypted communication. |
AT^SCZB="PRECFGKEY_ENABLE",1 | Enable/disable encryption key sending. |
AT^SCZB="TCLK"[,<32 HEX>] | Sets the encryption key for communication key negotiation and transmission. |
AT^SCZB="IEEE_ADDR" | Reads out and displays the ZigBee IEEE address. |
AT^SCZB="MODULE_TYPE" | Reads out and displays information on the module. |
AT^SCZB="RESTART" | Restarts the interface and creates a new PAN. |
AT^SCZB="POLL",6 | Reads out and updates the device list data for a defined device. |
AT^SCZB="POLL_TIME",500 | Reads out and updates the device list data for all devices automatically. |
AT^SCZB="PERMIT_JOIN",2,60 | Permits new devices to join the network. |
AT^SCZB="PERMIT_JOIN_ALL",120 | Permit all the devices in the device list to let new devices join the network. |
AT^SCZB="ANLGVAL",<dev_id>,<EP> | Reads out the analogue input value in a device on a selected end_point. |
AT^SCZB="BASIC",<dev_id>,<EP> | Reads out all the values included in the BASIC cluster. |
AT^SCZB="DEVTEMP",<dev_id>,<EP> | Reads out the current device temperature. |
AT^SCZB="FAN",<dev_id>,<EP> | Returns the current state of the fan. |
AT^SCZB="FAN_MODE",<dev_id>,<EP>,4 | Sets the fan mode to the defined value. |
AT^SCZB="HMDT",<dev_id>,<EP> | Returns a moisture value in % with the accuracy of 2 decimal places. |
AT^SCZB="LC",<dev_id>,<EP> | Returns the Level Control value. |
AT^SCZB="LC_MOVE_TO_LEVEL",<dev_id>,<EP>,50,10 | Sets the Level Control value (flap position). |
AT^SCZB="METER",<dev_id>,<EP> | Writes out the immediate consumption values. |
AT^SCZB="MSTVAL",<dev_id>,<EP> | Reads out the Multi State Value. |
AT^SCZB="ONOFF",<dev_id>,<EP> | Returns the value 1/0 depending on the immediate setting. |
AT^SCZB="ONOFF_SET",<dev_id>,<EP>,1 | Sets the switch to the value specified in the parameter. |
AT^SCZB="TEMP",<dev_id>,<EP> | Returns a temperature value in °C with the accuracy of 2 decimal places. |
AT^SCZB="THERM",<dev_id>,<EP> | Reads out and displays the currently set thermostat mode. |
AT^SCZB="THERM_MODE",<dev_id>,<EP>,00 | Sets the thermostat mode to the preset value. |
AT^SCZB="THERM_TEMP_HEAT",<dev_id>,<EP>,20,00 | Sets the temperature value for heating. |
AT^SCZB="THERM_TEMP_COOL",<dev_id>,<EP>,20,00 | Sets the temperature value for cooling. |
AT^SCZB="TIME",<dev_id>,<EP> | Returns the currently set time value and time status. |
AT^SCZB="TIME_SET",<dev_id>,<EP>,<utc_time> | Sets time in a device to the value specified in the parameter. |
AT^SCZB="GROUP_ADD",<dev_id>,<EP>,1,group1 | Adds a device with the selected dev_id to the group defined in group_id. |
AT^SCZB="GROUP_MEMBERSHIP",<dev_id>,<EP>,1 | Returns the YES string if the device defined in dev_id is assigned to the group defined in group_id. |
AT^SCZB="GROUP_REMOVE",<dev_id>,<EP>,1 | Removes the device defined in dev_id from the group defined in group_id. |
AT^SCZB="GROUP_REMOVE_ALL",<dev_id>,<EP> | Removes the device defined in dev_id from all the groups. |
AT^SCZB="SCENE_RECALL_ALL",<group_id>,<scene_id> | Starts the scenario defined in scene_id in all the devices in the group defined in group_id. |
AT^SCZB="IDENTIFY",<dev_id>,<EP> | For internal use only. Non-configurable! |
AT^SCZB="IDENTIFY_START",<dev_id>,<EP> | For internal use only. Non-configurable! |
AT^SCZB="2NCST",<dev_id>,<EP> | For internal use only. Non-configurable! |
AT^SCZB="2NCST_WRITE",<dev_id>,<EP> | For internal use only. Non-configurable! |
SC Ping | Subs. 3.5 |
---|---|
AT^SCPING="host","8.8.8.8" | Sets the IP address of the Host to which the ICMP request is to be sent. |
AT^SCPING="interval",5 | Sets an interval in minutes. 0 means that periodical pings are deactivated. |
AT^SCPING="test" | Used for testing configuration before saving. |
AT^SCPING="save" | Saves the changes. |
AT^SCPING="restart" | Restarts the function. |
AT^SCPING="srestart" | Saves the changes and immediately resets the ping parameters. |
AT^SCPING? | Displays the currently set interface values. |
AT^SCPING=? | Displays the interface setting options. |
User Defined Functions | Subs. 3.5 |
---|---|
AT^SCUDF="ADD","AIN1>=50:SMS P[+420123456789] m[alarm]" | Adds a condition to the condition list. |
AT^SCUDF="CLEAR" | Clears all conditions from the terminal memory. |
AT^SCUDF="REMOVE",2 | Deletes the condition with the selected ID. |
AT^SCUDF? | Writes out all the conditions saved. |
AT^SCUDF=? | Displays the setting options. |
AT^SCUDF="add","AIN1>50:SAVE" | Saves the condition. |
AT^SCUDF="add","AIN1>50:REL1 r[1]" | Switches the relay state. |
AT^SCUDF="add","AIN1>50:SMS p[+420123456789] m[text 1]" | Sends an SMS. |
AT^SCUDF="add","AIN1>50:TCP i[62.134.22.87:8026] m[text 1]" | Sends a TCP message. |
AT^SCUDF="add","AIN1>50:CNT1 d[1]" | Increments the counter. |
General Commands | |
---|---|
AT | Does not perform any action and OK is always sent to it. |
ATE | Disables echo (the sent commands are no more displayed and replies are displayed only). |
ATE0 | Disables echo. |
ATE1 | Enables echo. |
at+cgmi | Displays the device manufacturer – 2N Telekomunikace a.s. |
at+cgmm | Displays the device model. |
at+cgmr | Displays the current firmware version: x.x.x.x.x |
at+cgsn | Displays the GSM module IMEI. |
ATI | Displays the device model. |
ATI3 | Displays the current firmware version: x.x.x.x.x |
ATI4 | Displays the serial number. |
ATO | Switches the command/transparent mode for the port. |
ATA | Switches the transparent/command mode for the port. |
ATH | Terminates (rejects) an incoming TCP connection ringing. |
ATS0? | Displays the state of automatic answering settings for incoming connections. |
ATS0=5 | Sets the count of rings before automatic answer. |
at^sc232at=1 | Sets the AT mode upon power up. |
at^sc232at=? | Displays the setting options or automatic AT mode enable. |
at^sccfgall? | Displays the currently set values for all the interfaces. |
Other Commands - boot, state, service, others | |
---|---|
at^scupg="http://star.2n.cz/~fejfar/SmartCOM_SC_vxx.bin" | Performs firmware upgrade. |
at^screstart | Restarts the given terminal. |
at^scfres | Performs Factory reset. |
at^scop? | Displays the GSM provider. |
at^scms? | Specifies the GSM module. |
at^iccid? | Displays the SIM card number (Integrated Circuit Card IDentifier). |
at^scpras? | Displays the remaining PIN entering attempts. |
at^sig? | Displays the signal intensity recalculated to dBm. |
at^scerr? | Writes out the error buffer state. |
at^scerrclear | Clears the error buffer. |