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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

NOTE<br />

1 – save the setting<br />

If the parameter of is omitted, it will save the setting.<br />

Examples<br />

<strong>AT</strong>+ CGPIO =1,1,0<br />

OK<br />

12.13 <strong>AT</strong>+CGDRT Set the direction of specified GPIO<br />

Description<br />

The <strong>command</strong> is used to set the specified GPIO to in or out state. If setting the specified GPIO to in<br />

state, then it can not set the value of the GPIO to high or low.<br />

SIM PIN<br />

NO<br />

References<br />

Vendor<br />

Syntax<br />

Write Command<br />

<strong>AT</strong>+CGDRT=,<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 – in<br />

1 – out<br />

<br />

0 – not save the setting<br />

1 – save the setting<br />

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

Examples<br />

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

OK<br />

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

5/15/2012

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

Saved successfully!

Ooh no, something went wrong!