Gemalto is now part of the Thales Group, find out more.

You are here

ERR 522 while FTPS upload with EXS82 | Thales IoT Developer Community

September 14, 2021 - 11:45pm, 75 views

Hello,

I am trying to upload a file to an FTPS server with an EXS82 modem.

I am receiving the error: "ERR: 522 Data connections must be encrypted."

The URL contains ftps:// and the server works OK with Filezilla Client.

Attached is the full console log.

 

14/09/2021 16:35:01.759 [TX] - AT^SCFG?<CR>

14/09/2021 16:35:01.926 [RX] - AT^SCFG?<CR>
<CR><LF>
^SCFG: "GPIO/Mode/Asc1","std"<CR><LF>
^SCFG: "GPIO/Mode/Spi","rsv"<CR><LF>
^SCFG: "GPIO/Mode/Suspend","off"<CR><LF>
^SCFG: "GPRS/AutoAttach","enabled"<CR><LF>
^SCFG: "GPRS/MTU/Mode",0<CR><LF>
^SCFG: "GPRS/MTU/Size",1430<CR><LF>
^SCFG: "Ident/Manufacturer","Cinterion"<CR><LF>
^SCFG: "Ident/Product","EXS82-W"<CR><LF>
^SCFG: "MEopMode/CregRoam","0"<CR><LF>
^SCFG: "MEopMode/PowerMgmt/Suspend","0","1"<CR><LF>
^SCFG: "MEopMode/Prov/AutoSelect","on"<CR><LF>
^SCFG: "MEopMode/Prov/Cfg","fallb3gpp"<CR><LF>
^SCFG: "MEopMode/PwrSave","disabled","52","50"<CR><LF>
^SCFG: "MEopMode/RingOnData","off"<CR><LF>
^SCFG: "MEopMode/RscMgmt/Rrc","1"<CR><LF>
^SCFG: "MEopMode/SRPOM","0"<CR><LF>
^SCFG: "MEShutdown/sVsup/threshold","0","0"<CR><LF>
^SCFG: "Radio/Band/2G","0000000f"<CR><LF>
^SCFG: "Radio/Band/CatM","0800000a"<CR><LF>
^SCFG: "Radio/Band/CatNB","0800000a"<CR><LF>
^SCFG: "Radio/Band/Opt/Ctrl","1"<CR><LF>
^SCFG: "Radio/Band/Opt/MCC","334"<CR><LF>
^SCFG: "Radio/Mtpl","0"<CR><LF>
^SCFG: "Radio/Mtpl/2G","0"<CR><LF>
^SCFG: "Radio/Mtpl/4G","0"<CR><LF>
^SCFG: "Radio/OutputPowerReduction","4"<CR><LF>
^SCFG: "Radio/Suspend","1"<CR><LF>
^SCFG: "RemoteWakeUp/Ports","current","acm0","acm1","ecm"<CR><LF>
^SCFG: "RemoteWakeUp/Ports","powerup","acm0","acm1","ecm"<CR><LF>
^SCFG: "SIM/CS","0"<CR><LF>
^SCFG: "SIM/DualMode","0"<CR><LF>
^SCFG: "SMS/AutoAck","0"<CR><LF>
^SCFG: "Tcp/IRT","3"<CR><LF>
^SCFG: "Tcp/MR","10"<CR><LF>
^SCFG: "Tcp/OT","6000"<CR><LF>
^SCFG: "Tcp/TLS/Version","MIN","***"<CR><LF>
^SCFG: "Tcp/WithURCs","on"<CR><LF>
^SCFG: "URC/Ringline","local"<CR><LF>
^SCFG: "URC/Ringline/ActiveTime","2"<CR><LF>
^SCFG: "Userware/Autostart","0"<CR><LF>
^SCFG: "Userware/Autostart/AppName","A:/oem_app.bin"<CR><LF>
^SCFG: "Userware/Autostart/Delay","5000"<CR><LF>
^SCFG: "Userware/Signing/****","1"<CR><LF>
^SCFG: "Userware/Signing/Signature","0"<CR><LF>
^SCFG: "Userware/Trace/Level","0"<CR><LF>
^SCFG: "Userware/Trace/Interface","4"<CR><LF>
^SCFG: "Userware/Trace/Qxdm","off"<CR><LF>
^SCFG: "Userware/Trace/Urc","off"<CR><LF>
<CR><LF>
OK<CR><LF>

14/09/2021 16:35:06.468 [TX] - AT^SCFG="Radio/Band/CatM","0800000a"<CR>

14/09/2021 16:35:06.483 [RX] - AT^SCFG="Radio/Band/CatM","0800000a"<CR>
<CR><LF>
^SCFG: "Radio/Band/CatM","0800000a"<CR><LF>
<CR><LF>
OK<CR><LF>

14/09/2021 16:35:08.445 [TX] - ATI1<CR>

14/09/2021 16:35:08.450 [RX] - ATI1<CR>
<CR><LF>
Cinterion<CR><LF>
EXS82-W<CR><LF>
REVISION 01.200<CR><LF>
A-REVISION 01.000.01<CR><LF>
<CR><LF>
OK<CR><LF>

14/09/2021 16:35:10.117 [TX] - AT+CIMI<CR>

14/09/2021 16:35:10.121 [RX] - AT+CIMI<CR>
<CR><LF>
*******************<CR><LF>
<CR><LF>
OK<CR><LF>

14/09/2021 16:35:11.569 [TX] - AT+CGMR<CR>

14/09/2021 16:35:11.576 [RX] - AT+CGMR<CR>
<CR><LF>
REVISION 01.200<CR><LF>
<CR><LF>
OK<CR><LF>

14/09/2021 16:35:13.036 [TX] - AT+CFUN=1<CR>

14/09/2021 16:35:13.047 [RX] - AT+CFUN=1<CR>
<CR><LF>
OK<CR><LF>

14/09/2021 16:35:14.694 [TX] - AT+COPS=2<CR>

14/09/2021 16:35:14.710 [RX] - AT+COPS=2<CR>
<CR><LF>
OK<CR><LF>

14/09/2021 16:35:17.767 [TX] - AT+CGDCONT=1,"IP","*******************"<CR>

14/09/2021 16:35:17.781 [RX] - AT+CGDCONT=1,"IP","*******************"<CR>
<CR><LF>
OK<CR><LF>

14/09/2021 16:35:23.534 [TX] - AT+CEREG=0<CR>

14/09/2021 16:35:23.537 [RX] - AT+CEREG=0<CR>
<CR><LF>
OK<CR><LF>

14/09/2021 16:35:25.334 [TX] - AT+COPS=0<CR>

14/09/2021 16:35:25.344 [RX] - AT+COPS=0<CR>
<CR><LF>
OK<CR><LF>

14/09/2021 16:35:28.169 [TX] - AT^SISC=2<CR>

14/09/2021 16:35:28.174 [RX] - AT^SISC=2<CR>
<CR><LF>
+CME ERROR: invalid index<CR><LF>

14/09/2021 16:35:29.801 [TX] - AT^SISS=2,"srvType","ftp"<CR>

14/09/2021 16:35:29.821 [RX] - AT^SISS=2,"srvType","ftp"<CR>
<CR><LF>
OK<CR><LF>

14/09/2021 16:35:31.898 [TX] - AT^SISS=2,"conId",1<CR>

14/09/2021 16:35:31.916 [RX] - AT^SISS=2,"conId",1<CR>
<CR><LF>
OK<CR><LF>

14/09/2021 16:35:35.192 [TX] - AT^SISS=2,"cmd","fput"<CR>

14/09/2021 16:35:35.210 [RX] - AT^SISS=2,"cmd","fput"<CR>
<CR><LF>
OK<CR><LF>

14/09/2021 16:35:36.954 [TX] - AT^SISS=2,"address","ftps://*******************:*******************@*******************"<CR>

14/09/2021 16:35:36.984 [RX] - AT^SISS=2,"address","ftps://*******************:*******************@*******************"<CR>
<CR><LF>
OK<CR><LF>

14/09/2021 16:35:39.009 [TX] - AT^SISS=2,"files","*******************"<CR>

14/09/2021 16:35:39.031 [RX] - AT^SISS=2,"files","*******************"<CR>
<CR><LF>
OK<CR><LF>

14/09/2021 16:35:42.736 [TX] - AT^SISS=2,"secopt",0<CR>

14/09/2021 16:35:42.741 [RX] - AT^SISS=2,"secopt",0<CR>
<CR><LF>
OK<CR><LF>

14/09/2021 16:35:44.409 [TX] - AT^SISS?<CR>

14/09/2021 16:35:44.419 [RX] - AT^SISS?<CR>
<CR><LF>
^SISS: 0,"srvType",""<CR><LF>
^SISS: 1,"srvType",""<CR><LF>
^SISS: 2,"srvType","Ftp"<CR><LF>
^SISS: 2,"conId","1"<CR><LF>
^SISS: 2,"address","ftps://*******************@*******************"<CR><LF>
^SISS: 2,"secopt","0"<CR><LF>
^SISS: 2,"files","*******************"<CR><LF>
^SISS: 2,"cmd","fput"<CR><LF>
^SISS: 3,"srvType",""<CR><LF>
^SISS: 4,"srvType",""<CR><LF>
^SISS: 5,"srvType",""<CR><LF>
^SISS: 6,"srvType",""<CR><LF>
^SISS: 7,"srvType",""<CR><LF>
^SISS: 8,"srvType",""<CR><LF>
^SISS: 9,"srvType",""<CR><LF>
<CR><LF>
OK<CR><LF>

14/09/2021 16:35:47.508 [TX] - AT^SICA=1,1<CR>

14/09/2021 16:35:47.527 [RX] - AT^SICA=1,1<CR>
<CR><LF>
OK<CR><LF>

14/09/2021 16:36:40.356 [TX] - AT^SISO=2<CR>

14/09/2021 16:36:40.362 [RX] - AT^SISO=2<CR>
<CR><LF>
OK<CR><LF>
<CR><LF>
^SIS: 2,0,2100,"Ftp connect *******************:990"<CR><LF>
<CR><LF>
^SIS: 2,0,2100,"220 (vsFTPd 3.0.3)"<CR><LF>
<CR><LF>
^SIS: 2,0,2100,"230 Login successful."<CR><LF>
<CR><LF>
^SIS: 2,0,100,"ERR: 522 Data connections must be encrypted."<CR><LF>
<CR><LF>
^SISW: 2,2<CR><LF>