Apalis iMX6 & Ixora Carrier Board & UART Communication

Hello

I want to read data from UART TX from my BMS, and I connected my pins to board’s UART RX pin.

As you can see, I connected green cable to UART2_RS232_RXD which is 3rd pin at board and it is connected to BMS TX pin, gray cable is 9th pin which is GND also comes from BMS.

So what is the command or any simple C or C++ script to read incoming data? I followed this Basic UART usage - Ixora Carrier Board - Apalis iMX6 link but it did not work for me.

Thanks.

alt text