Shop OBEX P1 Docs P2 Docs Learn Events
hello everybody, — Parallax Forums

hello everybody,

victrevictre Posts: 4
edited 2007-11-07 05:51 in BASIC Stamp
Am using the serial inkjet printer control board to drive the HP inkjet printer,
i need any of you to throw some light on the USB port provided, i want to know if there is way to communicate directly from the PC?
and moreover is the control board 27948 a stand alone chip?

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-11-05 18:28
    Hello,

    The FTDI chip on the board provides a USB connection via a Virtual COM Port. You must have the USB Drivers (available on our website) installed. Once that is done whenever the device is connected a serial port is assigned to it. From that point you can talk to it just like you would from a BASIC Stamp, using serial commands. You would send the same data as we outline in the book and documentation. How you send this data will depend on which application or programming language on the PC you are using. But most have a serial port system. I hope this helps. Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • victrevictre Posts: 4
    edited 2007-11-06 03:19
    hi chris,
    that is exactly where we are stuck,
    the com port doesn't seem to recognise the device.
    And what are the optoins for the application software?



    P.S: device driver ftdi vcp com is installed




    regards
    victre
    ·
  • victrevictre Posts: 4
    edited 2007-11-06 06:33
    chris,
    the device is being recognised now, and the commands we used to communicate via hyperterminal are as follows:
    · SEROUT Inkjet, Baud, [noparse][[/noparse]STX]·· ( start print command )
    · SEROUT Inkjet, Baud, [noparse][[/noparse]"PRINT UP TO SIXTY FOUR BYTES OF CHARACTERS"] ( command to print )
    · SEROUT Inkjet, Baud, [noparse][[/noparse]ETX] ( end print command ).
    and the printer is not responding yet.
    have any idea?
    ·
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-11-06 15:44
    HyperTerminal is not compatible with PBASIC and you’re attempting to send PBASIC commands to talk to the Inkjet unit. All of that code would be valid if you were typing it into the BASIC Stamp Editor to download to a BASIC Stamp connected to the device. But you’re not. So you will need to think of it like this…On the BASIC Stamp that code sends the following:

    [noparse][[/noparse]STX] which is ASCII $02
    Hello!  This is literal text you want to print
    [noparse][[/noparse]ETX] which is ASCII $03

    So serially you would send the following bytes…

    $02 $48 $65 $6C $6C $6F $03

    This may or may not be easy in HyperTerminal since the $02 and $03 are control codes.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • victrevictre Posts: 4
    edited 2007-11-07 05:51
    Hi Chris,
    Your information did help us get the device running,
    thanks for your expertise.
    regards
    victre
Sign In or Register to comment.