We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello,
I'm trying to setup PPP over NULL modem. Till now i can dial-in to my keil MBD2100 with LPC 2129, over a NULL modem cable in windows and get my http-server to show my index.htm.
When i setup incoming-connection in windows and use the following code, nothing happens:
<snip> init_TcpNet();
init_modem();
ppp_connect(NULL,user,pass);
while(1) { timer_poll(); main_TcpNet(); }
</snip>
Thanks
Akshat
There is an example which shows you how to use PPP client. It is located in: ARM\Boards\Keil\MCB2130\RL\TCPnet\LEDClient folder. This example connects via null-modem cable to another MCB2130 evaluation board using PPP. You can use it as a template for your own application.
2nd step is to properly configure your PC as a PPP server.
Franc
www.keil.com/.../rlarm_tn_ser_link_direct.htm
referring to this page, does one have to manually configure the "CLIENT", "CLIENTSERVER" issue? or is it build in?
I'm asking cause, i can dial-in to the keil board, means some form of NULL-MODEM is working, i've to figure out which...
I can't get the keil to dial-out and connect to my windows xp host...
Thanks a lot,
Regards,
OK, my mistake, it is there build in into null_modem.c... Then why am i not being able to dial-out to my windows box?
Any suggestions?
Thanks,
Here is a note from abstract.txt
NOTE: Serial interface uses only TXD, RXD and GND signals from the RS232 line. However in most cases some additional connections are required by the PC COM interface. For a 9-PIN standard connector you should therefore connect the pin 7 (RTS) to pin 8 (CTS) and pin 1 (CD) to pin 4 (DTR) and to pin 6 (DSR).
Windows are not happy with only TXD and RXD. Have you connected also the other pins?
Windows are not happy with only TXD and RXD
My connection is perfectly happy with RX, TX and GND.
ummmm...now that you reminded me of that,well the MCB2100 Keil board does not have the COM1's handshake lines connected to the physical connector. :( http://www.keil.com/mcb2100/mcb2100-schematics.pdf
That means i've to do some hardware soldering on this board? BAD!
Now i'm not sure i can even get the MODEM to work...
Some serious set-backs there...
Thanks a lot for pointing that out...
@ Tamir,
are you using the PPP over NULL-MODEM? Are you dialing out to windows? If so, please help me with a step-by-step guide...
I'm able to dial-in into the keil board from windows using a "Direct cable connection b/w 2 comps..". But not the other way round.
Thanks and regards,
But what about the Windows PPP Dial-up networking? Have you tried it? I have and I had problems until I have connected also the missing RS232 signals.
OK to clear up some things here is what i did: WORKING: Under windows: 1. Installed a NULL MODEM. 2. Setup a new ppp dial-up connection using that modem. 3. Dial out using username-"Keil", password-"keil"
On uVision: 1. Setup ppp. 2. init_TcpNet() 3. init_modem() 4. modem_listem() 5. ppp_listen("","Keil","keil")
NOT WORKING: Under Windows: 1. NULL MODEM installed 2. setup "incoming connections" on COM1 3.Add a user to incoming connection - Keil(keil)
On uVision: 1. init_TcpNet() 2. init_modem() 3. tout=1; 4. while (1) { timer_poll (); main_TcpNet (); modem_dial(""); if(modem if (tick == __TRUE) { if (ppp_is_up() == __FALSE) { IOSET1 = 0x55<<16; if (--tout == 0) { /* Connect to PPP server. */ ppp_connect ("","Keil","keil"); tout = 50; } } else { IOSET1 =0X20000;//my own }
tick = __FALSE; } }
Suggestions? faults?
Why solder on the board? Just bridge the signals on the cable - preferably on the connector on the Windows side. Then Windows will always be ready to send data.
Ya that could work, but still that would have to be done on the board itself, or will have to rip the cable apart(not possible), to bridge the lines.
Why modify an expensive board, when you can rip apart and modify a dirt-cheap cable? Or you could even build a new cable from scratch.
Remember that the cable may be project-specific, but you may use the board for other projects too.
:)
YUP point noted!
Thanks for the help.
Well i put some debugging into place and the NULL modem connects and modem_is_up() returns true, but after that windows shows no activity! so i assume that PPP is not able to negotiate to windows xp. What can be wrong on that front? suggestions?
<SOLVED>
Stopped the "SERVER" service under Windows XP"