please choosego to mobile | Continue to access the PC version
View: 4207|Reply: 5

What driver source for UART1 and UART 2?

[Copy link]

1

threads

4

posts

23

credits

Novice

Rank: 1

credits
23
Published in 2019-12-5 07:01:45 | Show all floors |Read mode
Hi,

I had a look at the datasheet for the Orange Pi Zero and it looks like it supports parity bit. I also want to look at the driver code to see if it can be changed to use CMSPAR. Only problem is that I can't figure out how to find out what driver the H2 SOC uses.

Also, given I am relatively new to linux, how do I go about finding what driver is being used?

Thanks,


1

threads

4

posts

23

credits

Novice

Rank: 1

credits
23
 Author| Published in 2019-12-5 20:29:45 | Show all floors
Finally got some SD cards delivered to try out the orange pi zero. Seems that CMSPAR works out of the box with no driver mods required. I have tested on 2 devices that require 9 bit comms (address bit) and it seems to work fine.

Yet to test on an oscilloscope to see if the parity bit is being set correctly, but it works on real devices so I am guessing its fine.


Still interested in hearing how one determines what driver code is used in linux though.

1

threads

4

posts

23

credits

Novice

Rank: 1

credits
23
 Author| Published in 2019-12-9 19:12:31 | Show all floors
Thanks Narly999, I'll have a good read of that tomorrow.

I set up a second orange pi today, same device, same image, same setup I thought. Same application, but alas the parity bit is not working. Not sure what I did different.

Its frustrating, but I am learning fast.

1

threads

4

posts

23

credits

Novice

Rank: 1

credits
23
 Author| Published in 2019-12-9 19:42:55 | Show all floors
Then you realise you have RX and TX swapped, and the OS and software are working fine.

0

threads

6

posts

30

credits

Administrator

Rank: 9Rank: 9Rank: 9

credits
30
Published in 2019-12-30 22:54:31 | Show all floors
Big OOF
Reply

Use magic report

0

threads

6

posts

30

credits

Administrator

Rank: 9Rank: 9Rank: 9

credits
30
Published in 2019-12-30 22:55:34 | Show all floors
Big OOF
Reply

Use magic report

You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list