Mioc Parameters - Motorola AT Commands G24-L Developer's Manual

At commands reference manual
Hide thumbs Also See for AT Commands G24-L:
Table of Contents

Advertisement

The following table shows the +MIOC parameters.
<Parameter>
<pin selection>
<data vector>
Example
AT+MIOC=?
+MIOC: (00000000-11111111),(00000000-11111111)
OK
Light control example:
Client has an electronic controlled light switch. The intent is to connect this switch to the G24-L (IO pin 5 -
for example) and control the light by setting the logical values of pin 5.
Example of code is as follows:
AT+MIOD=00010000,0
OK
AT+MIOD?
+MIOD: 11101111
OK
AT+MIOC=00010000, 00010000
AT+MIOC?
+MIOC: 00010000
OK
AT+MIOD=00010000,0, 00010000
OK
AT+MIOC=00010000,00000000
OK
AT+MIOC?
+MIOC: 00000000
OK
April 15, 2008
Table 3-95: +MIOC Parameters
Selected pins for the action invoked. This is a binary vector in which each bit points to
pin number. Vector size is 8.
0
Not selected
1
Selected pin (default)
This is a binary vector in which each bit show the physical value of pin. Data vector
size is 8.
0
Physical low signal.
1
Physical high signal (default).
The default value:
On Power Up - as previously saved in FLEX bytes.
Before set command first used with <Data vector> and <Mode>=0, or after +MIOC
without <Data vector> and before +MIOC command used - 1.
// Set IO pin #5 to be output.
// (Optional) Read the IO pin definitions to confirm correct settings.
// Pins 1-4 and 6-8 are input pins. Pin 5 is output.
// At this point the module is configured to control the logic values of
pin 5.
// Turn on the light by setting pin 5 to high.
// (Optional) read the pins status.
// Pin 5 is set to high.
// All previous defined in one command.
// Turn off the light by setting pin 5 to low.
// (Optional) read the pins status.
// Pin 5 is set to low.
G24-L AT Commands Reference Manual
Chapter 3: AT Commands Reference
Description
3-145

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

G24-lc

Table of Contents