Skip to main content

RS232

{{@218#bkmrk-open-iot-and-iiot-ga}}

Link to repositories:

In this example:

  • UART1 (TX1 and RX1 pins) is configured as a receiver
  • UART2 (TX2 and RX2 pins) is configured as a transmitter

Connection

Connect RS232_1 port to the portsRS232_2 as shownport in the picture.loopback configuration.

e196f8d6-9e30-461e-a231-97859cbfbf95.png1qnimage.png

Description

InThis thisexample wayshows there is a possibilityhow to dohandle athe testRS232 communication via UART. After flashing both ports should send and adaptread todata workingfrom witheach externalother. devices. On the developer side there is an option to configure serial port parameters.

Default

Console settings:

  • baud rate: 115200
  • data bits: 8
  • parity bits: 0
  • stop bits: 1
output

After flashing, open serial port monitor and find out if the demo works properly.

280a6ba6-1229-4181-b95e-0ea9ec9c9a8f.png