14.03.2015 Views

AT Commands Reference Manual - wireless netcontrol GmbH

AT Commands Reference Manual - wireless netcontrol GmbH

AT Commands Reference Manual - wireless netcontrol GmbH

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Chapter 3: <strong>AT</strong> <strong>Commands</strong> <strong>Reference</strong><br />

The following table shows the +MIOI parameters.<br />

Table 3-107: +MIOI Parameters<br />

<br />

<br />

<br />

<br />

Description<br />

Selected pins for the action invoked. This is a binary vector in which each bit<br />

points to pin number.<br />

Vector size is 8.<br />

0 Not selected 1 Selected pin.<br />

Configures debounce:<br />

Range 0-1<br />

0- DEBOUNCE_NORMAL (MAX 100MS -> 10HZ)<br />

1- DEBOUNCE_FAST (MAX 25MS-> 40HZ)<br />

Configures notification type:<br />

Range 0-2:<br />

0- NOTIFIC<strong>AT</strong>ION_TYPE_HIGH_TO_LOW<br />

1- NOTIFIC<strong>AT</strong>ION_TYPE_LOW_TO_HIGH<br />

2- NOTIFIC<strong>AT</strong>ION_TYPE_BOTH_EDGES<br />

Default is 0.<br />

Note: Interrupt configuration is NOT saved through power cycle. After power cycle the pins<br />

previously configured as interrupt will be reconfigured as input (not interrupt). It is the<br />

user's responsibility to reconfigure them upon his specific initial setup.<br />

Error using MIOI commands:<br />

When missing one of the mandatory Parameters the following error will returned:<br />

+CME ERROR:"Invalid number of Parameters"<br />

Example<br />

<strong>AT</strong>+MIOI=?<br />

+MIOI: (1-11111111),(0-1),(0-2)<br />

OK<br />

<strong>AT</strong>+MIOI=1,1,2<br />

// GPIO 1 is set as interrupt with fast debounce and both-edges<br />

notification.<br />

OK<br />

<strong>AT</strong>+MIOI?<br />

+MIOI:<br />

00000001,00000001,00000002 //matching the setting above<br />

OK<br />

…<br />

// interrupt rise occurred<br />

+MIOI:1,1<br />

//unsolicited message: GPIO 1 rise to state HIGH<br />

April 15, 2010 H24 - <strong>AT</strong> <strong>Commands</strong> <strong>Reference</strong> <strong>Manual</strong> 3-177

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

Saved successfully!

Ooh no, something went wrong!