Author Topic: Optical isolation of serial interface with DB-9 isolator dongle  (Read 3463 times)

0 Members and 1 Guest are viewing this topic.

Offline pascal_swedenTopic starter

  • Super Contributor
  • ***
  • Posts: 1541
  • Country: no
I found a cheap DB-9 isolator dongle on AliExpress:
https://www.aliexpress.com/item/Serial-Adapter-RS232-TO-RS232-DB9-DATA-Converter-Photoelectric-isolator-Lightningproof/32334176147.html

I would like to understand however where the DB-9 dongle gets its power from. Most DB-9 dongles take power from the Handshaking signals.

But will this work for my PCB board, where I am using a MAX232 chip to convert between TTL and RS232 levels?

Has anybody on this forum used such a DB-9 isolator dongle?
Could you check this adapter with a MAX232 chip?

It will help me to understand the power transfer. According to description isolation is present in three line TXD(2), RXD(3) and GND(5).
 

Offline eliocor

  • Supporter
  • ****
  • Posts: 522
  • Country: it
    • rhodiatoce
Re: Optical isolation of serial interface with DB-9 isolator dongle
« Reply #1 on: May 04, 2017, 10:00:42 pm »
For the price it has...
Buy it and take it apart!!!
 

Offline HoracioDos

  • Frequent Contributor
  • **
  • Posts: 344
  • Country: ar
  • Just an IT monkey with a DSO
Re: Optical isolation of serial interface with DB-9 isolator dongle
« Reply #2 on: May 04, 2017, 10:30:54 pm »
I would like to understand however where the DB-9 dongle gets its power from.
That's a good question for customer support.

I guess this is the product: Soarland & Hexin
http://www.hexin-technology.com/HXSP-148_3-lines_RS-232_Optoelectronic_Isolator-Product-249.html

Contact Info
Skype: leslie-hexin
Tel: 86 755 28779909
Email: sales@hexin-technology.com

 

Offline jeroen79

  • Frequent Contributor
  • **
  • Posts: 529
Re: Optical isolation of serial interface with DB-9 isolator dongle
« Reply #3 on: May 04, 2017, 10:44:06 pm »
How much current does it take to drive an optocoupler's LED enough to fully open it's output's phototransistor?
How much current can an RS232 port supply through it's TX line?
 

Offline pascal_swedenTopic starter

  • Super Contributor
  • ***
  • Posts: 1541
  • Country: no
Re: Optical isolation of serial interface with DB-9 isolator dongle
« Reply #4 on: May 05, 2017, 08:42:20 am »
I have contacted the company Hexin, and awaiting feedback from them.
 

Offline Kleinstein

  • Super Contributor
  • ***
  • Posts: 14795
  • Country: de
Re: Optical isolation of serial interface with DB-9 isolator dongle
« Reply #5 on: May 05, 2017, 09:21:01 am »
How much current the opto-coupler LED needs, depends on the model. Usually the current from RS232 is strong enough to drive the normal to slightly more sensitive versions. A good choice would be something like 6N139, as they are also reasonable fast without needing too much current.

The problem can be the receive side of the dongle: depending on the settings / program on the PC side, there might be no positive voltage on any line, when a positive voltage is needed. However there is a negative one. So a good circuit would include a kind of charge pump to always get the ideal +- supply.

Just for an isolated RS232 interface on self build µC circuits, I have used simple opto's several times. The ouput signal is not 100% by the standard (only +6 V / 0.1 V - thus no negative), but usually good enough for a PC. Many of the computer mouses don't give a much better signal. So this type of circuit is usually in such a way that starting from a standard signal level (+-9 V and sufficient current) one can get a signal that most PCs will accept, though the output level will not fully meet the standards. So you can't cascade two of these. One might also run into a problem when starting with a cheap USB-RS232 adapter.
 

Offline pascal_swedenTopic starter

  • Super Contributor
  • ***
  • Posts: 1541
  • Country: no
Re: Optical isolation of serial interface with DB-9 isolator dongle
« Reply #6 on: May 18, 2017, 03:59:25 pm »
No feedback from Hexin yet on my questions.

Does anybody here know about another company who has a similar low-cost solution?
This way I can contact them instead.
 

Online H.O

  • Frequent Contributor
  • **
  • Posts: 851
  • Country: se
Re: Optical isolation of serial interface with DB-9 isolator dongle
« Reply #7 on: May 18, 2017, 04:54:32 pm »
It's $10 delivered, just buy one and try it, if it works take it apart and figure out how it works, if it doesn't try finding another one.

It'll be faster than trying to find a manufacturer who'll answer your questions on an item where the time it takes them to answer your question is worth more than the item itself.

Or are you looking to buy thousands of them? Then you REALLY should buy a couple of different ones and find out which one will be the best for your application.
 

Offline pascal_swedenTopic starter

  • Super Contributor
  • ***
  • Posts: 1541
  • Country: no
Re: Optical isolation of serial interface with DB-9 isolator dongle
« Reply #8 on: May 25, 2017, 12:30:24 pm »
Let's assume that it takes the power from the Handshaking signals on the RS-232 interface.

How come that the MAX232 does not provide these Handshaking signals?

Are there variants of MAX232 that provide Handshaking signals?

There are special variants of MAX232 that have additional ESD protection.

Ideally there is variant that has both ESD protection and provides Handshaking signals.

This way the DB-9 port on my PCB board has ESD protection, and can be optically isolated through the external DB-9 isolator dongle.
 

Offline Andy Watson

  • Super Contributor
  • ***
  • Posts: 2123
Re: Optical isolation of serial interface with DB-9 isolator dongle
« Reply #9 on: May 25, 2017, 01:01:18 pm »
How come that the MAX232 does not provide these Handshaking signals?

Are there variants of MAX232 that provide Handshaking signals?
The MAX232 is just a level shifting buffer with a charge-pump power supply. If you want handshaking signals you have to provide them. The purpose of the handshake signal is not to power the interface - it is serendipitous that in some situations it is possible to steal some power from these signals.

If the bare opto solutions given above are not adequate for your needs and you require a more robust solution that does not rely on using the handshake power you will have to employ a DC-DC convertor, or use something like the MAX3250 (if you can get it!)
« Last Edit: May 25, 2017, 01:27:35 pm by Andy Watson »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf