Serial communcation with USB to serial(DB9) cable
#1
Hi,
I am using Rockpro64 with Ubuntu18 image.
I have successfully done UART communication of rockpro through ttyS2 port(GPIO6,8) with my laptop.
No i have USB to serial(DB9) cable and i wanted to use one of the USB port of rockpro. I did try the same with 1500000 Baudrate but on my receiver side, i can see a garbage data is coming. I have tried different buadrates too but only garbage data is there.
Any suggestion? Can i use USB port for my serial communication?
Thanks.
#2
(12-23-2018, 12:38 AM)rahulsharma Wrote: No i have USB to serial(DB9) cable
I hope you are aware that DB9 are not TTL voltage level, so don't plug it directly to any GPIOs without converter ...
#3
Hi,
Thanks for the suggestion.
I have told that i am using USB to Serial cable. I am not using any GPIO now.

"https://www.amazon.in/Sheen-SOUTSRS-Serial-RS232-Cable/dp/B00JWRW9JM?tag=googinhydr18418-21&tag=googinkenshoo-21&ascsubtag=_k_Cj0KCQiAgf3gBRDtARIsABgdL3lh7afD1kyN3xp4s-RWyzBA_tt5D1_7Xx-Iikuasa_nvg95YW2VwGoaAgwEEALw_wcB_k_&gclid=Cj0KCQiAgf3gBRDtARIsABgdL3lh7afD1kyN3xp4s-RWyzBA_tt5D1_7Xx-Iikuasa_nvg95YW2VwGoaAgwEEALw_wcB"

it is connected through one of USB port. And also been detected as USB0 on rockpro side.
So my question was regarding that only. Can i send data through this cable with 1500000 buadrate?
#4
(12-23-2018, 07:25 AM)rahulsharma Wrote: Hi,
Thanks for the suggestion.
I have told that i am using USB to Serial cable. I am not using any GPIO now.

"https://www.amazon.in/Sheen-SOUTSRS-Serial-RS232-Cable/dp/B00JWRW9JM?tag=googinhydr18418-21&tag=googinkenshoo-21&ascsubtag=_k_Cj0KCQiAgf3gBRDtARIsABgdL3lh7afD1kyN3xp4s-RWyzBA_tt5D1_7Xx-Iikuasa_nvg95YW2VwGoaAgwEEALw_wcB_k_&gclid=Cj0KCQiAgf3gBRDtARIsABgdL3lh7afD1kyN3xp4s-RWyzBA_tt5D1_7Xx-Iikuasa_nvg95YW2VwGoaAgwEEALw_wcB"

it is connected through one of USB port. And also been detected as USB0 on rockpro side.
So my question was regarding that only. Can i send data through this cable with 1500000 buadrate?

That is what I mean ... The adapter you are showing is RS232 level ...
What device do you wish to plug on DB9 side ? Is it really a RS232 device ?

Otherwise, you maybe need USB-TTL Serial (not RS232) such as : https://www.amazon.in/SunRobotics-Conver...ef=sr_1_14
#5
Hi rahulsharma,

I think you are trying to get serial console access to the rockpro64 by plugging in a USB serial adapter in one of the USB ports. Unfortunately, to get serial access to the RP64, you need a 3V3 TTL serial adapter (FT232 or others) that plug into the GPIO pins.

The guide to get this working is here:
https://forum.pine64.org/showthread.php?...&pid=43567
#6
(01-08-2019, 11:40 AM)mknawabi Wrote: Hi rahulsharma,

I think you are trying to get serial console access to the rockpro64 by plugging in a USB serial adapter in one of the USB ports. Unfortunately, to get serial access to the RP64, you need a 3V3 TTL serial adapter (FT232 or others) that plug into the GPIO pins.

The guide to get this working is here:
https://forum.pine64.org/showthread.php?...&pid=43567

Hi, 
So that means i can't use usb port for serial communication?
As i have done serial communication with gpio pins (6,8,10) and used a usb to TTL converter. That is done. 
What i asked to use USB port to send serial data for serial communication. Can i do that?

@martinayotte

Yes, The device at the receiving end is a serial +-12v. So please suggest how to achieve that.
And anyhow i have to use a TTL to serial converter in between but i want to distinguish two possibilities-
1) one is i use gpio pins(6,8,10) and then use converter
2) If i want to use one of the USB port instead of GPIOs so how can i do that?
Thanks.
#7
@rahulsharma, if your end device is really RS232 +/-12V, then, the USB-RS232 adaptor you provide link above will work.


Possibly Related Threads…
Thread Author Replies Views Last Post
  Serial Output Garbage after initial messages jamforlunch 5 3,802 09-07-2024, 03:32 PM
Last Post: foresto
  Change Baudrate for Built-On Serial R0b0t1 1 3,374 10-04-2020, 04:50 AM
Last Post: Gienek
  USB Type-C Display cable support (for 2 in 1: Video + Power) Paprika88 0 2,613 02-12-2020, 06:47 AM
Last Post: Paprika88
  Is there a guide to using the PADI-Server serial console adapter? Tim Jones 1 2,990 11-04-2019, 01:25 PM
Last Post: xalius
  u-boot serial port speed? zener 2 4,528 10-06-2018, 12:47 PM
Last Post: zener

Forum Jump:


Users browsing this thread: 1 Guest(s)