This may be a better question to pose to Telit directly, but I’m trying it here first since your response time is so good. Again on the MultiConnect OCG-E with MTSMC-H5-U, I can bring up an SSL socket like so:
def waitforready():
tmp = ''
while not len(tmp):
tmp = MDM.read()
MDM.send('AT#SGACT=1,1\r', TIMEOUT)
waitforready()
MDM.send('AT#SSLD=1,443,"our.server.hostname",0,1,1000\r', TIMEOUT)
waitforready()
I can do AT#SSLSEND=1
s from the Python code and successfully send data to the server. However, when I try to run that same command from minicom via /dev/ttyACM0
with CMEE set to 2, I get: +CME ERROR: Resource used by other instance
.
Is there any way to write to the same SSL connection from both Python and the serial interface, or to transfer use of the connection from Python to the serial interface once it has been brought up?