Re: g_serial and cdc_acm communications

2012-07-24 Thread Felipe Balbi
(please use reply to all and keep the previous mail) On Tue, Jul 24, 2012 at 02:29:57PM +, Dipen Patel wrote: > Hi Felipe, > > I think I know why my application is not receiving SIGHUP. > > When HOST sends SET_CONFIGURATION the set_config() in composite.c calls > acm_set_alt(). Now acm_set_

Re: g_serial and cdc_acm communications

2012-07-24 Thread Dipen Patel
Hi Felipe, I think I know why my application is not receiving SIGHUP. When HOST sends SET_CONFIGURATION the set_config() in composite.c calls acm_set_alt(). Now acm_set_alt() calls gserial_connect() and it will create new port. But it never called gserial_disconnect() to close previously calle

Re: g_serial and cdc_acm communications

2012-07-24 Thread Dipen Patel
Hi Felipe, In my device application I am not receiving SIGHUP when HOST sends SET_CONFIGURATION or my device is replugged into HOST. Signals are another mechanism for application to know that either device is reattached or SET_CONFIGURATION is called by HOST apart from my custom solution of

Re: g_serial and cdc_acm communications

2012-07-24 Thread Felipe Balbi
Hi, On Mon, Jul 23, 2012 at 02:34:33PM +, Dipen Patel wrote: > Can anyone help me with this? How my application should detect device > plugout/plugin and SET_CONFIGURATION events? > > Is my current solution of generating input event on SET_CONFIGURATION call for > application to close and re

Re: g_serial and cdc_acm communications

2012-07-23 Thread Peter Stuge
Dipen Patel wrote: > Can anyone help me with this? How my application should detect device > plugout/plugin and SET_CONFIGURATION events? > > Is my current solution of generating input event on SET_CONFIGURATION > call for application to close and reopen device node is Okay? I don't think g_ser

Re: g_serial and cdc_acm communications

2012-07-23 Thread Dipen Patel
Can anyone help me with this? How my application should detect device plugout/plugin and SET_CONFIGURATION events? Is my current solution of generating input event on SET_CONFIGURATION call for application to close and reopen device node is Okay? Appreciate any help on this. Regards, Dipen Pa

Re: g_serial and cdc_acm communications

2012-07-13 Thread Dipen Patel
HI, One thing I observed is that set_config() from composite.c calls acm_set_alt() in f_acm.c. Here in acm_set_alt() for intf==acm->data_id it always goes to else part. So rather than resetting it activates new configuration and thus it gets new port number everytime. I guess once the device i

Re: g_serial and cdc_acm communications

2012-07-13 Thread Dipen Patel
Peter Chen writes: > > > > > 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 r

Re: g_serial and cdc_acm communications

2012-07-13 Thread Peter Chen
> > 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

Re: g_serial and cdc_acm communications

2012-07-13 Thread Dipen Patel
Hi, 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

Re: g_serial and cdc_acm communications

2012-07-12 Thread Peter Chen
> Hi, > > Resolved this by fixing a bug in device side transmit routine. Anyways thank > you > guys. This was the only post I found on net with exactly my problem. > Do you mean BUGs at fsl_udc_core.c? Do you mind share of your finding? Thanks, Peter > Regards, > Dipen Patel > > -- > To unsubscr

Re: g_serial and cdc_acm communications

2012-07-12 Thread Alan Stern
On Thu, 12 Jul 2012, Dipen Patel wrote: > > Hi Ron/Greg, > > I am facing similar issue with serial gadget configured on i.MX6Q > Sabrelite board. > > In my case Host sends packets starting with 10 bytes to 2MB bytes in > increments of 1 byte. And device simply loopback the same packet with >

Re: g_serial and cdc_acm communications

2012-07-12 Thread Dipen Patel
Hi, Resolved this by fixing a bug in device side transmit routine. Anyways thank you guys. This was the only post I found on net with exactly my problem. Regards, Dipen Patel -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel

Re: g_serial and cdc_acm communications

2012-07-12 Thread Dipen Patel
Hi Ron/Greg, I am facing similar issue with serial gadget configured on i.MX6Q Sabrelite board. In my case Host sends packets starting with 10 bytes to 2MB bytes in increments of 1 byte. And device simply loopback the same packet with status byte. However everything works fine until Tx (repl