Newsletter
July 8, 2019 - 2:10pm, 7354 views
Is it possible to open an FTP connection through java? Do you have an example?
Hi Italo,
proably I know why you don't get URCs messages. You configure IP service on one AT channel, you send AT^SISO on other AT channel, right?
Please check the behavior when you will use one, the same AT channel for both configuration (SISS) and starting (SISO) of IP service.
Best regards,
Adam
Hi Adam,
The same channel
AT script: start
AT+CGATT=0
AT+CGATT=0
OK
AT+CGDCONT=1,"IP",""
AT+CGDCONT=1,"IP",""
OK
AT+CGDCONT=2
AT+CGDCONT=2
OK
AT+CGDCONT=3
AT+CGDCONT=3
OK
AT+CGDCONTAT+CGATT=0=4
AT+CGDCONTAT+CGATT=0=4
+CME ERROR: Unknown
AT+CGDCONT=5
AT+CGDCONT=5
OK
AT+CGDCONT=6
AT+CGDCONT=6
OK
AT+CGDCONT=7
AT+CGDCONT=7
OK
AT+CGDCONT=8
AT+CGDCONT=8
OK
AT+CGDCONT=9
AT+CGDCONT=9
OK
AT+CGDCONT=10
AT+CGDCONT=10
OK
AT+CGDCONT=11
AT+CGDCONT=11
OK
AT+CGATT=1
AT+CGATT=1
OK
AT script: end
AT script: start
AT+COPS?
AT+COPS?
+COPS: 0,0,"VIVO",2
OK
AT+CSQ
AT+CSQ
+CSQ: 15,99
OK
AT+CGATT=1
AT+CGATT=1
OK
at+cgdcont=1,"IP","lupa.vivo.com.br","",0,0
at+cgdcont=1,"IP","lupa.vivo.com.br","",0,0
OK
AT^SGAUTH?
AT^SGAUTH?
^SGAUTH: 1,1,"vivo@lupa"
^SGAUTH: 4,1,"oi"
OK
AT^SGAUTH = 1,1,"vivo@lupa","lupa"
AT^SGAUTH = 1,1,"vivo@lupa","lupa"
OK
AT^sica=1,1
AT^sica=1,1
OK
at+cgpiaf=1,1,0,1
at+cgpiaf=1,1,0,1
OK
at+cgpaddr
at+cgpaddr
+CGPADDR: 1,"172.18.161.244"
+CGPADDR: 4,"0.0.0.0"
OK
AT script: end
AT^SISS=0,srvType,"Ftp"
AT^SISS=0,srvType,"Ftp"
OK
AT^SISS=0,conId,"1"
AT^SISS=0,conId,"1"
OK
AT^SISS=0,alphabet,"1"
AT^SISS=0,alphabet,"1"
OK
AT^SISS=0,address,"ftp://horusftp:*******@192.168.193.1:4545/horus"
AT^SISS=0,address,"ftp://horusftp:*******@192.168.193.1:4545/horus"
OK
AT^SISS=0,cmd,"fget"
AT^SISS=0,cmd,"fget"
OK
AT^SISS=0,files,"Horus4G.jad"
AT^SISS=0,files,"Horus4G.jad"
OK
AT^SISO=0
AT^SISO=0
OK
AT^SFSA="ls","a:/"
AT^SFSA="ls","a:/"
^SFSA: "Horus.jad"
^SFSA: "Bootloader.jad"
^SFSA: "Bootloader.jar"
^SFSA: "Horus.jar"
^SFSA: "backup/"
^SFSA: 0
OK
AT^SFSA="ls","a:/"
AT^SFSA="ls","a:/"
^SFSA: "Horus.jad"
^SFSA: "Bootloader.jad"
^SFSA: "Bootloader.jar"
^SFSA: "Horus.jar"
^SFSA: "backup/"
^SFSA: "Horus4G.jad"
^SFSA: 0
OK
I'm using this commands below for starting system:
When i'm using my offcial java application
for previus attemps, i'm using only terminal sofware MCenter
Best regars,
ítalo.
Hello,
I can see that you are using some commands that are not supported (like AT+CR and AT+CRC) in your Java app. But there is the same problem while using the terminal without these commands? For Java you may need to register a special listener to receive URC's. But again this is not relevant for terminal. Do you receive other URC's and the problem is only restricted to the ones expected after SISO? Is it the same in case of any other FTP server? Do you experience this problem with more than one module?
Regards,
Bartłomiej
Hi Bartłomiej,
Thanks for your help
I am not using these commands for the PLS62-W module in my java appending, there are some URC's that are not returned as in the command
AT = SRADC = 1,500
AT = SRADC = 1,500
OK
but as I use the ADC interface of 12 in dosage seconds I managed to get around this problem. I connected the module to three different servers, and none of them I was able to visualize the URC's. I performed the test in 4 different modules, all of them PLS62-W which is the model I have of you guys
Best regards,
ítalo
Hello,
I have tried with the same module and firmware and I get URCs for FTP and ADC.
I assume that you have this problem while connecting the module to different PCs and sending AT commands from PC (in case of Java MIDlet inside the module there could be some more issues to take into consideration related to URCs handling by MIDlet).
Maybe it's related to your hardware - it would be the best to first check with a PC over USB.
You could try to switch off and on "Tcp/WithURCs" setting but it only affects IP services not other URCs.
Maybe the problem is related to some configuration changes you have applied to your modules - do you have a fresh module to test just ftp without applying any other logic? Please also paste AT&V output.
Regards,
Bartłomiej
Hello Bartłomiej,
Thanks for your help
For the development of my apliccation I'm using two diferents pc's the first with recente hardware lapt top Dell i7 with S.O windows 10 , and the second old hardware Dell Core duo with S.O windows 7 but the response is ever the same
I tried switch off and on "Tcp/WithURC" but don't worked
Yes, tried connecting module only by terminal without java installed but response is the same.
Stand to reach 1500 units,but I only have 4 units I mentioned earlier.
ATI1
Cinterion
PLS62-W
REVISION 02.000
A-REVISION 01.000.03
OK
AT&V
AT&V
ACTIVE PROFILE:
E1 Q0 V1 &C1 &D2 &S0 \Q3
S0:000 S3:013 S4:010 S5:008 S6:000 S7:060 S8:000 S10:002
+CMGF: 0
+CNMI: 1,0,0,0,0
+ICF: 3
+IPR: 115200
+CMEE: 0
+CSMS: 0,1,1,1
+CREG: 0,1
+CEREG: 0,0
+COPS: 0,0,"VIVO",2
+CGSMS: 1
OK
Hello,
Some idea for my problem?
Best regards,
Italo
Hello,
PC and OS should not matter, I just wanted to be sure that it's not that some microcontroller is causing this. If it's USB not RS232 it's not related to baudrate, flow control, power saving, lines connected etc. I can't see anything suspicious in the configuration. You have written that you also don't get URCs for SRADC. How about other - can you get any URC like ^SYSLOADING, ^SYSSTART, +CREG etc.?
Could you also paste at^sjam=4 output? I tested on my module and it worked. Please also try AT&F command before the test. I can't think of a good reason now why all the 4 modules behave like that besides there's no JRC installed (at^sjam=4 output) or maybe that you have sent some not-supported commands which somehow spoilt sometihng - I rather don't believe it could be possible.
Regards,
Bartłomiej
Hello,
thanks for your help,
this urc's I received, including they are implemented in my java application
i tried using command AT&F, but it didn't work
I tried to update the module to the latest firmware version, but it didn't work
at^sjam =4
^SJAM: "a:/Horus.jad","Horus MIDlet Suite","MIDlet Suite Vendor","1.0.0",1,233853,0,0
^SJAM: "a:/Bootloader.jad","Bootloader MIDlet Suite","MIDlet Suite Vendor","1.0.0",0,58073,0,0
^SJAM: "SLAE.jad","SL Agent Module Services","Gemalto M2M GmbH","2.1.9",0,429531,0,0
^SJAM: "a:/JRC-1.62.01.jad","Java Remote Control MIDlet Suite","Cinterion","1.62.01",1,592706,0,1
OK
Best regards,
italo