I’m using a GM862-GPS running firmware version 07.02.403 with a V3 RS232 breakout board and i’m having problems with the MDM commands in Python. I’ve not got a debug board (and the Telit Serial Port multiplexer for CMUX just freezes) and so i’ve used a combination of SER.send and an LED on a GPIO line for debugging.
What i’m basically seeing is I can use GPS, GPIO, SER and MOD commands without any problem but that MDM commands just seem to make my programs terminate.
When I run the following I see the “hello world” the LED i’ve attached to GPIO3 goes on but I never get any output from the result of the MDM.send command and it never reaches the code to turn the LED off.
Can anyone tell me what i’m doing wrong here?
import SER
import MDM
import MOD
import GPIO
SER.set_speed('115200','8N1')
SER.send('Hello World\r\n')
GPIO.setIOdir(3,1,1)
GPIO.setIOvalue(3,1)
res = MDM.send('AT+CPIN?\r', 0)
SER.send('res='+res)
res = MDM.receive(10)
SER.send('res='+res)
GPIO.setIOvalue(3,0)