Cybrotech GSM-1 Manual de usuario Pagina 13

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 16
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 12
W
W
o
o
r
r
k
k
i
i
n
n
g
g
w
w
i
i
t
t
h
h
p
p
l
l
c
c
p
p
r
r
o
o
g
g
r
r
a
a
m
m
Note: this section applies to GSM-1 v3.1 only.
CyBro program has complete control on voice calls and SMS, both received and sent.
An example for such operation is GsmPlcDemo.cyp. Interface functionality is given in VoiceAndSMSAPI. To
use in your application, copy/paste all functions and variables.
I
I
n
n
c
c
o
o
m
m
i
i
n
n
g
g
S
S
M
M
S
S
Negative flank of variable incoming_message_reading indicates that SMS is received. Message content and
sender number are available in incoming_message and incoming_number. CyBro will receive all messages,
including those already handled by module.
O
O
u
u
t
t
g
g
o
o
i
i
n
n
g
g
S
S
M
M
S
S
To send a SMS, write text to outgoing _message and phone number to outgoing_number, then set
send_message to 1 (will reset automatically).
I
I
n
n
c
c
o
o
m
m
i
i
n
n
g
g
v
v
o
o
i
i
c
c
e
e
c
c
a
a
l
l
l
l
s
s
On incoming call variable gsm_incoming_call becomes 1, and gsm_incoming_rings increments on each ring.
Negative flank of variable incoming_number_reading indicates that number is available in incoming_number.
O
O
u
u
t
t
g
g
o
o
i
i
n
n
g
g
v
v
o
o
i
i
c
c
e
e
c
c
a
a
l
l
l
l
s
s
To make a voice call, write phone number to outgoing_number and set outgoing_call to 1 (will reset
automatically). Call will last until denied on receiving phone, or for a maximum of 60 seconds.
V
V
o
o
i
i
c
c
e
e
A
A
n
n
d
d
S
S
M
M
S
S
A
A
P
P
I
I
v
v
a
a
r
r
i
i
a
a
b
b
l
l
e
e
s
s
I
I
n
n
t
t
e
e
r
r
f
f
a
a
c
c
e
e
incoming_number[20] buffer for incoming phone number, ASCII, zero terminated
incoming_number_reading flag indicating reading of incoming number
incoming_message[160] buffer for incoming message content, ASCII, zero terminated
incoming_message_reading flag indicating reading of incoming message
outgoing_number[20] buffer for outgoing phone number, ASCII, zero terminated
outgoing_call set to make a call
outgoing_message[160] buffer for outgoing message content, ASCII, zero terminated
send_message set to send an sms
L
L
o
o
c
c
a
a
l
l
incoming_number_size number of incoming phone digits
incoming_message_size number of letters in incoming message
number_write_index index of currently writing outgoing number
outgoing_number_writing flag indicating writing of outgoing number
sms_write_index index of currently writing outgoing sms letter
outgoing_message_writing flag indicating writing of outgoing sms message
Vista de pagina 12
1 2 ... 8 9 10 11 12 13 14 15 16

Comentarios a estos manuales

Sin comentarios