Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

No, not quite...

by Aighearach
on Oct 09, 2001 at 07:16 UTC ( #117631=note: print w/ replies, xml ) Need Help??

in reply to Re: Kludging the serial port
in thread Kludging the serial port

Yes and no. Yes, in the docs they are listed as seperate lines. No, that is not the way it is actually working.

Yes, that appears to be the action of the converter.

Yes, that would be the logical way for it to be wired, and is quite what I was expecting. But there is not a single unused line that you can cycle to get the desired behavior. Using an RS-232 breakout box, I tried all the lines... only by turning off and restoring RD would the hardware respond in the way that is described for when the SEND line is toggled.

$PortObj->pulse_break_on() doesn't do anything for me. First of all, as the docs specify, you can't get exact timing out of it. Second, that plays with TD (pin 2) not RD (pin 3), and the hardware doesn't blink. Actually, I wrote a strober to try all the pulse methods before I tried manually playing with the voltages via breakout box. Closest I can get that way is to throw ACCEPT_ENABLE(DTR) around, which makes it burp but not finish processing any events or state changes.

With all the means available for doing this right, there just isn't any excuse for kludging the hardware in the manner you describe.
Yes, and considering your sollution contains errors, and also doesn't work at all, there is even less excuse for your attitude than for my kludge. If I thought I had the ideal sollution, I would have posted in CUFP instead of Seekers. On the bright side, since it's for my own company I only need it to accept the customers money and credit them; nobody is going to ask what it's "excuse" for working is.
Snazzy tagline here

Comment on No, not quite...
Replies are listed 'Best First'.
Re: No, not quite...
by Dr. Mu (Hermit) on Oct 09, 2001 at 08:26 UTC
    Sorry if my tone offended. It's just that I've been burned enough times by hardware kludges, I tend to mount the soapbox when I see others toying with the same fate. Especially since you indicate it's not a one-off project, I still maintain it's worth the time to figure out what's going on and get it right.

    I confess confusion now regarding the separation/non-separation of the RD and SEND lines. I'd be happy to provide more assistance if I knew more about the circuitry of your RS232 converter. Unfortunately, this goes outside the realm of Perl, so this probably isn't the best forum to continue the discussion. Perhaps you could message me on the Chatterbox with your email address, and we could continue there.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://117631]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2015-11-30 10:19 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (769 votes), past polls