Welcome to RDK X5 Board repository
9.Drive OLED
Drive OLED
The purpose of this tutorial is to display the IP address of RDK X5 through serial communication on the ROS expansion board. Before running, please confirm that the firmware of the expansion board has been updated.
1.Preparation before use
Need to use ROS expansion board and X5 and USB data cables. The following diagram is the wiring diagram,

When we plug in the battery, we can see the OLED printing firmware version number and other information.

2.Display IP address
1.Enter the folder and view the files in the current folder
cd && ls
The oled.py file is used to display the current IP address of the OLED on the ROS extension board through the serial port protocol
2.Run the program
xxxxxxxxxxpython3 oled.py
At this point, the OLED screen displays information such as the IP address of the X3, firmware version of the ROS control board, and current vehicle model.

It is known that ip: 192.168.2.112 is the current address of x5 dispatch.
3.Code Interpretation
Import serial port module, network programming module, etc