Repeated card entry attempts
Opened this issue · 5 comments
Not sure whether this is lack of feedback or a bug:
1 2013-05-23 18:37:18,932 Will Brooks
1 2013-05-23 19:05:48,279 William Gubbins
10 2013-05-23 19:19:07,218 Will Brooks
3 2013-05-23 19:22:56,430 Inspector Sands
5 2013-05-23 19:24:04,524 Will Brooks
6 2013-05-23 19:38:09,333 Michael Trew
10 2013-05-23 20:20:23,667 Stefans
2 2013-05-23 20:23:41,111 albie higgins
1 2013-05-23 20:24:28,406 Stefans
We were seeing USB failures after triggering the relay when the LED was added:
2013-05-22 18:10:46,427 INFO <...> authorised as Paddy Smith
2013-05-22 18:10:46,429 DEBUG Triggering door relay
2013-05-22 18:10:46,459 WARNING Serial error during poll: write failed: [Errno 5] Input/output error
2013-05-22 18:10:51,467 DEBUG Starting main loop
2013-05-22 18:10:51,488 WARNING Serial error during initialisation: could not open port /dev/ttyUSB0: [Errno 2] No such file or directory: '/dev/ttyUSB0'
2013-05-22 18:10:53,405 INFO Starting doorbot
...
2013-05-22 18:16:12,531 INFO <...> authorised as Ragey
2013-05-22 18:16:12,533 DEBUG Triggering door relay
2013-05-22 18:16:12,535 WARNING Serial error during poll: write failed: [Errno 5] Input/output error
2013-05-22 18:16:17,543 DEBUG Starting main loop
2013-05-22 18:16:17,546 WARNING Serial error during initialisation: could not open port /dev/ttyUSB1: [Errno 2] No such file or
directory: '/dev/ttyUSB1'
2013-05-22 18:16:21,444 INFO Starting doorbot
May 22 18:04:48 wilson kernel: [1041099.759552] usb 1-1.3: FTDI USB Serial Device converter now attached to ttyUSB1
...
May 22 18:12:36 wilson kernel: [1041567.708071] usb 1-1.2: USB disconnect, device number 4
May 22 18:12:37 wilson pcscd: ccid_usb.c:660:WriteUSB() write failed (1/4): -4 No such device
...
May 22 18:12:39 wilson kernel: [1041570.100308] usb 1-1.2: New USB device found, idVendor=072f, idProduct=90cc
...
May 22 18:16:04 wilson kernel: [1041775.096257] usb 1-1.3: USB disconnect, device number 12
...
May 22 18:16:04 wilson kernel: [1041775.536229] usb 1-1.3: FTDI USB Serial Device converter now attached to ttyUSB0
...
May 22 18:16:18 wilson kernel: [1041788.922122] usb 1-1.3: USB disconnect, device number 14
...
May 22 18:16:19 wilson kernel: [1041790.819617] usb 1-1.3: FTDI USB Serial Device converter now attached to ttyUSB0
Is this the normal behaviour when the USB is unplugged (the kernel doesn't notice somehow), or are the wires acting as an antenna?
Apparently the relay wasn't triggering, although we were asking it to. Presuming for now that there wasn't enough power over USB, and unplugged the notification LED header added on Wednesday (but not currently active).
Happened again:
1 2013-06-07 00:48:14,258 Will Brooks
8 2013-06-07 01:13:48,022 Hipster
1 2013-06-07 02:12:34,055 Will Brooks
8 2013-06-07 10:21:05,669 Zipporobotics
5 2013-06-07 10:29:46,098 Michael Trew
This time down to the relay wire coming loose. Zippo reconnected it, and it seems to work now. I did also reboot Wilson in the interim, but unlikely to have affected things.
Need to provide LED feedback that an attempt failed. RFUID allows us to control the ACR LEDs, so let's try that.