This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using UART pins
#1
Hi!

I'm trying to use the UART pins to communicate to an old car via its old proprietary protocol (SSM1). This only uses a two channels TTL serial protocol going at 1953 bauds (http://www.alcyone.org.uk/ssm/protocol.html). I created a little circuit with a level shifter, but I have some troubles communicating.

I then saw that UART0TX and UART0RX seem to be used by bluetooth (debian_kernel/arch/arm/boot/dts/rk3288-miniarm.dts:69).

How can I easily use UART on the tinkerboard without rebuilding my kernel again ? Smile (I did it already for the pican2 shield ahah). Which pins should I use and is there any precaution I should take about any of this ? (I already found a way to change the baud rate via IOCTL)


I saw this post but it didn't help me much: https://tinkerboarding.co.uk/forum/archive/index.php/thread-838.html

Thank you very much in advance!
Reply
#2
Hi 0xP1kachu,

It is easy to enable UART port by modifying the hw_intf.conf in /boot.
For an example, if you would like to enable UART2, modify the line from off to on ( intf:uart2=on ).

And you can find the pin mapping here: (pin32 & 33 as UART2 tx & rx)
https://tinkerboarding.co.uk/wiki/index.php?title=GPIO
Reply
#3
(05-11-2018, 07:08 AM)ychou Wrote: Hi 0xP1kachu,

It is easy to enable UART port by modifying the hw_intf.conf in /boot.
For an example, if you would like to enable UART2, modify the line from off to on ( intf:uart2=on ).

And you can find the pin mapping here: (pin32 & 33 as UART2 tx & rx)
https://tinkerboarding.co.uk/wiki/index.php?title=GPIO

Hi ychou, thanks for your answer!

So by enabling for example uart2, I can use pin 32 & 33 by talking to /dev/ttyS2 right ?

Thank you very much!
Reply
#4
(05-11-2018, 08:03 AM)0xP1kachu Wrote:
(05-11-2018, 07:08 AM)ychou Wrote: Hi 0xP1kachu,

It is easy to enable UART port by modifying the hw_intf.conf in /boot.
For an example, if you would like to enable UART2, modify the line from off to on ( intf:uart2=on ).

And you can find the pin mapping here: (pin32 & 33 as UART2 tx & rx)
https://tinkerboarding.co.uk/wiki/index.php?title=GPIO

Hi ychou, thanks for your answer!

So by enabling for example uart2, I can use pin 32 & 33 by talking to /dev/ttyS2 right ?

Thank you very much!

Also, is there a way to specify the baud rate (which is non standard in my case) directly from the hw_intf.conf ?

Thank you!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)