Re: g_serial and cdc_acm communications

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

 



>
> However I have another problem. My host application calls
> SET_CONFIGURATION everytime it starts. On device side my application
> is running and waiting for data from Host. But whenever set config
> is called serial gadget driver (from composite.c) does soft reset and
> I think new port number is generated. Because of this my device
> application will not receive data until I close and reopen device node
> (/dev/ttyGS0).
>
So, the port number has not changed as  you can still open with ttyGS0.
The set_config should call gserial_disconnect from reading code.

> How to let device side application know that set_config is called and
> it needs to reopen device node?
Are there any Error returns for read if you have disconnected the
cable or set_config
occurs?

>
> For the time being I have implemented work around but it may not be
> good workaround. In cdev structure I have added input dev and whenever
> set_config is called I generate input event at the end of function. My
> application looks for this event and if received it reinitializes device.
>
> Regards,
> Dipen Patel
>
> --
> 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
--
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