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
Solved

Serial Port Programming

Posted on 1997-05-10
2
242 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
dog bark java program 15 109
Modbus - whats the maximum I can store in one register? 4 80
Trying to run powershell  in a batch file. How do I do this? 8 106
Making an alias 7 101
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 …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.

838 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