Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/85.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html Web服务器SSI标记不适用于某些标记lwip_Html_Webserver_Microcontroller_Ssi_Lwip - Fatal编程技术网

Html Web服务器SSI标记不适用于某些标记lwip

Html Web服务器SSI标记不适用于某些标记lwip,html,webserver,microcontroller,ssi,lwip,Html,Webserver,Microcontroller,Ssi,Lwip,我正在尝试使用lwip堆栈和CGI和SSI方法,在没有RTOS的情况下在LPC1768上实现web服务器代码 我将SSI标记和CGI与HTTP一起使用,如德克萨斯州示例所示,但在lpc1768上使用lpcopen库。然而,我的问题是,我在中定义了27个ssi标记,并将其分布在3个CGI或HTML页面上。当我请求索引低于23的标记的页面时,它工作正常,但当请求索引高于22的SSI标记的页面时,ACK丢失(wireshark捕获文件中的#30和#31),并且没有数据从控制器传输,下面是wiresha

我正在尝试使用lwip堆栈和CGI和SSI方法,在没有RTOS的情况下在LPC1768上实现web服务器代码

我将SSI标记和CGI与HTTP一起使用,如德克萨斯州示例所示,但在lpc1768上使用lpcopen库。然而,我的问题是,我在中定义了27个ssi标记,并将其分布在3个CGI或HTML页面上。当我请求索引低于23的标记的页面时,它工作正常,但当请求索引高于22的SSI标记的页面时,ACK丢失(wireshark捕获文件中的#30和#31),并且没有数据从控制器传输,下面是wireshark数据包捕获。控制器不会挂起它以响应Ping(wireshark捕获文件中的#62和#65)或其他页面请求

链接:, ,

下面定义了SSI标签代码

consttSSITagg_psTags[] = {
/* "Variable Name on page", pointer to variable register in code    */
//  { "ledrate",  (uint32_t *) &g_ui32LEDDelay },
{"ip1", (uint16_t *) &stUser.Server.IP[0]}, /* index = 0 */   // CGI req/ page 1
{"ip2", (uint16_t *) &stUser.Server.IP[1]}, /* index = 1 */
{"ip3", (uint16_t *) &stUser.Server.IP[2]}, /* index = 2 */
{"ip4", (uint16_t *) &stUser.Server.IP[3]}, /* index = 3 */
{"port1", (uint16_t *) &stUser.Server.Port}, /* index = 4 */
{"sat", (uint16_t *) &stUser.Server.AliveTime}, /* index = 5 */
{"gw1", (uint16_t *) &stUser.HostNetwork.GW[0]}, /* index = 6 */
{"gw2", (uint16_t *) &stUser.HostNetwork.GW[1]}, /* index = 7 */
{"gw3", (uint16_t *) &stUser.HostNetwork.GW[2]}, /* index = 8 */
{"gw4", (uint16_t *) &stUser.HostNetwork.GW[3]}, /* index = 9 */
{"nm1", (uint16_t *) &stUser.HostNetwork.NM[0]}, /* index = 10 */
{"nm2", (uint16_t *) &stUser.HostNetwork.NM[1]}, /* index = 11 */
{"nm3", (uint16_t *) &stUser.HostNetwork.NM[2]}, /* index = 12 */
{"nm4", (uint16_t *) &stUser.HostNetwork.NM[3]}, /* index = 13 */
{"cip1", (uint16_t *) &stUser.Client.IP[0]}, /* index = 14 */
{"cip2", (uint16_t *) &stUser.Client.IP[1]}, /* index = 15 */
{"cip3", (uint16_t *) &stUser.Client.IP[2]}, /* index = 16 */
{"cip4", (uint16_t *) &stUser.Client.IP[3]}, /* index = 17 */
{"port2", (uint16_t *) &stUser.Client.Port}, /* index = 18 */
{"cBaud", (uint16_t *) &stUser.Ser.Baud}, /* index = 19 */ // CGI req/page 2
{"cPar", (uint16_t *) &stUser.Ser.Parity}, /* index = 20 */
{"cDB", (uint16_t *) &stUser.Ser.Databits}, /* index = 21 */
{"cSB", (uint16_t *) &stUser.Ser.Stopbits}, /* index = 22 */
{"cMode", (uint16_t *) &stUser.DevConfig.Mode}, /* index = 23 */ // CGI req/page 3
{"pdelay", (uint16_t *) &stUser.DevConfig.InterPacketDelay}, /* index = 24 */
{"fformat", (uint16_t *) &stUser.DevConfig.Mode}, /* index = 25 */
{"psize", (uint16_t *) &stUser.DevConfig.PacketSize}, /* index = 26 */
};
我想知道如何调试这个问题,或者在哪里查找问题

我正在尝试用lwip堆栈和LPCopen库在lpc1768中实现Texas instruments Tm4c129 freeRTOS web服务器的示例代码


还想知道如何在没有rtos的情况下实现web服务器,以便在微控制器和网页之间共享数据。

如果需要更多说明,请告知。文本引用(粉红色文本)用于引用文本。旁白不应引用自己的话。@agc17它不允许我提交,它用于给出格式错误,但无法得出错误的结论,消息也帮不了什么忙。请告知是否还需要解释。文本引用(粉红色文本)用于引用文本。叙述者不应引用自己的话。@agc17它不允许我提交,它用于给出格式错误,但无法得出错误的结论,消息也帮不了什么忙。