Hello
We are trying to download a binary file onto a custom host MCU platform connected via UART to a GM02S running UE8.2.0.2. File is hosted on Azure Blob Storage and we want to download over HTTPS using the modem’s built-in HTTP stack (AT+SQNHTTPCFG, AT+SQNHTTPCONNECT, AT+SQNHTTPQRY, and AT+SQNHTTPRCV).
When downloading raw binary chunks via AT+SQNHTTPRCV=2,1500, the incoming byte stream undergoes a deterministic bitwise mutation where Bit 2 (0x04) is forcefully set on specific low-value bytes.
Specifically:
0x01(0000 0001) consistently arrives as0x05(0000 0101).0x02(0000 0010) consistently arrives as0x06(0000 0110).0x03(0000 0011) consistently arrives as0x07(0000 0111).
There might be others but I think this illustrate sufficiently the issue. This is not random noise or dropped bytes—the byte alignment and total file length match the source image exactly, but every instance of 0x01 across the entire payload is translated to 0x05 when compared against the original .bin file in GHex.
What we tried so far:
- Verified
AT+IFC?returns+IFC: 2,2(Hardware RTS/CTS flow control active). This never gave us any issue. - Explicitly switched
AT+CSCS="HEX"prior to issuingAT+SQNHTTPRCV. - Queried
AT+ICF?returns+ICF: 3, this never gave use any issue.
Questions are as follows:
- Does
AT+SQNHTTPRCVapply any internal escape sequences, control-character mapping, or internal buffer translations to low-value ASCII bytes (0x01–0x03) when streaming raw octet streams (application/octet-stream)? - Is there a recommended AT command configuration or character set selection specifically required to guarantee transparent 8-bit binary pass-through when reading HTTP responses via UART?
- Are there any known driver or firmware quirks in release LR8.2 regarding UART output serialization during
AT+SQNHTTPRCV?
Any guidance on achieving transparent 8-bit binary streaming via AT+SQNHTTPRCV would be greatly appreciated.
Thank you.