I successfuly configured Http_Demop and Telnet demo to work Over PPP using Keil RL_ARM 3.10. But i am unable to do so with tftp demo. I have a LPC2148 based Evaluation Board with no ETHERNET. can somebody help me!!!
The problem with TFTP demo is that i am unable to connect to my evaluation board windows dial-up. The same is possible with HTTP demo and Telnet demo. Please help...
"i am unable to connect to my evaluation board windows dial-up."
Please describe exactly what happens:
- how far does it get?
- what message(s) do you receive? etc...
I don't know how to enable debug and watch how far it is executed.. please help if possible.. My net_config.c file has following things enabled... 1 - PPP Interface with default parameters 2 - UDP Sockets with No of sockets = 3 and highest port for autoselect = 1024 3 - TCP Sockets default configured. 4 - tftp server default configured.
It also has a Filesystem File(which is in same as in the tftp_demo project). I changed only the RAM drive base address from 40000000(MCB2300) to 40004000(LPC2148).
When i try to connect to board using dial-up connection it simply hangs and shows "dialing..." dosen't go any further. the same dial-up connection works for other PPP Projects.
Here is a code fragment form tftp_demo.c
int main (void) { /* Main Thread of the TcpNet */ init (); init_TcpNet (); fformat (""); ppp_listen ("Keil", "test"); while (1) { timer_poll (); main_TcpNet (); } }
Thank yo very much Andy for fast reply.
Thanks Andy... started debugging now... Will tell you where i stuck... with all the debug dump.
Thanks
Following is the dump of my debug file. As soon as i type
c:\windows>tftp -i 192.168.125.1 PUT a.txt a2.txt
i get the udp error which is shown in the dump file.
PPP: Initialize PPP interface PPP: Initialize PPP-LCP PPP: Initialize PPP-PAP PPP: Initialize PPP-IPCP UDP: Initialize 3 Sockets TCP: Initialize 7 Sockets TFTP:Initialize 3 Sessions UDP: Searching for free UDP Socket... UDP: Free UDP Socket 0 allocated UDP: Socket 0, port 69 Opened PPP: Enabling listen mode... PPP: Username: Keil, Password: test SPPP: *** Processing PPP frame *** PPP: Frame len: 27 bytes PPP: Protocol: C021 PPP: *** Processing PPP-LCP frame *** PPP: LCP Config Request received. PPP: Rejecting Unsupported Config Options. PPP: Sending PPP frame... PPP: Frame len: 13 PPP: *** Processing PPP frame *** PPP: Frame len: 24 bytes PPP: Protocol: C021 PPP: *** Processing PPP-LCP frame *** PPP: LCP Config Request received. PPP: Sending PPP frame... PPP: Frame len: 16 PPP: *** Processing PPP frame *** PPP: Frame len: 24 bytes PPP: Protocol: C021 PPP: *** Processing PPP-LCP frame *** PPP: LCP Config Request received. PPP: Sending PPP frame... PPP: Frame len: 26 PPP: Sending LCP Configuration request. PPP: Sending PPP frame... PPP: Frame len: 30 PPP: *** Processing PPP frame *** PPP: Frame len: 28 bytes PPP: Protocol: C021 PPP: *** Processing PPP-LCP frame *** PPP: LCP Config Acknowledge received. PPP: Async Char MAP: 00,0A,00,00 PPP: Enabled PF Compression PPP: Enabled ACF Compression PPP: Magic Number: 345EB3F7 PPP: Enabled PAP Authentication Protocol PPP: *** Processing PPP frame *** PPP: Frame len: 22 bytes PPP: Protocol: C021 PPP: *** Processing PPP-LCP frame *** PPP: Unsupported LCP Code received. PPP ERR: Rejecting Not supported PPP Code. PPP: Sending PPP frame... PPP: Frame len: 26 PPP: *** Processing PPP frame *** PPP: Frame len: 26 bytes PPP: Protocol: C021 PPP: *** Processing PPP-LCP frame *** PPP: Unsupported LCP Code received. PPP ERR: Rejecting Not supported PPP Code. PPP: Sending PPP frame... PPP: Frame len: 30 PPP: *** Processing PPP frame *** PPP: Frame len: 18 bytes PPP: Protocol: C023 PPP: *** Processing PPP-PAP frame *** PPP: PAP Authentication Request received. PPP: Remote Client login success. PPP: Sending PPP frame... PPP: Frame len: 18 PPP: *** Processing PPP frame *** PPP: Frame len: 14 bytes PPP: Protocol: 80FD PPP ERR: Rejecting Unsupported PPP Protocol. PPP: Sending PPP frame... PPP: Frame len: 20 PPP: *** Processing PPP frame *** PPP: Frame len: 44 bytes PPP: Protocol: 8021 PPP: *** Processing PPP-IPCP frame *** PPP: IPCP Config Request received. PPP: Sending PPP frame... PPP: Frame len: 38 PPP: *** Processing PPP frame *** PPP: Frame len: 14 bytes PPP: Protocol: 8021 PPP: *** Processing PPP-IPCP frame *** PPP: IPCP Config Request received. PPP: Sending PPP frame... PPP: Frame len: 14 PPP: Sending IPCP IP Config Request. PPP: Sending PPP frame... PPP: Frame len: 14 PPP: *** Processing PPP frame *** PPP: Frame len: 14 bytes PPP: Protocol: 8021 PPP: *** Processing PPP-IPCP frame *** PPP: IPCP Config Request received. PPP: Sending PPP frame... PPP: Frame len: 14 PPP: *** Processing PPP frame *** PPP: Frame len: 14 bytes PPP: Protocol: 8021 PPP: *** Processing PPP-IPCP frame *** PPP: IPCP Config Acknowledge received. PPP: IP address: 192.168.125.1 PPP: *** Processing PPP frame *** PPP: Frame len: 44 bytes PPP: Protocol: 0021 IP : *** Processing IP frame *** IP : Remote IP: 192.168.125.2 IP : Frame len: 40 bytes IP : Protocol: 02, Id: 0171 PPP: *** Processing PPP frame *** PPP: Frame len: 100 bytes PPP: Protocol: 0021 IP : *** Processing IP frame *** IP : Remote IP: 192.168.125.2 IP : Frame len: 96 bytes IP : Protocol: 11, Id: 0172 IP : Frame valid, IP version 4 OK UDP: *** Processing UDP frame *** UDP ERR: No Socket for received UDP frame, dumping.. PPP: *** Processing PPP frame *** PPP: Frame len: 332 bytes PPP: Protocol: 0021 IP : *** Processing IP frame *** IP : Remote IP: 192.168.125.2 IP : Frame len: 328 bytes IP : Protocol: 11, Id: 0174 IP : Frame valid, IP version 4 OK UDP: *** Processing UDP frame *** UDP ERR: No Socket for received UDP frame, dumping.. PPP: *** Processing PPP frame *** PPP: Frame len: 165 bytes PPP: Protocol: 0021 IP : *** Processing IP frame *** IP : Remote IP: 192.168.125.2 IP : Frame len: 161 bytes IP : Protocol: 11, Id: 0175 PPP: *** Processing PPP frame *** PPP: Frame len: 100 bytes PPP: Protocol: 0021 IP : *** Processing IP frame *** IP : Remote IP: 192.168.125.2 IP : Frame len: 96 bytes IP : Protocol: 11, Id: 0177 IP : Frame valid, IP version 4 OK UDP: *** Processing UDP frame *** UDP ERR: No Socket for received UDP frame, dumping.. PPP: *** Processing PPP frame *** PPP: Frame len: 44 bytes PPP: Protocol: 0021 IP : *** Processing IP frame *** IP : Remote IP: 192.168.125.2 IP : Frame len: 40 bytes IP : Protocol: 02, Id: 0178 PPP: *** Processing PPP frame *** PPP: Frame len: 100 bytes PPP: Protocol: 0021 IP : *** Processing IP frame *** IP : Remote IP: 192.168.125.2 IP : Frame len: 96 bytes IP : Protocol: 11, Id: 0179 IP : Frame valid, IP version 4 OK UDP: *** Processing UDP frame *** UDP ERR: No Socket for received UDP frame, dumping..
Note that the errors actually start several lines before your highlighting!
It looks like you're initially allocating the UDP Socket OK at the beginning, but then failing to re-use it for subsequent packets.
So perhaps you should be looking at the code that decides whether a Socket is available...
Thanks.
I checked my code. It is the example code which was originally written for Keil MCB2300 board with ethernet connectivity. I modified it to use PPP instead of Ethernet. There is no code i found which is using UDP packets directly. Tftp might be using them internally. So unable to modify the code. You can download the code for MCB2300 and My modified code from the following link. Please help.
rapidshare.com/.../Both_Files.zip.html
Have you tried just searching for the text string, "No Socket for received UDP frame" in the source?
Yes... found Nothing... I think it is a library message.... Here is the List of Which is included in the Project. (you can check the projects also.)
Source Files 1-tftp_demo.c -- Main File 2-tftp_uif.c -- TFTP Configuration File 3-serial.c - Serial port driver for LPC214x Configuration Files 1-Net_Config.c -- TCPnet config file 2-File_Config.c -- File system config gile 3-Retarget.c 4-Startup.s -- Startup config file Library Files 1-RTLTCP.lib -- TCPNet library 2-RTLFS.lib -- File system Library