Hi,
Is there known fix or issue with HL7800 when downloading larger files from FTP server.
When download reaches cca. 20kb it halts/freezes and power cycle is needed.
When using higher baudrates it downloads more and with lower baudrates it downloads less.
B.r.,
Marjan
Hi @marjan.tech,
As far as I know, the HL7800 seemed to have this issue in the past.
Can you share me what firmware is your HL7800 running? Is it the latest FW?
If your HL7800 is not running with the latest FW, please upgrade it to the latest FW then retry.
After that, please share the result if this issue happens again.
Thanks,
Hi Jerdung,
Thanks for quick reply, since source.sierrawireles is down due to hacker attack could you maybe send me newest firmware for HL7800?
B.r.,
Marjan
Hi @marjan.tech,
If I’m not wrong, HL78xx 4.6.8.0 is the latest FW. However I haven’t downloaded this FW to my PC.
Unfortunately, we have to wait source.sierrawireles page resuming.
Thanks,
Hi @marjan.tech,
I have just tried downloading file with size 100KB from FTP Server successfully on my HL7800 which was loaded FW 4.6.8.0 via Airvantage before, my HL7800 module does not halt or freeze.
So I believe that this issue was fixed on the latest FW 4.6.8.0.
Don’t worry, source.sierrawireles page will resume, then you can download this FW, load it into your module and retry.
You can refer detail log as below:
ati3
HL7800.4.6.8.0
OK
ati8
HL7800.4.6.8
OK
at+cereg?
+CEREG: 2,5,“0006”,“01A2D101”,7
OK
at+kcnxcfg=1,“GPRS”,“my APN”
OK
at+kftpcfg=1,“my FTP server”,“my username”,“my password”
+KFTPCFG: 1
OK
+KCNX_IND: 1,1,0
+KFTP_IND: 1,1
at+kftprcv=1,“100KB.txt”
CONNECT
123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 …123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890–EOF–Pattern–
OK
+KFTP_IND: 1,2,100000
at+kftpclose=1
OK
+KCNX_IND: 1,5,30
+KCNX_IND: 1,3
Thanks,
Hi Jerdung,
Thanks for the input, I will wait for source.sierra to come online and post result after FW update
B.r.,
Marjan
Hi Jerdung,
I have attained latest firmware’s from my distributor, they are 4.5.4.0 and 4.6.8.0.
However I have new problem, when I try to update running exe file to 4.6.8.0 it returns error:
But If I update to 4.5.4.0 it passes update successfully. I even tried to update to 4.6.8.0 after it was updated to 4.5.4.0 and it still returns error. I also tried at lower baudrates and still same.
Is there known issue and resolution for this problem?
P.S.
With 4.5.4.0 firmware FTP download succeeds to download larger file than 20kb but terminates download at around 170kb at115200
B.r.,
Marjan
Hi @marjan.tech,
There are another way to upgrade module, that is using XMODEM file. Did your distributor send you XMODEM file?
a, If no, please contact your distributor again?
b, If yes, you can upgrade module following below steps:
Step 1: Extract file XMODEM. In this folder, you can see HL7800_4.5.4.0_to_4.6.8.0_allBin_nbIOT11_sig11.ua file.
Step 2: Click the right mouse > Properties > Focus value of Size:
Step 3: On AT port, sending command: at+wdsd=<value of size you get at step 1>.
Step 4: On AT port, select File > Send > Transfer type: xmodem > File: Browse .ua file at step 1 (Please make sure your module is running FW 4.5.4.0) > Start.
Step 5: After URC +WDSI: 3 displays, send command AT+WDSR=4 to accept install FW.
Step 6: Waiting URC +WDSI: 14, +WDSI: 16 and +WDSI: 0 display, then check current FW version.
Besides that, I can see the issue on your attached picture. Why do your PC have 2 COM3 ports? Please check again. And you can change COM port number through Device Manager: Open Device Manager > Select COM port > Click right mouse > Select Properties > Select Port Settings tab > Select Advanced > Change COM port number. Then you can try to upgrade module by .exe file.
Thanks,
Hi Jerdung,
So I managed to update FW to 4.6.8.0:
ATI9
HL7800.4.6.8
HL78xx.4.6.8.0.RK_02_01_02_00_128.20210213
2021/02/13 02:54:56
IMEI-SV: 3546160903258413
Legato RTOS: 18.09.6.ALT1250.rc4 2020/10/06 17:52:39
atSwi: 43.00
UBOOT: 01.03
Apps: RKAPP_02_01_02_00_117__accfd760c9dbf0f87bb2abbca37dbb404d2958a2
MAC: ALT1250_02_01_02_00_116_FW
PHY: 12.50.241281
PMP: 258210
SBUB: 0
SBFW: 0
RPuK:
FPuK:
RBUB: 0
RBFW: 0
I unpacked exe file and modified batch file inside to my COM port and run that batch file.
However still problem when downloading file larger than 170kb at 115200baud rate, it cuts transmission and returns:
–EOF–Pattern–
+KFTP_IND: 1,2,171960
then when transmission is started again first it returns missing bytes from last transmission and then continues from beginning of the file downloaded:
This happens only for larger files (I tested with 100kb and 200kb)
shorted example:
file content is:
test1
test2
test3
test4
…
test14999
test15000
FTPRCV returns:
test1
test2
…
test10000
te
–EOF–Pattern–
+KFTP_IND: 1,2,171960
then I start FTPRCV again, it returns:
st10001
test10002
…
test15000
test1
test2
test3
…
test9990
tes
–EOF–Pattern–
+KFTP_IND: 1,2,171960
I hope I explained well problem.
B.r.,
Marjan
Hi @marjan.tech,
I have just tried again with downloading file with size 100KB and 200KB from FTP Server successfully on my HL7800 device. Yon can refer the log as below:
log.txt (294.6 KB)
So can you share me some information by answering below questions?
- Do you enable HW flow control? If not, please enable by sending command AT&K3 then try again.
- If the FTP server is not confidential, can you please share with me the credential. I can give a try on this FTP server.
- If the issue still happens, please try to capture wireshark log on FTP server. According to this wireshark log, we will know what the really issue is.
Thanks,
Hi Jerdung,
I have tested with AT&K3 and still the same problem.
file is downloaded partially, and on retry it downloads rest of previous try and then continues …
Answers:
- I tried it but same results
- I can’t share credentials, but I will set up test server for you if it cant be sorted this way
- I am trying to attached wireshark log, AT commands log with comments and original file from FTP server but it doesn’t give me permission… It says new users can not attach files.
Can you share your e-mail or give me permission to share here so I can send it there?
B.r.,
Marjan
Hi @marjan.tech,
After observing your Wireshark log, I see that:
1, I cannot see FTP data packet sent from your server to your device. You can refer below picture capturing from my Wireshark log when downloading file from FTP server for more information:
2, I can see your module was received packet “Response: 226 Transfer complete” from your server with IP address xxx.xxx.xxx.184.
So I think the main reason of this issue is from your server. Please recheck your FTP server configuration.
Besides that, I have just try this case with your file “firmwareHL7800.hex”, my module receives data from my server (Filezilla server) successfully, no issue happens. You can refer this log:
logftp.txt (165.4 KB)
Thanks,
Hi Jerdung,
Please note that we have windows and linux servers from which our devices pull files. On this servers we don’t have problems with this devices: Sierra Wireles HL6528, HL6528RD, uBlox SARA-G350, SARA-R412 as well as some test Simcom CAT-M1 and Quectel devices. So I would conclude servers are configured properly.
Now… I noticed that if I configure AT+IPR=460800 or AT+IPR=921600 file is downloaded completely.
Maybe your CAT-M1 connection is slower than my so your file is successfully downloaded at baudrate of 115200.
Could you please fore sake of sanity try to change your UART baudrate to slower than 115200, try different ones(maybe even 9600) and let me know if you successfully managed to download complete file.
If you succeed at lower baudrate than I will send you my credentials from FTP server to so you can try with your device.
Thanks for all the help!
B.r.,
Marjan
Hi Jerdung,
Here is wireshark FTP-DATA file.
This has been taken with UART baudrate of 115200 on HL7800 and it terminated download at position: “test19552test19553test1”.
In wireshark I can see that all data is sent.
B.r.,
Marjan
Wireshark LOG FTP data2.z (14.4 KB)
Hi @marjan.tech,
I have just tried downloading file from my FTP server on my HL7800 module with UART baudrate 9600 as you want, my module can download file successfully. Please refer to below log:
logftp_ipr9600.txt (166.7 KB)
So can you send me your FTP server information including IP and username/password? Then I can try on my module.
Thanks,
Hi @marjan.tech,
I have tried downloading the file on my HL7800 module with 4 cases as below:
1, UART baudrate 115200, my FileZilla FTP server: Download successfully. You can refer this log:
log_115200_myserver.txt (166.8 KB)
log_115200_myserver.zip (63.4 KB)
2, UART baudrate 9600, my FileZilla FTP server: Download successfully. You can refer this log:
log_9600_myserver.txt (166.7 KB)
log_9600_myserver.zip (65.6 KB)
3, UART baudrate 115200, your vsFTPd FTP server: Download unsuccessfully. You can refer this log:
log_115200.txt (162.0 KB)
log_115200.zip (49.3 KB)
4, UART baudrate 9600, your vsFTPd FTP server: Download unsuccessfully. You can refer this log:
log_9600.txt (160.7 KB)
log_9600.zip (50.7 KB)
According to all wireshark logs, I can observe that FTP server sent full data of firmwareHL7800.hex file. But only in case 3 and case 4, my module cannot display this file completely.
Beside that, as you said “On this servers we don’t have problems with this devices: Sierra Wireles HL6528, HL6528RD, uBlox SARA-G350, SARA-R412 as well as some test Simcom CAT-M1 and Quectel devices”.
Based on these things, I think this issue does not come from the FTP server, there maybe an issue related downloading large file form specific vsFTPd FTP server on HL7800 with FW 4.6.8.0.
So, I think you can contact contributor for further help. You can use all the log in our ticket to send to distributor in case of needed.
Thanks,
Hi Jerdung,
Thanks for all the help!
Take care.
B.r.,
Marjan