22.01.2015 Views

this SIM5218 AT command manual - Cooking Hacks

this SIM5218 AT command manual - Cooking Hacks

this SIM5218 AT command manual - Cooking Hacks

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.

<strong>SIM5218</strong> Serial <strong>AT</strong> Command Set<br />

12.14 <strong>AT</strong>+CGSETV Set the value of specified GPIO<br />

Description<br />

The <strong>command</strong> is used to set the value of the specified GPIO to high or low.<br />

SIM PIN<br />

NO<br />

References<br />

Vendor<br />

Syntax<br />

Write Command<br />

<strong>AT</strong>+CGSETV=,<br />

[,]<br />

Responses<br />

OK<br />

ERROR<br />

Defined values<br />

<br />

1 – GPIO1<br />

2 – GPIO2<br />

3 – GPIO3<br />

4 – GPIO4<br />

5 – GPIO5<br />

<br />

0 – low<br />

1 – high<br />

<br />

0 – not save the setting<br />

1 – save the setting<br />

NOTE If the parameter of is omitted, it will save the value of specified GPIO.<br />

Examples<br />

<strong>AT</strong>+CGSETV=3,0,0<br />

OK<br />

12.15 <strong>AT</strong>+CGGETV Get the value of specified GPIO<br />

Description<br />

The <strong>command</strong> is used to get the value (high or low) of the specified GPIO.<br />

SIM PIN<br />

NO<br />

References<br />

Vendor<br />

<strong>SIM5218</strong>_Serial _<strong>AT</strong>C_V1.36 247<br />

5/15/2012

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

Saved successfully!

Ooh no, something went wrong!