Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Equinox serial hubs to the serial backend #526

Closed
michaelrsweet opened this issue Jan 16, 2004 · 3 comments
Closed

Add support for Equinox serial hubs to the serial backend #526

michaelrsweet opened this issue Jan 16, 2004 · 3 comments
Labels
enhancement New feature or request
Milestone

Comments

@michaelrsweet
Copy link
Collaborator

Version: 1.2-feature
CUPS.org User: mattc.wselectric

The serial backend does not support Equinox serial hubs. I have attached a small patch for CUPS 1.1.19 that I used to add support for these devices to the serial backend.

For additional information on the product I'm referring to, see the following links:

http://www.equinox.com/
http://www.equinox.com/ESP_Serial_Hubs67.html

I have used this patch on CUPS 1.1.19 on RedHat Enterprise Linux 2.1, as well as CUPS 1.1.17 on RedHat 8.0.

Please note that due to an apparent bug in the product (which has been reported to the manufacturer), restoring the port settings after a job has been spooled can cause a print job to become corrupted under certain conditions. The workaround is to set the port to the proper settings outside of CUPS, or to disable restoring the port settings in the serial backend (this is the option I've used).

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

Reassigned to 1.2.

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

Fixed in Subversion repository.

@michaelrsweet
Copy link
Collaborator Author

"equinox.diff":

--- serial.orig Fri Jan 16 14:24:44 2004
+++ serial.c Fri Jan 16 14:26:16 2004
@@ -546,7 +546,21 @@
int i; /* Looping var /
int fd; /
File descriptor /
char device[255]; /
Device filename */

  • int p; /* Looping var */
  • for (i = 0; i < 64; i ++)
  • {
  • for (p = 0; p < 8; p ++)
  • {
  •  sprintf(device, "/dev/ttyQ%02de%d", i, p);
    
  •  if ((fd = open(device, O_WRONLY | O_NOCTTY | O_NDELAY)) >= 0)
    
  •  {
    
  •    close(fd);
    
  •    printf("serial serial:%s?baud=115200 \"Unknown\" \"ESP %d Port #%d\"\n",
    
  •           device, i, p + 1);
    
  •  }
    
  • }
  • }

for (i = 0; i < 100; i ++)
{

@michaelrsweet michaelrsweet added the enhancement New feature or request label Mar 17, 2016
@michaelrsweet michaelrsweet added this to the Stable milestone Mar 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant