Jump to content

Orange pi zero 3 RTS CTS not working in python script


vtech

Recommended Posts

Posted (edited)

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
Link to comment
Share on other sites

Posted (edited)

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
Link to comment
Share on other sites

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines