Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
View: 927|Reply: 6

What driver source for UART1 and UART 2?

[Copy link]

1

Threads

4

Posts

23

Credits

Novice

Rank: 1

Credits
23
Post time 2019-12-5 07:01:45 | Show all posts |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,


31

Threads

241

Posts

1075

Credits

Gold member

Rank: 6Rank: 6

Credits
1075
Post time 2019-12-9 06:00:19 | Show all posts
Shhh, everyone is sleeping.  Just the bot computers around here.  *smile*   Seriously though; I'm fairly new to linux and such and haven't spent much time on it all.  But I too have had the question of drivers.  Linux is the wild and though there is plenty of help out there, we are on our own?  I've never known the lone wolf feeling as much as when I became a Linux user.    I've surfed IRC, Forums, YouTube and Google on all nighters looking for the page or video that teaches me what I want to know.  Welcome to Linux where Monsters are created?  I don't know.  But I did google for some information that might be of help to you.    Welcome to the wonderful world of Linux.   

https://opensource.com/article/1 ... device-driver-linux
Thanks  [url=http://www.orangepi.org/orangepibbsen/static/image/smiley/default/biggrin.gif]http://ww

1

Threads

4

Posts

23

Credits

Novice

Rank: 1

Credits
23
 Author| Post time 2019-12-5 20:29:45 | Show all posts
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| Post time 2019-12-9 19:12:31 | Show all posts
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| Post time 2019-12-9 19:42:55 | Show all posts
Then you realise you have RX and TX swapped, and the OS and software are working fine.

0

Threads

6

Posts

22

Credits

Novice

Rank: 1

Credits
22
Post time 2019-12-30 22:54:31 | Show all posts
Big OOF
Reply

Use magic Report

0

Threads

6

Posts

22

Credits

Novice

Rank: 1

Credits
22
Post time 2019-12-30 22:55:34 | Show all posts
Big OOF
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2020-8-7 09:07 GMT+8 , Processed in 0.030124 second(s), 23 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list