Serial communcation with USB to serial(DB9) cable - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: ROCKPRO64 (https://forum.pine64.org/forumdisplay.php?fid=98) +--- Forum: General Discussion on ROCKPRO64 (https://forum.pine64.org/forumdisplay.php?fid=99) +--- Thread: Serial communcation with USB to serial(DB9) cable (/showthread.php?tid=6984) |
Serial communcation with USB to serial(DB9) cable - rahulsharma - 12-23-2018 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. RE: Serial communcation with USB to serial(DB9) cable - martinayotte - 12-23-2018 (12-23-2018, 12:38 AM)rahulsharma Wrote: No i have USB to serial(DB9) cableI hope you are aware that DB9 are not TTL voltage level, so don't plug it directly to any GPIOs without converter ... RE: Serial communcation with USB to serial(DB9) cable - rahulsharma - 12-23-2018 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? RE: Serial communcation with USB to serial(DB9) cable - martinayotte - 12-24-2018 (12-23-2018, 07:25 AM)rahulsharma Wrote: Hi, 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-Converter-Adapter-Aurdino-RaspberryPI/dp/B072XG5WTN/ref=sr_1_14 RE: Serial communcation with USB to serial(DB9) cable - mknawabi - 01-08-2019 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?tid=6387&pid=43567 RE: Serial communcation with USB to serial(DB9) cable - rahulsharma - 01-10-2019 (01-08-2019, 11:40 AM)mknawabi Wrote: Hi rahulsharma, 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. RE: Serial communcation with USB to serial(DB9) cable - martinayotte - 01-12-2019 @rahulsharma, if your end device is really RS232 +/-12V, then, the USB-RS232 adaptor you provide link above will work. |