WIZ752SR provides various commands for the product’s setting and control. Each command is composed of a 2 byte alphabet character strings and all capital letters. By using these commands users can add script to the serial device or main MCU for product settings, and also can create a program1) for controlling the WIZ750SR module via network.
Each command can operate read/write depending on the parameter, and there is also a read only command2).
Entering the command and switching the command mode of the serial port device is done using the data UART port. The debug UART port is not supported for command entering or operation.
Identical 2-byte character strings is used for setting the product with commands via serial and Ethernet network, but there will a distinction of the sending frame form. Thus this document will cover explanations of all commands and guides for each sending methods and its form of frames.
The different command modes are as following.
CR | Carriage Return, moves the cursor to the far left(starting) position ('\r', 0x0D) |
---|---|
LF | Line Feed, moves the cursor to the new line below ('\n', 0x0A) |
N | Number of commands |
RW | Read / Write |
RO | Read only |
WO | Write only |
You can use either of the two methods below to enter serial command mode.
> SEG:AT Mode
> SEG:GW Mode
> SEG:AT Mode
> SEG:GW Mode
Please be cautious when using the trigger code to switch command mode.
You must include CR and LF at the end of each command. CR and LF must be included at the end of each commands when multiple commands are entered simultaneously.
[2-bytes Command Code] [CR] [LF]
[2-bytes Command Code] [Parameters] [CR] [LF]
* Note: You can check the Echoback of UART command via EC command.
Users can control or monitor WIZ752SR via Ethernet by using the following commands. The user must use UDP or TCP client 7) to send commands, and the port number for processing the commands is 50001.
Network information for command transmission:
UDP / TCP Server : 50001
(User can send the commands by UDP / TCP Client to device)
Two additional commands are required before sending the command code when controlling the WIZ752SR via Ethernet. All other settings and operations are the same as when sending the serial command code via data UART port.
The two additional commands are MA and PW.
The command frame for sending commands via Ethernet
MUST be in the order of MA → PW → (Command x N).
When sending a single command
MA [MAC] [CR] [LF] PW [Search ID] [CR] [LF] [Command] [CR] [LF]
When sending multiple commands
MA [MAC] [CR] [LF] PW [Search ID] [CR] [LF] ([Command] [CR] [LF]) * Number of commands
When sending a single command
MA [MAC] [CR] [LF] PW [Search ID] [CR] [LF] [Command] [Parameters] [CR] [LF]
When sending multiple commands
MA [MAC] [CR] [LF] PW [Search ID] [CR] [LF] ([Command] [Parameters] [CR] [LF]) * Number of commands
Request from User |
---|
Command Frame
MA [FF FF FF FF FF FF] [CR] [LF] PW [ ] [CR] [LF] MC [CR] [LF] LI [CR] [LF]
Hex code version of Command Frame
4D 41 FF FF FF FF FF FF 0D 0A 50 57 20 0D 0A 4D 43 0D 0A 4C 49 0D 0A
Response by WIZ752SR |
---|
Command Frame
MA [00 08 DC 00 00 11] [CR] [LF] PW [ ] [CR] [LF] MC [00 08 DC 00 00 11] [CR] [LF] LI [192.168.11.2] [CR] [LF]
Hex code version of Command Frame
4D 41 00 08 DC 00 00 11 0D 0A 50 57 20 0D 0A 4D 43 00 08 DC 00 00 11 0D 0A 4C 49 31 39 32 2E 31 36 38 2E 31 31 2E 32 0D 0A
Request from User |
---|
Command Frame
MA [00 08 DC 00 00 11] [CR] [LF] PW [ ] [CR] [LF] LI [CR] [LF]
Hex code version of Command Frame
4D 41 00 08 DC 00 00 11 0D 0A 50 57 20 0D 0A 4C 49 0D 0A
Response by WIZ752SR |
---|
Command Frame
MA [00 08 DC 00 00 11] [CR] [LF] PW [ ] [CR] [LF] LI [192.168.11.2] [CR] [LF]
Hex code version of Command Frame
4D 41 00 08 DC 00 00 11 0D 0A 50 57 20 0D 0A 4C 49 31 39 32 2E 31 36 38 2E 31 31 2E 32 0D 0A
Request from User |
---|
Command Frame
MA [00 08 DC 00 00 11] [CR] [LF] PW [HELLO] [CR] [LF] LI [192.168.11.5] [CR] [LF]
Hex code version of Command Frame
4D 41 00 08 DC 00 00 11 0D 0A 50 57 48 45 4C 4C 4F 0D 0A 4C 49 31 39 32 2E 31 36 38 2E 31 31 2E 35 0D 0A
Response by WIZ750SR |
---|
None
When modifying the IP address format12), '.'(dot, 0x2E) must be included such as the '192.168.11.5'.
CMD | Category | Description | Type |
---|---|---|---|
MC | Device Information | MAC address | RO |
VR | Firmware version | RO | |
MN | Product name | RO | |
ST | Operation status for channel 0 | RO | |
QS | Operation status for channel 1 | RO | |
UN | UART interface(Str) | RO | |
UI | UART interface(Code) | RO | |
OP | Network Settings | Network operation mode for channel 0 | RW |
QO | Network operation mode for channel 1 | RW | |
IM | IP address allocation method (Static/DHCP) | RW | |
LI | Local IP address | RW | |
SM | Subnet mask | RW | |
GW | Gateway address | RW | |
DS | DNS server address | RW | |
LP | Local port number for channel 0 | RW | |
QL | Local port number for channel 1 | RW | |
RH | Remote host IP address / Domain for channel 0 | RW | |
QH | Remote host IP address / Domain for channel 1 | RW | |
RP | Remote host port number for channel 0 | RW | |
QP | Remote host port number for channel 1 | RW | |
BR | Data UART Settings | UART 0 Baud rate | RW |
EB | UART 1 Baud rate | RW | |
DB | UART 0 Data bit | RW | |
ED | UART 1 Data bit | RW | |
PR | UART 0 Parity bit | RW | |
EP | UART 1 Parity bit | RW | |
SB | UART 0 Stop bit | RW | |
ES | UART 1 Stop bit | RW | |
FL | UART 0 Flow control | RW | |
EF | UART 1 Flow control | RW | |
PT | Serial Data Packing Options | Time delimiter for channel 0 | RW |
NT | Time delimiter for channel 1 | RW | |
PS | Size delimiter for channel 0 | RW | |
NS | Size delimiter for channel 1 | RW | |
PD | Char delimiter for channel 0 | RW | |
ND | Char delimiter for channel 1 | RW | |
IT | Options | Inactivity timer value for channel 0 | RW |
RV | Inactivity timer value for channel 1 | RW | |
CP | Connection password enable (TCP server only) | RW | |
NP | Connection password (TCP server only) | RW | |
SP | Search ID code | RW | |
DG | Serial debug message enable | RW | |
KA | TCP Keep-alive enable for channel 0 | RW | |
RA | TCP Keep-alive enable for channel 1 | RW | |
KI | TCP Keep-alive initial interval for channel 0 | RW | |
RS | TCP Keep-alive initial interval for channel 1 | RW | |
KE | TCP Keep-alive retry interval for channel 0 | RW | |
RE | TCP Keep-alive retry interval for channel 1 | RW | |
RI | TCP Reconnection interval for channel 0 (TCP client only) | RW | |
RR | TCP Reconnection interval for channel 1 (TCP client only) | RW | |
EC | UART Echoback enable | RW | |
TE | Command Mode Switch Settings | Command mode switch code enable | RW |
SS | Command mode switch code (3-bytes Hex) | RW | |
EX | Device Control | Command mode exit (switch to data transfer mode) | WO |
SV | Save device setting | WO | |
RT | Device reboot | WO | |
FR | Device factory reset | WO |
CMD | Category | Description | Type |
---|---|---|---|
CA | User I/O Settings | User I/O pin A type & direction | RW |
CB | User I/O pin B type & direction | ||
CC | User I/O pin C type & direction | ||
CD | User I/O pin D type & direction | ||
GA | User I/O Status / Value | User I/O pin A status or value | Digital out: RW Digital in: RO Analog in: RO |
GB | User I/O pin B status or value | ||
GC | User I/O pin C status or value | ||
GD | User I/O pin D status or value | ||
SC | Status I/O | Status pin S0 & S1 operation mode setting | RW |
S0 | Status of pin S0 (PHY link or DTR) | RO | |
S1 | Status of pin S1 (TCP connect or DSR) |
MC[CR][LF]
MAC address with colons(:)
MC00:08:DC:00:00:01\r\n
VR[CR][LF]
Firmware version with dots(.)
VR1.0.0\r\n
MN[CR][LF]
Device model name
MNWIZ750SR\r\n
ST[CR][LF]
Status | Description |
---|---|
BOOT | Boot mode; Users can update the product setting and firmware. |
OPEN | Status before TCP connection is successful. |
CONNECT | Status after TCP connection is successful. |
UPGRADE | Status during firmware update or DHCP IP allocation. |
ATMODE | Serial AT command mode status. |
UDP | UDP mode status. |
STATMODE\r\n
UN[CR][LF]
UART Interface | Description |
---|---|
RS-232/TTL | Device supports UART input/output of RS-232C or TTL signals. |
RS-422/485 | Device supports UART input/output of RS-422 and RS-485 signals. |
UNRS-232/TTL\r\n
UI[CR][LF]
Return value | Description | Remarks |
---|---|---|
0 | Device supports UART input/output of RS-232C or TTL signals. | RS-232/TTL |
1 | Device supports UART input/output of RS-422 and RS-485 signals. | RS-422/485 |
UI0\r\n
OP<Parameter>[CR][LF]
Parameter / Return value | Meaning | Remarks |
---|---|---|
0 | TCP Client mode | - |
1 | TCP Server mode | - |
2 | TCP Mixed mode | TCP Server / Client mixed mode |
3 | UDP mode | - |
OP0\r\n
IM<Parameter>[CR][LF]
Parameter / Return value | Meaning | Remarks |
---|---|---|
0 | Static IP | - |
1 | DHCP | Obtain an IP address automatically |
IM0\r\n
LI<Parameter>[CR][LF]
Ex> 192.168.11.2
LI192.168.11.2\r\n
4C 49 31 39 32 2E 31 36 38 2E 31 31 2E 32 0D 0A
SM<Parameter>[CR][LF]
Ex> 255.255.255.0
SM255.255.255.0\r\n
53 4D 32 35 35 2E 32 35 35 2E 32 35 35 2E 30 0D 0A
GW<Parameter>[CR][LF]
Ex> 192.168.11.1
GW192.168.11.1\r\n
47 57 31 39 32 2E 31 36 38 2E 31 31 2E 31 0D 0A
DS<Parameter>[CR][LF]
Ex> 8.8.8.8
DS8.8.8.8\r\n
44 53 38 2E 38 2E 38 2E 38 0D 0A
LP<Parameter>[CR][LF]
Ex> 5000
LP5000\r\n
4C 50 35 30 30 30 0D 0A
RH<Parameter>[CR][LF]
Ex> 192.168.11.3
RH192.168.11.3\r\n
52 48 31 39 32 2E 31 36 38 2E 31 31 2E 33 0D 0A
RP<Parameter>[CR][LF]
Ex> 5000
RP5000\r\n
52 50 35 30 30 30 0D 0A
BR<Parameter>[CR][LF]
Parameter / Return value | Baud rate | Remarks |
---|---|---|
0 | 300 | - |
1 | 600 | - |
2 | 1200 | - |
3 | 1800 | - |
4 | 2400 | - |
5 | 4800 | - |
6 | 9600 | - |
7 | 14400 | - |
8 | 19200 | - |
9 | 28800 | - |
10 | 38400 | - |
11 | 57600 | - |
12 | 115200 | - |
13 | 230400 | - |
BR12\r\n
DB<Parameter>[CR][LF]
Parameter / Return value | Data bit | Remarks |
---|---|---|
0 | 7-bit | - |
1 | 8-bit | - |
DB1\r\n
PR<Parameter>[CR][LF]
Parameter / Return value | Parity bit | Remarks |
---|---|---|
0 | NONE | - |
1 | ODD | - |
2 | EVEN | - |
PR0\r\n
SB<Parameter>[CR][LF]
Parameter / Return value | Stop bit | Remarks |
---|---|---|
0 | 1-bit | - |
1 | 2-bit | - |
SB0\r\n
FL<Parameter>[CR][LF]
Parameter / Return value | Flow control | Remarks |
---|---|---|
0 | NONE | - |
1 | XON/XOFF | Software flow control |
2 | RTS/CTS | Hardware flow control |
FL0\r\n
PT<Parameter>[CR][LF]
0: Not used / 1 ~ 65535: Data packing time (Unit: millisecond)
PT0\r\n
PS<Parameter>[CR][LF]
0: Not used / 1 ~ 255: Data packing size (Unit: byte)
PS0\r\n
PD<Parameter>[CR][LF]
00: Not used / Other: Designated character
PD00\r\n
IT<Parameter>[CR][LF]
0: Not used / 1 ~ 65535: Inactivity timer value (Unit: second)
IT0\r\n
CP<Parameter>[CR][LF]
0: Not used(Disabled) / 1: Used(Enabled)
CP0\r\n
NP<Parameter>[CR][LF]
Default: None(Null)
NP\r\n
SP<Parameter>[CR][LF]
Default: None(Null)
SP\r\n
DG<Parameter>[CR][LF]
0: Not used(Disabled) / 1: Used(Enabled)
DG1\r\n
KA<Parameter>[CR][LF]
KA1\r\n
KI<Parameter>[CR][LF]
0: Not used / 1 ~ 65535: Initial Keep-alive packet transmission interval (Unit: millisecond)
KI7000\r\n
KE<Parameter>[CR][LF]
0: Not used / 1 ~ 65535: Keep-alive packet transmission retry interval (Unit: millisecond)
KE5000\r\n
RI<Parameter>[CR][LF]
0: Not used / 1 ~ 65535: TCP client reconnection interval (Unit: millisecond)
RI3000\r\n
EC<Parameter>[CR][LF]
0: Not used(Disabled) / 1: Used(Enabled)
EC0\r\n
TE<Parameter>[CR][LF]
0: Not used(Disabled) / 1: Used(Enabled)
TE1\r\n
SS<Parameter>[CR][LF]
Default: 0x2B 0x2B 0x2B
SS2B2B2B\r\n
EX[CR][LF]
> SEG:GW Mode
SV[CR][LF]
RT[CR][LF]
> REBOOT
FR[CR][LF]
> REBOOT
Cx<Parameter>[CR][LF] (CA ~ CD)
Parameter / Return value | I/O Setting | Remarks |
---|---|---|
0 | Digital input | - |
1 | Digital output | - |
2 | Analog input | - |
CA2\r\n
CB0\r\n
Gx<Parameter>[CR][LF] (GA ~ GD)
I/O Setting | Parameter / Return value | Remarks |
---|---|---|
Digital in/out | 0 | Low |
1 | High | |
Analog in | 0 ~ 4095 | 12-bit ADC resolution |
GA4095\r\n (Analog input)
GC0\r\n (Digital input)
SC<Parameter_0><Parameter_1>[CR][LF]
Parameter / Return value | Meaning | Remarks |
---|---|---|
0 | PHY link status | Default |
1 | DTR | Data Terminal Ready (RS-232/TTL only) |
Parameter / Return value | Meaning | Remarks |
---|---|---|
0 | TCP connection status | Default |
1 | DSR | Data Set Ready (RS-232/TTL only) |
SC00\r\n
SC11\r\n
S0<Parameter>[CR][LF]
Return value | Meaning | Remarks |
---|---|---|
0 | PHY link up | - |
1 | PHY link down | - |
Return value | Meaning | Remarks |
---|---|---|
0 | The device is not ready | - |
1 | The device ready for communications | - |
S00\r\n
S1<Parameter>[CR][LF]
Return value | Meaning | Remarks |
---|---|---|
0 | TCP connection established | - |
1 | TCP disconnected | - |
Return value | Meaning | Remarks |
---|---|---|
0 | The peer device is not ready | - |
1 | The peer device ready for communications | - |
S10\r\n
Back to Product Main
WIZ750SR
Back to Product Main
WIZ750SR-100
Back to Product Main
WIZ750SR-105
Back to Product Main
WIZ750SR-110
WIZ750SR series Common Documents
WIZ750SR series Downloads
WIZ750SR Individual documents
WIZ750SR-100 Individual documents
WIZ750SR-105 Individual documents
WIZ750SR-110 Individual documents