SIM800l Httpaction。无法获得 0,200 或 0,200

SIM800l Httpaction. Can't get 0,200 or 0,200

我正在使用 HTTP GET 和 POST 方法,但遇到了问题。我的问题是下一个:上周我的 GET 方法工作完美,然后突然停止工作。出现问题是因为 MCU 无法得到这种格式的响应:0,200,xxx。代码 100% 相同。 MCU 总是收到此响应:0,603(DNS 错误)。接下来的命令和响应 I send/receive to/from SIM800l:

Signal strength | at command: AT+CSQ | response +CSQ: 20,0

Full functionality | at command: AT+CFUN=1 | response OK

If bearer is open send | at command: AT+SAPBR=0,1 | response OK

Otherwise do nothing

Set bearer for gprs | at command: AT+SAPBR=3,1,"CONTYPE","GPRS" | response OK

Set APN | at command: AT+SAPBR=3,1,"APN","internet" | response OK

Set USERNAME | at command: AT+SAPBR=3,1,"USER","telenor" | response OK

Set PASSWORD | at command: AT+SAPBR=3,1,"PWD","gprs" | response OK

Is bearer opened | at command: AT+SAPBR=2,1 | response +SAPBR: 1,3,"0.0.0.0"

Open bearer | at command: AT+SAPBR=1,1 | response OK

Init http | at command: AT+HTTPINIT | response OK

Enable SSL | at command: AT+HTTPSSL=1 | response OK

Set profile identifier | at command: AT+HTTPPARA="CID",1 | response OK

Set url | at command: AT+HTTPPARA="URL","https://mondo.rs/" | response OK

Set GET action | at command: AT+HTTPACTION=0 | response 0,603,0

当我收到此响应时,我再次发送相同的命令,结果相同(有时来自 SIM800l 的响应是 0,604,0)。我用的是实验室psu(稳定够用SIM800l)

我仍然可以发送短信,阅读所有消息,..没有问题。可能是什么问题?

问题找到解决办法了,主要是sim800l需要升级固件

按照以下步骤操作:

  1. 下载 SIM800_Series_download_Tools_Customer_v1.19.rar(为了 win)https://simcom.ee/documents/?dir=SIM800x 和驱动程序 MTK_USB_DRIVER.rar
  2. 用AT+CGMR看看sim800目前是什么固件,我的固件是1418B02SIM800L24。这里B02对我们很感兴趣
  3. sim800l有2种不同的硬件型号L16和L24。如果您的固件版本在固件标记末尾有 L16,请从 https://simcom.ee/documents/?dir=SIM800L. Otherwise (L24) download new firmware from https://letmeknow.fr/blog/2018/01/09/tuto-update-firmware-sim8xx/ 下载新固件。我知道那是法语博客,但我只能在那里找到 sim800l 型号 L24 的固件。上传新固件并调用 AT+CGMR 后,您将获得 1418B05SIM800L24。所以现在固件版本是 B05,您可以毫无问题地向网站发送(获取)消息。

不要忘记这个模块是 2G,从现代 https 网站接收字符需要一些时间(零点几秒)。