Re: Raspberry Pi 3B USB Printing Issue
- In reply to: Archimedes Gaviola : "Re: Raspberry Pi 3B USB Printing Issue"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 20 Mar 2022 12:02:22 UTC
On Thu, Mar 17, 2022 at 10:35 PM Archimedes Gaviola < archimedes.gaviola@gmail.com> wrote: > > > On Thu, Mar 17, 2022 at 10:32 PM Hans Petter Selasky <hps@selasky.org> > wrote: > >> On 3/17/22 14:54, Archimedes Gaviola wrote: >> > Is this an expected >> > behavior? >> >> Yes, you shouldn't rely on the ugen numbering. It depends on the actual >> enumeration order. >> > > Alright, this is noted. Thank you Hans! > Hi Hans, For how many days I've been doing the automated printing the issue never occurred with DWC OTG debug level 17 but still for sure the issue is observed when debug is bypassed or disabled . That's why it's quite a challenge for me to capture. Not sure why this debug level 17 issue never appeared. Any ideas? Meanwhile, I've tried enabling 'sysctl hw.usb.ugen.debug=17' and this is what I've got. Not sure if this is helpful to you for any clue. When exactly the printing issue occurred this is what happened as found in the logs -> ugen_write_clear_stall_callback: f=0xffffa00016208d80: stall cleared. Below is the complete /var/log/messages (appeared twice) and the c-file-to-printer is my little printing program invoked. Mar 20 14:39:04 generic kernel: ugen_open: flag=0x402 pid=1337 name=c-file-to-printer Mar 20 14:39:04 generic kernel: ugen_ioctl: cmd=0x402c7413 Mar 20 14:39:04 generic kernel: ugen_ioctl: error=-3 Mar 20 14:39:04 generic kernel: ugen_ioctl_post: cmd=0x402c7413 Mar 20 14:39:04 generic kernel: ugen_ioctl_post: error=-3 Mar 20 14:39:04 generic kernel: ugen_ctrl_write_callback: actlen=0, aframes=0 Mar 20 14:39:04 generic kernel: ugen_ctrl_write_callback: actlen=697, aframes=1 Mar 20 14:39:04 generic kernel: ugen_close: flag=0x402 pid=1337 name=c-file-to-printer Mar 20 14:39:04 generic kernel: ugen_close: no FIFOs Mar 20 14:39:10 generic kernel: ugen_open: flag=0x402 pid=1338 name=c-file-to-printer Mar 20 14:39:10 generic kernel: ugen_ioctl: cmd=0x402c7413 Mar 20 14:39:10 generic kernel: ugen_ioctl: error=-3 Mar 20 14:39:10 generic kernel: ugen_ioctl_post: cmd=0x402c7413 Mar 20 14:39:10 generic kernel: ugen_ioctl_post: error=-3 Mar 20 14:39:10 generic kernel: ugen_ctrl_write_callback: actlen=0, aframes=0 Mar 20 14:39:10 generic kernel: ugen_ctrl_write_callback: actlen=697, aframes=1 Mar 20 14:39:10 generic kernel: ugen_close: flag=0x402 pid=1338 name=c-file-to-printer Mar 20 14:39:10 generic kernel: ugen_close: no FIFOs Mar 20 14:39:15 generic kernel: ugen_open: flag=0x402 pid=1339 name=c-file-to-printer Mar 20 14:39:15 generic kernel: ugen_ioctl: cmd=0x402c7413 Mar 20 14:39:15 generic kernel: ugen_ioctl: error=-3 Mar 20 14:39:15 generic kernel: ugen_ioctl_post: cmd=0x402c7413 Mar 20 14:39:15 generic kernel: ugen_ioctl_post: error=-3 Mar 20 14:39:15 generic kernel: ugen_ctrl_write_callback: actlen=0, aframes=0 Mar 20 14:39:15 generic kernel: ugen_ctrl_write_callback: actlen=56, aframes=1 Mar 20 14:39:15 generic kernel: ugen_write_clear_stall_callback: f=0xffffa00016208d80: stall cleared Mar 20 14:39:15 generic kernel: ugen_ctrl_write_callback: actlen=56, aframes=1 Mar 20 14:39:15 generic kernel: ugen_close: flag=0x402 pid=1339 name=c-file-to-printer Mar 20 14:39:15 generic kernel: ugen_close: no FIFOs Mar 20 14:39:49 generic login[1169]: ROOT LOGIN (root) ON ttyv3 Mar 20 14:40:40 generic kernel: ugen_open: flag=0x402 pid=1346 name=c-file-to-printer Mar 20 14:40:40 generic kernel: ugen_ioctl: cmd=0x402c7413 Mar 20 14:40:40 generic kernel: ugen_ioctl: error=-3 Mar 20 14:40:40 generic kernel: ugen_ioctl_post: cmd=0x402c7413 Mar 20 14:40:40 generic kernel: ugen_ioctl_post: error=-3 Mar 20 14:40:40 generic kernel: ugen_ctrl_write_callback: actlen=0, aframes=0 Mar 20 14:40:40 generic kernel: ugen_ctrl_write_callback: actlen=72, aframes=1 Mar 20 14:40:40 generic kernel: ugen_write_clear_stall_callback: f=0xffffa00016208d80: stall cleared Mar 20 14:40:40 generic kernel: ugen_ctrl_write_callback: actlen=72, aframes=1 Mar 20 14:40:40 generic kernel: ugen_close: flag=0x402 pid=1346 name=c-file-to-printer Mar 20 14:40:40 generic kernel: ugen_close: no FIFOs Mar 20 14:40:51 generic kernel: ugen_open: flag=0x402 pid=1347 name=c-file-to-printer Mar 20 14:40:51 generic kernel: ugen_ioctl: cmd=0x402c7413 Mar 20 14:40:51 generic kernel: ugen_ioctl: error=-3 Mar 20 14:40:51 generic kernel: ugen_ioctl_post: cmd=0x402c7413 Mar 20 14:40:51 generic kernel: ugen_ioctl_post: error=-3 Mar 20 14:40:51 generic kernel: ugen_ctrl_write_callback: actlen=0, aframes=0 Mar 20 14:40:51 generic kernel: ugen_ctrl_write_callback: actlen=697, aframes=1 Mar 20 14:40:51 generic kernel: ugen_close: flag=0x402 pid=1347 name=c-file-to-printer Mar 20 14:40:51 generic kernel: ugen_close: no FIFOs Thanks, Archimedes