Article directory
Initial use
Serial Monitor, the serial monitor, provides communication monitoring functions of serial port and TCP protocol. After searching and installing in the plug-in bar, press Ctrl+· to open the terminal. There will be an additional serial monitor tab in the terminal interface. After entering, you will see the following interface
In comparison, the serial port settings are relatively simple. Let’s use the TCP&UDP test tool to test its TCP monitoring function.
parameter settings
set up | illustrate | Optional |
---|---|---|
Monitor mode | Select serial port or TCP | |
view mode | View information format | text/hex |
port | The serial port number of the connectable device | serial number |
baud rate | Device baud rate | 300 1200 2400 4800 9600 19200 38400 57600 74880 115200 230000 250000 \begin{matrix}300&1200&2400&4800\\9600&19200&38400&57600\\74880&115200&230000&250000\end{matrix} 300960074880120019200115200240038400230000480057600250000 |
Host | Host address in TCP mode | IP address |
port | host port number | TCP port number |
line tail | Line break mode at the end of lines when sending messages | None, LF, CR, CRLF |
Timestamp | Add time in front of received message | switch |
autoscroll | Return message automatically scrolls | switch |
Automatically reconnect | Automatically reconnect after disconnection | switch |
Sent message echo | Show sent messages | switch |
Click the gear icon to make more settings
set up | illustrate | Optional |
---|---|---|
data bits | Serial data bits | 5 , 6 , 7 , 8 5, 6, 7, 8 5,6,7,8 |
Stop bit | Serial port stop bit | 1 , 1.5 , 2 1, 1.5, 2 1,1.5,2 |
parity check | parity check | None; odd number; even number; Mark; space; |
DTR | Use DTR line | switch |
RTS | Use RTS line | switch |
Documentation | It can be opened after selecting the file directory. The received serial port information will be recorded in the file |
switch |
Switch Line Output (SWO) | In TCP mode, support SWO decoding | switch |
VS Code plugin
Finally, I recommend some useful VS Code plug-ins: