Author Topic: Serial Ports  (Read 2903 times)

Offline thehoffau

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Serial Ports
« on: September 13, 2014, 08:41:17 am »
Not being much of an electronics guy but a Router/Switch/Linux guy I love the cubieboards in my lab at home and they just continue to breed.

At the moment I have a cubietruck with a powered usb hub and anywhere between 4 and 8 USB to serial adapters that I use to access the console of my firewalls and switches at any given time.

I have been reading up that the cubietruck has a number if UARTs that might be able to be used but I can't find any clear instructions or even pointers.

 I have found this http://abhinavgupta2812.wordpress.com/2013/08/27/configuring-the-gpio-and-uart-on-the-cubieboard/ which gives me a general direction but being for the A10 and the truck has the A20 and I'm sure some other differences I am not sure how many serial ports I could actually run, the speed/spec they would support or even how to cable them up.

My ideal goal is to cable up as many as possible to rj45 plugs to use for console management.

Any pointers would be appreciated.


Offline DocJoness

  • Newbie
  • *
  • Posts: 29
  • Karma: +0/-0
    • View Profile
Re: Serial Ports
« Reply #1 on: September 24, 2014, 11:18:04 am »
i think you can have up to 8 serial ports.
you need modify your .fex config file to enable it, by default only uart0 are enabled.

that-s a sample uart section in .fex config file.

[uart_para0]
uart_used = 1
uart_port = 0
uart_type = 2
uart_tx = port:PB22<2><1><default><default>
uart_rx = port:PB23<2><1><default><default>

[uart_para1]
uart_used = 0
uart_port = 1
uart_type = 8
uart_tx = port:PA10<4><1><default><default>
uart_rx = port:PA11<4><1><default><default>
uart_rts = port:PA12<4><1><default><default>
uart_cts = port:PA13<4><1><default><default>
uart_dtr = port:PA14<4><1><default><default>
uart_dsr = port:PA15<4><1><default><default>
uart_dcd = port:PA16<4><1><default><default>
uart_ring = port:PA17<4><1><default><default>

[uart_para2]
uart_used = 1
uart_port = 2
uart_type = 4
uart_tx = port:PI18<3><1><default><default>
uart_rx = port:PI19<3><1><default><default>
uart_rts = port:PI16<3><1><default><default>
uart_cts = port:PI17<3><1><default><default>

[uart_para3]
uart_used = 0
uart_port = 3
uart_type = 4
uart_tx = port:PH00<4><1><default><default>
uart_rx = port:PH01<4><1><default><default>
uart_rts = port:PH02<4><1><default><default>
uart_cts = port:PH03<4><1><default><default>

[uart_para4]
uart_used = 0
uart_port = 4
uart_type = 2
uart_tx = port:PH04<4><1><default><default>
uart_rx = port:PH05<4><1><default><default>

[uart_para5]
uart_used = 0
uart_port = 5
uart_type = 2
uart_tx = port:PH06<4><1><default><default>
uart_rx = port:PH07<4><1><default><default>

[uart_para6]
uart_used = 0
uart_port = 6
uart_type = 2
uart_tx = port:PA12<4><1><default><default>
uart_rx = port:PA13<4><1><default><default>

[uart_para7]
uart_used = 0
uart_port = 7
uart_type = 2
uart_tx = port:PA14<4><1><default><default>
uart_rx = port:PA15<4><1><default><default>