Technical information

Table Of Contents
Hardware Information
3-180 AT Commands Reference Manual January 31, 2007
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 (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 // Set IO pin #5 to be output.
OK
AT+MIOD? // (Optional) Read the IO pin definitions to confirm correct settings.
+MIOD: 11101111 // Pins 1-4 and 6-8 are input pins. Pin 5 is output.
OK // At this point the module is configured to control the logic values of
pin 5.
AT+MIOC=00010000, 00010000 // Turn on the light by setting pin 5 to high.
AT+MIOC? // (Optional) read the pins status.
+MIOC: 00010000 // Pin 5 is set to high.
OK
AT+MIOD=00010000,0, 00010000 // All previous defined in one command.
OK
AT+MIOC=00010000,00000000 // Turn off the light by setting pin 5 to low.
OK
AT+MIOC? // (Optional) read the pins status.
+MIOC: 00000000 // Pin 5 is set to low.
OK