Motorola AT Commands G24-L Información técnica Pagina 310

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 680
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 309
Hardware Information
3-222 AT Commands Reference Manual August 5, 2008
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
Vista de pagina 309
1 2 ... 305 306 307 308 309 310 311 312 313 314 315 ... 679 680

Comentarios a estos manuales

Sin comentarios