Sending file by using sim800 bluetooth

hi this is harikrishna…

i am working on SIM800C,SIM868 modules for Bluetooth connectivity…i am able to send the data in SPP and HFP,HFG,and remaining profiles also…and in my case SIM module is connected with on of the microcontroller(MSP430)…and MSP is connected with Flash memory also…now i want to send FOTA file of MSP by using Bluetooth of SIM module into FLASH memory…is it possible with OPP profile if possible then give me some suggestions to do fota by using Bluetooth of SIM module…

It would be difficult to do FOTA on SPP profile as it would need AT command to be executed parallel . You can store it in FLASH first byte by byte and then load it from there. I haven’t used OPP profile yet. I am not sure OPP is in supported profiles of SIMCOM modules

Thank you RaviPujar

Now I am able to receive the FOTA file successfully… by using the SPP(Serial Port Profile) Communication from Android Mobile to the SIM800C module…i used Bluetooth Serial Terminal Application from the play store…but i am still facing the issue like while sending the FOTA file aroud 60KB at a time some times i am loosing the half of the bytes. and some times receiving the file without lose of single byte…and i don’t know what exactly the problem is and what is the solution for that.

Thank you

You have to implement checksums and error checks for each packet to counter that. Data losses are very not uncommon

Thanks, RaviPujar.
I have one more problem regarding Multipart/data POST…i am unable to send data to the server…i successfully sent by using POSTMAN(app). by using the ‘code’ portion in postman I frame a packet to sent from the SIM7000 module…but every time it’s showing 400 error…and I have seen your video of Posting data. it won’t help me can you please tell me where exactly the problem lies … I stuck in this problem for one week.
And I tried with \r\n are placing at end of the payload and tried in several ways by putting \r\n.

AT+HTTPINIT

AT+HTTPPARA=“CID”,1

AT+HTTPPARA=“URL”,“http://************/api/add_route?ln=en&user_api_hash=$2y$10$UGnCGRwK3OimjwXzx5GY…3k2dWU8b.qwiqv.Wy6y85gLQWg7/c0m”

AT+HTTPPARA=“CONTENT”,“multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW”

AT+HTTPDATA=422,10000
----WebKitFormBoundary7MA4YWxkTrZu0gWContent-Disposition: form-data; name="name"Route----WebKitFormBoundary7MA4YWxkTrZu0gWContent-Disposition: form-data; name=“color”#ff4000----WebKitFormBoundary7MA4YWxkTrZu0gWContent-Disposition: form-data; name=“polyline” [ { “lat”: 17.457736, “lng”: 78.374194 } ]----WebKitFormBoundary7MA4YWxkTrZu0gW

AT+HTTPACTION=1
OK
+HTTPACTION: 1,400,177

First of all, you should make a new post, is a different problem.

Second, Check that the post payload is correct.

I had a similar problem and it was due the number of “-” in the boundary
In some places should have 2 “-” more than in others. Check in detail the structure of the payload.

I mean, imagine that my boundary was: --1234
and the payload was:
----1234
data
----1234

So again, check very carefully the payload structure.
I hope it helps!

Thank you Javier_Calle,

I have exact same number of “-” in all the boundary…
This is the data actually i want to post:

POST /api/add_route?ln=en&user_api_hash=$2y$10$UGnCGRwK3OimjwXzx5GY…3k2dWU8b.qwiqv.Wy6y85gLQWg7/c0m HTTP/1.1
Host: *******************
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name=“name”

Route_IbotDevice_iamibot
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name=“color”

#ff4000
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name=“polyline”

[
{“device_id”:“868020030999840”,
“lat”:17.457736,
“lng”:78.374194
}]
----WebKitFormBoundary7MA4YWxkTrZu0gW

So in the payload i removed below heades beacuse in HTTPPARA filed i mentiond alredy.

POST /api/add_route?ln=en&user_api_hash=$2y$10$UGnCGRwK3OimjwXzx5GY…3k2dWU8b.qwiqv.Wy6y85gLQWg7/c0m HTTP/1.1
Host: *******************
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

Thanks