July 8, 2019 - 2:10pm, 6092 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
The same channel
AT script: startAT+CGATT=0AT+CGATT=0OKAT+CGDCONT=1,"IP",""AT+CGDCONT=1,"IP",""OKAT+CGDCONT=2AT+CGDCONT=2OKAT+CGDCONT=3AT+CGDCONT=3OKAT+CGDCONTAT+CGATT=0=4AT+CGDCONTAT+CGATT=0=4+CME ERROR: UnknownAT+CGDCONT=5AT+CGDCONT=5OKAT+CGDCONT=6AT+CGDCONT=6OKAT+CGDCONT=7AT+CGDCONT=7OKAT+CGDCONT=8AT+CGDCONT=8OKAT+CGDCONT=9AT+CGDCONT=9OKAT+CGDCONT=10AT+CGDCONT=10OKAT+CGDCONT=11AT+CGDCONT=11OKAT+CGATT=1AT+CGATT=1OKAT script: endAT script: startAT+COPS?AT+COPS?+COPS: 0,0,"VIVO",2OKAT+CSQAT+CSQ+CSQ: 15,99OKAT+CGATT=1AT+CGATT=1OKat+cgdcont=1,"IP","lupa.vivo.com.br","",0,0at+cgdcont=1,"IP","lupa.vivo.com.br","",0,0OKAT^SGAUTH?AT^SGAUTH?^SGAUTH: 1,1,"vivo@lupa"^SGAUTH: 4,1,"oi"OKAT^SGAUTH = 1,1,"vivo@lupa","lupa"AT^SGAUTH = 1,1,"vivo@lupa","lupa"OKAT^sica=1,1AT^sica=1,1OKat+cgpiaf=1,1,0,1at+cgpiaf=1,1,0,1OKat+cgpaddrat+cgpaddr+CGPADDR: 1,"172.18.161.244"+CGPADDR: 4,"0.0.0.0"OKAT script: endAT^SISS=0,srvType,"Ftp"AT^SISS=0,srvType,"Ftp"OKAT^SISS=0,conId,"1"AT^SISS=0,conId,"1"OKAT^SISS=0,alphabet,"1"AT^SISS=0,alphabet,"1"OKAT^SISS=0,address,"ftp://horusftp:*******@192.168.193.1:4545/horus"AT^SISS=0,address,"ftp://horusftp:*******@192.168.193.1:4545/horus"OKAT^SISS=0,cmd,"fget"AT^SISS=0,cmd,"fget"OKAT^SISS=0,files,"Horus4G.jad"AT^SISS=0,files,"Horus4G.jad"OKAT^SISO=0AT^SISO=0OKAT^SFSA="ls","a:/"AT^SFSA="ls","a:/"^SFSA: "Horus.jad"^SFSA: "Bootloader.jad"^SFSA: "Bootloader.jar"^SFSA: "Horus.jar"^SFSA: "backup/"^SFSA: 0OKAT^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: 0OK
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
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?
Hi Bartłomiej,Thanks for your helpI 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 commandAT = SRADC = 1,500AT = SRADC = 1,500OKbut 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
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.
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.
ATI1CinterionPLS62-WREVISION 02.000A-REVISION 01.000.03OK
AT&VAT&VACTIVE PROFILE:E1 Q0 V1 &C1 &D2 &S0 \Q3S0: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: 1OK
Some idea for my problem?
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.
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,1OK
© 2013-2022 THALES DIS AIS Deutschland GmbH