usb QR reader

Daniel Braniss danny at cs.huji.ac.il
Thu Jan 16 10:37:09 UTC 2020



> On 16 Jan 2020, at 12:26, Hans Petter Selasky <hps at selasky.org> wrote:
> 
> On 2020-01-16 11:23, Daniel Braniss wrote:
>> 63549 a.out    CALL  openat(AT_FDCWD,0x1045b,0x2<O_RDWR>)
>> 63549 a.out    NAMI  "/dev/ttyU0"
>> 63549 a.out    RET   openat -1 errno 6 Device not configured
>> 63549 a.out    CALL  nanosleep(0xbfbfec20,0xbfbfec10)
>> 63549 a.out    RET   nanosleep 0
>> 63549 a.out    CALL  writev(0x2,0xbfbfe408,0x4)
>> 63549 a.out    GIO   fd 2 wrote 28 bytes
>>       "open: Device not configured
>> and the console:
>> Jan 16 12:17:14 neo-black-1 kernel: umodem_cfg_set_dtr: onoff=1
>> Jan 16 12:17:14 neo-black-1 kernel: umodem_cfg_set_rts: onoff=1
>> Jan 16 12:17:15 neo-black-1 kernel: umodem0: at uhub5, port 1, addr 2 (disconnected)
>> Jan 16 12:17:15 neo-black-1 kernel: umodem_detach: sc=0xd494c400
>> Jan 16 12:17:16 neo-black-1 kernel: umodem_cfg_set_break: onoff=0
>> Jan 16 12:17:16 neo-black-1 kernel: umodem0: detached
>> Jan 16 12:17:23 neo-black-1 kernel: umodem_probe:
>> Jan 16 12:17:23 neo-black-1 syslogd: last message repeated 1 times
>> Jan 16 12:17:23 neo-black-1 kernel: umodem0 on uhub5
>> Jan 16 12:17:23 neo-black-1 kernel: umodem0: <SM SM-2D PRODUCT USB UART, class 2/0, rev 1.10/1.00, addr 2> on usbus5
>> Jan 16 12:17:23 neo-black-1 kernel: umodem0: data interface 1, has no CM over data, has no break
> 
> Also do:
> 
> ls /dev/cuaU*
> 
> To make sure there are not multiple devices there!
> 
> Can you try to open up /dev/cuaU0 instead?
> 
> Same result?
> 
> --HPS



More information about the freebsd-stable mailing list