Closed Bfreak closed 4 months ago
I don't have time to write other examples now, but here are how to use FTP and FS https://github.com/Xinyuan-LilyGO/LilyGo-T-SIM7080G/blob/master/datasheet/SIM7070_SIM7080_SIM7090%20Series_FS_Application%20Note_V1.02.pdf https://github.com/Xinyuan-LilyGO/LilyGo-T-SIM7080G/blob/master/datasheet/SIM7070_SIM7080_SIM7090%20Series_FTP(S)_Application%20Note_V1.02.pdf
Thanks Lewis,
however, this doesn't include the process of streaming a file over UART from from the board. Does any other lilygo example cover this?
Thanks
On Thu, May 23, 2024 at 4:52 AM Lewis He @.***> wrote:
I don't have time to write other examples now, but here are how to use FTP and FS
— Reply to this email directly, view it on GitHub https://github.com/Xinyuan-LilyGO/LilyGo-T-SIM7080G/issues/67#issuecomment-2126181236, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKK5X3X3JGMJD7AG4UDNWWLZDVRYTAVCNFSM6AAAAABHVESHS2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRWGE4DCMRTGY . You are receiving this because you authored the thread.Message ID: @.***>
--
James Allen - Director Trackhat.org
This is the communication command of SIM7080G. You can interact with SIM7080 through ATDebug.
Hi,
That's not the problem. The problem is writing data to modem over UART after AT+CFSWFILE, this can not be done with at debug.
On Fri, 24 May 2024, 01:44 Lewis He, @.***> wrote:
This is the communication command of SIM7080G. You can interact with SIM7080 through ATDebug.
— Reply to this email directly, view it on GitHub https://github.com/Xinyuan-LilyGO/LilyGo-T-SIM7080G/issues/67#issuecomment-2128285730, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKK5X3S6T4FCDBRVCNNQBBTZD2ENTAVCNFSM6AAAAABHVESHS2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRYGI4DKNZTGA . You are receiving this because you authored the thread.Message ID: @.***>
we attempt to upload an image to the modem to send to FTP server with the following code
void sendFileToModem(File file, const char* filename) {
modem.sendAT("+CFSTERM"); modem.waitResponse(); modem.sendAT("+CFSINIT"); modem.waitResponse(); String command = "+CFSWFILE=0,\"" + String(filename) + "\",0," +
String(file.size()) + ",10000"; Serial.println(command); modem.sendAT(command.c_str()); modem.waitResponse(30000UL, "DOWNLOAD"); modem.stream.write(file.read()); modem.waitResponse(30000UL); modem.sendAT("+CFSGFRS?"); modem.waitResponse(); }
output after download is always error
AT
OK AT+CFSTERM AT+CFSTERM OK AT+CFSINIT AT+CFSINIT OK +CFSWFILE=0,"image.png",0,2355,10000 AT+CFSWFILE=0,"image.png",0,2355,10000 AT+CFSWFILE=0,"image.png",0,2355,10000 DOWNLOAD�
ERROR AT+CFSGFRS? AT+CFSGFRS? +CFSGFRS: 5851136
OK
Any suggestion here is appreciated. Thank you.
On Fri, May 24, 2024 at 1:44 AM Lewis He @.***> wrote:
This is the communication command of SIM7080G. You can interact with SIM7080 through ATDebug.
— Reply to this email directly, view it on GitHub https://github.com/Xinyuan-LilyGO/LilyGo-T-SIM7080G/issues/67#issuecomment-2128285730, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKK5X3S6T4FCDBRVCNNQBBTZD2ENTAVCNFSM6AAAAABHVESHS2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRYGI4DKNZTGA . You are receiving this because you authored the thread.Message ID: @.***>
--
James Allen - Director Trackhat.org
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.
Thanks Lilygo for the excellent product, thanks to @lewisxhe for well written examples for MQTT.
However, I think many who purchase the board are expecting to use the camera module with FTP or HTTP.
Can I please suggest an example of posting an image to FTP or HTTP is created? I attempted to create one myself, but there is also no example of filesystem management for SIMCOM7080 in examples, and also it seems there is no integration for filesystem management in TinyGSM library.