Shop OBEX P1 Docs P2 Docs Learn Events
Need a serial keyboard wedge — Parallax Forums

Need a serial keyboard wedge

Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
edited 2009-10-06 10:54 in General Discussion
Part of a project I'm working on requires that the Propeller has control of the PC.
I'm figuring that the easiest way would be to talk control with the programming plug.

Does anyone know of a free (not trial) serial keyboard wedge for XP which will allow me
to send control characters as well as ASCII?

Thanks in advance,
OBC

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?

Visit the: The Propeller Pages @ Warranty Void.

Comments

  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2009-10-02 03:16
    Do you just want this as an object? I have done PS/2 wedges on other micros before so I don't see a problem with porting it to the Prop. But I'm quite sure what you are asking for.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    *Peter*
  • John AbshierJohn Abshier Posts: 1,116
    edited 2009-10-02 03:53
  • QuattroRS4QuattroRS4 Posts: 916
    edited 2009-10-02 08:50
    OBC - Is it something like this that you are looking for ..

    http://forums.parallax.com/showthread.php?p=627711

    Regards,
    John

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    'Necessity is the mother of invention'

    'Those who can, do.Those who can’t, teach.'
    'Convince a man against his will, he's of the same opinion still.'

    ·
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2009-10-02 21:39
    @QuattroRS4,

    That does look like something toward what I'm looking for...

    @Peter,

    Hmm.. That would remove the requirement of my having to load something special on the PC
    to accept keystrokes. If you do get some code working toward that end, please let me know.

    @John,

    Close, but no.. I'd had already checked that one out, no Freeware as specified, only a trial.
    Thanks the for the attempt. [noparse]:)[/noparse]

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Visit the: The Propeller Pages @ Warranty Void.
  • Beau SchwabeBeau Schwabe Posts: 6,568
    edited 2009-10-02 22:18
    Oldbitcollector,

    <OLD DOS GUY ON>
    If you can live in MS-DOS, you might be able to make use of the CTTY command
    to redirect the standard Input/Output to a COM port instead of the keyboard consol.
    You also need to make use of the MODE command to 'set' the COM port parameters.


    If you need to 'play with Windows' then, the CTTY/MODE solution could create a
    file sort of in the background, that a Windows program could periodically monitor
    and act on accordingly.·
    </OLD DOS GUY OFF>

    ..Just a thought.












    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.
  • QuattroRS4QuattroRS4 Posts: 916
    edited 2009-10-03 00:42
    OBC,
    I am 3/4 through a .Net rewrite - I dedided not to 'upgrade' exixting using vs.net as this creates numerous interop DLL's - I am using native .net serialport routines ..I will add other key combos also and perhaps mouse button VK's - would you prefer .net 2.0 or 3.5 ? I will drop the source code here if you like so you can take it to wherever you need to go ..

    Regards,
    John

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    'Necessity is the mother of invention'

    'Those who can, do.Those who can’t, teach.'
    'Convince a man against his will, he's of the same opinion still.'

    ·
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2009-10-03 13:49
    John,

    I'm partial to net2.0 if I have to use .net stuff, but beggars can't be choosers. [noparse]:)[/noparse]


    Fair note to both Peter and John, this is going to be used as part of an interface for my
    Propeller 2009 Contest entry. Naturally, I'll credit the source of my solution.

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Visit the: The Propeller Pages @ Warranty Void.
  • QuattroRS4QuattroRS4 Posts: 916
    edited 2009-10-06 10:54
    OBC,
    I have emailed you the .NET 2.0 source code ... you can take it to where you need it to be ..
    I have dropped the compiled application here as an attachment. The associated ini file has to be in the application path ..
    the Form_visibility entry in the ini has to be a boolean i.e (True or False) when false the application just drops an Icon to the
    system tray - if this is clicked makes the form visible again.

    EDIT: Your mail server blocked the attachment .. I have now sent you a link via email.


    Regards,
    John Twomey

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    'Necessity is the mother of invention'

    'Those who can, do.Those who can’t, teach.'
    'Convince a man against his will, he's of the same opinion still.'



    Post Edited (QuattroRS4) : 10/6/2009 3:30:57 PM GMT
    442 x 61 - 7K
    341 x 145 - 7K
    633 x 358 - 27K
Sign In or Register to comment.