Thanks for the reply, Roger.

I am sending only AT and ATZ commands. So, just resetting and AT
commands were not working. But now somehow i made them working. They
return OK and i am happy so far.

But now i have another problem. The requests that i send are not
exactly being followed by the response. Sometimes, responses come
later and my program has moved on to some other "submit" command. So i
am unable to relate which response belongs to which command request?

My method to submit and read data.

1. Create irp from inpipe.
2. set data buffer of 64 bytes long. (exactly as i my bulk endpoint
says the maxpktsize to be).
3. I ran a seprate thread to submit irp to input pipe. inPipe.syncSubmit(irp);

4. Then i submit data to outpipe for my usb endpoint.
outPipe.syncSubmit(outIrp);
5. Then i get data buffer from my inpipe.

Is that OK? I can post code if you want. I am totally lost in the
maize. I have checked with -DJAVAX_USB_MSG_LEVEL=DEBUG3 also but i
couldn't figure out much there.

TIA
Navjot Singh


On Mon, 08 Nov 2004 11:15:07 +0100, Roger Lindsjö
<[EMAIL PROTECTED]> wrote:
> Navjot Singh wrote:
> 
> >hi,
> >
> >I am just 1 week conversant with usb and dont know much details. I am
> >writing a program to communicate with GSM modem connected to PC with
> >USB cable.
> >
> >No matter which AT command i send to my gsm modem, it returns the same
> >2 byte response to me. Response is 1` (0x31 0x60).
> >
> >
> Are you sure that you should send the AT commands directly? Have you
> snooped any working sesion with the modem to see if you first need to
> send other initialization data?
> 
> //Roger Lindsjö
> 
>


-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88&alloc_id065&op=click
_______________________________________________
javax-usb-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/javax-usb-devel

Reply via email to