PS/2 barcode reader to RS232 port - need help


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Hi Robert,
    Easier and cheaper to get an RS232 Barcode reader, run about 125. US, otherwise you are in the same boat as everyone trying to use a PS/2 keyboard with PIC. Probably doable, How much is your time worth? Check out the Obsolete / Used computer stores especially those who have used POS terminals.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  2. #2
    Join Date
    May 2007
    Location
    Republic Serbia
    Posts
    105


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Joe S. View Post
    Hi Robert,
    Easier and cheaper to get an RS232 Barcode reader, run about 125. US, otherwise you are in the same boat as everyone trying to use a PS/2 keyboard with PIC. Probably doable, How much is your time worth? Check out the Obsolete / Used computer stores especially those who have used POS terminals.
    Thank's ,
    I have one hardware with 16F877 and TIBBO DS1000-00 module as final product and now I must implement barcode reader - HUH.......
    Here in Serbia most user use PS/2 barcode readers and none want back to RS232...

    I must find some solution....
    Thank's anyway my dear friend for answare
    Robert

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Joe S. View Post
    ...otherwise you are in the same boat as everyone trying to use a PS/2 keyboard with PIC.
    Using PS2 with PIC it's fairly easy, max 10-15 lines of code, a decent Lookup table and away you go. The problem arise when you want emulate a PS/2 with a PIC on a PC. That's easy to send Keystroke... Emulate and perform the PC Boot sequence IS the 'tricky' part.

    I have done enough to hate it now

    Forget SHiftin/Shiftout... must role your own 'SPI' routines. A logic analyzer comes pretty handy in this specific case. Pickit... yeah maybe, even if a bit limited in acquisition time. PoScope? Yeah, better.
    Last edited by mister_e; - 26th May 2008 at 19:30.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  4. #4
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mister_e View Post
    Using PS2 with PIC it's fairly easy, max 10-15 lines of code, a decent Lookup table and away you go. The problem arise when you want emulate a PS/2 with a PIC on a PC. That's easy to send Keystroke... Emulate and perform the PC Boot sequence IS the 'tricky' part.
    So it's easy to use PS/2 periferals hooked to pic but hard to hook pc to PIC through PS/2 port?
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  5. #5
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Not that REALLY HARD... but way more tricky. At very least, one of the tricky point is that your PIC MUST talk, acknowledge the PC command... which can comes from the Boot and 'till the Shut-down. If you don't do that, your project may never work, the PC may freeze/Crash... and then, this is where the fun begin!

    High likely, you need interrupts, ASM are more than welcome while Darrel's instant may work as well but maybe will need a slighly higher frequency crystal. Those i've done 'till now, use the internal 4MHz osc and ASM ints. Seems to works fault-free 'till now.

    This is a bi-directional port, so you should play with TRIS register instead of simply send a pin high/low... that's the easy part. Forget Shiftout for reliability and timing.

    A logic analyzer + a home-brew PS2 sniffer & Logger are highly recommended.

    There's a load of information/tips about the PS2 protocol on this forum... but no real complete solution.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. Barcode reader with PIC16f877A ?
    By iugmoh in forum General
    Replies: 18
    Last Post: - 26th December 2008, 05:11
  2. port config.
    By tamertokgoz in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 25th July 2008, 12:25
  3. Barcode reader Problem ?
    By iugmoh in forum General
    Replies: 5
    Last Post: - 18th February 2008, 20:25
  4. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 17:27
  5. Proximity Card Reader
    By Sphere in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 6th November 2005, 14:43

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts