Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 10/11/2019, à 17:31

MrConick

[résolu] comment installer une imprimante thermique 80mm ?

Bonjour à tous,
J'ai besoin d'aide pour installer une imprimante SNBT- BTP R580II. Il s'agit d'une imprimante thermique pour ticket de caisse dont j'ai réussi à trouver le ppd et un fichier "rastertoR580II" sur le site du fabriquant.
J'ai installé une Lubuntu 18.04.3LTS sur un écran tactile d'une ancienne caisse équipé en ATOM et ca tourne plutôt bien, j'ai même réussi à calibrer l'écran tactile en galérant un peu ;-)!
Mais pour l'imprimante, rien à faire.
La commande LSUSB me montrer bien qu'elle est là:

Bus 002 Device 002: ID 154f:154f SNBC CO., Ltd

mais pas moyen via l'outil "configure printers" ou directement dans l'interface de CUPS 2.2.7 d'avoir la possibilité d'opter pour une installation d'imprimante sur port USB.
Il n'y a que ces choix possibles:

CUPS-BRF (Virtual Braille BRF Printer)
Serial Port #1
Serial Port #2
Serial Port #3
Serial Port #4
Serial Port #5
LPT #1
HP Printer (HPLIP)
HP Fax (HPLIP)

et aucun ne fonctionne (jai tenté LPT1 ou serial, mais pas moyen d'imprimer une page de test)
Du coup je ne sais plus trop comment continuer sachant qu'elle ne se branche que en USB.
Si l'un d'entre vous à une idée pour m'aider...
Merci

Dernière modification par MrConick (Le 11/11/2019, à 20:12)

Hors ligne

#2 Le 10/11/2019, à 21:36

Nuliel

Re : [résolu] comment installer une imprimante thermique 80mm ?

Peux tu avec l'imprimante débranchée aller dans imprimantes -> ajouter, puis brancher l'imprimante en usb (et allumée), là si aucune imprimante n'apparaît après 2 min, tu prends le pilote generique (cups), tu fais suivant et tu choisis ton fichier ppd, et tu testes.

Hors ligne

#3 Le 10/11/2019, à 21:45

xubu1957

Re : [résolu] comment installer une imprimante thermique 80mm ?

Bonjour,

@Naziel

J'ai trouvé cette page > USB Device Drivers Missing, si tu vois des infos complémentaires ?


Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Résolu] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

Hors ligne

#4 Le 10/11/2019, à 21:59

Nuliel

Re : [résolu] comment installer une imprimante thermique 80mm ?

Alors j'ai vu qu'il y a un SDK pour linux, que j'ai pas trouvé et dont j'ai pas trouvé l'utilité non plus sad

Théoriquement le fichier ppd suffit

Dernière modification par Nuliel (Le 10/11/2019, à 22:00)

Hors ligne

#5 Le 11/11/2019, à 09:20

MrConick

Re : [résolu] comment installer une imprimante thermique 80mm ?

Bonjour
et merci de vous interesser à mon problème!
@Naziel: La reconnaissance USB ne se fait pas. J'ai donc installé en génerique mais pas d'impression de page test. Dans les fichiers téléchargés, il y avait outre le fichier ppd un executable "rastertoR580II" à deposer dans /usr/lib/cups/filter  ce que j'ai fait. Quand je vérifie via l'interface de CUPS, mon imprimante est bien installée, mais le status marque justement "idle- "file "/usr/lib/cups/filter/rasterto580II" has insecure permissions (0100775uid=1000/gid=1000)" 
Une histoire de niveau de droits ? Une suggestion par rapport à cela ? faut il laisser ce fichier, l'enlever, en modifier les droits... ?

@xubu1957  j'ai lu avec attention la page que tu as mis en lien. A priori, je pense plutôt que c'est du côté de mon ordi que ca se passe plus que du côté de l'imprimante mais je garde ca de côté...

Hors ligne

#6 Le 11/11/2019, à 09:45

xubu1957

Re : [résolu] comment installer une imprimante thermique 80mm ?

Bonjour,

Montre, en te servant du Retour utilisable de commande :

lsusb -v 

pour comparer avec > github.com/pyusb/pyusb/issues/154


Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Résolu] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

Hors ligne

#7 Le 11/11/2019, à 09:57

Nuliel

Re : [résolu] comment installer une imprimante thermique 80mm ?

Tu peux donner

ll /usr/lib/cups/filter/

oui les droits sont sûrement pas adaptés. Le retour de commande me permettra de voir ce qui pose problème pour savoir quoi changer.

Dernière modification par Nuliel (Le 11/11/2019, à 09:58)

Hors ligne

#8 Le 11/11/2019, à 10:02

MrConick

Re : [résolu] comment installer une imprimante thermique 80mm ?

Voilà le retour de la commande:

littlnuage@littlnuage-shop:~$ lsusb -v

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Couldn't open device, some information will be missing
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            9 Hub
  bDeviceSubClass         0 Unused
  bDeviceProtocol         0 Full speed (or root) hub
  bMaxPacketSize0        64
  idVendor           0x1d6b Linux Foundation
  idProduct          0x0002 2.0 root hub
  bcdDevice            4.15
  iManufacturer           3 
  iProduct                2 
  iSerial                 1 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           25
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 Full speed (or root) hub
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0004  1x 4 bytes
        bInterval              12

Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Couldn't open device, some information will be missing
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            9 Hub
  bDeviceSubClass         0 Unused
  bDeviceProtocol         0 Full speed (or root) hub
  bMaxPacketSize0        64
  idVendor           0x1d6b Linux Foundation
  idProduct          0x0001 1.1 root hub
  bcdDevice            4.15
  iManufacturer           3 
  iProduct                2 
  iSerial                 1 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           25
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 Full speed (or root) hub
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0002  1x 2 bytes
        bInterval             255

Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Couldn't open device, some information will be missing
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            9 Hub
  bDeviceSubClass         0 Unused
  bDeviceProtocol         0 Full speed (or root) hub
  bMaxPacketSize0        64
  idVendor           0x1d6b Linux Foundation
  idProduct          0x0001 1.1 root hub
  bcdDevice            4.15
  iManufacturer           3 
  iProduct                2 
  iSerial                 1 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           25
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 Full speed (or root) hub
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0002  1x 2 bytes
        bInterval             255

Bus 003 Device 003: ID 04d9:1603 Holtek Semiconductor, Inc. Keyboard
Couldn't open device, some information will be missing
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         8
  idVendor           0x04d9 Holtek Semiconductor, Inc.
  idProduct          0x1603 Keyboard
  bcdDevice            3.10
  iManufacturer           1 
  iProduct                2 
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           59
    bNumInterfaces          2
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      1 Boot Interface Subclass
      bInterfaceProtocol      1 Keyboard
      iInterface              0 
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.10
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      62
         Report Descriptors: 
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval              10
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0 No Subclass
      bInterfaceProtocol      0 None
      iInterface              0 
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.10
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength     101
         Report Descriptors: 
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval              10

Bus 003 Device 002: ID 154f:154f SNBC CO., Ltd 
Couldn't open device, some information will be missing
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass          255 Vendor Specific Class
  bDeviceSubClass       255 Vendor Specific Subclass
  bDeviceProtocol       255 Vendor Specific Protocol
  bMaxPacketSize0        64
  idVendor           0x154f SNBC CO., Ltd
  idProduct          0x154f 
  bcdDevice            1.60
  iManufacturer           0 
  iProduct                0 
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           39
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xc0
      Self Powered
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x85  EP 5 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               1

Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Couldn't open device, some information will be missing
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            9 Hub
  bDeviceSubClass         0 Unused
  bDeviceProtocol         0 Full speed (or root) hub
  bMaxPacketSize0        64
  idVendor           0x1d6b Linux Foundation
  idProduct          0x0001 1.1 root hub
  bcdDevice            4.15
  iManufacturer           3 
  iProduct                2 
  iSerial                 1 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           25
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 Full speed (or root) hub
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0002  1x 2 bytes
        bInterval             255

Bus 002 Device 002: ID 046d:c526 Logitech, Inc. Nano Receiver
Couldn't open device, some information will be missing
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        32
  idVendor           0x046d Logitech, Inc.
  idProduct          0xc526 Nano Receiver
  bcdDevice            5.00
  iManufacturer           1 
  iProduct                2 
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           59
    bNumInterfaces          2
    bConfigurationValue     1
    iConfiguration          4 
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower               98mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      1 Boot Interface Subclass
      bInterfaceProtocol      2 Mouse
      iInterface              0 
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.11
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      67
         Report Descriptors: 
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0 No Subclass
      bInterfaceProtocol      0 None
      iInterface              0 
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.11
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      79
         Report Descriptors: 
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0014  1x 20 bytes
        bInterval               1

Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Couldn't open device, some information will be missing
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            9 Hub
  bDeviceSubClass         0 Unused
  bDeviceProtocol         0 Full speed (or root) hub
  bMaxPacketSize0        64
  idVendor           0x1d6b Linux Foundation
  idProduct          0x0001 1.1 root hub
  bcdDevice            4.15
  iManufacturer           3 
  iProduct                2 
  iSerial                 1 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           25
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 Full speed (or root) hub
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0002  1x 2 bytes
        bInterval             255

Depuis j'ai modifié les droits du fameux fichier "raster" en root et reinstallé. Du coup je n'ai plus le message d'erreur, l'imprimante apparait comme installée dans cups mais impossible d'imprimer une page test, il ne se passe rien. (est-ce du au format? c'est une imprimante 80mm pour ticket de caisses, mais je présume que ca n'empeche pas d'imprimer une page test...)

Hors ligne

#9 Le 11/11/2019, à 10:04

MrConick

Re : [résolu] comment installer une imprimante thermique 80mm ?

@Naziel

littlnuage@littlnuage-shop:~$ ll /usr/lib/cups/filter/
total 1952
drwxr-xr-x  2 root root   4096 nov.  11 09:43 ./
drwxr-xr-x 10 root root   4096 nov.   7 18:18 ../
-rwxr-xr-x  1 root root  58844 mai    9  2019 bannertopdf*
-rwxr-xr-x  1 root root   2367 mai    9  2019 brftoembosser*
-rwxr-xr-x  1 root root   3309 mai    9  2019 brftopagedbrf*
-rwxr-xr-x  1 root root  38316 févr.  9  2018 c2esp*
-rwxr-xr-x  1 root root  25968 févr.  9  2018 c2espC*
lrwxrwxrwx  1 root root     11 mai    9  2019 cgmtopdf -> vectortopdf*
lrwxrwxrwx  1 root root     11 mai    9  2019 cmxtopdf -> vectortopdf*
-rwxr-xr-x  1 root root  17776 févr.  9  2018 command2esp*
-rwxr-xr-x  1 root root  13724 févr. 25  2018 command2foo2lava-pjl*
-rwxr-xr-x  1 root root   9576 févr. 10  2018 commandtocanon*
-rwxr-xr-x  1 root root   9576 févr. 10  2018 commandtoepson*
-rwxr-xr-x  1 root root   9576 mai    9  2019 commandtoescpx*
-rwxr-xr-x  1 root root   5480 mai    9  2019 commandtopclx*
-rwxr-xr-x  1 root root  13672 août  16 09:12 commandtops*
lrwxrwxrwx  1 root root     11 mai    9  2019 emftopdf -> vectortopdf*
-rwxr-xr-x  1 root root 129508 mai    9  2019 foomatic-rip*
-rwxr-xr-x  1 root root    555 mai    9  2019 gstopdf*
-rwxr-xr-x  1 root root    558 mai    9  2019 gstopxl*
-rwxr-xr-x  1 root root  21864 mai    9  2019 gstoraster*
-rwxr-xr-x  1 root root   9576 août  16 09:12 gziptoany*
-rwxr-xr-x  1 root root 393556 mars   7  2018 hpcups*
-rwxr-xr-x  1 root root  30064 mars   7  2018 hpcupsfax*
-rwxr-xr-x  1 root root  21864 mars   7  2018 hpps*
-rwxr-xr-x  1 root root   3733 mai    9  2019 imagetobrf*
-rwxr-xr-x  1 root root  38292 mai    9  2019 imagetopdf*
-rwxr-xr-x  1 root root    988 mai    9  2019 imagetops*
-rwxr-xr-x  1 root root  56036 mai    9  2019 imagetoraster*
lrwxrwxrwx  1 root root     10 mai    9  2019 imagetoubrl -> imagetobrf*
-rwxr-xr-x  1 root root   6652 mai    9  2019 imageubrltoindexv3*
-rwxr-xr-x  1 root root   6720 mai    9  2019 imageubrltoindexv4*
-rwxr-xr-x  1 root root  13672 mai    9  2019 mupdftoraster*
-rwxr-xr-x  1 root root   1842 mai    9  2019 musicxmltobrf*
-rwxr-xr-x  1 root root 161248 mai    9  2019 pdftopdf*
-rwxr-xr-x  1 root root  38488 mai    9  2019 pdftops*
-rwxr-xr-x  1 root root  38368 mai    9  2019 pdftoraster*
-rwxr-xr-x  1 root root  50568 août  16 09:12 pstops*
-rwxr-xr-x  1 root root  17848 nov.   6  2016 pstoqpdl*
-rwxr-xr-x  1 root root   1077 mars   7  2018 pstotiff*
-rwxr-xr-x  1 root root  38308 mars   2  2018 rastertobrlaser*
lrwxrwxrwx  1 root root     13 août  16 09:12 rastertodymo -> rastertolabel*
-rwxr-xr-x  1 root root  21864 août  16 09:12 rastertoepson*
-rwxr-xr-x  1 root root  34152 mai    9  2019 rastertoescpx*
-rwxr-xr-x  1 root root  42400 févr. 10  2018 rastertogutenprint.5.2*
-rwxr-xr-x  1 root root  17768 août  16 09:12 rastertohp*
-rwxr-xr-x  1 root root  21864 août  16 09:12 rastertolabel*
-rwxr-xr-x  1 root root    563 mai    9  2019 rastertopclm*
-rwxr-xr-x  1 root root  38248 mai    9  2019 rastertopclx*
-rwxr-xr-x  1 root root  87464 mai    9  2019 rastertopdf*
-rwxr-xr-x  1 root root  13672 mai    9  2019 rastertops*
-rwxr-xr-x  1 root root  34160 févr. 10  2018 rastertoptch*
-rwxr-xr-x  1 root root  13672 août  16 09:12 rastertopwg*
-rwxr-xr-x  1 root root  67016 nov.   6  2016 rastertoqpdl*
-rwxr-xr-x  1 root root  40791 oct.  13  2011 rastertoR580II*
-rwxr-xr-x  1 root root  15964 févr. 10  2018 rastertosag-gdi*
lrwxrwxrwx  1 root root     11 mai    9  2019 svgtopdf -> vectortopdf*
-rwxr-xr-x  1 root root  26044 mai    9  2019 sys5ippprinter*
-rwxr-xr-x  1 root root   3671 mai    9  2019 textbrftoindexv3*
lrwxrwxrwx  1 root root     16 mai    9  2019 textbrftoindexv4 -> textbrftoindexv3*
-rwxr-xr-x  1 root root   6092 mai    9  2019 texttobrf*
-rwxr-xr-x  1 root root  52336 mai    9  2019 texttopdf*
-rwxr-xr-x  1 root root    982 mai    9  2019 texttops*
-rwxr-xr-x  1 root root  21864 mai    9  2019 texttotext*
-rwxr-xr-x  1 root root   2557 mai    9  2019 vectortobrf*
-rwxr-xr-x  1 root root   2177 mai    9  2019 vectortopdf*
lrwxrwxrwx  1 root root     11 mai    9  2019 vectortoubrl -> vectortobrf*
lrwxrwxrwx  1 root root     11 mai    9  2019 wmftopdf -> vectortopdf*
lrwxrwxrwx  1 root root     11 mai    9  2019 xfigtopdf -> vectortopdf*

J'ai déjà modifié les droits et reinstallé tt.ca semble être correctement installé, mais pas d'impression test...
pour être plus précis: je clique sur impression test, et j'obtiens le statut "completed" qqs secondes après mais sans impression...

Dernière modification par MrConick (Le 11/11/2019, à 10:12)

Hors ligne

#10 Le 11/11/2019, à 10:10

Nuliel

Re : [résolu] comment installer une imprimante thermique 80mm ?

Bizarre, l'erreur que tu indiques ne correspond pas à ce qui se trouve dans le retour.
Tu peux passer

sudo chown root:root /usr/lib/cups/filter/rastertoR580II
sudo chmod 755 /usr/lib/cups/filter/rastertoR580II

et dire si l'erreur que tu indiques apparaît encore.

Edit: Ajout d'une commande

Dernière modification par Nuliel (Le 11/11/2019, à 10:13)

Hors ligne

#11 Le 11/11/2019, à 10:15

MrConick

Re : [résolu] comment installer une imprimante thermique 80mm ?

L'erreur ne correspond plus au retour car j'ai rectifié le pb entre temps. J'ai basculé les droits en root sur ce fichier, réinstallé l'imprimante qui du coup apparait comme installée dans cups- statut idle Mais je n'obtiens pas de résultat en page test. Je clique sur imprimer page, la demande est visiblement traitée, le statut passe à completed, mais rien n'a bougé côté impression...

Hors ligne

#12 Le 11/11/2019, à 10:18

Nuliel

Re : [résolu] comment installer une imprimante thermique 80mm ?

La commande

echo "Hello" >> /dev/usb/lp1

imprime quelque chose?

Hors ligne

#13 Le 11/11/2019, à 10:20

MrConick

Re : [résolu] comment installer une imprimante thermique 80mm ?

littlnuage@littlnuage-shop:~$ echo "Hello" >> /dev/usb/lp1
bash: /dev/usb/lp1: Permission denied

Hors ligne

#14 Le 11/11/2019, à 10:37

Nuliel

Re : [résolu] comment installer une imprimante thermique 80mm ?

Alors d'après le lien de xubu, il n'y aurait qu'un mode supporté par l'imprimante.

"But for the Printer mode(that's the only mode that can be used in Linux system), you need to disable driver signature enforcement first. See the topic in the help guide" (although the link seemed to apply to Windows not Linux)

Donc il doit y avoir cela dans CUPS (je n'ai pas vu de mode dans Imprimantes ni de désactivation de signature de pilotes par rapport à mon imprimante basique)

Sinon le lien de xubu indique un deuxième fichier à copier, mais c'est bizarre parce qu'en général le fichier ppd suffit. Par ailleurs je sais pas trop où le récupérer (faut sûrement aller le chercher dans le pilote windows j'imagine)

Dernière modification par Nuliel (Le 11/11/2019, à 10:39)

Hors ligne

#15 Le 11/11/2019, à 11:03

FrancisFDZ

Re : [résolu] comment installer une imprimante thermique 80mm ?

Bonjout,
j'ai trouvé un site qui prétend fournir les drivers, notamment pour

hinklevillehandmade a écrit :

Systeme d’exploitation: MacOS. iOS. Windows XP/7/10. Android

malheureusement le lien semble mort

Dernière modification par FrancisFDZ (Le 11/11/2019, à 11:03)


-- On peut avoir des raisons de se plaindre et n'avoir pas raison de se plaindre --
[Victor Hugo]

Hors ligne

#16 Le 11/11/2019, à 11:04

xubu1957

Re : [résolu] comment installer une imprimante thermique 80mm ?

@Naziel

C'est quoi le pilote Printer Utility en bas de la page (SPECIFICATIONS) > crs-usa.com/products/printers/snbc-btp-r580ii-front-exit-thermal-receipt-printer-series-(usbserial ?

Dernière modification par xubu1957 (Le 11/11/2019, à 11:06)


Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Résolu] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

Hors ligne

#17 Le 11/11/2019, à 11:06

MrConick

Re : [résolu] comment installer une imprimante thermique 80mm ?

Le deuxieme fichier j'en ai parlé plus haut, il était fourni par le fabriquant, c'est un fichier de type "rasterto.." a déposer dans un répertoire précis. Ca, je l'ai fait, plus de soucis de ce côté une fois les histoires de droits réglées. Reste donc cette histoire de "windrivermode" a explorer. Je ferais ca ce soir, la je dois arrêter sad
J'ai également suivi cette piste sans succès changer l'url
bizarrement, pour l'instant tout semble installé, mais quand je clique sur le printest, cela me marque que la tâche est executée, que l'imprimante soit allumée ou non !  Je me demande donc quand même si la solution n'est pas une histoire de localisation...L'url de localisation actuelle étant "cups-brf:/" Je ne suis pas sûr que cela mène bien à l'usb...

Hors ligne

#18 Le 11/11/2019, à 11:29

Nuliel

Re : [résolu] comment installer une imprimante thermique 80mm ?

@xubu: j'imagine que c'est un logiciel pour imprimer, mais pas très utile.
Oui, en fait l'ajout du deuxième fichier permet à mon avis de le voir via l'interface graphique en usb (vu qu'on le met dans un dossier model)

Hors ligne

#19 Le 11/11/2019, à 20:08

MrConick

Re : [résolu] comment installer une imprimante thermique 80mm ?

Hello!
Me voici de retour avec un pb résolu!
Grâce à vos interventions combinées je m'en suis sorti. Il fallait bel et bien basculer l'imprimante dans un autre mode "windriver". Je ne l'ai pas fait de manière logicielle (n'ayant pas windows huhuhu)  mais par encodage en appuyant sur l'unique bouton feed de l'imprimante. J'avais trouvé l'arborescence dans un pdf mode d'emploi d'une autre imprimante de la marque du coup j'ai pu voir avant que c'était faisable comme cela.
Après facile, suppression reinstallation de l'imprimante, qui du coup est apparue en USB sous BEYANG BTP-R580, drivers ok, fichier "rasterto580" dans le bon répertoire (avec les bons droits ;-) ) et zou, elle m'a imprimé un magnifique ticket Ubuntu print test!!!!
YESSSS!!!!
Je suis vraiment ravi, 1000 mercis pour votre aide précieuse @Naziel @Xubu1957 :-)

Hors ligne

#20 Le 11/11/2019, à 20:11

xubu1957

Re : [résolu] comment installer une imprimante thermique 80mm ?

Pour éditer ta discussion et rajouter [Résolu] au début du titre, il faut utiliser le bouton Modifier au bas de ton premier message.

Merci wink


Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Résolu] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

Hors ligne

#21 Le 26/05/2023, à 09:41

Ulrick4us

Re : [résolu] comment installer une imprimante thermique 80mm ?

Bonjour et merci pour votre aide précieuse.

Je continue dans le fils de cette discussion parce qu'il s'agit exactement de la même imprimante SNBC BTP-R580II

J'ai récupéré le driver linux de la SNBC "BTP-R580II_LinuxDrv_EN V1.0.rar" sur le site du fabricant http://www.snbc.com.cn/news/149.html

il est composé d'un dossier "PrinterModeManager V1.11" avec une application windows permettant de basculer l'imprimante en usb detectable par windows ou en usb detectable par linux. ça c'est ok je l'ai bien mise en linux.
on le voit ca quand on branche l'imprimante un fichier "lp0" se cree dans /dev/usb/

ensuite il y a un dossier compressé R580II.tar comprennant 2 fichiers "R580II.ppd" et "rastertoR580II"

R580II.ppd je le copie dans /usr/share/cups/model
rastertoR580II je le copie dans /usr/lib/cups/filter

je vais dans print settings, j'ajoute une imprimante usb (elle est detectée "Unknow"), je choisis la marque SNBC dans la database et continue.
j'imprime une page test et là...


"Idle - Rendering completed" mais rien ne se passe, pas d'impression pas même de mouvement du papier.

Je teste alors la solution de ce forum : parallel:/dev/usb/lp0 et la problème il me mets ça dans le troubleshot.txt:

Page 1 (<troubleshoot.SchedulerNotRunning.SchedulerNotRunning object at 0x6ba958c8>):
{'cups_connection_failure': False}
Page 2 (<troubleshoot.ChoosePrinter.ChoosePrinter object at 0x6ba99748>):
{'cups_dest': <cups.Dest SNBC (default)>,
 'cups_instance': None,
 'cups_queue': 'SNBC',
 'cups_queue_listed': True}
Page 3 (<troubleshoot.CheckPrinterSanity.CheckPrinterSanity object at 0x6ba99880>):
{'cups_device_uri_scheme': 'parallel',
 'cups_printer_dict': {'device-uri': 'parallel:/dev/usb/lp0',
                       'printer-info': 'snbc',
                       'printer-is-shared': True,
                       'printer-location': 'raspberrypi',
                       'printer-make-and-model': 'SNBC BTP-R580II CUPS v3.11',
                       'printer-state': 3,
                       'printer-state-message': 'Rendering completed',
                       'printer-state-reasons': ['none'],
                       'printer-type': 151556,
                       'printer-uri-supported': 'ipp://localhost/printers/SNBC'},
 'cups_printer_remote': False,
 'is_cups_class': False,
 'local_cups_queue_attributes': {'charset-configured': 'utf-8',
                                 'charset-supported': ['us-ascii', 'utf-8'],
                                 'color-supported': False,
                                 'compression-supported': ['none', 'gzip'],
                                 'copies-default': 1,
                                 'copies-supported': (1, 9999),
                                 'cups-version': '2.3.3op2',
                                 'device-uri': 'parallel:/dev/usb/lp0',
                                 'document-format-default': 'application/octet-stream',
                                 'document-format-supported': ['application/octet-stream',
                                                               'application/pdf',
                                                               'application/postscript',
                                                               'application/vnd.adobe-reader-postscript',
                                                               'application/vnd.cups-pdf',
                                                               'application/vnd.cups-pdf-banner',
                                                               'application/vnd.cups-postscript',
                                                               'application/vnd.cups-raster',
                                                               'application/vnd.cups-raw',
                                                               'application/x-cshell',
                                                               'application/x-csource',
                                                               'application/x-perl',
                                                               'application/x-shell',
                                                               'image/gif',
                                                               'image/jpeg',
                                                               'image/png',
                                                               'image/pwg-raster',
                                                               'image/tiff',
                                                               'image/urf',
                                                               'image/x-bitmap',
                                                               'image/x-photocd',
                                                               'image/x-portable-anymap',
                                                               'image/x-portable-bitmap',
                                                               'image/x-portable-graymap',
                                                               'image/x-portable-pixmap',
                                                               'image/x-sgi-rgb',
                                                               'image/x-sun-raster',
                                                               'image/x-xbitmap',
                                                               'image/x-xpixmap',
                                                               'image/x-xwindowdump',
                                                               'text/css',
                                                               'text/html',
                                                               'text/plain'],
                                 'finishings-default': 3,
                                 'finishings-supported': [3],
                                 'generated-natural-language-supported': ['en-us'],
                                 'ipp-features-supported': ['subscription-object'],
                                 'ipp-versions-supported': ['1.0',
                                                            '1.1',
                                                            '2.0',
                                                            '2.1'],
                                 'ippget-event-life': 15,
                                 'job-cancel-after-default': 10800,
                                 'job-cancel-after-supported': (0, 2147483647),
                                 'job-creation-attributes-supported': ['copies',
                                                                       'finishings',
                                                                       'finishings-col',
                                                                       'ipp-attribute-fidelity',
                                                                       'job-hold-until',
                                                                       'job-name',
                                                                       'job-priority',
                                                                       'job-sheets',
                                                                       'media',
                                                                       'media-col',
                                                                       'multiple-document-handling',
                                                                       'number-up',
                                                                       'number-up-layout',
                                                                       'orientation-requested',
                                                                       'output-bin',
                                                                       'page-delivery',
                                                                       'page-ranges',
                                                                       'print-color-mode',
                                                                       'print-quality',
                                                                       'print-scaling',
                                                                       'printer-resolution',
                                                                       'sides'],
                                 'job-hold-until-default': 'no-hold',
                                 'job-hold-until-supported': ['no-hold',
                                                              'indefinite',
                                                              'day-time',
                                                              'evening',
                                                              'night',
                                                              'second-shift',
                                                              'third-shift',
                                                              'weekend'],
                                 'job-ids-supported': True,
                                 'job-k-limit': 0,
                                 'job-k-octets-supported': (0, 29704292),
                                 'job-page-limit': 0,
                                 'job-priority-default': 50,
                                 'job-priority-supported': [100],
                                 'job-quota-period': 0,
                                 'job-settable-attributes-supported': ['copies',
                                                                       'finishings',
                                                                       'job-hold-until',
                                                                       'job-name',
                                                                       'job-priority',
                                                                       'media',
                                                                       'media-col',
                                                                       'multiple-document-handling',
                                                                       'number-up',
                                                                       'output-bin',
                                                                       'orientation-requested',
                                                                       'page-ranges',
                                                                       'print-color-mode',
                                                                       'print-quality',
                                                                       'printer-resolution',
                                                                       'sides'],
                                 'job-sheets-default': ('none', 'none'),
                                 'job-sheets-supported': ['none',
                                                          'classified',
                                                          'confidential',
                                                          'form',
                                                          'secret',
                                                          'standard',
                                                          'topsecret',
                                                          'unclassified'],
                                 'jpeg-k-octets-supported': (0, 29704292),
                                 'jpeg-x-dimension-supported': (0, 65535),
                                 'jpeg-y-dimension-supported': (1, 65535),
                                 'marker-change-time': 0,
                                 'media-bottom-margin-supported': [0],
                                 'media-col-supported': ['media-bottom-margin',
                                                         'media-left-margin',
                                                         'media-right-margin',
                                                         'media-size',
                                                         'media-source',
                                                         'media-top-margin',
                                                         'media-type'],
                                 'media-default': 'unknown',
                                 'media-left-margin-supported': [0],
                                 'media-right-margin-supported': [35, 0],
                                 'media-size-supported': ['(unknown IPP value '
                                                          'tag 0x34)',
                                                          '(unknown IPP value '
                                                          'tag 0x34)',
                                                          '(unknown IPP value '
                                                          'tag 0x34)',
                                                          '(unknown IPP value '
                                                          'tag 0x34)',
                                                          '(unknown IPP value '
                                                          'tag 0x34)',
                                                          '(unknown IPP value '
                                                          'tag 0x34)',
                                                          '(unknown IPP value '
                                                          'tag 0x34)',
                                                          '(unknown IPP value '
                                                          'tag 0x34)',
                                                          '(unknown IPP value '
                                                          'tag 0x34)',
                                                          '(unknown IPP value '
                                                          'tag 0x34)',
                                                          '(unknown IPP value '
                                                          'tag 0x34)',
                                                          '(unknown IPP value '
                                                          'tag 0x34)',
                                                          '(unknown IPP value '
                                                          'tag 0x34)',
                                                          '(unknown IPP value '
                                                          'tag 0x34)',
                                                          '(unknown IPP value '
                                                          'tag 0x34)',
                                                          '(unknown IPP value '
                                                          'tag 0x34)',
                                                          '(unknown IPP value '
                                                          'tag 0x34)',
                                                          '(unknown IPP value '
                                                          'tag 0x34)',
                                                          '(unknown IPP value '
                                                          'tag 0x34)',
                                                          '(unknown IPP value '
                                                          'tag 0x34)'],
                                 'media-supported': ['custom_80.08x209.9mm_80.08x209.9mm',
                                                     'custom_80.08x296.69mm_80.08x296.69mm',
                                                     'custom_80.08x3275.89mm_80.08x3275.89mm',
                                                     'custom_80.08x29.99mm_80.08x29.99mm',
                                                     'custom_80.08x34.93mm_80.08x34.93mm',
                                                     'custom_80.08x40.22mm_80.08x40.22mm',
                                                     'custom_80.08x44.8mm_80.08x44.8mm',
                                                     'custom_80.08x50.09mm_80.08x50.09mm',
                                                     'custom_75.85x29.99mm_75.85x29.99mm',
                                                     'custom_75.85x34.93mm_75.85x34.93mm',
                                                     'custom_75.85x40.22mm_75.85x40.22mm',
                                                     'custom_75.85x44.8mm_75.85x44.8mm',
                                                     'custom_75.85x50.09mm_75.85x50.09mm',
                                                     'custom_75.85x3275.89mm_75.85x3275.89mm',
                                                     'custom_55.39x29.99mm_55.39x29.99mm',
                                                     'custom_55.39x34.93mm_55.39x34.93mm',
                                                     'custom_55.39x40.22mm_55.39x40.22mm',
                                                     'custom_55.39x44.8mm_55.39x44.8mm',
                                                     'custom_55.39x50.09mm_55.39x50.09mm',
                                                     'custom_55.39x3275.89mm_55.39x3275.89mm'],
                                 'media-top-margin-supported': [35],
                                 'multiple-document-handling-supported': ['separate-documents-uncollated-copies',
                                                                          'separate-documents-collated-copies'],
                                 'multiple-document-jobs-supported': True,
                                 'multiple-operation-time-out': 900,
                                 'multiple-operation-time-out-action': 'process-job',
                                 'natural-language-configured': 'en-us',
                                 'notify-attributes-supported': ['printer-state-change-time',
                                                                 'notify-lease-expiration-time',
                                                                 'notify-subscriber-user-name'],
                                 'notify-events-default': ['job-completed'],
                                 'notify-events-supported': ['job-completed',
                                                             'job-config-changed',
                                                             'job-created',
                                                             'job-progress',
                                                             'job-state-changed',
                                                             'job-stopped',
                                                             'printer-added',
                                                             'printer-changed',
                                                             'printer-config-changed',
                                                             'printer-deleted',
                                                             'printer-finishings-changed',
                                                             'printer-media-changed',
                                                             'printer-modified',
                                                             'printer-restarted',
                                                             'printer-shutdown',
                                                             'printer-state-changed',
                                                             'printer-stopped',
                                                             'server-audit',
                                                             'server-restarted',
                                                             'server-started',
                                                             'server-stopped'],
                                 'notify-lease-duration-default': 86400,
                                 'notify-lease-duration-supported': (0,
                                                                     2147483647),
                                 'notify-max-events-supported': [100],
                                 'notify-pull-method-supported': ['ippget'],
                                 'notify-schemes-supported': ['dbus',
                                                              'mailto',
                                                              'rss'],
                                 'number-up-default': 1,
                                 'number-up-layout-supported': ['btlr',
                                                                'btrl',
                                                                'lrbt',
                                                                'lrtb',
                                                                'rlbt',
                                                                'rltb',
                                                                'tblr',
                                                                'tbrl'],
                                 'number-up-supported': [1, 2, 4, 6, 9, 16],
                                 'operations-supported': [2,
                                                          4,
                                                          5,
                                                          6,
                                                          8,
                                                          9,
                                                          10,
                                                          11,
                                                          12,
                                                          13,
                                                          16,
                                                          17,
                                                          18,
                                                          19,
                                                          20,
                                                          21,
                                                          22,
                                                          23,
                                                          24,
                                                          25,
                                                          26,
                                                          27,
                                                          28,
                                                          34,
                                                          35,
                                                          37,
                                                          38,
                                                          56,
                                                          57,
                                                          59,
                                                          16385,
                                                          16386,
                                                          16387,
                                                          16388,
                                                          16389,
                                                          16390,
                                                          16391,
                                                          16392,
                                                          16393,
                                                          16394,
                                                          16395,
                                                          16396,
                                                          16397,
                                                          16398,
                                                          16399,
                                                          16423,
                                                          14],
                                 'orientation-requested-default': None,
                                 'orientation-requested-supported': [3,
                                                                     4,
                                                                     5,
                                                                     6],
                                 'output-bin-default': 'face-down',
                                 'output-bin-supported': ['face-down'],
                                 'page-delivery-supported': ['reverse-order',
                                                             'same-order'],
                                 'page-ranges-supported': True,
                                 'pages-per-minute': 8,
                                 'pdf-k-octets-supported': (0, 29704292),
                                 'pdf-versions-supported': ['adobe-1.2',
                                                            'adobe-1.3',
                                                            'adobe-1.4',
                                                            'adobe-1.5',
                                                            'adobe-1.6',
                                                            'adobe-1.7',
                                                            'iso-19005-1_2005',
                                                            'iso-32000-1_2008',
                                                            'pwg-5102.3'],
                                 'pdl-override-supported': ['attempted'],
                                 'port-monitor': 'none',
                                 'port-monitor-supported': ['none'],
                                 'print-color-mode-default': 'monochrome',
                                 'print-color-mode-supported': ['monochrome'],
                                 'print-quality-default': 4,
                                 'print-quality-supported': [4],
                                 'print-scaling-supported': ['auto',
                                                             'auto-fit',
                                                             'fill',
                                                             'fit',
                                                             'none'],
                                 'printer-commands': 'none',
                                 'printer-config-change-date-time': '(IPP_TAG_DATE)',
                                 'printer-config-change-time': 1685089297,
                                 'printer-current-time': '(IPP_TAG_DATE)',
                                 'printer-dns-sd-name': 'SNBC @ raspberrypi',
                                 'printer-error-policy': 'retry-job',
                                 'printer-error-policy-supported': ['abort-job',
                                                                    'retry-current-job',
                                                                    'retry-job',
                                                                    'stop-printer'],
                                 'printer-geo-location': '(unknown IPP value '
                                                         'tag 0x12)',
                                 'printer-get-attributes-supported': ['document-format'],
                                 'printer-icons': 'http://localhost/icons/SNBC.png',
                                 'printer-id': 1,
                                 'printer-info': 'snbc',
                                 'printer-is-accepting-jobs': True,
                                 'printer-is-shared': True,
                                 'printer-is-temporary': False,
                                 'printer-location': 'raspberrypi',
                                 'printer-make-and-model': 'SNBC BTP-R580II '
                                                           'CUPS v3.11',
                                 'printer-more-info': 'http://localhost/printers/SNBC',
                                 'printer-name': 'SNBC',
                                 'printer-op-policy': 'default',
                                 'printer-op-policy-supported': ['authenticated',
                                                                 'default',
                                                                 'kerberos'],
                                 'printer-organization': '',
                                 'printer-organizational-unit': '',
                                 'printer-resolution-default': (203, 203, 3),
                                 'printer-resolution-supported': [(203,
                                                                   203,
                                                                   3)],
                                 'printer-settable-attributes-supported': ['printer-geo-location',
                                                                           'printer-info',
                                                                           'printer-location',
                                                                           'printer-organization',
                                                                           'printer-organizational-unit'],
                                 'printer-state': 3,
                                 'printer-state-change-date-time': '(IPP_TAG_DATE)',
                                 'printer-state-change-time': 1685089956,
                                 'printer-state-message': 'Rendering completed',
                                 'printer-state-reasons': ['none'],
                                 'printer-strings-uri': 'http://localhost/strings/SNBC.strings',
                                 'printer-type': 151556,
                                 'printer-up-time': 1685089981,
                                 'printer-uri-supported': ['ipp://localhost/printers/SNBC'],
                                 'printer-uuid': 'urn:uuid:e2a361f8-2c23-3fa3-6f11-54509309094c',
                                 'pwg-raster-document-resolution-supported': [(203,
                                                                               203,
                                                                               3)],
                                 'pwg-raster-document-type-supported': ['black_1',
                                                                        'sgray_8'],
                                 'queued-job-count': 2,
                                 'server-is-sharing-printers': True,
                                 'sides-default': 'one-sided',
                                 'sides-supported': ['one-sided'],
                                 'uri-authentication-supported': ['requesting-user-name'],
                                 'uri-security-supported': ['none'],
                                 'which-jobs-supported': ['completed',
                                                          'not-completed',
                                                          'aborted',
                                                          'all',
                                                          'canceled',
                                                          'pending',
                                                          'pending-held',
                                                          'processing',
                                                          'processing-stopped']}}
Page 4 (<troubleshoot.CheckPPDSanity.CheckPPDSanity object at 0x6ba99868>):
{'cups_printer_ppd_defaults': {'CashDrawerGroup': {'CashDrawer': '0DoNotOpenDrawers',
                                                   'CashDrawer1PulseWidth': '3Millis60'},
                               'CutGroup': {'DocCutType': '1PartialCutDoc',
                                            'PageCutType': '0NoCutPage'},
                               'General': {'Buzzer': '0off',
                                           'Darkness': '6',
                                           'PageRegion': '4',
                                           'PageSize': '4',
                                           'PageType': '0roll',
                                           'PrintLogo': '0logo',
                                           'Resolution': '203dpi'}},
 'cups_printer_ppd_valid': True,
 'missing_pkgs_and_exes': ([], [])}
Page 5 (<troubleshoot.LocalOrRemote.LocalOrRemote object at 0x6baa7490>):
{'printer_is_remote': False}
Page 6 (<troubleshoot.PrinterStateReasons.PrinterStateReasons object at 0x6cd94fd0>):
{'printer-state-message': 'Rendering completed',
 'printer-state-reasons': ['none']}
Page 7 (<troubleshoot.Locale.Locale object at 0x6cd947c0>):
{'printer_page_size': '4',
 'system_locale_lang': None,
 'user_locale_ctype': 'en_US',
 'user_locale_messages': 'en_US'}

je pense qu'il y a un problème avec le filtre rastertoR580II mais je ne sais pas quoi faire...

ps: j'ai donné les droits suivant :

sudo adduser pi lp
sudo chown root:root /usr/lib/cups/filter/rastertoR580II
sudo chmod 755 /usr/lib/cups/filter/rastertoR580II

et la fonction echo "Hello" >> /dev/usb/lp0 fonctionne

Hors ligne

#22 Le 26/05/2023, à 10:34

Rafbor

Re : [résolu] comment installer une imprimante thermique 80mm ?

Bonjour,
tu utilises quelle application pour imprimer tes tickets ? Parce que vu que le protocole ESC/POS semble supporté, tu pourrais l'utiliser.
Ce protocole fonctionne sans installer de driver.


Xubuntu 22.04 - Mes projets sur Github

Hors ligne

#23 Le 26/05/2023, à 11:16

FrancisFDZ

Re : [résolu] comment installer une imprimante thermique 80mm ?

Bonjour,
@Ulrick4us : tu poste dans un fil noté "Résolu",  tu risques fort de ne pas avoir beaucoup de visite. Je te conseille de créer un nouveau post, au besoin en y citant celui-ci, ou de "signaler aux modérateurs" (lien en bas de chaque intervention) pour scinder le présent fil

Dernière modification par FrancisFDZ (Le 26/05/2023, à 11:17)


-- On peut avoir des raisons de se plaindre et n'avoir pas raison de se plaindre --
[Victor Hugo]

Hors ligne

#24 Le 26/05/2023, à 12:37

Ulrick4us

Re : [résolu] comment installer une imprimante thermique 80mm ?

Bonjour,
Merci pour vos réponses rapide.

@Rafbor je n'ai pas d'application encore pour imprimer mes tickets, l'objectif est de m'assurer que l'imprimante fonctionne avant de me lancer dans de la programmation...
je ne connais pas le protocole ESC/POS je vais lancer mes recherches dans ce sens là, merci pour l'info.

@FrancisFDZ ok c'est noté, j'ouvrirais un post pour la suite. et je mettrais un lien ici wink

Hors ligne

#25 Le 26/05/2023, à 12:42

Rafbor

Re : [résolu] comment installer une imprimante thermique 80mm ?

@Ulrick4us: si tu dois développer ta propre appli, c'est ce que j'ai fait également en C#, regarde ce que j'avais écrit dans ce topic.

Il existe des librairies pour ESC/POS dans plusieurs langages.


Xubuntu 22.04 - Mes projets sur Github

Hors ligne