Solved

Serial Port Programming

Posted on 1997-05-10
2
245 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
repeateFront java challenge 31 95
Expand data scrubbing tool 13 36
has22 challenge 11 107
canBalance challenge 34 104
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

763 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