i'm stumped and hoping ya'll can help make this work a little better for the family.
we use an rpi3 + LE 8.0.3 + USB ir TOY v2 + irsend to turn our gear on... this is working rather unreliably. seems after a while the lirc irToy driver can't r/w from the USB device (?)
- if i kill the lircd and restart i still get input/output errors
- if i unplug and plug it back in it works ... for a while
this is what it looks like in journal when its not working
Display Spoiler
Code
Jul 24 11:33:01 livingRoom lircd-0.9.4c[6517]: Notice: accepted new client on /run/lirc/lircd-ttyACM0
Jul 24 11:33:01 livingRoom irsend[23128]: lirc_command_run: Sending: SEND_START projector power
Jul 24 11:33:02 livingRoom lircd-0.9.4c[6517]: Error: irtoy_send: couldn't read command result
Jul 24 11:33:02 livingRoom irsend[23128]: lirc_command_run, state: 0, input: "BEGIN"
Jul 24 11:33:02 livingRoom irsend[23128]: lirc_command_run, state: 1, input: "SEND_START projector power"
Jul 24 11:33:02 livingRoom irsend[23128]: lirc_command_run, state: 2, input: "SUCCESS"
Jul 24 11:33:02 livingRoom irsend[23128]: lirc_command_run, state: 3, input: "END"
Jul 24 11:33:02 livingRoom irsend[23128]: lirc_command_run: data:END, status:0
Jul 24 11:33:03 livingRoom lircd-0.9.4c[6517]: Error: irtoy_send: couldn't read command result
Jul 24 11:33:03 livingRoom lircd-0.9.4c[6517]: Info: removed client
Jul 24 11:33:03 livingRoom irsend[23157]: lirc_command_run: Sending: SEND_STOP projector power
Jul 24 11:33:04 livingRoom lircd-0.9.4c[6517]: Error: irtoy_send: couldn't read command result
Jul 24 11:33:04 livingRoom lircd-0.9.4c[6517]: Notice: accepted new client on /run/lirc/lircd-ttyACM0
Jul 24 11:33:04 livingRoom lircd-0.9.4c[6517]: Error: irtoy_setIOData: couldn't write command
Jul 24 11:33:04 livingRoom lircd-0.9.4c[6517]: Error: irtoy_send: couldn't write command
Jul 24 11:33:04 livingRoom lircd-0.9.4c[6517]: Error: irtoy_setIOData: couldn't write command
Jul 24 11:33:04 livingRoom lircd-0.9.4c[6517]: Error: error processing command: SEND_STOP projector power
Jul 24 11:33:04 livingRoom sh[423]: not repeating
Jul 24 11:33:04 livingRoom sh[423]: Error running command: Input/output error
Jul 24 11:33:04 livingRoom lircd-0.9.4c[6517]: Error: not repeating
Jul 24 11:33:04 livingRoom irsend[23157]: lirc_command_run, state: 0, input: "BEGIN"
Jul 24 11:33:04 livingRoom irsend[23157]: lirc_command_run, state: 1, input: "SEND_STOP projector power"
Jul 24 11:33:04 livingRoom irsend[23157]: lirc_command_run, state: 2, input: "ERROR"
Jul 24 11:33:04 livingRoom irsend[23157]: irsend: command failed: SEND_STOP projector power
Jul 24 11:33:04 livingRoom irsend[23157]: lirc_command_run, state: 3, input: "DATA"
Jul 24 11:33:04 livingRoom irsend[23157]: lirc_command_run, state: 4, input: "1"
Jul 24 11:33:04 livingRoom irsend[23157]: lirc_command_run, state: 5, input: "not repeating"
Jul 24 11:33:04 livingRoom irsend[23157]: lirc_command_run, state: 6, input: "END"
Jul 24 11:33:04 livingRoom irsend[23157]: lirc_command_run: status:END, status:5
Jul 24 11:33:04 livingRoom lircd-0.9.4c[6517]: Info: removed client
Display More
and when things work properly i see this
Display Spoiler
Code
Jul 24 16:59:19 livingRoom kernel: usb 1-1.5: new full-speed USB device number 7 using dwc_otg
Jul 24 16:59:19 livingRoom kernel: usb 1-1.5: New USB device found, idVendor=04d8, idProduct=fd08
Jul 24 16:59:19 livingRoom kernel: usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jul 24 16:59:19 livingRoom kernel: usb 1-1.5: Product: CDC Test
Jul 24 16:59:19 livingRoom kernel: usb 1-1.5: Manufacturer: Dangerous Prototypes
Jul 24 16:59:19 livingRoom kernel: usb 1-1.5: SerialNumber: 00000001
Jul 24 16:59:19 livingRoom kernel: cdc_acm 1-1.5:1.0: ttyACM0: USB ACM device
Jul 24 16:59:27 livingRoom sh[423]: Warning: cannot open /etc/lirc/lirc_options.conf
Jul 24 16:59:27 livingRoom lircd-0.9.4c[14507]: Info: lircd: Opening log, level: Info
Jul 24 16:59:27 livingRoom lircd-0.9.4c[14507]: Info: Initial device: /dev/ttyACM0
Jul 24 16:59:27 livingRoom lircd-0.9.4c[14507]: Warning: --uinput is deprecated, check the lircd manpage.
Jul 24 16:59:27 livingRoom lircd-0.9.4c[14507]: Info: Initial device: /dev/ttyACM0
Jul 24 16:59:27 livingRoom lircd-0.9.4c[14507]: Info: lircd: Opening log, level: Info
Jul 24 16:59:27 livingRoom kernel: input: lircd as /devices/virtual/input/input9
Jul 24 16:59:27 livingRoom lircd-0.9.4c[14507]: Warning: Running as root
Jul 24 16:59:27 livingRoom lircd-0.9.4c[14507]: Info: Using remote: projector.
Jul 24 16:59:27 livingRoom lircd-0.9.4c[14511]: Notice: lircd(irtoy) ready, using /run/lirc/lircd-ttyACM0
Jul 24 16:59:30 livingRoom lircd-0.9.4c[14511]: Notice: accepted new client on /run/lirc/lircd-ttyACM0
Jul 24 16:59:30 livingRoom irsend[14533]: lirc_command_run: Sending: SEND_START projector power
Jul 24 16:59:30 livingRoom irsend[14533]: lirc_command_run, state: 0, input: "BEGIN"
Jul 24 16:59:30 livingRoom irsend[14533]: lirc_command_run, state: 1, input: "SEND_START projector power"
Jul 24 16:59:30 livingRoom irsend[14533]: lirc_command_run, state: 2, input: "SUCCESS"
Jul 24 16:59:30 livingRoom irsend[14533]: lirc_command_run, state: 3, input: "END"
Jul 24 16:59:30 livingRoom irsend[14533]: lirc_command_run: data:END, status:0
Jul 24 16:59:30 livingRoom lircd-0.9.4c[14511]: Info: removed client
Jul 24 16:59:31 livingRoom irsend[14547]: lirc_command_run: Sending: SEND_STOP projector power
Jul 24 16:59:31 livingRoom lircd-0.9.4c[14511]: Notice: accepted new client on /run/lirc/lircd-ttyACM0
Jul 24 16:59:31 livingRoom irsend[14547]: lirc_command_run, state: 0, input: "BEGIN"
Jul 24 16:59:31 livingRoom irsend[14547]: lirc_command_run, state: 1, input: "SEND_STOP projector power"
Jul 24 16:59:31 livingRoom irsend[14547]: lirc_command_run, state: 2, input: "SUCCESS"
Jul 24 16:59:31 livingRoom irsend[14547]: lirc_command_run, state: 3, input: "END"
Jul 24 16:59:31 livingRoom irsend[14547]: lirc_command_run: data:END, status:0
Jul 24 16:59:31 livingRoom lircd-0.9.4c[14511]: Info: removed client
Display More
there has to be a better option than watching log for "lirc i/o erros" ... and then trigger kernel to reload device 1-1.5 ?