range Pi User Manual Copyright reserved by Shenzhen Xunlong Software Co., Ltd
211
6) Then you can run the ds1307.py test program in the examples to read the RTC time
root@orangepi:~/wiringOP-Python# cd examples
root@orangepi:~/wiringOP-Python/examples# python3 ds1307.py --device \
"/dev/i2c-4"
Thu 2023-01-05 14:57:55
Thu 2023-01-05 14:57:56
Thu 2023-01-05 14:57:57
^C
exit
3.17.5. 40pin's UART test
1) As can be seen from the table below, the available uarts for Orange Pi 3B are uart2,
uart3, uart7 and uart9, a total of four groups of uart buses, of which uart2 is the system’s
debugging serial port by default.
As can be seen from the above table, i2c3_m0 and uart3_m0 are pin-multiplexed,
and both cannot be turned on at the same time.
Please note that uart2_m0 is used as the debugging serial port of the system by
default. If the configuration of uart2 is turned on, the debugging serial port function
will not be available.
2) In the linux system, the UART in the 40 pins is closed by default, and it needs to be
opened manually before it can be used. The detailed steps are as follows:
a. First run orangepi-config, ordinary users remember to add sudo permission
orangepi@orangepi:~$ sudo orangepi-config
b. Then select System