don't click here

Bitbanging

Discussion in 'Technical Discussion' started by Aerosol, Mar 8, 2012.

  1. Aerosol

    Aerosol

    Not here. Moderator
    11,163
    573
    93
    Not where I want to be.
    Sonic (?): Coming summer of 2055...?
    I want to send data through my laptop's parallel port. It's actually a command that the rf module on the xbox360 needs to start looking for a wireless controller. I have arduino code to do this but...I don't have an arduino! I do have a parallel port though.

    But it's hard to find any information on doing this. Can anyone point me in the right direction?

    EDIT: I managed to get a response from the guy that wrote the arduino code. He told me very specifically what information the rf module needs.

     
  2. TmEE

    TmEE

    Master of OPL3-SA2/3 Tech Member
    1,726
    2
    18
    Estonia, Rapla City
    T-04YBSC-A !
    &H378 is for reading/sending stuff to the D0....D7 pins,
    &H379 is for reading status input pins and enabling tristate to do a read on data port.
    &H37A is for controlling status output pins

    The port may vary, but its usually 378, 278 and sometimes 3BC
     
  3. Aerosol

    Aerosol

    Not here. Moderator
    11,163
    573
    93
    Not where I want to be.
    Sonic (?): Coming summer of 2055...?
    Awesome. Any clue on how to interface with the parallel port in windows xp?
     
  4. TmEE

    TmEE

    Master of OPL3-SA2/3 Tech Member
    1,726
    2
    18
    Estonia, Rapla City
    T-04YBSC-A !
    install UserPort and open up the required port range and use the means provided by your programming language to deal with hardware ports, and if that is not available you need some kind of port driver
     
  5. Aerosol

    Aerosol

    Not here. Moderator
    11,163
    573
    93
    Not where I want to be.
    Sonic (?): Coming summer of 2055...?
    Hmm...it looks like I might not be able to achieve what I'm trying to anyway. I can't find a way to pull the data pins on the parallel port high or low in software only. I need to pull a data pin low to let the rf module know I'm about to send a command, and pull it high so it knows when I'm done. If there's no way to do it in software, I'd have to do it in hardware, which is bit beyond me!
     
  6. TmEE

    TmEE

    Master of OPL3-SA2/3 Tech Member
    1,726
    2
    18
    Estonia, Rapla City
    T-04YBSC-A !
    You can pull any output signal high or low, unless you're in ECP mode, then it may do all kind of fun things for you... LPT port can roughly handle 1M accesses per second so it should be fine for most tasks. Bitbanking is exactly how one device I made for burning and dumping MD cards and memories works.