Solved

Serial Port Programming

Posted on 1997-05-10
2
235 Views
Last Modified: 2013-12-26
My Powerplant application doesn't receive characters from an external device. What have I done wrong (see below)?

I have a PowerMac 7600 that communicates with an RS-232C device through the serial port. When a certain string is sent to the device, a LED blinks and confirms that the device received something. The Mac doesn't get anything back
from the RS-232 device.

To verify that the string is received correctly I've used another 7600 to simulate the device. Yes, it receives the string correctly.

The correct parameters (speed, parity, etc.) are set. This has been checked with a PC-to-the-external-device test. The communication with a PC works well.

There doesn't seem to be anything wrong except maybe (?) two things: problems with Mac-to-device (RS-422 to RS-232) or
bad cable design.

The cable used is a Mini DIN-8 (Mac side) to 9-Pin (device side). According to the spec of the device (talked with manufacturer too) the RS-232 side of the cable looks like:
  Pin No.  Signal
  -------  -------
    1        FG
    2        SD
    3        RD
    4        RS
    5        CS
    6        --
    7        --
    8        --
    9        SG

The RS-232 9-pin is connected to the Mini DIN-8 according to:
  RS-232   Mini DIN-8
    1        4 (SG)
    2        8 (RxD+)
    3        6 (TxD+)
    9        4 (SG)
 
No handshaking is used. RS-232 pins #4 and #5 are connected to each other. Mini DIN-8 pins #1 and #2 are connected to each other.
0
Comment
Question by:ovj
2 Comments
 
LVL 1

Accepted Solution

by:
PAD earned 120 total points
ID: 1291453
To connect a RS232 to a mac RS422 you just have to connect Ground to Ground.
Then connect the RS232 "SEND" to the RS422 RECEIVE+, ground to RS422 RECEIVE-.
Connect the RS232 "RECEIVE" to RS422 "SEND+", and do not connect RS422 "SEND-"

In fact Mac's RS422 to RS232 compatible, but NEVER forget in that case to Ground "RECEIVE-" and that what is missing in you cable i think.

And to make sure all is ok if you don't use RTS/CTS you just have to connect them together on each side.

Good Luck
0
 

Author Comment

by:ovj
ID: 1291454
I think that it'll work with this connection. I got tired and changed the device to an RS-422 interface, so I never could test it.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Rewrite URL With Encoded Characters 6 78
Complete beginner needs help making a cron job 9 116
sumNumber challenge 16 122
if loop in java 3 139
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now