connecting to board form laptop using UART

Post Reply
Unc3nZureD
Posts: 2
Joined: Tue Dec 13, 2016 2:39 am
languages_spoken: english
ODROIDs: Odroid C2
Has thanked: 0
Been thanked: 0
Contact:

connecting to board form laptop using UART

Unread post by Unc3nZureD » Tue Dec 13, 2016 3:04 am

Hello guys!
Recently I just bought my first SBC, which is an Odroid C2. I'm quite a noobie in both linux & SBCs,
but I'm trying my best :) So, as the title says, I'd like to control my C2 using UART.

*Background story incoming*
At home it worked well from ethernet, but at the moment I'm in a college, where I can't just use
WiFi/Ethernet with an unknown device - I'm not getting an IP.
So, that's why I want to use UART.

I bought a device which is able to produce TX/RX/3v/5v/GND from USB, exactly this one:
http://ebay.to/2hq8cI1
I'm not 100% sure if I connected it right, so here it is:
Into the CP2102: http://i.imgur.com/q92AoOX.jpg
Into the C2: http://i.imgur.com/7GrHLZ4.jpg

• 1st I power on my ODroid via micro-usb
• Then connect the CP2102 to the laptop
• After that I try to connect to the Serial COMX on 115k baud rate
What happens? Nothing...

Could someone help me to debug where the problem is?

Thank you! :)

User avatar
mad_ady
Posts: 6780
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 215 times
Been thanked: 163 times
Contact:

Re: connecting to board form laptop using UART

Unread post by mad_ady » Tue Dec 13, 2016 3:19 am

You shouldn't need to connect the 3v3 power pin. Also make sure rx and tx are reversed (rx from the usb dongle goes to tx from the board). Baud rate is 115200. You can short rx and tx on the usb dongle and type characters to verify the dongle works

Unc3nZureD
Posts: 2
Joined: Tue Dec 13, 2016 2:39 am
languages_spoken: english
ODROIDs: Odroid C2
Has thanked: 0
Been thanked: 0
Contact:

Re: connecting to board form laptop using UART

Unread post by Unc3nZureD » Tue Dec 13, 2016 8:29 am

Thanks for the tip, I tried and luckily the CP2102 is perfectly working, it echoed everything I sent on it when TX/RX is connected.

I unplugged the 3V and the GND and tried ti mix TX/RX both ways (I know that it works only one way, but just made sure if I didn't swap it accidently)

As you can see, I'm using baud 115200 rate:
http://i.imgur.com/43sRNOF.png

Odroid isn't echoing anything on Serial port. Should I use it somehow different? Do I need some special driver?
Here is my currently installed default one:
http://i.imgur.com/29l4tFh.png

any special software or something else? :O

User avatar
mad_ady
Posts: 6780
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 215 times
Been thanked: 163 times
Contact:

Re: connecting to board form laptop using UART

Unread post by mad_ady » Tue Dec 13, 2016 11:26 am

It should just work, but try with putty as well.

User avatar
odroid
Site Admin
Posts: 32489
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 178 times
Been thanked: 345 times
Contact:

Re: connecting to board form laptop using UART

Unread post by odroid » Tue Dec 13, 2016 12:37 pm

Just connect Rx, Tx and GND 3 wires.
Different voltage on VCC pin might damage the C2 board.

Did you disable all the hardware/software flow-control options?

maxderoswell
Posts: 31
Joined: Fri Sep 28, 2018 3:19 am
languages_spoken: French but good knowledges in English
ODROIDs: Odroid C2 only
Has thanked: 0
Been thanked: 1 time
Contact:

Re: connecting to board form laptop using UART

Unread post by maxderoswell » Thu Nov 07, 2019 12:32 am

Hello,

it's ok with this little board ?

Mathieu

User avatar
mad_ady
Posts: 6780
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 215 times
Been thanked: 163 times
Contact:

Re: connecting to board form laptop using UART

Unread post by mad_ady » Thu Nov 07, 2019 1:25 am

It should work, yes. Make sure voltage is 3.3V, not 5V

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 3 guests