Problems getting data out of an RS422 port - Page 1
Forum section: electronics / general

author: aroby
author_rank: Regular Contributor
timestamp: November 07, 2014, 04:51:14 pm
content: I picked up a pair of Lucent GPS / oscillator devices off eBay (seehttp://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

author: sunnyhighway
author_rank: Frequent Contributor
timestamp: November 07, 2014, 05:22:17 pm
content: Have you tried crossing the TX and RX lines?

author: aroby
author_rank: Regular Contributor
timestamp: November 07, 2014, 05:58:45 pm
content: Quote from: sunnyhighway on November 07, 2014, 05:22:17 pmYes, 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.

author: texaspyro
author_rank: Super Contributor
timestamp: July 12, 2016, 07:42:48 am
content: 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.

author: ebclr
author_rank: Super Contributor
timestamp: August 01, 2016, 08:52:03 pm
content: Read thishttps://www.febo.com/pipermail/time-nuts/2014-October/087274.html

author: blacksheeplogic
author_rank: Frequent Contributor
timestamp: August 02, 2016, 02:37:27 am
content: Quote from: texaspyro on July 12, 2016, 07:42:48 amThat'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.

author: texaspyro
author_rank: Super Contributor
timestamp: August 02, 2016, 04:31:20 am
content: Quote from: blacksheeplogic on August 02, 2016, 02:37:27 amNope, 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...

author: blacksheeplogic
author_rank: Frequent Contributor
timestamp: August 02, 2016, 05:09:58 am
content: Quote from: texaspyro on August 02, 2016, 04:31:20 amYou need a signal ground.

author: texaspyro
author_rank: Super Contributor
timestamp: August 02, 2016, 05:24:23 am
content: Quote from: blacksheeplogic on August 02, 2016, 05:09:58 amI have one... I've only been doing RS-232/RS-485/RS-422 for 45 years, so I might have missed something...