Thread Rating:
  • 0 Vote(s) - 0 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)