Presentation is loading. Please wait.

Presentation is loading. Please wait.

Establishing communication with Envirobat using TCP/IP Presented by Apourva Parthasarathy Date : 18/06/13.

Similar presentations


Presentation on theme: "Establishing communication with Envirobat using TCP/IP Presented by Apourva Parthasarathy Date : 18/06/13."— Presentation transcript:

1 Establishing communication with Envirobat using TCP/IP Presented by Apourva Parthasarathy Date : 18/06/13

2 Java provides an API – Application Programming Interface Interface to what ? - Interface to use the network Why do we need it ? Layering i.e. we can implement the functionalities requires above the transportation layer without worrying above the layers below it. Application API Transport Network Data link Physical

3 Sockets Definition : A socket is the endpoint of a two-way communication link between two programs running on the network. Every TCP connection can be uniquely identified by these end points. A socket is a combination of IP Address and Port number. The java.net.* package provides the socketServer class to create the server side socket. On the client side we use a set of AT commands to create the socket and define the connection.

4 Flowchart showing client-server communication using TCP

5 In Envirobat, Sagem GSM/GPRS module is used. This module provides its own AT command set for TCP specific commands. ATtention commands are used to establish TCP connection. AT commands are instructions used to control the modem. Sagem GSM/GPRS Module

6 AT commands for TCP +KTCPCFG +KTCPCNX +KTCPRCV +KTCPSND +KTCPCLOSE +KTCPDEL +KTCP_SRVREQ +KTCP_DATA +KTCPSTAT +KTCPSTART Every AT command gives a response. There are several possible responses like OK, NO CARRIER, ERROR etc. The response has to be parsed to obtain information such as : Session id No of bytes on the socket Type of error Cause of connection failure etc.

7 Design of AT command Parser : Iterative code Finite State machine Parse Tree

8 THANK YOU


Download ppt "Establishing communication with Envirobat using TCP/IP Presented by Apourva Parthasarathy Date : 18/06/13."

Similar presentations


Ads by Google