#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2002
    Location
    hu?
    Posts
    23
    Rep Power
    0

    Question parallel port programming???


    hi all... i have this assignment and i have to make a file transfer application in C, using parallel and/or serial ports. i have searched the web and i didn't find any easy-to-understand-newbie-focused resource, so if you have some links i would apreciate it.
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2003
    Location
    Italy
    Posts
    2
    Rep Power
    0

    Question re:parallel port programming???


    Which environment?
    Dos or Windows?

    Ciao
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2002
    Location
    hu?
    Posts
    23
    Rep Power
    0
    hum... linux, but i guess it should be able to tranfer from linux to windows and windows to linux...
  6. #4
  7. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,594
    Rep Power
    4207
    Have you tried opening /dev/lp0 (for linux) or LPT1: for (windows) as a file and reading/writing to them?
  8. #5
  9. Contributing User
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jan 2003
    Location
    USA
    Posts
    7,091
    Rep Power
    2222
    I had downloaded a C program for this, pport.zip, some time ago, but I forget from where. So I did a Google on it and found a gaggle of sites -- and they are not all the same program.

    I had hestitated replying at first because my copy had a lot of assembly in it. But the first hit I looked at did it in C.

    So I suggest that you Google on "pport.zip" or just on "pport" and pick the most suitable of the hits.
  10. #6
  11. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2002
    Location
    hu?
    Posts
    23
    Rep Power
    0
    thanks for your help... i'll try your suggestions...
  12. #7
  13. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2003
    Location
    Italy
    Posts
    2
    Rep Power
    0
    Ok, for Linux I got nothing. But I found a really nice
    Borland Builder/Delphi component: TComThread. Look
    for it on the net. Probably the author did the same for
    some linux compiler.
  14. #8
  15. Contributing User
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jan 2003
    Location
    USA
    Posts
    7,091
    Rep Power
    2222
    I Google'd on '"parallel port" Linux' and got :

    External Parallel Port devices and Linux
    http://www.torque.net/linux-pp.html

    parapin -- a Parallel Port Pin Programming Library for Linux
    http://www.circlemud.org/~jelson/software/parapin/

    And over 50 more pages of hits.

    The first ones seem to be talking more about writing drivers for devices, which I guess is what you are wanting to do.

IMN logo majestic logo threadwatch logo seochat tools logo