PS/2 barcode reader to RS232 port - need help


Closed Thread
Results 1 to 11 of 11
  1. #1
    Join Date
    May 2007
    Location
    Republic Serbia
    Posts
    105

    Question PS/2 barcode reader to RS232 port - need help

    Did someone use or know how to connect PS/2 barcode reader to rs232 port ?
    I need to read data from barcode reader on some my hardware where I have only rs232 port.

    Any suggest are welcome.

    Best regards Robert

  2. #2
    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.

  3. #3
    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

  4. #4
    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.

  5. #5
    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.

  6. #6
    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.

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


    Did you find this post helpful? Yes | No

    Default

    I simple need to make some type PS/2 to RS232 converter nothig else.
    When I scan barcode to I can read on PC via RS232 - pass tru type.
    Any help please ???
    Robert

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


    Did you find this post helpful? Yes | No

    Default

    Yikes,
    well, do you have a part# for your Reader?

    In the ol' days we had PS2 to Serial converter... but the devices (mouse) was design to support it, so basically it was just a matter to cross connect some pins here and there. Sure enough some local overstock supplier may still have some in stock for few bucks.

    Something like that

    Last edited by mister_e; - 27th May 2008 at 06:18.
    Steve

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

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


    Did you find this post helpful? Yes | No

    Cool

    Quote Originally Posted by mister_e View Post
    Yikes,
    well, do you have a part# for your Reader?

    In the ol' days we had PS2 to Serial converter... but the devices (mouse) was design to support it, so basically it was just a matter to cross connect some pins here and there. Sure enough some local overstock supplier may still have some in stock for few bucks.

    Something like that

    I was probe that cross ower cable but not work with barcode reader!
    huh......

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


    Did you find this post helpful? Yes | No

    Default

    Can't help from Canada without any model#
    Steve

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

  11. #11
    Join Date
    Mar 2006
    Posts
    41


    Did you find this post helpful? Yes | No

    Default PS2 to RS232

    Quote Originally Posted by phoenix_1 View Post
    I was probe that cross ower cable but not work with barcode reader!
    huh......
    Use this

    http://www.electronic-engineering.ch...#faq_kbd_input


    the revised version is non_inverted you can directly use it without translator ie. max232 otherwise use inverted version for direct pc connection!!!
    Attached Files Attached Files
    Last edited by leisryan; - 28th May 2008 at 05:40. Reason: attachment failed

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 : 1

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