vshymanskyy / TinyGSM

A small Arduino library for GSM modules, that just works
GNU Lesser General Public License v3.0
1.96k stars 726 forks source link

Problem with M66 File Download #497

Open nunomiguelferreira opened 3 years ago

nunomiguelferreira commented 3 years ago

[x] I have read the Troubleshooting section of the ReadMe

What type of issues is this?

[ ] Request to support a new module

[ ] Bug or problem compiling the library [ ] Bug or issue with library functionality (ie, sending data over TCP/IP) [x] Question or request for help

What are you working with?

Modem: Quectel M66(using the M95 driver which has around the same commands) Main processor board: Custom Board with SAMD21 (Arduino M0) TinyGSM version: 0.10.9 Code: FileDownload Example

Scenario, steps to reproduce

I'm trying to download a binary file using the File Download example but it always fails around 1200Bytes downloaded (for a 11KB file). It also is really slow downloading, I see around 10bytes printed in Serial (as a debug measure) every second

Expected result

I was expecting to be able to download the 11KB binary in order to be able to update my device OTA. I notice files around 1024 bytes are able to download but it still takes around 2 mins for each file.

Actual result

Cannot download file, it says:

Content-length: 11004 Actually read: 12xx-14xx (it varies but most times is constant)

The calculated CRC and known CRC are obvisouly different, with an elapse duration of around 160s

Debug and AT command log

piyush9999 commented 1 year ago

Hey can you post your working code here