12.07.2015 Views

GM862-GPS Software User Guide - SemiconductorStore.com

GM862-GPS Software User Guide - SemiconductorStore.com

GM862-GPS Software User Guide - SemiconductorStore.com

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2- Let's assume you want to query the GPIO4 pin for its status:<strong>com</strong>mand:AT#GPIO=4,2response:#GPIO: 1,0OKIn this case, the GPIO4 pin was set in output direction and its status is LOW.<strong>GM862</strong>-<strong>GPS</strong> <strong>Software</strong> <strong>User</strong> <strong>Guide</strong>1vv0300729 Rev. 4 - 24/01/073- Let's assume you want to query the GPIO6 pin for its status:<strong>com</strong>mand:AT#GPIO=6,2response:#GPIO: 2,0OKIn this case, the GPIO6 pin was set in "alternate function" direction and therefore works as alarmoutput. The reported status = LOW has no meaning.3.6.2.2 Setting GPIO pin output statusTo set the pin status (when pin is set as OUTPUT):• Send <strong>com</strong>mand AT#GPIO=,,1where: is the GPIO pin number at which the <strong>com</strong>mand applies:7 – GPIO72 – GPIO2 8 – GPIO83 – GPIO3 9 – GPIO94 – GPIO4 10 – GPIO105 – GPIO5 11 – GPIO116 – GPIO6 12 – GPIO1213 – GPIO13 is the pin value to be set and can be:0 – LOW1 – HIGH• wait for response OKFor example:1- Let's assume you want to set the GPIO3 pin HIGH:<strong>com</strong>mand:AT#GPIO=3,1,1response:OKReproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved page 81 of 111

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!