I’ve several problems to get my socket back in command mode. My solution at the moment:
do_log("Disconnect -> close Socket") while(MDM.getDCD() == 1): Result = MDM.receive(15) MDM.send(‘+++’,20)
MOD.sleep(15) MDM.send(‘AT#SH=2r’,2)
Result = MDM.receive(20)
Sometimes it stucks until watchdog reboots the system… What is a solution, which i’m 1000% sure that MDM is back in command mode?
THX
Try longer guard time and on both sides of +++:
MOD.sleep(20)
MDM.send(‘+++’,20)
MOD.sleep(20)
But do you know my problem? Yes i can try to set a longer guard time, but also then, it doesnt work 100%. Is it the right way to check MDM.getDCD() ? Because unless MDM.getDCD() is not false, the module is not in command mode, right? :-/
Or what are especially the reasons, why MDM.send(‘+++’,20) will not work properly?
THX 🙂
Please try as I said, longer guard time and sleep time before and after +++.
We use cookies to enhance your browsing experience and help us improve our websites. To improve our website, we carefully select third parties that use cookies to allow us to serve specific content and achieve the purposes set out in our cookie policy. For more information on how to make adjustments through your browser to the cookies being used on your device, please click Find Out More link. By closing this banner or continuing to browse our website, you agree to our use of such cookies. FIND OUT MORE
Hi there again, 🙂
I’ve several problems to get my socket back in command mode. My solution at the moment:
Sometimes it stucks until watchdog reboots the system… What is a solution, which i’m 1000% sure that MDM is back in command mode?
THX
Try longer guard time and on both sides of +++:
MOD.sleep(20)
MDM.send(‘+++’,20)
MOD.sleep(20)
But do you know my problem? Yes i can try to set a longer guard time, but also then, it doesnt work 100%. Is it the right way to check MDM.getDCD() ? Because unless MDM.getDCD() is not false, the module is not in command mode, right? :-/
Or what are especially the reasons, why MDM.send(‘+++’,20) will not work properly?
THX 🙂
Please try as I said, longer guard time and sleep time before and after +++.