MDM built-in module

The MDM built-in module is the interface between Python and the module AT commands parser engine.

You need to use the MDM built-in module if you want to send AT commands and data from the Python script to the network and receive responses and data from the network during connections.

 

In the default configuration, echo (ATE0) is disabled and the response format of result codes is set to verbose (ATV1).

 

If you want to use MDM built-in module you need to import it:

 

import MDM

 

then you can use its methods as in the following example:

 

a = MDM.send('AT', 0)

b = MDM.sendbyte(0x0d, 0)

c = MDM.read()

 

which sends 'AT' and reads 'OK' response.

More details about MDM built-in module methods can be found in the following paragraphs.