• Since I've made tweaks to the BG96 module, I copied the changes to my module and tried it.
    The first time failed:

    {\"rssi\":{"
    [BG96] AT+QISEND response undefined  <<<<< here it stopped
    >state()
    =undefined
    ] "\r\nSEND OK\r\n"
    >state()
    =undefined
    ] "\r\n+QISTATE: 0,\"TCP\",\"11"
    ] ".123.33.456\",80,6804,2,1,0,1,\"uart1\"\r\n\r\nOK\r\n"
    >state()
    =undefined
    ] "\r\n+QISTATE: 0,\"TCP\",\"1”
    ] "1.123.33.456\",80,6804,2,1,0,1,\"uart1\"\r\n\r\nOK\r\n"
    ] "\r\n+QIURC: \"recv\",0,195\r\nHTTP/1.0 504 Gateway Time-out\r\nCache-Control: no-cache\r\nConnection: close\r\nContent-Type: text"
    [BG96] [
      "+QIURC: \"recv\"",
      "0",
      "195"
     ]
    ] "\r\n\r\n+QIURC: \"closed\",0\r\n"
    ["AT+QICLOSE=0\r\n"
    --><html><body><h1>504 Gateway Time-out</h1>
    The server didn't respond in time.
    </body></html>
    ] "\r\nO"
    ] "K\r\n"
    >gprs.debug()
    ={
      socks: [ undefined ],
      sockData: [
        "",
        "",
        "",
        "",
        "",
        ""
       ],
      busy: false }
    

    The second time looked like it worked as the webserver responded, so it was happy with the amount of data it got.

    {\"rssi\":{"
    ] "\r\nSEND OK\r\n"
    [BG96] AT+QISEND response "> "
    [BG96] AT+QISEND response "SEND OK"
    ] "\r\n> "
    ["\"value\":\"99\",\"unit\":\"dBm\"},\"BER\":{\"value\":\"99\",\"unit\":\"%\"}}}]}"
    ] "\r\nSEND"
    [BG96] AT+QISEND response "> "
    ] " OK\r\n"
    [BG96] AT+QISEND response "SEND OK"
    ]
    

    My guess it might be a timing sensitivity with the prompt??

About

Avatar for Kartman @Kartman started