Re: webcamd based touchscreen problem on Pi3

From: Roberto Fernandez Cueto <r.fernandez-cueto_at_bally-wulff.de>
Date: Fri, 9 Mar 2018 09:19:11 +0100
Roberto Fernandez-Cueto schrieb am 09.03.2018 09:19
_____________________________________________________________________

I do not if this helps, but what I usually do when I get to work with a
new touchscreen is to see if FreeBSD detects it as UHID.

If it is recognized, then I check if the touchscreen send absolute
coordinates or relative coordinates.

You can do it with usbhidctl(1). See the collection, items and get the
values parsed by the HID layer.

If it helps, let me know.

Roberto Fernandez Cueto

On Fri, Mar 09, 2018 at 01:44:34AM +0100, Bernd Walter wrote:
> On Thu, Mar 08, 2018 at 10:10:47PM +0100, Hans Petter Selasky wrote:
> > You can try running usbdump to capture USB packets.
> > 
> > ktrace is also your friend.
> > 
> > dd if=/dev/input/event0 bs=1
> > 
> > Also check ownership of devices, that X.org can read from them.
> 
> It happens earlier, /dev/input/event0 delivers nothing at all.
> But usbdump is interesting.
> I've booted with webcamd disabled, started usbdump and started webcamd.
> 
> This is what I get:
> [22]sa# usbdump -v -f 4
> 00:30:09.379930 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
>  frame[0] WRITE 8 bytes
>  0000  80 06 00 03 00 00 04 00  -- -- -- -- -- -- -- --  |........        |
>  frame[1] READ 4 bytes
> 00:30:09.382401 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
>  frame[0] WRITE 8 bytes
>  frame[1] READ 4 bytes
>  0000  04 03 09 04 -- -- -- --  -- -- -- -- -- -- -- --  |....            |
> 00:30:09.382448 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
>  frame[0] WRITE 8 bytes
>  0000  80 06 00 03 00 00 04 00  -- -- -- -- -- -- -- --  |........        |
>  frame[1] READ 4 bytes
> 00:30:09.385398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
>  frame[0] WRITE 8 bytes
>  frame[1] READ 4 bytes
>  0000  04 03 09 04 -- -- -- --  -- -- -- -- -- -- -- --  |....            |
> 00:30:09.385439 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
>  frame[0] WRITE 8 bytes
>  0000  80 06 02 03 09 04 04 00  -- -- -- -- -- -- -- --  |........        |
>  frame[1] READ 4 bytes
> 00:30:09.388398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
>  frame[0] WRITE 8 bytes
>  frame[1] READ 4 bytes
>  0000  12 03 42 00 -- -- -- --  -- -- -- -- -- -- -- --  |..B.            |
> 00:30:09.388434 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
>  frame[0] WRITE 8 bytes
>  0000  80 06 02 03 09 04 12 00  -- -- -- -- -- -- -- --  |........        |
>  frame[1] READ 18 bytes
> 00:30:09.391399 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=20,IVAL=0,ERR=0
>  frame[0] WRITE 8 bytes
>  frame[1] READ 18 bytes
>  0000  12 03 42 00 79 00 20 00  5A 00 48 00 38 00 35 00  |..B.y. .Z.H.8.5.|
>  0010  31 00 -- -- -- -- -- --  -- -- -- -- -- -- -- --  |1.              |
> 00:30:09.391474 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
>  frame[0] WRITE 8 bytes
>  0000  80 06 00 03 00 00 04 00  -- -- -- -- -- -- -- --  |........        |
>  frame[1] READ 4 bytes
> 00:30:09.394398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
>  frame[0] WRITE 8 bytes
>  frame[1] READ 4 bytes
>  0000  04 03 09 04 -- -- -- --  -- -- -- -- -- -- -- --  |....            |
> 00:30:09.394435 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
>  frame[0] WRITE 8 bytes
>  0000  80 06 00 03 00 00 04 00  -- -- -- -- -- -- -- --  |........        |
>  frame[1] READ 4 bytes
> 00:30:09.397398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
>  frame[0] WRITE 8 bytes
>  frame[1] READ 4 bytes
>  0000  04 03 09 04 -- -- -- --  -- -- -- -- -- -- -- --  |....            |
> 00:30:09.397436 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
>  frame[0] WRITE 8 bytes
>  0000  80 06 01 03 09 04 04 00  -- -- -- -- -- -- -- --  |........        |
>  frame[1] READ 4 bytes
> 00:30:09.400398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
>  frame[0] WRITE 8 bytes
>  frame[1] READ 4 bytes
>  0000  14 03 42 00 -- -- -- --  -- -- -- -- -- -- -- --  |..B.            |
> 00:30:09.400433 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
>  frame[0] WRITE 8 bytes
>  0000  80 06 01 03 09 04 14 00  -- -- -- -- -- -- -- --  |........        |
>  frame[1] READ 20 bytes
> 00:30:09.403398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=20,IVAL=0,ERR=0
>  frame[0] WRITE 8 bytes
>  frame[1] READ 20 bytes
>   0000  14 03 42 00 59 00 5A 00  48 00 59 00 59 00 5A 00  |..B.Y.Z.H.Y.Y.Z.|
>  0010  48 00 59 00 -- -- -- --  -- -- -- -- -- -- -- --  |H.Y.            |
> 00:30:09.403440 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
>  frame[0] WRITE 8 bytes
>  0000  80 06 00 03 00 00 04 00  -- -- -- -- -- -- -- --  |........        |
>  frame[1] READ 4 bytes
> 00:30:09.406398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
>  frame[0] WRITE 8 bytes
>  frame[1] READ 4 bytes
>  0000  04 03 09 04 -- -- -- --  -- -- -- -- -- -- -- --  |....            |
> 00:30:09.406437 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
>  frame[0] WRITE 8 bytes
>  0000  80 06 00 03 00 00 04 00  -- -- -- -- -- -- -- --  |........        |
>  frame[1] READ 4 bytes
> 00:30:09.409397 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
>  frame[0] WRITE 8 bytes
>  frame[1] READ 4 bytes
>  0000  04 03 09 04 -- -- -- --  -- -- -- -- -- -- -- --  |....            |
> 00:30:09.409434 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
>  frame[0] WRITE 8 bytes
>  0000  80 06 03 03 09 04 04 00  -- -- -- -- -- -- -- --  |........        |
>  frame[1] READ 4 bytes
> 00:30:09.412398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
>  frame[0] WRITE 8 bytes
>  frame[1] READ 4 bytes
>  0000  1A 03 1A 00 -- -- -- --  -- -- -- -- -- -- -- --  |....            |
> 00:30:09.412434 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
>  frame[0] WRITE 8 bytes
>  0000  80 06 03 03 09 04 1A 00  -- -- -- -- -- -- -- --  |........        |
>  frame[1] READ 26 bytes
> 00:30:09.415398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=28,IVAL=0,ERR=0
>  frame[0] WRITE 8 bytes
>  frame[1] READ 26 bytes
>  0000  1A 03 1A 00 95 00 50 00  33 00 39 00 31 00 31 00  |......P.3.9.1.1.|
>  0010  06 00 32 00 33 00 39 00  38 00 -- -- -- -- -- --  |..2.3.9.8.      |
> 00:30:09.420243 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
>  frame[0] WRITE 8 bytes
>  0000  80 06 00 03 00 00 04 00  -- -- -- -- -- -- -- --  |........        |
>  frame[1] READ 4 bytes
> 00:30:09.422400 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
>  frame[0] WRITE 8 bytes
>  frame[1] READ 4 bytes
>  0000  04 03 09 04 -- -- -- --  -- -- -- -- -- -- -- --  |....            |
> 00:30:09.422441 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
>  frame[0] WRITE 8 bytes
>  0000  80 06 00 03 00 00 04 00  -- -- -- -- -- -- -- --  |........        |
>  frame[1] READ 4 bytes
> 00:30:09.425398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
>  frame[0] WRITE 8 bytes
>  frame[1] READ 4 bytes
>  0000  04 03 09 04 -- -- -- --  -- -- -- -- -- -- -- --  |....            |
> 00:30:09.425436 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
>  frame[0] WRITE 8 bytes
>  0000  80 06 03 03 09 04 04 00  -- -- -- -- -- -- -- --  |........        |
>  frame[1] READ 4 bytes
> 00:30:09.428398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
>  frame[0] WRITE 8 bytes
>  frame[1] READ 4 bytes
>  0000  1A 03 1A 00 -- -- -- --  -- -- -- -- -- -- -- --  |....            |
> 00:30:09.428436 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
>  frame[0] WRITE 8 bytes
>  0000  80 06 03 03 09 04 1A 00  -- -- -- -- -- -- -- --  |........        |
>  frame[1] READ 26 bytes
> 00:30:09.431398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=28,IVAL=0,ERR=0
>  frame[0] WRITE 8 bytes
>  frame[1] READ 26 bytes
>  0000  1A 03 1A 00 95 00 50 00  33 00 39 00 31 00 31 00  |......P.3.9.1.1.|
>  0010  06 00 32 00 33 00 39 00  38 00 -- -- -- -- -- --  |..2.3.9.8.      |
> 00:30:09.431941 usbus0.4 SUBM-CTRL-EP=00000000,SPD=FULL,NFR=1,SLEN=8,IVAL=0
>  frame[0] WRITE 8 bytes
>  0000  21 0A 00 00 00 00 00 00  -- -- -- -- -- -- -- --  |!.......        |
> 00:30:09.433396 usbus0.4 DONE-CTRL-EP=00000000,SPD=FULL,NFR=1,SLEN=0,IVAL=0,ERR=STALLED
>  frame[0] WRITE 8 bytes
> 00:30:09.433442 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
>  frame[0] WRITE 8 bytes
>  0000  81 06 00 22 00 00 FB 00  -- -- -- -- -- -- -- --  |..."....        |
>  frame[1] READ 251 bytes
> 00:30:09.439403 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=252,IVAL=0,ERR=0
>  frame[0] WRITE 8 bytes
>  frame[1] READ 251 bytes
> 00:30:09.447376 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
>  frame[0] WRITE 8 bytes
>  0000  A1 01 02 03 00 00 02 00  -- -- -- -- -- -- -- --  |........        |
>  frame[1] READ 2 bytes
> 00:30:09.450400 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0
>  frame[0] WRITE 8 bytes
>  frame[1] READ 2 bytes
>  0000  02 0A -- -- -- -- -- --  -- -- -- -- -- -- -- --  |..              |
> 00:30:09.451878 usbus0.4 SUBM-CTRL-EP=00000000,SPD=FULL,NFR=2,SLEN=12,IVAL=0
>  frame[0] WRITE 8 bytes
>  0000  21 09 03 03 00 00 03 00  -- -- -- -- -- -- -- --  |!.......        |
>  frame[1] WRITE 3 bytes
>  0000  03 02 00 -- -- -- -- --  -- -- -- -- -- -- -- --  |...             |
> 00:30:09.454404 usbus0.4 DONE-CTRL-EP=00000000,SPD=FULL,NFR=2,SLEN=0,IVAL=0,ERR=0
>  frame[0] WRITE 8 bytes
>  frame[1] WRITE 3 bytes
> 00:30:09.466235 usbus0.4 SUBM-INTR-EP=00000082,SPD=FULL,NFR=1,SLEN=0,IVAL=10
>  frame[0] READ 14 bytes
> 00:30:09.523430 usbus0.4 DONE-INTR-EP=00000082,SPD=FULL,NFR=0,SLEN=0,IVAL=10,ERR=CANCELLED
> 
> It is obvious that the communication fails very early.
> 
> -- 
> B.Walter <bernd_at_bwct.de> http://www.bwct.de
> Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"

BALLY WULFF Games & Entertainment GmbH, Maybachufer 48-51, 12045 Berlin, Postanschrift: Postfach 44 01 57, 12001 Berlin Tel.: 030-620 02-0 FAX: 030-620 02-200, Geschaeftsfuehrer: Thomas Niehenke, Lars Rogge, Thomas Wendt, Amtsgericht Berlin-Charlottenburg HRB 139020 B, UST-IdNr. DE815328376
_____________________________________________________________________
Dieses E-Mail ist nur fuer den Empfaenger bestimmt, an den es gerichtet
ist und kann vertrauliches bzw. unter das Berufsgeheimnis fallendes
Material enthalten. Jegliche darin enthaltene Ansicht oder Meinungs-
aeusserung ist die des Autors und stellt nicht notwendigerweise die
Ansicht oder Meinung von Bally Wulff Games & Entertainment GmbH dar.
Sind Sie nicht der Empfaenger, so haben Sie diese E-Mail irrtuemlich
erhalten und jegliche Verwendung, Veroeffentlichung, Weiterleitung,
Abschrift oder jeglicher Druck dieser E-Mail ist strengstens untersagt.

Weder Bally Wulff Games & Entertainment GmbH noch der Absender
uebernehmen die Haftung fuer Viren. Es obliegt Ihrer Verantwortung,
die E-Mail und deren Anhaenge auf Viren zu pruefen.
 Anhaenge:
_____________________________________________________________________
Versand am 09.03.2018 09:19 von Fernandez-Cueto Roberto
Received on Fri Mar 09 2018 - 07:19:54 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:15 UTC