rleonardi
Posts: 30
Joined: Fri Oct 16, 2015 1:37 pm

n.3 UART RS232 by using Raspberry

Tue Mar 22, 2016 4:56 pm

Hi,
I'm using Raspberry 2 B and I have to control n.3 devices by using RS232, but Pi only has one RS232 via GPIO.
Could you possibly tell me the best way to do this (possibly industrial grade)?
Thank you in advance.
Regards

klricks
Posts: 7135
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: n.3 UART RS232 by using Raspberry

Tue Mar 22, 2016 5:18 pm

rleonardi wrote:Hi,
I'm using Raspberry 2 B and I have to control n.3 devices by using RS232, but Pi only has one RS232 via GPIO.
Could you possibly tell me the best way to do this (possibly industrial grade)?
Thank you in advance.
Regards
What are n.3 devices? Give a link
The RPi has 1 UART port which is NOT RS232. To get RS232 you must add a 3V3 TTL to RS232 adapter module of some sort.
You can add more USB to RS232 adapters when you need more than 1 port.
Unless specified otherwise my response is based on the latest and fully updated RPiOS Buster w/ Desktop OS.

User avatar
saper_2
Posts: 240
Joined: Sun Aug 03, 2014 10:08 am
Location: PL

Re: n.3 UART RS232 by using Raspberry

Tue Mar 22, 2016 8:19 pm

rleonardi wrote:Hi,
I'm using Raspberry 2 B and I have to control n.3 devices by using RS232, but Pi only has one RS232 via GPIO.
Could you possibly tell me the best way to do this (possibly industrial grade)?
Thank you in advance.
Regards
First'os: Pi is not for industry, it's not reliable like specially designed SBC for industrial applications, nor it have any fool-proof connectors, interfaces, chassis. :)
Second'os: In industrial SBC you have much more reliable memory (that can works for years) than RPi (SD card can work up to 6-15 months - depends on card)...
3rd: Pi have UART - universal asynchronous receiver transmitter , not RS232 - klricks already answered this - at frame level those ports are identical, at hardware level - they NOT. RS232 works with levels from -15V to +15V , while RPi UART works only with levels 0V to 3,3V - as klricks said, you need a voltage level translator (e.g. MAX3232 or similar).
4th: Yes, Pi have 1 UART.
5. You'd better use good quality USB-to-RS232 adapters or eth-rs232 bridges.
6. What in the hell is "n.3 devices" ?!
7. If I'm thanked in advance, I go lazy ;)

There was not for so long ago topic about rs232/usb-rs232(serial) adapter(s)...

edo1
Posts: 169
Joined: Sun Jun 15, 2014 3:33 pm
Location: Russia

Re: n.3 UART RS232 by using Raspberry

Tue Mar 22, 2016 10:02 pm

saper_2 wrote:Pi is not for industry, it's not reliable like specially designed SBC for industrial applications
IMHO Pi's reliability is good enough
Second'os: In industrial SBC you have much more reliable memory (that can works for years) than RPi (SD card can work up to 6-15 months - depends on card)...
There are a lot of connectives. You could store data on some server in local network, remote server, cloud service and so on. You could connect NOR flash via SPI.
I hope SD card could work for a while in readonly mode.

User avatar
saper_2
Posts: 240
Joined: Sun Aug 03, 2014 10:08 am
Location: PL

Re: n.3 UART RS232 by using Raspberry

Wed Mar 23, 2016 6:05 pm

edo1 wrote:IMHO Pi's reliability is good enough

There are a lot of connectives. You could store data on some server in local network, remote server, cloud service and so on. You could connect NOR flash via SPI.
I hope SD card could work for a while in readonly mode.
I've been comparing Pi to industrial grade SBC :D - but he doesn't need to know that ;)

True, pi can use different memories/network fs but that require more hardware and more configuration - as for me that's going under label "pain in the neck" :D ...

But, I shouldn't be talking because I plan myself to utilize rpi as rack cabinet controller (toggle power for net hardware (remote + watchdog), monitor temps, fans, ups, etc...) - so I just shut up, and please ignore me :D

Return to “Interfacing (DSI, CSI, I2C, etc.)”