Coding help Needed. Controll the printer totally. Reward!

Discussion in 'Programming' started by jeremys2, Oct 23, 2009.

  1. #1
    Hi there.

    I know that what I'm asking might sound a bit wierd and odd but this is what I'd like to ask from you all.

    I need to have a low-level controll over my USB ink-printer. There are 2 motors inside, one for the head and other for the paperfeed. I need a Win32 based (.dll/ driver hack?) low-level code example on how to controll those motors as +- tick (servomotrs I suppose).

    I' willing to pay actual money I some one could show me how/produce a working solution that I need.

    Thank you.
     
    jeremys2, Oct 23, 2009 IP
  2. brian65

    brian65 Active Member

    Messages:
    1,172
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    88
    #2
    Sorry I can't be more help but what you need might not be Win32 based. You might need to rewrite the firmware inside the printer itself as low-level motor control functions might not be available to the PC. This could require microprocessor programming e.g. of Renesas chips.
     
    brian65, Oct 23, 2009 IP
  3. jeremys2

    jeremys2 Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Well, I'm stuck with Win32 platform. I was also starting to think that this might not be possible at all without some very low-level driver hacking / hw modifications..

    Above solution is not possbile. The reason is to have cheap ink-jet printer, strip the motors from it and controll them with win32 application as I saw fit.
    make 'em operate e lego-crane e.g. :)))
     
    jeremys2, Oct 25, 2009 IP
  4. brian65

    brian65 Active Member

    Messages:
    1,172
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    88
    #4
    Almost sounds like you could skip the printer and go with Lego Mindstorms :)
     
    brian65, Oct 26, 2009 IP
  5. organicCyborg

    organicCyborg Peon

    Messages:
    330
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Agreed. :)

    Seriously though, I don't think you'll be able to do this without modifying the firmware on the printer. Or, at the least, going with your plan of modifying drivers.

    If you can ditch Win32 you MAY be able to find an open source driver for your printer and hack it up to do what you want.
     
    organicCyborg, Oct 26, 2009 IP
  6. jeremys2

    jeremys2 Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    well... hacking drivers could be with linux world..
    Lego mindstrom would be great or something similar..

    thanx all of you for the trbouble.
    :)
     
    jeremys2, Oct 27, 2009 IP
  7. it career

    it career Notable Member

    Messages:
    3,562
    Likes Received:
    155
    Best Answers:
    0
    Trophy Points:
    270
    #7
    That code sits inside the printer, you cannot do it using win32 driver apis .
     
    it career, Oct 28, 2009 IP
  8. NeoCambell

    NeoCambell Peon

    Messages:
    456
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #8
    You will definitely not be able to do this. Printer are made to accept command sets such as ESC/POS. These commands are exclusively for printing and I haven't seen any for controlling motors.

    However, if you still want this, I can design/code and provide you a circuit board with a microcontroller where you'll have to plug the wires of the two motors to my circuit with the USB cable direct to my board. Please register at expertcore.org so we can discuss if you like it. (You need to tell me the models of the motors. If I can't find them here, you'll have to send them to me)

    With this method, you'll only be able to control the motors 100% in both directions, number of turns, etc... However with this, printing functions will not work hereafter until you plug cables back as they were before. If you still want other functions to work and you have a free USB port, I can change the design for this.
     
    NeoCambell, Oct 28, 2009 IP
  9. xanda

    xanda Active Member

    Messages:
    55
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    73
    #9
    Hmm thats sound like crazy idea..
     
    xanda, Nov 28, 2009 IP