Hello,
We have an STM32 Application and use USB Host (Modem via CDC Device) and TCP/IP with PPP Interface. As The Middleware we use Keil ARM, the RTX 5.0.0 and Midlleware 7.3.0 We write our programm based on the PL2303 (USB Host CDC device with the virtual UART driver) example to talk to the modem.
The send data from the client is working and we receive the tcpEventACK event in the callback. The server receive the request and sends the answer, if the data sends from the server side is less 1024 bytes, the callback gets called. Once the data size send is more that 1024 bytes, the callback never gets called. from the debug log we can see this error PPP-ERR:Receive, FCS check failed , every time the server sends data to the client.
Please could you have the look on the log and what do you think we got wrong ?
Here is the debug log.
---------* SYSTEM STARTED *---------- 000.0 SYS:Network 7.3.0 000.0 SYS:Init system 000.0 MEM:Init MemPool 13312 bytes 000.0 MEM: Limit0=9984, Limit1=4992 bytes 000.0 PPP:Init interface 000.0 PPP:LCP_Init 000.0 PPP:IPCP_Init 017.6 MEM:Alloc 1532 bytes 017.6 MEM: Used 1532 bytes (1 blocks) 017.6 MEM:Resize, shrink for 1488 bytes 017.6 PPP:*** Processing frame *** 017.6 PPP: Proto IPCP 017.6 PPP: Length 20 bytes 017.6 PPP:*** Processing IPCP frame *** 017.6 PPP: Code CONF_NAK, Id=0x01 017.6 PPP: Length 16 bytes 017.6 PPP: Address 10.143.128.206 017.6 PPP: PriDNS 10.8.0.1 017.6 PPP:IPCP_Conf_Rq send 017.6 MEM:Alloc 48 bytes 017.6 MEM: Used 92 bytes (2 blocks) 017.6 PPP: Address 10.143.128.206 017.6 PPP: PriDNS 10.8.0.1 017.6 PPP: SecDNS 0.0.0.0 017.6 PPP:Sending IPCP frame 017.6 PPP: Code CONF_RQ, Id=0x02 017.6 PPP: Length 22 bytes 017.6 PPP:Sending frame 017.6 MEM:Alloc 48 bytes 017.6 MEM: Used 140 bytes (3 blocks) 017.6 PPP: Proto IPCP 017.6 PPP: Length 24 bytes 017.6 PPP: Que_add xmit 017.6 MEM:Free 48 bytes 017.6 MEM: Used 92 bytes (2 blocks) 017.6 MEM:Free 44 bytes 017.6 MEM: Used 48 by 1288 bytes 032.2 TCP:Socket 3, Sending Data 032.2 TCP: Ports : Src=49152, Dst=8001 032.2 TCP: Segment: Seq=0x5463F1A, Ack=0x7637A0E2 032.2 TCP: Control: [PSH,ACK] Win=4320, Cks=0x6570 032.2 TCP: Length 41 bytes 032.2 IP4:Sending frame 032.2 IP4: SrcAddr 10.143.128.206 032.2 IP4: DstAddr 10.240.2.14 032.2 IP4: Proto TCP, Id=0x0002 032.2 IP4: Length 81 bytes 032.2 PPP:Sending frame 032.2 MEM:Alloc 104 bytes 032.2 MEM: Used 232 bytes (2 blocks) 032.2 PPP: Proto IP4 032.2 PPP: Length 82 bytes 032.2 PPP: Que_add xmit 032.2 TCP:Socket 3, callback EventACK 032.9 MEM:Alloc 1532 bytes 032.9 MEM: Used 1660 bytes (2 blocks) 032.9 MEM:Resize, shrink for 1252 bytes 032.9 PPP:*** Processing frame *** 032.9 PPP: Length 255 bytes 032.9 PPP-ERR:Receive, FCS check failed 032.9 MEM:Free 280 bytes 032.9 MEM: Used 128 bytes (1 blocks) 032.9 MEM:Alloc 1532 bytes 032.9 MEM: Used 1660 bytes (2 blocks) À 1532 bytes (1 blocks) 010.0 MEM:Resize, shrink for 1500 bytes 010.0 PPP:*** Processing frame *** 010.0 PPP: Length 6 bytes 010.0 PPP-ERR:Receive, FCS check failed 010.0 MEM:Free 32 bytes 010.0 MEM: Used 0 bytes (0 blocks)