Author Topic: Problems getting data out of an RS422 port  (Read 5633 times)

0 Members and 1 Guest are viewing this topic.

Offline arobyTopic starter

  • Regular Contributor
  • *
  • Posts: 221
  • Country: us
Problems getting data out of an RS422 port
« on: November 07, 2014, 04:51:14 pm »
I picked up a pair of Lucent GPS / oscillator devices off eBay (see http://www.ebay.com/itm/LUCENT-SYMMETRICOM-Z3810AS-KS24361-L101-L102-HP-KIO-OEM-GPSDO-TIMING-SYSTEM-/321560316836?), along with a number of others from the time-nuts mailing list.

I cannot for the life of me get any data out of the RS422 diagnostic ports.  I have tried a hack connecting the RX- and TX- ports to the RS232 TX and RX ports (which seems to have worked for everyone else).  I have tried an RS422 to USB cable.  I've tried an RS422 to RS232 plug convertor.  Nothing works.

Yet, if I connect the box to the PC using the cable hack and put a scope on the TX-, I can send commands from a terminal program and decode RS232 data coming out (see attached) - just nothing gets back to the PC.

Has anyone encountered similar situations and have been able to solve them?  I'm at a loss as to what to try next.

Anthony
 

Offline sunnyhighway

  • Frequent Contributor
  • **
  • Posts: 276
  • Country: nl
Re: Problems getting data out of an RS422 port
« Reply #1 on: November 07, 2014, 05:22:17 pm »
Have you tried crossing the TX and RX lines?
 

Offline arobyTopic starter

  • Regular Contributor
  • *
  • Posts: 221
  • Country: us
Re: Problems getting data out of an RS422 port
« Reply #2 on: November 07, 2014, 05:58:45 pm »
Have you tried crossing the TX and RX lines?

Yes, tried that.  I have other scope shots where I sent the command from the PC, it hits the device and then I see the data on the scope coming back from the device.  I just can never get the PC serial or USB ports to pick up the data.  My guess is it's to do with voltage levels or noise.
 

Offline texaspyro

  • Super Contributor
  • ***
  • Posts: 1407
Re: Problems getting data out of an RS422 port
« Reply #3 on: July 12, 2016, 07:42:48 am »
I also got in one of the Z2812A "ref0" units and added back in the Motorola UT+ GPS receiver per Peter Grade's instructions.   I have it working now as a stand-alone GPSDO (and have Lady Heather working with it). 

I also experienced RS-422 communications issues when feeding the RS-422 data into a RS-232 serial port.  One a desktop box with a real serial port it drops most of the characters.  On a laptop with a real serial port it occasionally drops characters.  It works fine with a cheap Chinese USB to serial connector.  It seems the levels that the RS-422 port puts out are on the edge of what a lot of RS-232 ports will accept.
 

Offline ebclr

  • Super Contributor
  • ***
  • Posts: 2328
  • Country: 00
 

Offline blacksheeplogic

  • Frequent Contributor
  • **
  • Posts: 532
  • Country: nz
Re: Problems getting data out of an RS422 port
« Reply #5 on: August 02, 2016, 02:37:27 am »
I also experienced RS-422 communications issues when feeding the RS-422 data into a RS-232 serial port.  One a desktop box with a real serial port it drops most of the characters.  On a laptop with a real serial port it occasionally drops characters.  It works fine with a cheap Chinese USB to serial connector.  It seems the levels that the RS-422 port puts out are on the edge of what a lot of RS-232 ports will accept.

That's more likely a flow control issue, use HW flow control, signal level shouldn't be an issue on a short cable, the specifications very broad. You can also pick up powered line extenders very cheaply which convert RS232 <-> RS422 if your using long cables, for example WTI LD-4 Line Drivers. I've had some issues in the past with the cheap USB RS232 serial interfaces so try a different brand. If you do a lot of serial it's worth picking up a serial protocol analyzer, they cost next to nothing these days for an old HP unit.
 

Offline texaspyro

  • Super Contributor
  • ***
  • Posts: 1407
Re: Problems getting data out of an RS422 port
« Reply #6 on: August 02, 2016, 04:31:20 am »

That's more likely a flow control issue, use HW flow control, signal level shouldn't be an issue on a short cable, the specifications very broad. You can also pick up powered line extenders very cheaply which convert RS232 <-> RS422 if your using long cables, for example WTI LD-4 Line Drivers. I've had some issues in the past with the cheap USB RS232 serial interfaces so try a different brand. If you do a lot of serial it's worth picking up a serial protocol analyzer, they cost next to nothing these days for an old HP unit.

Nope, i't a signal level issue on the RS-232 line receivers in the computers (both have genuine hardware serial ports, USB to serial adapters work fine).  The GPSDO sees commands sent to it just fine,  but the returned data is garbaged.  Not a flow control or buffering issue either.   And I have protocol analyzers most people only dream about...
 

Offline blacksheeplogic

  • Frequent Contributor
  • **
  • Posts: 532
  • Country: nz
Re: Problems getting data out of an RS422 port
« Reply #7 on: August 02, 2016, 05:09:58 am »
Nope, i't a signal level issue on the RS-232 line receivers in the computers (both have genuine hardware serial ports, USB to serial adapters work fine).  The GPSDO sees commands sent to it just fine,  but the returned data is garbaged.  Not a flow control or buffering issue either.   And I have protocol analyzers most people only dream about...

You need a signal ground.
 

Offline texaspyro

  • Super Contributor
  • ***
  • Posts: 1407
Re: Problems getting data out of an RS422 port
« Reply #8 on: August 02, 2016, 05:24:23 am »
Nope, i't a signal level issue on the RS-232 line receivers in the computers (both have genuine hardware serial ports, USB to serial adapters work fine).  The GPSDO sees commands sent to it just fine,  but the returned data is garbaged.  Not a flow control or buffering issue either.   And I have protocol analyzers most people only dream about...

You need a signal ground.

I have one...   I've only been doing RS-232/RS-485/RS-422 for 45 years,  so I might have missed something...
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf