ELS62-w ftp download | Telit Cinterion IoT Developer Community
March 3, 2023 - 11:32am, 797 views
Hello,
We are trying to download a file via ftp to els62-w with fw version rev01.000_arn01.000.09. We can't make it work.
Compared to the example in the manual, it seems that the module uses ftp "connect" instead of ftp "open". See the log and the manual example below. We are doing exactly the same on the the Els61, and there it works fine.
Have we forgotten something?
AT^SISS=1,srvType,Ftp
OK
AT^SISS=1,conId,1
OK
AT^SISS=1,address,"ftp://xx.***.***.xx"
OK
AT^SISS=1,cmd,fget
OK
AT^SISS=1,user,"yyyy_zzzzzzzzzz"
OK
AT^SISS=1,passwd,"none"
OK
AT^SISS=1,path,"file:///a:/"
OK
AT^SISS=1,files,"pn23_MAIN_V6_00_01o.bin"
OK
AT^SISO=1
OK
^SIS: 1,0,2100,"Ftp connect xx.***.***.xx:21"
^SIS: 1,0,2100,"220-FileZilla Server 1.6.7
220 Please visit https://filezilla-project.org/"
^SIS: 1,0,2100,"230 Login successful."
^SIS: 1,0,48,"Remote peer has closed the connection"
EXAMPLE FROM THE MANUAL:
^SIS: 1,0,2100,"Ftp open(ftp.heise.de:21)"
^SIS: 1,0,2100,"220 Hallo auf ftp.heise.de."
^SIS: 1,0,2100,"FTP Login OK"
^SIS: 1,0,2100,"fget INDEX"
^SIS: 1,0,2100,"FGET : INDEX 225 bytes"
^SISR: 1,2
Knut
Hello,
The server closes the connection. So, it looks like some conditions are not met. Most probably it requires the secure connection. I would try to use ftps instead of ftp or experiment with ftpes also. Are you sure that you also set ftp without s in case of ELS61?
BR,
Bartłomiej
Knut
Hello Knut,
Please also make sure that the file is not empty but contains all the data from the server.
Is '^SIS: 1,0,48,"Remote peer has closed the connection"' the last message or is there anything else like '^SISR: 1,2' or other URC?
You can paste the logs in the message if not too big.
BR,
Bartłomiej
Hello Knut,
Please also make sure that the file is not empty but contains all the data from the server.
Is '^SIS: 1,0,48,"Remote peer has closed the connection"' the last message or is there anything else like '^SISR: 1,2' or other URC?
It may also be worth trying with some other server to compare the results.
You can paste the logs in the message if not too big.
BR,
Bartłomiej
Hello,
Thank you for fast response:
'^SIS: 1,0,48,"Remote peer has closed the connection" is the last message, and the file is not empty or corrupted.
******************* Here are the logs, I hope they are readable. First els62:
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 [Trace] Session 0x1c027d78700 with ID 4 created.
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 [Response] 220-FileZilla Server 1.6.7
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 [Response] 220 Please visit https://filezilla-project.org/
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 [Command] USER code_deployment
<13-04-2023 14:29:22> File-based Authenticator [Trace] Invoked authenticate(()) on worker 0x1c027d5a430, with shared_user = 0x0, with available methods = []
<13-04-2023 14:29:22> File-based Authenticator [Trace] Authentication for user 'code_deployment' not complete. Remaning methods: [0]
<13-04-2023 14:29:22> File-based Authenticator [Trace] Worker 0x1c027d5a430 created new operation 0x1c02745e490, with shared_user = 0x0, methods = [0], error = 0
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 [Response] 331 Please, specify the password.
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 [Command] PASS ****
<13-04-2023 14:29:22> File-based Authenticator [Trace] Invoked authenticate(({ id = 1, set = 1 })) on worker 0x1c027d5a430, with shared_user = 0x0, with available methods = [0]
<13-04-2023 14:29:22> File-based Authenticator [Trace] Authenticating user 'code_deployment'. Methods requested: ({ id = 1, set = 1 }). Available methods: [0].
<13-04-2023 14:29:22> File-based Authenticator [Trace] Authentication for user 'code_deployment' is complete.
<13-04-2023 14:29:22> File-based Authenticator [Trace] impersonation_token: { username: "", home: "" }
<13-04-2023 14:29:22> File-based Authenticator [Trace] Worker 0x1c027d5a430 created new operation 0x1c02745e530, with shared_user = 0x1c02751ce50, methods = [0], error = 0
<13-04-2023 14:29:22> File-based Authenticator [Trace] operation 0x1c02745e530 stop() erasing worker 0x1c027d5a430
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment [Response] 230 Login successful.
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment [Command] TYPE I
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment [Response] 200 Type set to I
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment [Command] PASV
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment [Trace] Trying listen(1, 0) for data connection.
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment [Response] 227 Entering Passive Mode (10,151,238,51,250,168)
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment [Trace] session::on_socket_event(): source = data listen, flag = 2, error = 0, state = -1
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment [Trace] session::on_socket_event(): source = data, flag = 8, error = 0, state = 2
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment [Command] RETR PT800_MAIN_8_16_FTP.bin
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment/TVFS/local_filesys [Trace] open_file(C:\filezilla\code_deployment\PT800_MAIN_8_16_FTP.bin): fd = 840, res = 0
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment [Trace] CHANNEL state is being dumped:
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment [Trace] PIPE((IN)) {
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment [Trace] ***_num_loops_ = 10
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment [Trace] thread_safe_ = 0
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment [Trace] variant_buffer_ = <2>
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment [Trace] variant_adder_ = <2>
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment [Trace] variant_consumer_ = <2>
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment [Trace] buffer_ = 0x1c027d79be8
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment [Trace] adder_ = 0x0
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment [Trace] consumer_ = 0x0
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment [Trace] waiting_for_adder_event_ = 0
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment [Trace] consumer_error_ = 0
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment [Trace] adder_error_ = 0
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment [Trace] }
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment [Trace] PIPE((OUT)) {
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment [Trace] ***_num_loops_ = 10
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment [Trace] thread_safe_ = 0
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment [Trace] variant_buffer_ = <2>
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment [Trace] variant_adder_ = <2>
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment [Trace] variant_consumer_ = <2>
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment [Trace] buffer_ = 0x1c027d79ab0
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment [Trace] adder_ = 0x0
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment [Trace] consumer_ = 0x0
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment [Trace] waiting_for_adder_event_ = 0
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment [Trace] consumer_error_ = 0
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment [Trace] adder_error_ = 0
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment [Trace] }
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment [Response] 150 Starting data transfer.
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment [Trace] data_socket_->shutdown() = 0
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment [Response] 226 Operation successful
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment [Trace] session::close_data_connection(): prev data_connection_status = 2
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment [Trace] Removed done events: 0
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment/Done Event [Trace] CHANNEL state is being dumped:
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment/Done Event [Trace] PIPE((IN)) {
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment/Done Event [Trace] ***_num_loops_ = 10
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment/Done Event [Trace] thread_safe_ = 0
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment/Done Event [Trace] variant_buffer_ = <2>
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment/Done Event [Trace] variant_adder_ = <2>
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment/Done Event [Trace] variant_consumer_ = <2>
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment/Done Event [Trace] buffer_ = 0x1c027d79be8
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment/Done Event [Trace] adder_ = 0x0
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment/Done Event [Trace] consumer_ = 0x0
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment/Done Event [Trace] waiting_for_adder_event_ = 0
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment/Done Event [Trace] consumer_error_ = 0
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment/Done Event [Trace] adder_error_ = 0
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment/Done Event [Trace] }
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment/Done Event [Trace] PIPE((OUT)) {
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment/Done Event [Trace] ***_num_loops_ = 10
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment/Done Event [Trace] thread_safe_ = 0
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment/Done Event [Trace] variant_buffer_ = <2>
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment/Done Event [Trace] variant_adder_ = <2>
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment/Done Event [Trace] variant_consumer_ = <2>
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment/Done Event [Trace] buffer_ = 0x1c027d79ab0
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment/Done Event [Trace] adder_ = 0x0
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment/Done Event [Trace] consumer_ = 0x0
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment/Done Event [Trace] waiting_for_adder_event_ = 0
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment/Done Event [Trace] consumer_error_ = 0
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment/Done Event [Trace] adder_error_ = 0
<13-04-2023 14:29:22> FTP Session 4 10.90.1.146 code_deployment/Done Event [Trace] }
<13-04-2023 14:30:22> FTP Server [Status] Session 4 ended gracefully.
<13-04-2023 14:30:22> FTP Session 4 10.90.1.146 [Trace] Session 0x1c027d78700 with ID 4 destroyed.
***************************************************** els61:
<Date> Info [Type] Message
<14-04-2023 06:51:14> FTP Session 5 10.90.1.146 [Trace] Session 0x1c027d78700 with ID 5 created.
<14-04-2023 06:51:14> FTP Session 5 10.90.1.146 [Response] 220-FileZilla Server 1.6.7
<14-04-2023 06:51:14> FTP Session 5 10.90.1.146 [Response] 220 Please visit https://filezilla-project.org/
<14-04-2023 06:51:14> FTP Session 5 10.90.1.146 [Command] USER code_deployment
<14-04-2023 06:51:14> File-based Authenticator [Trace] Invoked authenticate(()) on worker 0x1c027d5b3d0, with shared_user = 0x0, with available methods = []
<14-04-2023 06:51:14> File-based Authenticator [Trace] Authentication for user 'code_deployment' not complete. Remaning methods: [0]
<14-04-2023 06:51:14> File-based Authenticator [Trace] Worker 0x1c027d5b3d0 created new operation 0x1c02745dea0, with shared_user = 0x0, methods = [0], error = 0
<14-04-2023 06:51:14> FTP Session 5 10.90.1.146 [Response] 331 Please, specify the password.
<14-04-2023 06:51:14> FTP Session 5 10.90.1.146 [Command] PASS ****
<14-04-2023 06:51:14> File-based Authenticator [Trace] Invoked authenticate(({ id = 1, set = 1 })) on worker 0x1c027d5b3d0, with shared_user = 0x0, with available methods = [0]
<14-04-2023 06:51:14> File-based Authenticator [Trace] Authenticating user 'code_deployment'. Methods requested: ({ id = 1, set = 1 }). Available methods: [0].
<14-04-2023 06:51:14> File-based Authenticator [Trace] Authentication for user 'code_deployment' is complete.
<14-04-2023 06:51:14> File-based Authenticator [Trace] impersonation_token: { username: "", home: "" }
<14-04-2023 06:51:14> File-based Authenticator [Trace] Worker 0x1c027d5b3d0 created new operation 0x1c02745e490, with shared_user = 0x1c02751d870, methods = [0], error = 0
<14-04-2023 06:51:14> File-based Authenticator [Trace] operation 0x1c02745e490 stop() erasing worker 0x1c027d5b3d0
<14-04-2023 06:51:14> FTP Session 5 10.90.1.146 code_deployment [Response] 230 Login successful.
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment [Command] SIZE PT800_MAIN_8_16_FTP.bin
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment/TVFS/local_filesys [Trace] info(C:\filezilla\code_deployment\PT800_MAIN_8_16_FTP.bin): result: 0
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment [Response] 213 65537
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment [Command] TYPE I
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment [Response] 200 Type set to I
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment [Command] PASV
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment [Trace] Trying listen(1, 0) for data connection.
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment [Response] 227 Entering Passive Mode (10,151,238,51,194,207)
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment [Command] RETR PT800_MAIN_8_16_FTP.bin
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment/TVFS/local_filesys [Trace] open_file(C:\filezilla\code_deployment\PT800_MAIN_8_16_FTP.bin): fd = 840, res = 0
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment [Response] 150 About to start data transfer.
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment [Trace] session::on_socket_event(): source = data listen, flag = 2, error = 0, state = -1
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment [Trace] CHANNEL state is being dumped:
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment [Trace] PIPE((IN)) {
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment [Trace] ***_num_loops_ = 10
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment [Trace] thread_safe_ = 0
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment [Trace] variant_buffer_ = <2>
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment [Trace] variant_adder_ = <2>
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment [Trace] variant_consumer_ = <2>
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment [Trace] buffer_ = 0x1c027d79be8
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment [Trace] adder_ = 0x0
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment [Trace] consumer_ = 0x0
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment [Trace] waiting_for_adder_event_ = 0
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment [Trace] consumer_error_ = 0
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment [Trace] adder_error_ = 0
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment [Trace] }
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment [Trace] PIPE((OUT)) {
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment [Trace] ***_num_loops_ = 10
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment [Trace] thread_safe_ = 0
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment [Trace] variant_buffer_ = <2>
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment [Trace] variant_adder_ = <2>
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment [Trace] variant_consumer_ = <2>
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment [Trace] buffer_ = 0x1c027d79ab0
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment [Trace] adder_ = 0x0
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment [Trace] consumer_ = 0x0
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment [Trace] waiting_for_adder_event_ = 0
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment [Trace] consumer_error_ = 0
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment [Trace] adder_error_ = 0
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment [Trace] }
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment [Trace] data_socket_->shutdown() = 0
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment [Response] 226 Operation successful
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment [Trace] session::close_data_connection(): prev data_connection_status = 2
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment [Trace] Removed done events: 0
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment/Done Event [Trace] CHANNEL state is being dumped:
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment/Done Event [Trace] PIPE((IN)) {
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment/Done Event [Trace] ***_num_loops_ = 10
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment/Done Event [Trace] thread_safe_ = 0
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment/Done Event [Trace] variant_buffer_ = <2>
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment/Done Event [Trace] variant_adder_ = <2>
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment/Done Event [Trace] variant_consumer_ = <2>
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment/Done Event [Trace] buffer_ = 0x1c027d79be8
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment/Done Event [Trace] adder_ = 0x0
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment/Done Event [Trace] consumer_ = 0x0
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment/Done Event [Trace] waiting_for_adder_event_ = 0
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment/Done Event [Trace] consumer_error_ = 0
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment/Done Event [Trace] adder_error_ = 0
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment/Done Event [Trace] }
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment/Done Event [Trace] PIPE((OUT)) {
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment/Done Event [Trace] ***_num_loops_ = 10
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment/Done Event [Trace] thread_safe_ = 0
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment/Done Event [Trace] variant_buffer_ = <2>
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment/Done Event [Trace] variant_adder_ = <2>
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment/Done Event [Trace] variant_consumer_ = <2>
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment/Done Event [Trace] buffer_ = 0x1c027d79ab0
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment/Done Event [Trace] adder_ = 0x0
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment/Done Event [Trace] consumer_ = 0x0
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment/Done Event [Trace] waiting_for_adder_event_ = 0
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment/Done Event [Trace] consumer_error_ = 0
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment/Done Event [Trace] adder_error_ = 0
<14-04-2023 06:51:15> FTP Session 5 10.90.1.146 code_deployment/Done Event [Trace] }
<14-04-2023 06:51:16> FTP Session 5 10.90.1.146 code_deployment [Command] QUIT
<14-04-2023 06:51:16> FTP Session 5 10.90.1.146 code_deployment [Response] 221 Goodbye.
<14-04-2023 06:51:16> FTP Server [Status] Session 5 ended gracefully.
<14-04-2023 06:51:16> FTP Session 5 10.90.1.146 [Trace] Session 0x1c027d78700 with ID 5 destroyed.
Hello,
Both logs seem similar besides ELS61 sends QUIT while from ELS62 the server seems not to receive it. Not any error indications suggesting that something has gone wrong.
On the other hand I did a test with the same ELS62-W REVISION 01.100 A-REVISION 01.000.08 and a public server.
Here's what I got:
AT^SISS=4,srvType,"none"
OK
AT^SISS=4,srvType,"Ftp"
OK
AT^SISS=4,conId,"2"
OK
AT^SISS=4,address,"ftp://test.rebex.net"
OK
AT^SISS=4,cmd,"fget"
OK
AT^SISS=4,user,"demo"
OK
AT^SISS=4,passwd,"password"
OK
AT^SISS=4,path,"a:/"
OK
AT^SISS=4,files,"readme.txt"
OK
AT^SISO=4
OK
^SIS: 4,0,2100,"Ftp connect 194.108.117.16:21"
^SIS: 4,0,2100,"220 Microsoft FTP Service"
^SIS: 4,0,2100,"230 User logged in."
^SIS: 4,0,48,"Remote peer has closed the connection"
^SIS: 4,0,2100,"Fget: a:/readme.txt 405 bytes"
^SISR: 4,2
AT^SISC=4
OK
AT^SFSA="ls","a:/"
^SFSA: "ipoverat/"
^SFSA: "readme.txt"
^SFSA: 0
OK
AT^SFSA="open","a:/readme.txt",64
^SFSA: 0,0
OK
AT^SFSA="read",0,500
^SFSA: 405,0
Welcome,
You are connected to an FTP or SFTP server used for testing purposes by Rebex FTP/SSL or Rebex SFTP sample code.
Only read access is allowed and the FTP download speed is limited to 16KBps.
For information about Rebex FTP/SSL, Rebex SFTP and other Rebex .NET components, please visit our website at https://www.rebex.net/
For feedback and support, contact support@rebex.net
Thanks!
OK
AT^SFSA="close",0
^SFSA: 0
OK
So, I also got this
^SIS: 4,0,48,"Remote peer has closed the connection"
but after that there was
^SISR: 4,2
indicating that the data transfer has completed.
The above seems to mean that the output differs from the AT spec example (which should not happen of course), but in this case '"^SIS: 4,0,48..."' URC seems not to mean anything wrong, at least until we get '^SISR: 4,2' in the end.
But I believe that you should also get this URC if the file was downloaded.
Please check with AT^SCFG? what is the "Tcp/WithURCs" setting.
BR,
Bartłomiej
Hmm, just out of curiosity you could repeat my test with the public server. Theoretically you should get the same result as me. Otherwise maybe there is something we have missed.
BR,
Bartłomiej
CREG: 1,"7bd5","01071909",7
AT^SISS=1,srvType,Ftp
OK
AT^SISS=1,conId,1
OK
AT^SISS=1,address,"ftp://test.rebex.net"
OK
AT^SISS=1,alphabet,"1"
OK
AT^SISS=1,cmd,fget
OK
AT^SISS=1,user,"demo"
OK
AT^SISS=1,passwd,"password"
OK
AT^SISS=1,path,"file:///a:/"
OK
AT^SISS=1,files,"readme.txt"
OK
AT^SISO=1
OK
^SIS: 1,0,2100,"Ftp connect 194.108.117.16:21"
^SIS: 1,0,2100,"220 Microsoft FTP Service"
^SIS: 1,0,2100,"230 User logged in."
^SIS: 1,0,48,"Remote peer has closed the connection"
+CREG: 1,"7bd5","01071907",7
Knut
Hello,
I checked the documentation but still can't see other settings that could affect this behavior. In my tests I have used the version ELS62-W REVISION 01.100 A-REVISION 01.000.08.
BR,
Bartłomiej
Pages