Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??
I've been programming a CashCode brand bill validator (excellent product, much better than Mars), and now I'm trying to find something that doesn't suck to replace an ugly kludge.

The bill acceptor has a "serial" interface, which is of course not a PC serial port but rather some sort of specialty interface. I'm using a converter module that claims to convert it to RS232. Which it mostly does. However, that alone doesn't allow me to control the unit. There is a handshaking process involved, and in their infinite wisdom, the converter requires me to drop (0V) and raise(5V) pin 3, which is normally RD(aka RX). Unfortunately, I can't just swap, for example, RD and RTS, and use RTS for the acking, because it requires normal functioning on RD, also. So, the sollution I have found is to tie RD and RTS together. This allows me to force RD high or low by playing with RTS, and still allows me to receive data normally on RD.

I'm really unhappy with this sollution, it is an ugly hardware hack, which is going to require me to build/buy a custom connector for each unit. Also, normally RD has 0V to -5V, and with RTS I'm pushing it from 0V to +5V. I have no idea if that is safe for the hardware in the long term. So my question is, does anybody know of a way in software to pull RD low? Currently I'm using Device::SerialPort, but I'm not set on doing it that way.
--
Snazzy tagline here


In reply to Kludging the serial port by Aighearach

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others cooling their heels in the Monastery: (13)
    As of 2014-08-22 14:43 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      The best computer themed movie is:











      Results (158 votes), past polls