View: 5169|Reply: 9

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

82

threads

638

posts

1502

credits

Gold member

Rank: 6Rank: 6

credits
1502
Published in 2024-11-12 20:14:52 | Show all floors
Absolutely in love with Blue17’s collection! It’s my favorite spot for authentic vintage at prices I can’t resist.        vintage womens tops

82

threads

638

posts

1502

credits

Gold member

Rank: 6Rank: 6

credits
1502
Published in 2024-11-16 17:06:25 | Show all floors
Whole melts disposable are the perfect way to add a fresh scent to your car. I keep one in mine, and the fragrance lasts for days. It’s a simple solution that works great!        Whole melts 2g

82

threads

638

posts

1502

credits

Gold member

Rank: 6Rank: 6

credits
1502
Published in 2024-11-20 21:39:07 | Show all floors
They truly specialize in pest management. Bee removal and rodent control are handled with ease!        tucson pest control

82

threads

638

posts

1502

credits

Gold member

Rank: 6Rank: 6

credits
1502
Published in 2024-11-21 18:22:18 | Show all floors
Prime locations like District 21 make Nava Grove an excellent choice for families and professionals alike.        Nava Grove Balance Units
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list