BeBits Information Developer Central Submit Application Your Account Web Links Contact Us
BeBits
Please support our sponsors!
parallelport driver
version 0.1
contact publisher
home page
screenshots
version history
other reviews
send updates for this application
talkback
0 comments
 Published by Pieter Panman
   Click here for more information about this publisher...
 Date Posted:   March 23rd, 2001
 Last Updated:   March 23rd, 2001
 License: Freeware
 Downloads: 1,305 total; 1 recently
 Page Views: 9,944 total
 User Rating: awaiting 10 votes Give this application a rating
 Jump to the Downloads section
About parallelport driver:
First version of my parallel port driver. Only tested with my computer, currently allows you to set the 8 output bits and read the status bits. Email me suggestions please ;)


This is probably most interesting for developers, or people who like to fiddle with their parallel port!

Someone at Be, inc. told me that there is no supported parallel port driver, so I just wrote a bare bones driver...
Simply drop the parallelport file into /boot/home/config/add-ons/kernel/drivers/bin. Then make a link of that file in /boot/home/config/add-ons/kernel/drivers/dev/misc.

By writing 1 byte to /dev/misc/parallelport you can modify the 8 data bits, and by reading 1 byte you can read info about the inputs.

I'll put more info up later, I just wanted to share it with you.

And this is my first kernel level driver, so it might crash your whole system, although it has not done anything on my system yet.

Enjoy!
==============================================
Here is a sample snippet on how to access it:

int fd;
status_t err;
uchar c;

fd = open("/dev/misc/parallelport", O_RDWR);
if (fd < 0) {
printf("Error opening devicen");
return 1;
}

c = 255;
err = write(fd, &c, 1); // Set all 8 databits to high
if (err < 0)
printf("Error setting 8 bits to onn");

while (true) { // Spit out the byte that contains info about the input bits
snooze(100000);
c++;
err = read(fd, &c, 1);
printf("bits %dn", c);
}
close(fd);
Latest Version
   
Details about this version:
First version, only write 1 byte to write to the 8 output bits and read 1 byte to check out the status bits.

More to come, please email me with suggestions!

WARNING: I haven't had time to work on it, but I've been informed that my driver is full of bugs. (Thanks Marco)
1) I don't release the memory I allocate
2) I don't use the number of bytes requested
3) I don't release the ISA module
4) makefile sucks :)
So be careful when using this, use it mostly as an inspiration.

 
Any Processor - requires R5   (15 KB) 262 downloads
 
 
Dev LinkLink reliability rating  [rating: 10]    Download this app  Report bad link surf.to
 
Add Additional Location
  Source Included
 
Related Links:
Post your own comment to the Talkback for this application!
Report a problem with the listing for this application!
Like this app? Have questions or comments?
Why not tell the author? Use the "e-mail publisher" link to get in touch with the publisher; they usually love getting feedback.
 
BeGroovy
  Recent Downloads  -  # 748
Total Downloads  -  # 1,631
Total Views  -  # 1,360
User Ratings  -  N/A
  Input Device Drivers
Misc. Development
1.  QEMU - 9.62
2.  ScummVM - 9.50
3.  cpu_fix - 9.42
4.  Jukebox - 9.36
5.  Haiku AGP busm... - 9.35
6.  vim6 - 9.31
7.  Transmission - 9.27
8.  Beezer - 9.25
9.  BeeF - 9.25
10.  HandBrake - 9.24
1.  Ati Radeon Grap... - 389
2.  BeOS 5 Personal... - 252
3.  Realtek RTL8139... - 216
4.  ATI Rage 128 Pr... - 165
5.  USB Serial driver - 130
6.  DjVu Viewer - 107
7.  Ensoniq AudioPC... - 107
8.  Firefox - 105
9.  Broadcom 440x 10... - 97
10.  S3 Trio 64 v2 DX... - 88
You are not logged in.
 Login or create an account...
Hosted by NetConnect

 
Unless otherwise noted, everything is copyright © 1999-2002 Fifth Ace Productions, LLC. All Rights Reserved.
For more legal trivia, take a gander at our
Legal Stuff page and our Privacy Statement.
Fifth Ace Productions