2 setting gpio pin output status, At#gpio=<pin>,<value>,1<cr – Telit Wireless Solutions GE863 User Manual

Page 77

Advertising
background image





GE863-GPS Software User Guide

1vv0300724 Rev. 2 - 24/01/07

AT#GPIO=3,2<cr>
response:
#GPIO: 0,1
OK
In this case, the GPIO3 pin was set in input direction and its status has been measured to be HIGH.

2- Let's assume you want to query the GPIO4 pin for its status:
command:
AT#GPIO=4,2<cr>
response:
#GPIO: 1,0
OK
In this case, the GPIO4 pin was set in output direction and its status is LOW.

3- Let's assume you want to query the GPIO6 pin for its status:
command:
AT#GPIO=6,2<cr>
response:
#GPIO: 2,0
OK
In this case, the GPIO6 pin was set in "alternate function" direction and therefore works as alarm
output. The reported status = LOW has no meaning.


3.6.2.2 Setting GPIO pin output status

To set the pin status (when pin is set as OUTPUT):

• Send command

AT#GPIO=<pin>,<value>,1<cr>

where:
<pin> is the GPIO pin number at which the command applies:

1 – GPIO1

10 – GPIO10

2 – GPIO2

11 – GPIO11

3 – GPIO3

12 – GPIO12

4 – GPIO4

13 – GPIO13

5 – GPIO5

14 – GPIO14

6 – GPIO6

15 – GPIO15

7 – GPIO7

16 – GPIO16

8 – GPIO8

17 – GPIO17

9 – GPIO9

18 – GPIO18


<value> is the pin value to be set and can be:

0 – LOW
1 – HIGH


• wait for response

OK

Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved

page 77 of 109

Advertising