Hello Roger,

The USB Modem which I am using is from Sentar Wireless Technology and the
model number is  ST860U. Following is the link for the same.
http://www.sentarwireless.com/rdr/?lang=english&mod=products&fileid=st860u_en.php


On Tue, Feb 3, 2009 at 9:36 PM, Sumeet Chakraborty <
sumeet.chakrabo...@gmail.com> wrote:

> Hello Roger,
>
> First of all my apologies for the delayed response. I went through the
> PSTN120.pdf and I would like to sincerely thank you for providing me such a
> nice document which has cleared my queries. However I am still left with a
> few queries.
>
> 1) How do I recognise which interface corresponds to abstract control
> model? Is there any way to check it.
>
> 2) How to I understand which protocol my device supports, As far as I know
> it supports the AT Command sets.
>
> Please help me on the same. Thanks in advance.
>
>
> On Fri, Jan 30, 2009 at 1:30 AM, Roger Lindsjö <ro...@tilialacus.net>wrote:
>
>> Sumeet Chakraborty wrote:
>>
>>> Hello Roger,
>>> Thanks for providing more insight to my problem. When we look into the
>>> output of the "testlibusb-win32.exe" do we need to look at the key  by the
>>> name "*bmAttributes*". In the key bmAttributes key I could see values as
>>> "02h", "03h", so do these values correspond to the values that is mentioned
>>> in section 4.2 of PSTN120.pdf.
>>>
>>> Is the SendEncapsulatedCommand supported with the javax.usb package?
>>>
>> Yes, SendEncapsulatedCommad is just a sequence of bytes posted as a IRP.
>>
>>> what kind of flexibilities does a Abstract Control Model give me?
>>>
>> It seems to allow your device to understand AT commands sent over a
>> specific protocol on top of USB.
>>
>>> Is there any kind of modification I need to do at my code level to send
>>> "AT" commands to the USB Modem?
>>>
>> You probably need something along the lines of:
>>
>> byte[] data = "ATcommand".getBytes("US-ASCII");
>> UsbControlIrp controlIrp = thePipe.createUsbControlIrp((byte)0x21, (byte)0
>> , (short)0, (short)interfaceNum);
>> controlIrp.setData(data);
>> thePipe.synchSubmit(controlIrp);
>>
>>> Please do let me know as to what I need to do to send AT Commands to the
>>> USB modem?
>>>
>> As your modem probably supports CDC, PSTN specifically, you need to read
>> and understand the document I pointed to. You must implement the protocol
>> mandated by the device. Much as you can't just send random bytes over TCP
>> IP, you must know if the other end wants HTTP, FTP, GOPHER etc.
>>
>> //Roger Lindsjö
>>
>>
>
>
> --
> Warmest Regards,
> Sumeet C
>



-- 
Warmest Regards,
Sumeet C
------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
javax-usb-devel mailing list
javax-usb-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/javax-usb-devel

Reply via email to