Re: USB CDC-ACM filter?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Montag 27 April 2009 15:41:47 schrieb Manuel Naranjo:
> 
> > But how do you use setting baud rate and parity, etc ... on a bluetooth
> > dongle?
> >   
> Baud rate, parity and stop bits off course makes no sense. What you can 
> do is sending control signals (BRAKE, DTR, CTS) that's what we need.

I see.

> > You add a quirk which causes the probe() method to use another function here:
> > acm->urb_task.func = acm_rx_tasklet;
> > and
> > tty_register_device(acm_tty_driver, minor, &control_interface->dev);
> >   
> interesting.
> > In static int __init acm_init(void) you define a second driver with an altered
> > set of tty_operations that defines a different acm_tty_write()
> > Can you post "lsusb -v" for your device?
> >   
> sure:
> Bus 005 Device 002: ID 16ca:1502
> Device Descriptor:
>   bLength                18
>   bDescriptorType         1
>   bcdUSB               2.00
>   bDeviceClass            2 Communications
>   bDeviceSubClass         2 Abstract (modem)
>   bDeviceProtocol         1 AT-commands (v.25ter)

OK, it is ACM but has no union descriptor. You'll have to set NO_UNION_NORMAL
and a new quirk for it. Use that new quirk to set a flag and check that
in acm_tty_write(). In addition write a modified tasklet.

	Regards
		Oliver
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux