29
29
APPENDIX II
WirelessCom/G10 Master mode connection
This appendix will explain the setup for making a Wireless connection between
WirelessCom/G10 and a PC using the master mode. Master mode connection means the PC is
acting as a server and WirelessCom is acting as a client. PC will be in listening mode and will be
waiting for a connection. WirelessCom will initiate connection to the server pc whenever some data
arrives on serial port of WirelessCom. Based on the software running on the PC side two examples
have been explained.
a) Using Microsoft Telnet on Server PC
Microsoft Telnet is an application which comes pre-installed on Windows operating
systems. This application can be used to connect to other applications over the internet (provided
that you have the IP and port number of the remote application). This application can also be used
to listen for incoming connections on the Telnet port 23. Since this application is a dedicated Telnet
application, you don’t have the possibility to change the incoming port, it is always fixed to 23.
Requirements:
Windows PC with Static IP (not required if you are in a VPN) and Telnet, Port
forwarding in case your PC is connected in LAN/ behind a router, Internet connection.
PC-side setup:
1) To launch Telnet application you will have to go to the command prompt.
2) On the bottom left corner of your desktop click
Start
and then click
Run
.
3) A dialog box will pop-up, in the field
Open:
type
cmd
and press
OK
.
4) This action will open a command window on your desktop.
5) On the command prompt type
telnet
and the telnet application will launch.
6) If the application does not launch then go to your root directory by using
cd\
command and try
again.
7) By default it is waiting for incoming connection on port 23.
8) The next step is to configure WirelessCom to connect to your PC.
WirelessCom/G10 setup:
1) WirelessCom should be configured in Master mode.
2) Use the command
gprs_master
to configure WirelessCom with typical parameters.
3) Configure the parameter
server_ip
by entering the IP of your PC. Configure
server_port
as 23.
4) After you have completed the configuration, use the test command to check the working of
WirelessCom.
5) If the test is successful, restart WirelessCom/G10 and wait until it initializes and the status LED
is Green and always ON.