Sumeet Chakraborty wrote:
> Hello Mike,
>
> Thanks a lot for providing some insight to my problem.  Can you please 
> tell me whether it would be possible for me to send "AT" commands to 
> the USB Modem. Another thing which I wanted to ask you is you said 
> that there are 3 interfaces
> Interface 0 - No Endpoints
> Interface 1 - one Endpoint
> Interface 2 - two Endpoints
>
> How were you able to figure out the following
> 1) Interface 1 had a single interrupt endpoint? Is there any specific 
> hex value which signifies it to be an interrupt endpoint?
> 2) Interface 1 had a single bulk transfer endpoint? Is there any 
> specific hex value which signifies it to be an bulk transfer endpoint?
>
> When do I use an interrupt Endpoint and when do I use a bulk Transfer 
> Endpoint? The modem guide tells that it supports all the standard "AT" 
> command sets. For example "AT + CMGF =1" instructs the Modem to 
> operate in a SMS Text Mode. Are these commands to be send to the modem 
> are interrupts or Bulk Transfers?
Your modem might already have  a "serial" port provided by drivers in 
the OS. But if you want to communicate with the modem directly you 
should probably look at

http://www.usb.org/developers/devclass_docs/CDC1.2_WMC1.1.zip
Specifically the CDC PSTN documentation (PSTN120.pdf)

More common devices are described at:

http://www.usb.org/developers/devclass_docs#approved
>
> In my code when it finds the Single Interrupt Endpoint I am trying to 
> open the pipe and send the command "AT" like below
> *UsbPipe pipe = ep.getUsbPipe();
> pipe.open();
> byte data[] = "AT".getBytes();
>  pipe.asyncSubmit(data);*
If your device supports abstract control model look at CDC120.pdf, 
specifically the SendEncapsulatedCommand. (A cursory view of the output 
you sent indicates that you have such a modem).

//Roger Lindsjö

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
javax-usb-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/javax-usb-devel

Reply via email to