Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Orange pi zero 3 RTS CTS not working in python script

Featured Replies

I used python script with Orange pi zero 3 (Armbian_community_24.8.0-trunk.6_Orangepizero3_bookworm_current_6.6.31_minimal.img)

 

Observation:

1) /dev/ttyS1 is actually Serial 2 as per pin diagram as per Orange Pi Zero 3 - Armbian web page

2) /dev/ttyS2 is actually Serial 5 as per pin diagram as per Orange Pi Zero 3 - Armbian web page

3) even if I set rtscts=True in crateing object ser in above script, there is no output on rts or cts pin.

 

I am looking forward to have RTS pin remain high during transmission to easily integrate ic for RS485 communication. I was glad that Amrbian for Orange Pi Zero 3 has out of the box RTS CTS pin support which otherwise is a complicated matter for me.

 

Please guide how to make the serial port work along with RTS pin to remain high during transmission of data.

 

Regards

Edited by vtech

  • Author

I also tried adding line "param_uart2_rtscts=1" to "/boot/armbianEnv.txt".

 

This enabled GPIO Mode ALT2 for UART2_RTS and UART2_CTS.

 

However, still no voltage changes on RTS or CTS pin when tried to send data over TX.

 

Looking forward for help. Thanks in advance.

 

P.S.: WiringPi (https://github.com/orangepi-xunlong/wiringOP.git) does not seem to be working for Orange Pi Zero 3 as it is showing H616 in output of gpio readall command

 

Regards.

image.thumb.png.61b74347a28a4a742bddad5f6502a974.pngimage.thumb.png.672670c8e82f0308a334eb8041b6efa6.png

 

Edited by vtech

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.