|
This experimental project shows you a simple method in order to make use of dynamic DNS system to build up personal remote access over GSM mobile service. It means that you can simply settle up ADSL router at home to be able to accessable by GSM module or eventhough GSM mobile phone. Any where, as far as GSM service available.
Testing procedure First of all, this experimental has used internet service from TT&T. After I applied to their service they gave us one ADSL router and first time installation. If every things is okey then we can start by the following procedure. a) Turn on ADSL router and make sure that you can enter internet access. Picture 1 ADSL router provided by TT&T. [Brand: Billion, Model: BiPAC 5210S] b) Go to www.dyndsn.org and take some time to making registration. You shall have user name and password right now. Picture 2 First page on dyndns.org. c) After you can loged in then you can add your prefer host name to Dynamic DNS service. Picture 3 Entry point to personal host name management. 
Picture 4 List of currently used host name. 
Picture 5 Fill up your new host name information which to be added. 
Picture 6 Confirm the order. 
Picture 7 Activate the services. d) Setup your ADSL router to know DDNS service by log in to service ip address 192.168.1.1. Picture 8 Enter "Access Management" menu and go through "DDNS" submenu then enter DDNS information as you got from dyndns.com. 
Picture 9 Enter "Advanced Setup" menu and "NAT" submenu then click on "Vitual Server" button. 
Picture 10 Setup your local server ip address and port number. 
Picture 10 Save the changed.
Picture 11 Right now your any one can see your local server as public domain. e) Simplify launch testing echo server demo. You can study how to use Microsoft C++ for writting tcp/ip server here http://www.codeproject.com/KB/IP/MFCSockets.aspx , and can download demo as well. Thanks Jobin Wilson for your kindly sharing value experiences. Picture 12 Starting echo server. Picture 13 Echo server is now running. f) Connect GSM terminal to PC then power on it and make sure that it is ready to use. Picture 14 GSM terminal is turned on and ready to use. Picture 15 Using RS232 terminal client to communcate with GSM terminal. In such this case we use "Docklite" trial version. Picture 16 Checking UART communication using AT<enter> and also checking GSM network camping by AT+CREG<enter> command. It should returns +CREG:1,1 or +CREG:0,1 . g) Configure APN and necessary parameters. 
Picture 17 Setup hardware flowcontrol(at+k3), configure GPRS parameters(at+kcnxcfg), connection timer(at+kcnxtimer),select stored profile(at+kcnxprofile) and the last one make sure that GPRS is available(at+cgatt). f) Configure server name as you have registered and also port number must be the same with echo server. And try to connect to the server. Picture 18 Setting server name and port after that we can try to make a connection to server then it given service id. In this case it returns +KTCPCNX: 1. Therefore we use service id for refference in connecting process by AT+KTCPCNX=1. Once the connection is accepted the server return somewhat to us which 19 byte long. 
Picture 19 We can receive somewhat by issue the command AT+KTCPRCV. We will see that our echoserver was sent a message "Connected To Server" to us. 9) Try to send some things to echoserver. Picture 20 We can try to send a message to echoserver as well Picture 21 What we sent are present on echoserver output screen. h) Closing connection. Picture 22 After we finish our task we should closing the connection in order to release gprs connection because some ISP are collect air charge by means of usage time. 
Picture 23 Once the client is closed then a message box pop up as above |