Hello Roger,

Thanks for providing some insight into my problem however the manual that
came along with the USB Modem that I purchased does not provide any kind of
documentation as to what it supports. The machine on which I am running this
code does not have a serial port it just has 4 USB ports. With a serial port
modem communication becomes much easier as Java provides API to communicate
with devices using Serial Port. I am not pretty much sure about whether the
USB Modem is able to recognize the AT command set or not.

The thing which I would like to know is which endpoint should I use to send
AT Commands to my USB Modem (If its supported). Thanks again for your
inputs.

On Thu, Jan 29, 2009 at 12:37 AM, Roger Lindsjö <[email protected]>wrote:

> 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ö
>



-- 
Warmest Regards,
Sumeet C
------------------------------------------------------------------------------
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