Hi all,
Target:
Send data via http post to server using HL7810 FW: 5.4.10.0
Actual:
Existing implementation that correctly transmit the data using e.g. HL7692, HL6528
Adapted implemention for use with HL7812 and HL7810
Problem:
Using HL7812 or HL7810 has the following behaviour:
- connection to server works fine
- response from server can be received
- data (payload) will not be received by server
Log:
→ AT+KHTTPHEADER=1
← CONNECT
→ Accept: text/plain
→ Content-Type: application/x-www-form-urlencoded
→ Content-Length: 25
→ --EOF–Pattern–
← OK
→ AT+KHTTPPOST=1,“/post”,0
← CONNECT
→ ident=10&customerid=20352 (payload)
← {
“args”: {},
“data”: {},
“files”: {},
“form”: {},
“headers”: {
“x-forwarded-proto”: “http”,
“x-forwarded-port”: “80”,
“host”: “postman-echo.com”,
“x-amzn-trace-id”: “Root=1-650aec6c-06a6903c6a6a41e104211902”,
“accept”: “text/plain”,
“content-type”: “application/json”
},
“json”: null,
“url”: “http://postman-echo.com/post”
}–EOF–Pattern–
OK
+KHTTP_IND: 1,3,16,200,“OK” (index:1, status:3 success, 16 bytes of data, ok confirmation)
========================
Although the content size is 25 bytes, exactly send to the modem,
the KHTTP_IND response states, that the transmission was successful with 16 bytes transfered.
Why does the modem count the content lenght wrong? How does it determine the length?
Why does the server receive null data?
All signals were controlled with logic analyzer & oszilloscop, no obtrusiveness found.
The implementation works fine with other modems, but does not with HL7812 & HL7810. I tested with RTS/CTS handshake (on both sides) enabled and disabled. It makes no difference. Both works fine for connection, but does not transmit the payload.
Any idea for a bugfix?
Best regards
Claus