API  2.2
TSmarT Software Library
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
tsmart_xv_cellular_2g_config_t Struct Reference

Cellular 2g parameters structure. More...

#include <tsmart_xv.h>

Data Fields

uint8_t * pin_code
tsmart_xv_cellular_2g_flag_t iled
uint8_t ip_ttl
uint16_t ip_frag_timeo
uint16_t tcp_maxinitwin
uint8_t tcp_rexmt_max
uint8_t tcp_rexmt_maxcnt

Detailed Description

Cellular 2g parameters structure.


Field Documentation

Configures the TSmarT LED GSM indicator with one of the following values, (it'll take value after reset module):

uint16_t ip_frag_timeo

Time to live in seconds of incomplete fragments, When a datagram s size is larger than the MTU (Maximum Transmission Unit) of the network, then the datagram is divided into smaller fragments. These divided fragments are sent separately. The 'ip_frag_timeo' option specifies the Time to live for these fragments. Range: 1-65535 (default value: 60).

uint8_t ip_ttl

Default TTL of outgoing datagrams, This option is a limit on the period of time or number of iterations or transmissions that a unit of data can experience before it should be discarded. The time to live (TTL) is an 8-bit field in the Internet Protocol (IP) header. It is the 9th octet of 20. Its value can be considered as an upper bound on the time that an IP datagram can exist in an internet system. The TTL field is set by the sender of the datagram, and reduced by every host on the route to its destination. If the TTL field reaches zero before the datagram arrives at its destination, then the datagram is discarded. This is used to avoid a situation in which an undelivered datagram keeps circulating in the network. Range: 0-255 (default value: 64).

uint8_t* pin_code

SIM pin Code. 4 digits are requiered. If the SIM does not have a PIN code enabled, users shall be to set an empty string: "".

uint16_t tcp_maxinitwin

Number of segments of initial TCP window, This option is used to specify the number of segments in the initial TCP window. A TCP window specifies the amount of outstanding (unacknowledged by the recipient) data a sender can send on a particular connection before it gets an acknowledgment back from the receiver. The primary reason for the window is congestion control. Range: 0-65535 (default value: 0).

uint8_t tcp_rexmt_max

Maximum timeout of TCP packets, the maximum time between TCP retransmissions. Range: 1 - 64 (default value:64 seconds)

uint8_t tcp_rexmt_maxcnt

Maximum number of TCP packet retransmissions. Range: 1 - 12 (default value:12)