...

Post Reply
vk4tux
Posts: 210
Joined: Wed Sep 24, 2014 6:59 pm
languages_spoken: english
ODROIDs: none
Contact:

...

Unread post by vk4tux » Tue Dec 30, 2014 7:39 am

...
Last edited by vk4tux on Sun Feb 14, 2016 2:56 pm, edited 3 times in total.

User avatar
odroid
Site Admin
Posts: 29398
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: GPIO UART

Unread post by odroid » Tue Dec 30, 2014 10:17 am

We will add a quick guide of UART on the 40pin port on our WiKi soon. ;)

BTW, /dev/ttyS0 is mapped to the 4pin serial console port and /dev/ttyS1 is mapped to 40pin port UART.
It seems to be possible to set the baud-rate upto 1Mbps. But we've tested only 115200bps.

vk4tux
Posts: 210
Joined: Wed Sep 24, 2014 6:59 pm
languages_spoken: english
ODROIDs: none
Contact:

...

Unread post by vk4tux » Tue Dec 30, 2014 4:37 pm

...
Last edited by vk4tux on Sun Feb 14, 2016 2:56 pm, edited 1 time in total.

User avatar
odroid
Site Admin
Posts: 29398
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: GPIO UART

Unread post by odroid » Tue Dec 30, 2014 6:31 pm

Your "openSerial()" function is changing the baud rate correclty.
It is a standard Linux serial API.

vk4tux
Posts: 210
Joined: Wed Sep 24, 2014 6:59 pm
languages_spoken: english
ODROIDs: none
Contact:

...

Unread post by vk4tux » Tue Dec 30, 2014 10:39 pm

...
Last edited by vk4tux on Sun Feb 14, 2016 2:57 pm, edited 1 time in total.

vk4tux
Posts: 210
Joined: Wed Sep 24, 2014 6:59 pm
languages_spoken: english
ODROIDs: none
Contact:

Re: GPIO UART

Unread post by vk4tux » Tue Dec 30, 2014 10:40 pm

odroid wrote:Your "openSerial()" function is changing the baud rate correclty.
It is a standard Linux serial API.
So can the standard V2 Wiring Pi be installed on the C1 ?

User avatar
tobetter
Posts: 2581
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Contact:

Re: GPIO UART

Unread post by tobetter » Tue Dec 30, 2014 11:50 pm

vk4tux wrote:
odroid wrote:Your "openSerial()" function is changing the baud rate correclty.
It is a standard Linux serial API.
So can the standard V2 Wiring Pi be installed on the C1 ?
Please refer the link for Wiring Pi support.
http://odroid.com/dokuwiki/doku.php?id=en:c1_tinkering

vk4tux
Posts: 210
Joined: Wed Sep 24, 2014 6:59 pm
languages_spoken: english
ODROIDs: none
Contact:

Re: GPIO UART

Unread post by vk4tux » Wed Dec 31, 2014 10:16 am

...
Last edited by vk4tux on Sat Jan 10, 2015 7:38 pm, edited 1 time in total.

User avatar
odroid
Site Admin
Posts: 29398
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: GPIO UART

Unread post by odroid » Wed Dec 31, 2014 11:29 am

"cat /dev/ttyS1" will give you a hint if your UART device send out data continuously.
To change the baud-rate on command line, you may need to use "stty".

vk4tux
Posts: 210
Joined: Wed Sep 24, 2014 6:59 pm
languages_spoken: english
ODROIDs: none
Contact:

...

Unread post by vk4tux » Wed Dec 31, 2014 12:43 pm

...
Last edited by vk4tux on Sun Feb 14, 2016 2:58 pm, edited 1 time in total.

vk4tux
Posts: 210
Joined: Wed Sep 24, 2014 6:59 pm
languages_spoken: english
ODROIDs: none
Contact:

...

Unread post by vk4tux » Wed Dec 31, 2014 12:54 pm

...
Last edited by vk4tux on Sun Feb 14, 2016 2:58 pm, edited 1 time in total.

vk4tux
Posts: 210
Joined: Wed Sep 24, 2014 6:59 pm
languages_spoken: english
ODROIDs: none
Contact:

...

Unread post by vk4tux » Wed Dec 31, 2014 1:58 pm

...
Last edited by vk4tux on Sun Feb 14, 2016 2:58 pm, edited 1 time in total.

User avatar
odroid
Site Admin
Posts: 29398
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: GPIO UART

Unread post by odroid » Wed Dec 31, 2014 2:41 pm

Because we don't have any UART device which has 230400 baud rate, we can't test it at this moment.
I think we can test it in the middle of next week.

vk4tux
Posts: 210
Joined: Wed Sep 24, 2014 6:59 pm
languages_spoken: english
ODROIDs: none
Contact:

...

Unread post by vk4tux » Wed Dec 31, 2014 3:14 pm

...
Last edited by vk4tux on Sun Feb 14, 2016 2:59 pm, edited 1 time in total.

User avatar
odroid
Site Admin
Posts: 29398
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: GPIO UART

Unread post by odroid » Wed Dec 31, 2014 3:38 pm

Oh.. I've just tested 230400 baud rate and it worked well.
It should be ttyS2 not ttyS1. Sorry for the cause of confusion. :oops:

vk4tux
Posts: 210
Joined: Wed Sep 24, 2014 6:59 pm
languages_spoken: english
ODROIDs: none
Contact:

Re: GPIO UART

Unread post by vk4tux » Wed Dec 31, 2014 3:47 pm

also What you are seeing is endemic of writing to the board but not getting a response on the UART. It's critical that Pin 7 is toggled to LOW for 20 ms and back to HIGH plus settle time, to reset the board before communication. (see OpenWiringPi in source.

Is wiring pi able to be coded for t's critical that Pin 7 is toggled to LOW for 20 ms and back to HIGH plus settle time, to reset the board before communication ?

vk4tux
Posts: 210
Joined: Wed Sep 24, 2014 6:59 pm
languages_spoken: english
ODROIDs: none
Contact:

...

Unread post by vk4tux » Wed Dec 31, 2014 4:03 pm

...
Last edited by vk4tux on Sun Feb 14, 2016 2:59 pm, edited 1 time in total.

User avatar
odroid
Site Admin
Posts: 29398
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: GPIO UART

Unread post by odroid » Wed Dec 31, 2014 4:10 pm

vk4tux wrote:also What you are seeing is endemic of writing to the board but not getting a response on the UART. It's critical that Pin 7 is toggled to LOW for 20 ms and back to HIGH plus settle time, to reset the board before communication. (see OpenWiringPi in source.

Is wiring pi able to be coded for t's critical that Pin 7 is toggled to LOW for 20 ms and back to HIGH plus settle time, to reset the board before communication ?
The GPIO pin7 [ GPIOY.BIT3(#83) ] could be controlled well on our tinkering kit demo in this link.
http://odroid.com/dokuwiki/doku.php?id=en:c1_tinkering
So you can generate the reset pulse signal.

I hope you can hear the digital radio soon. :)

k7ve
Posts: 1
Joined: Wed Dec 31, 2014 3:24 am
languages_spoken: english
ODROIDs: C1
Contact:

Re: GPIO UART

Unread post by k7ve » Wed Dec 31, 2014 5:25 pm

I can confirm that it works with the DV3000 and looks good on the logic analyzer with /dev/ttyS2

vk4tux
Posts: 210
Joined: Wed Sep 24, 2014 6:59 pm
languages_spoken: english
ODROIDs: none
Contact:

...

Unread post by vk4tux » Wed Dec 31, 2014 9:40 pm

...
Last edited by vk4tux on Sun Feb 14, 2016 2:59 pm, edited 1 time in total.

Post Reply

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 2 guests