Shop OBEX P1 Docs P2 Docs Learn Events
C++ help with the BS2 — Parallax Forums

C++ help with the BS2

ArchiverArchiver Posts: 46,084
edited 2003-11-12 02:32 in General Discussion
I am familiar with C++ and i want to interface the computer with the BS2 via
parallel port. i know it is possible to write bits to the parallel port and
have the stamp interpret it as a high and low signal. the only thing though
is that i dont know how to access the parallel port. what instruction. also
is anyone familiar with the Game counter strike? the reason for this
adventure is that i want to create a rumble vest. if i could get the game to
output to the parallel port i can get the stamp to trigger a vibrating motor
as if i was in the game. i already emailed Valve the creators of the game
and they dont want to talk to me. any help would be appreciated. thanks
GMDII

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-11-10 00:53
    This is tricky in NT/XP/2000. See www.lvr.com for more details...

    Al Williams
    AWC
    * New: 3 years of Stamp Project of the Month
    http://www.al-williams.com/sombook.htm


    >
    Original Message
    > From: Gary Denison [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=CPLX-4aMG9IYCW2QA-wBtdBW75063QJPsIHx5tpEo32Jz-ldWGUOXJdzsukc2hFaDqRC6Q]gdii@c...[/url
    > Sent: Sunday, November 09, 2003 2:35 PM
    > To: basicstamps@yahoogroups.com
    > Subject: [noparse][[/noparse]basicstamps] C++ help with the BS2
    >
    >
    > I am familiar with C++ and i want to interface the computer
    > with the BS2 via parallel port. i know it is possible to
    > write bits to the parallel port and have the stamp interpret
    > it as a high and low signal. the only thing though is that i
    > dont know how to access the parallel port. what instruction.
    > also is anyone familiar with the Game counter strike? the
    > reason for this adventure is that i want to create a rumble
    > vest. if i could get the game to output to the parallel port
    > i can get the stamp to trigger a vibrating motor as if i was
    > in the game. i already emailed Valve the creators of the game
    > and they dont want to talk to me. any help would be
    > appreciated. thanks GMDII
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the
    > Subject and Body of the message will be ignored.
    >
    >
    > Your use of Yahoo! Groups is subject to
    > http://docs.yahoo.com/info/terms/
    >
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2003-11-11 18:33
    http://www.phanderson.com

    He wrote a book on the Printer port...I've done some of the projects...Most of
    his code is C So if you could get CS to send commands to your exe...then you
    could skip the stamp and just use the 8 data lines for your vest. They are TTL
    so you can't run the relays directly from them...well...unless you get Solid
    State ones [noparse]:)[/noparse]

    I'd look to the Mod community....Valve won't work with you like the people who
    modify games will.

    I'd think if you could get say a separate audio channel going with different
    length tones for each spot you where hit you could have the Stamp monitor that
    output and skip the LPT port and EXE all together. Once again....the Mod
    community would be your best bet....

    As a side note....knowing where you got shot would be very cool!!!

    Good luck with your project....if you need help on the PC side I have the
    examples that Anderson's book comes with [noparse]:)[/noparse]
    Tim

    >>> gdii@c... 11/09/03 02:34PM >>>
    I am familiar with C++ and i want to interface the computer with the BS2 via
    parallel port. i know it is possible to write bits to the parallel port and
    have the stamp interpret it as a high and low signal. the only thing though
    is that i dont know how to access the parallel port. what instruction. also
    is anyone familiar with the Game counter strike? the reason for this
    adventure is that i want to create a rumble vest. if i could get the game to
    output to the parallel port i can get the stamp to trigger a vibrating motor
    as if i was in the game. i already emailed Valve the creators of the game
    and they dont want to talk to me. any help would be appreciated. thanks
    GMDII


    To UNSUBSCRIBE, just send mail to:
    basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed. Text in the Subject and Body
    of the message will be ignored.


    Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
  • ArchiverArchiver Posts: 46,084
    edited 2003-11-12 02:32
    thanks TIM, i will look into it, this has already been a one year project.




    At 01:33 PM 11/11/2003 -0500, you wrote:
    >http://www.phanderson.com
    >
    >He wrote a book on the Printer port...I've done some of the
    >projects...Most of his code is C So if you could get CS to send commands
    >to your exe...then you could skip the stamp and just use the 8 data lines
    >for your vest. They are TTL so you can't run the relays directly from
    >them...well...unless you get Solid State ones [noparse]:)[/noparse]
    >
    >I'd look to the Mod community....Valve won't work with you like the people
    >who modify games will.
    >
    >I'd think if you could get say a separate audio channel going with
    >different length tones for each spot you where hit you could have the
    >Stamp monitor that output and skip the LPT port and EXE all
    >together. Once again....the Mod community would be your best bet....
    >
    >As a side note....knowing where you got shot would be very cool!!!
    >
    >Good luck with your project....if you need help on the PC side I have the
    >examples that Anderson's book comes with [noparse]:)[/noparse]
    >Tim
    >
    > >>> gdii@c... 11/09/03 02:34PM >>>
    >I am familiar with C++ and i want to interface the computer with the BS2 via
    >parallel port. i know it is possible to write bits to the parallel port and
    >have the stamp interpret it as a high and low signal. the only thing though
    >is that i dont know how to access the parallel port. what instruction. also
    >is anyone familiar with the Game counter strike? the reason for this
    >adventure is that i want to create a rumble vest. if i could get the game to
    >output to the parallel port i can get the stamp to trigger a vibrating motor
    >as if i was in the game. i already emailed Valve the creators of the game
    >and they dont want to talk to me. any help would be appreciated. thanks
    >GMDII
    >
    >
    >To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    >from the same email address that you subscribed. Text in the Subject and
    >Body of the message will be ignored.
    >
    >
    >Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
    >
    >
    >
    >
    >To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    >from the same email address that you subscribed. Text in the Subject and
    >Body of the message will be ignored.
    >
    >
    >Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Sign In or Register to comment.