Gammu internals  1.38.0
Alcatel phones communication
Collaboration diagram for Alcatel phones communication:

Data Structures

struct  GSM_Phone_ALCATELData
 

Macros

#define GSM_USED_AT
 
#define GSM_USED_ALCABUS
 
#define ALCATEL_FREE_MEMORY   100
 
#define ALCATEL_MAX_LOCATION   0xffff
 
#define ALCATEL_MAX_CATEGORIES   100
 

Enumerations

enum  GSM_Alcatel_Mode { ModeAT = 1, ModeBinary }
 
enum  GSM_Alcatel_ProtocolVersion { V_1_0 = 1, V_1_1 }
 
enum  GSM_Alcatel_BinaryState { StateAttached = 1, StateSession, StateEdit }
 
enum  GSM_Alcatel_BinaryType { TypeCalendar = 1, TypeContacts, TypeToDo }
 
enum  GSM_Alcatel_FieldType {
  Alcatel_date, Alcatel_time, Alcatel_string, Alcatel_phone,
  Alcatel_enum, Alcatel_bool, Alcatel_int, Alcatel_byte
}
 

Detailed Description

High level functions for communication with Alcatel One Touch 501 and compatible mobile phone.

This code implements functions to communicate with Alcatel phones, currently seem to work:

Notes for future features:

Macro Definition Documentation

§ ALCATEL_FREE_MEMORY

#define ALCATEL_FREE_MEMORY   100

Return value for GetMemoryStatus. There is no way ho to determine free memory so we have to return some fixed value.

Definition at line 151 of file alcatel.h.

§ ALCATEL_MAX_CATEGORIES

#define ALCATEL_MAX_CATEGORIES   100

Maximum category count. Used for static cache size.

Definition at line 161 of file alcatel.h.

§ ALCATEL_MAX_LOCATION

#define ALCATEL_MAX_LOCATION   0xffff

Maximum location, that will driver attempt to read. Because phone can have up to 2^32 locations, we want to limit this a bit.

Definition at line 157 of file alcatel.h.

§ GSM_USED_ALCABUS

#define GSM_USED_ALCABUS

Definition at line 40 of file alcatel.h.

§ GSM_USED_AT

#define GSM_USED_AT

Definition at line 37 of file alcatel.h.

Enumeration Type Documentation

§ GSM_Alcatel_BinaryState

State of binary mode.

Enumerator
StateAttached 

Binary mode is active. No type selected.

StateSession 

Opened session of some type.

StateEdit 

Some item is being edited.

Definition at line 74 of file alcatel.h.

74  {
78  StateAttached = 1,
86  StateEdit
GSM_Alcatel_BinaryState
Definition: alcatel.h:74

§ GSM_Alcatel_BinaryType

Type of active binary session.

Enumerator
TypeCalendar 

Calendar events.

TypeContacts 

Contacts.

TypeToDo 

To do items.

Definition at line 92 of file alcatel.h.

92  {
96  TypeCalendar = 1,
100  TypeContacts,
104  TypeToDo
GSM_Alcatel_BinaryType
Definition: alcatel.h:92

§ GSM_Alcatel_FieldType

Alcatel internal types.

Enumerator
Alcatel_date 

Date, stored as GSM_DateTime.

Alcatel_time 

Time, stored as GSM_DateTime.

Alcatel_string 

String, strored as chars

Alcatel_phone 

Phone number (can contain anything, but dialling it then may cause strange problems to phone) strored as chars.

Alcatel_enum 

Enumeration, usually used for user defined values (categories), stored as int.

Alcatel_bool 

Boolean, stored as int.

Alcatel_int 

32-bit unsigned integer, stored as int.

Alcatel_byte 

8-bit usigned integer, stored as int.

Definition at line 110 of file alcatel.h.

§ GSM_Alcatel_Mode

Determines which mode is phone currently using.

Enumerator
ModeAT 

Phone accepts normal AT commands.

ModeBinary 

Binary mode using proprietary protocol.

Definition at line 46 of file alcatel.h.

46  {
50  ModeAT = 1,
GSM_Alcatel_Mode
Definition: alcatel.h:46
Definition: alcatel.h:50

§ GSM_Alcatel_ProtocolVersion

Protocol version being used for binary mode.

Enumerator
V_1_0 

Version 1.0 used in BE5 phones (501, 701).

V_1_1 

Version 1.1 used in BF5 phones (715, 535, 735).

Definition at line 60 of file alcatel.h.

60  {
64  V_1_0 = 1,
68  V_1_1
Definition: alcatel.h:68
GSM_Alcatel_ProtocolVersion
Definition: alcatel.h:60
Definition: alcatel.h:64