Hmissa
Posts: 6
Joined: Tue Jul 07, 2015 9:27 am

two usb RS232 adapter

Mon Jan 09, 2017 8:04 pm

hi all,

I m working in project that using two communication UART RS232.
my question is : Can i use two usb RS232 adapter in the same Rpi? /dev/ttyUSB0, /dev/ttyUSB1?
and if yes, the two UART have the same Rx buffer?

Best regards

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 8931
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: two usb RS232 adapter

Mon Jan 09, 2017 9:45 pm

Hmissa wrote:hi all,

I m working in project that using two communication UART RS232.
my question is : Can i use two usb RS232 adapter in the same Rpi? /dev/ttyUSB0, /dev/ttyUSB1?
Yes, exactly that. You may need to look into udev rules to ensure they always enumerate to the same designation as there is no inherent guarantee of that with identical USB devices.
Hmissa wrote:and if yes, the two UART have the same Rx buffer?
No, they'll be treated as totally independent, each with their own control setup and buffers.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

Steveng42
Posts: 1
Joined: Wed Aug 06, 2014 10:26 am

Re: two usb RS232 adapter

Tue May 30, 2017 10:08 pm

I would be happy if I could get even one RS232 device to pass data to my Raspberry Pi3. The RS232 lines are showing good level signals and also on the Raspberry Pi side of the MAX3232 Breakout board. Could you post the image you use.

Ernst
Posts: 1334
Joined: Sat Feb 04, 2017 9:39 am
Location: Germany

Re: two usb RS232 adapter

Wed May 31, 2017 6:53 am

Steveng42 wrote:I would be happy if I could get even one RS232 device to pass data to my Raspberry Pi3. The RS232 lines are showing good level signals and also on the Raspberry Pi side of the MAX3232 Breakout board. Could you post the image you use.
Do you know the difference between DTE and DCE ? (Hint: use google to search for rs232 using these terms)
It can be as simple as swapping pins 2&3, or (depending on the software) to link a few (DTR,RTS,DSR,CTS,DCD) pins.
https://en.wikipedia.org/wiki/RS-232
https://en.wikipedia.org/wiki/Null_modem
The road to insanity is paved with static ip addresses

Return to “Advanced users”