Jump to content

GPIO Serial write and read

Recommended Posts

Using straightforward python3 code to send an external card commands via pi2 GPIO Tx and recieve confirmation via Rx. The card requires codes such as F140 D040 etc and returns 4 character text codes to confirm. Not working, so first testing by opening two terminals on pi, running the write test in one and the read test in the other, connected Tx and Rx. Transmitting F150 and D050. Rx shows b'F150' and b'D050'. Any ideas why? If not transmitting the read pogram shows b'' 


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now