Hello,
I’ve been playing around with Socket example that comes with the development for past couple days and I’ve come across some problems I could not find solutions from the forum nor documenations. Appreciate little help from the experts.
I am using OpenAT v3.01, Q2406B module, running MSVS .net 2003.
==============================================
Problem 1:
In this scenario, untouched Socket example is compiled in debug mode.
The following are the state I got upto.
- have successfully received CGATT=1 response,
- got IP address from the network(eg 10.224.65.115)
- ed_SocketTCPStart() returned 0x00, which means OK.
- Callback function of (ed_ResponseCbk_f)tcp_pfResponseCbk was executed, getting “Socket Started” string out in my Terminal Emulator
This all looks really good but the problem is when I use my browser to connect to the Wavecom IP address, ie 10.224.65.115, nothing happens. I have placed break points in ‘(ed_DataHandler_f)tcp_pfDataHnd’ to see if any attempt is made, but unfortunately nothing came through.
I would expect the browser to try to establish connection to port 80 of Wavecom device. How do I make my dear Wavecom to act as a web server, if it doesn’t want to respond?
===============================================
Problem 2:
I didn’t want to get stuck with the above problem, so I tweaked the code little bit so that Wavecom is now a client instead of server.
Inside, tcp_ConnectHandler’ function, ‘Listen’ variable was changed to 0 (instead of 1 to initiate socket) and Params.TcpServ parameter was changed to a known IP address, eg “64.223.187.99” for Google
- have successfully received CGATT=1 response,
- got IP address from the network(eg 10.224.65.115)
- ed_SocketTCPStart() returned 0x00, which means OK.
Unlike the response in Problem 1, ‘tcp_pfResponseCbk’ was not even called. Of course tcp_pfDataRequest didn’t get called either.
From lots of other posts I have read from this forum, people have managed to retrieve data from websites. It looks pretty trivial but this makes me little frustrated to see how a simple thing like this is not kicking off. I would be delighted if anybody can help me with the two most basic functionalities of GPRS communication I have mentioned here.
Thanks for your help.
Yul
============================================