Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

AN724 from Micr0chip, PPP C code ported to x51

Status
Not open for further replies.

ZeRoN

Advanced Member level 4
Joined
Jun 28, 2001
Messages
104
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,298
Activity points
1,184
I've ported PPP C source to x51 and run on my x51 hardware.

1. I've used direct connection cable to WinXP
2. I've used "HHD Serial Monitor v1.0.4 for WinNT" to log the communications
http://www.hhdsoftware.com/

The x51 can not established PPP connection to WinXP host!

Does anyone can advise me?
THX.
RGDS,
ZeRoN


The Direct connection log as following...
"ModemLog_Communications cable between two computers.txt"
-------------------------------------------------------------------------------------
01-24-2003 16:41:17.952 - File: I:\WINDOWS\System32\tapisrv.dll, Version 5.1.2600
01-24-2003 16:41:17.952 - File: I:\WINDOWS\System32\unimdm.tsp, Version 5.1.2600
01-24-2003 16:41:17.952 - File: I:\WINDOWS\System32\unimdmat.dll, Version 5.1.2600
01-24-2003 16:41:17.952 - File: I:\WINDOWS\System32\uniplat.dll, Version 5.1.2600
01-24-2003 16:41:17.952 - File: I:\WINDOWS\System32\drivers\modem.sys, Version 5.1.2600
01-24-2003 16:41:17.962 - File: I:\WINDOWS\System32\modemui.dll, Version 5.1.2600
01-24-2003 16:41:17.962 - File: I:\WINDOWS\System32\mdminst.dll, Version 5.1.2600
01-24-2003 16:41:17.962 - Modem type: Communications cable between two computers
01-24-2003 16:41:17.962 - Modem inf path: mdmhayes.inf
01-24-2003 16:41:17.962 - Modem inf section: M2700
01-24-2003 16:41:17.962 - Matching hardware ID: pnpc031
01-24-2003 16:41:17.962 - 2400,8,N,1, ctsfl=0, rtsctl=1
01-24-2003 16:41:17.962 - Initializing modem.
01-24-2003 16:41:17.962 - Waiting for a call.
01-24-2003 16:41:34.416 - Recv: CLIENT
01-24-2003 16:41:34.416 - Interpreted response: Ring
01-24-2003 16:41:39.473 - Recv: CLIENT
01-24-2003 16:41:39.473 - Interpreted response: Ring
01-24-2003 16:41:39.473 - Answering the call.
01-24-2003 16:41:39.483 - Send: CLIENTSERVER
01-24-2003 16:41:39.483 - Connection established at 2400bps.
01-24-2003 16:41:39.483 - Error-control off or unknown.
01-24-2003 16:41:39.483 - Data compression off or unknown.
01-24-2003 16:41:41.847 - Hanging up the modem.
01-24-2003 16:41:41.847 - Hardware hangup by lowering DTR.
01-24-2003 16:41:43.850 - A timeout has expired waiting to comm event to occour.
01-24-2003 16:41:43.850 - Recv: }"}(}"><ce>~~<ff>}#<c0>!}!}%} }.}"}&} }*} } }'}"}(}"<93><cb>~~<ff>}#<c0>!}!}&} }.}"}&} }*} } }'}"}(}"d<c5>~
01-24-2003 16:41:43.850 - Unknown Response
01-24-2003 16:41:43.850 - 2400,8,N,1, ctsfl=0, rtsctl=1
01-24-2003 16:41:43.850 - Initializing modem.
01-24-2003 16:41:43.850 - Waiting for a call.
01-24-2003 16:41:43.930 - Recv: ~
01-24-2003 16:41:43.930 - Unknown Response
01-24-2003 16:41:43.930 - Recv: <ff>}#<c0>!}!
01-24-2003 16:41:43.930 - Unknown Response
01-24-2003 16:41:43.970 - Recv: }
01-24-2003 16:41:43.970 - Unknown Response
01-24-2003 16:41:43.970 - Recv: '} }.}"
...
...
...
01-24-2003 16:41:55.156 - Unknown Response
01-24-2003 16:41:55.186 - Recv: }
01-24-2003 16:41:55.186 - Unknown Response
01-24-2003 16:41:55.186 - Recv: }'}"}(
01-24-2003 16:41:55.186 - Unknown Response
01-24-2003 16:41:55.226 - Recv: }
01-24-2003 16:41:55.226 - Unknown Response
01-24-2003 16:41:55.226 - Recv: "} <89>~
01-24-2003 16:41:55.226 - Unknown Response
01-24-2003 16:42:03.768 - Session Statistics:
01-24-2003 16:42:03.768 - Reads : 447 bytes
01-24-2003 16:42:03.768 - Writes: 0 bytes
-------------------------------------------------------------------------------------

The communication log as following ...
-------------------------------------------------------------------------------------
Port closed

Port opened by process "svchost.exe" (728)

Answer:01/24/03 16:41:34.316440064 (+12687874894.3164390000 seconds)

43 4C 49 45 4E 54 43 4C 49 45 4E 54 CLIENTCLIENT

Request:01/24/03 16:41:39.483870464 (+0.1101584000 seconds)

43 4C 49 45 4E 54 53 45 52 56 45 52 CLIENTSERVER

Answer:01/24/03 16:41:39.604043264 (+0.1201728000 seconds)

43 4C 49 45 4E 54 53 45 52 56 45 52 7E FF 7D 23 CLIENTSERVER~ÿ}#
C0 21 7D 21 7D 23 7D 20 7D 2E 7D 22 7D 26 7D 20 À!}!}#} }.}"}&}
7D 2A 7D 20 7D 20 7D 27 7D 22 7D 28 7D 22 7D 5D }*} } }'}"}(}"}]
D6 7E 7E FF 7D 23 C0 21 7D 21 Ö~~ÿ}#À!}!

Request:01/24/03 16:41:40.164849664 (+0.3605184000 seconds)

7E FF 7D 23 C0 21 7D 21 7D 20 7D 20 3B 7D 22 7D ~ÿ}#À!}!} } ;}"}
26 7D 20 7D 20 7D 20 7D 20 7D 23 7D 25 C2 23 81 &} } } } }#}%Â#
7D 25 7D 26 6A CF 74 7D 22 7D 27 7D 22 7D 28 7D }%}&jÏt}"}'}"}(}
22 7D 2D 7D 23 7D 26 7D 31 7D 24 7D 26 4E 7D 33 "}-}#}&}1}$}&N}3
7D 37 7D 21 AD AB CA C2 FC 4B 4F 9E 90 D7 C3 96 }7}!­«ÊÂüKOž×Ö
F2 58 61 7D 20 7D 20 7D 20 7D 20 7D 20 7D 37 7D òXa} } } } } }7}
24 7D 20 7D 24 44 7D 25 7E $} }$D}%~

Answer:01/24/03 16:41:40.234950464 (+0.0701008000 seconds)

7D 20 7D 20 3B 7D 22 7D 26 7D 20 7D 20 7D 20 7D } } ;}"}&} } } }
20 7D 23 7D 25 C2 23 81 7D 25 7D 26 6A CF 74 7D }#}%Â#}%}&jÏt}
22 7D 27 7D 22 7D 28 7D 22 7D 2D 7D 23 7D 26 7D "}'}"}(}"}-}#}&}
31 7D 24 7D 26 4E 7D 33 7D 37 7D 21 AD AB CA C2 1}$}&N}3}7}!­«ÊÂ
FC 4B 4F 9E 90 D7 C3 96 F2 58 61 7D 20 7D 20 7D üKOž×ÖòXa} } }
20 7D 20 7D 20 7D 37 7D 24 7D 20 7D 24 44 7D 25 } } }7}$} }$D}%
7E 7E FF 7D 23 C0 21 7D ~~ÿ}#À!}

Request:01/24/03 16:41:40.315065664 (+0.0801152000 seconds)

7E FF 7D 23 C0 21 7D 22 7D 23 7D 20 7D 2E 7D 22 ~ÿ}#À!}"}#} }.}"
7D 26 7D 20 7D 2A 7D 20 7D 20 7D 27 7D 22 7D 28 }&} }*} } }'}"}(
7D 22 43 55 7E }"CU~

Answer:01/24/03 16:41:40.365137664 (+0.0500720000 seconds)

22 7D 23 7D 20 7D 2E 7D 22 7D 26 7D 20 7D 2A 7D "}#} }.}"}&} }*}
20 7D 20 7D 27 7D 22 7D 28 7D 22 43 55 7E 7E FF } }'}"}(}"CU~~ÿ

Request:01/24/03 16:41:40.405195264 (+0.0400576000 seconds)

7E FF 7D 23 C0 21 7D 23 7D 20 7D 20 7D 2A 7D 25 ~ÿ}#À!}#} } }*}%
7D 26 7D 29 C7 4E 4E CA 7A 7E }&})ÇNNÊz~

Answer:01/24/03 16:41:40.465281664 (+0.0600864000 seconds)

7D 23 C0 21 7D 23 7D 20 7D 20 7D 2A 7D 25 7D 26 }#À!}#} } }*}%}&
7D 29 C7 4E 4E CA 7A 7E 7E FF 7D 23 C0 21 7D 21 })ÇNNÊz~~ÿ}#À!}!

Request:01/24/03 16:41:40.875872064 (+0.3705328000 seconds)

7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 3B 7D 22 7D ~ÿ}#À!}!}!} ;}"}
26 7D 20 7D 20 7D 20 7D 20 7D 23 7D 25 C2 23 81 &} } } } }#}%Â#
7D 25 7D 26 61 63 6F 92 7D 27 7D 22 7D 28 7D 22 }%}&acoÂ’}'}"}(}"
7D 2D 7D 23 7D 26 7D 31 7D 24 7D 26 4E 7D 33 7D }-}#}&}1}$}&N}3}
37 7D 21 AD AB CA C2 FC 4B 4F 9E 90 D7 C3 96 F2 7}!­«ÊÂüKOž×Öò
58 61 7D 20 7D 20 7D 20 7D 20 7D 20 7D 37 7D 24 Xa} } } } } }7}$
7D 20 7D 24 7C 80 7E } }$|€~

Answer:01/24/03 16:41:40.905915264 (+0.0300432000 seconds)

7D 21 7D 20 3B 7D 22 7D 26 7D 20 7D 20 7D 20 7D }!} ;}"}&} } } }
20 7D 23 7D 25 C2 23 81 7D 25 7D 26 61 63 6F 92 }#}%Â#}%}&aco’
7D 27 7D 22 7D 28 7D 22 7D 2D 7D 23 7D 26 7D 31 }'}"}(}"}-}#}&}1
7D 24 7D 26 4E 7D 33 7D 37 7D 21 AD AB CA C2 FC }$}&N}3}7}!­«ÊÂü
4B 4F 9E 90 D7 C3 96 F2 58 61 7D 20 7D 20 7D 20 KOž×ÖòXa} } }
7D 20 7D 20 7D 37 7D 24 7D 20 7D 24 7C 80 7E 7E } } }7}$} }$|€~~
FF 7D 7E FF 7D 23 C0 21 ÿ}~ÿ}#À!

Request:01/24/03 16:41:40.966001664 (+0.0200288000 seconds)

7E FF 7D 23 C0 21 7D 23 7D 21 7D 20 7D 2A 7D 25 ~ÿ}#À!}#}!} }*}%
7D 26 72 6E 7D 36 91 E3 7D 2D 7E }&rn}6‘ã}-~

Answer:01/24/03 16:41:41.046116864 (+0.0801152000 seconds)

7D 23 7D 21 7D 20 7D 2A 7D 25 7D 26 72 6E 7D 36 }#}!} }*}%}&rn}6
91 E3 7D 2D 7E 23 C0 21 7D 21 7E FF 7D 23 C0 21 ‘ã}-~#À!}!~ÿ}#À!

Request:01/24/03 16:41:41.446692864 (+0.3705328000 seconds)

7E FF 7D 23 C0 21 7D 21 7D 22 7D 20 3B 7D 22 7D ~ÿ}#À!}!}"} ;}"}
26 7D 20 7D 20 7D 20 7D 20 7D 23 7D 25 C2 23 81 &} } } } }#}%Â#
7D 25 7D 26 45 34 44 97 7D 27 7D 22 7D 28 7D 22 }%}&E4D—}'}"}(}"
7D 2D 7D 23 7D 26 7D 31 7D 24 7D 26 4E 7D 33 7D }-}#}&}1}$}&N}3}
37 7D 21 AD AB CA C2 FC 4B 4F 9E 90 D7 C3 96 F2 7}!­«ÊÂüKOž×Öò
58 61 7D 20 7D 20 7D 20 7D 20 7D 20 7D 37 7D 24 Xa} } } } } }7}$
7D 20 7D 24 7D 24 DE 7E } }$}$Þ~

Answer:01/24/03 16:41:41.506779264 (+0.0600864000 seconds)

7D 21 7D 22 7D 20 3B 7D 22 7D 26 7D 20 7D 20 7D }!}"} ;}"}&} } }
20 7D 20 7D 23 7D 25 C2 23 81 7D 25 7D 26 45 34 } }#}%Â#}%}&E4
44 97 7D 27 7D 22 7D 28 7D 22 7D 2D 7D 23 7D 26 D—}'}"}(}"}-}#}&
7D 31 7D 24 7D 26 4E 7D 33 7D 37 7D 21 AD AB CA }1}$}&N}3}7}!­«Ê
C2 FC 4B 4F 9E 90 D7 C3 96 F2 58 61 7D 20 7D 20 ÂüKOž×ÖòXa} }
7D 20 7D 20 7D 20 7D 37 7D 24 7D 20 7D 24 7D 24 } } } }7}$} }$}$
DE 7E 7D 24 7D 20 7D 2E 7D 22 7E FF 7D 23 C0 21 Þ~}$} }.}"~ÿ}#À!

Request:01/24/03 16:41:41.626952064 (+0.0801152000 seconds)

7E FF 7D 23 C0 21 7D 25 7D 23 7D 20 7D 30 45 34 ~ÿ}#À!}%}#} }0E4
44 97 7D 20 3C CD 74 7D 20 7D 20 7D 22 E1 86 76 D—} <Ít} } }"á†v
7E ~

Answer:01/24/03 16:41:41.677024064 (+0.0500720000 seconds)

7D 25 7D 23 7D 20 7D 30 45 34 44 97 7D 20 3C CD }%}#} }0E4D—} <Í
74 7D 20 7D 20 7D 22 E1 86 76 7E 7D 26 7D 20 7D t} } }"á†v~}&} }
2A 7D 7E FF 7D 23 C0 21 *}~ÿ}#À!

Request:01/24/03 16:41:41.787182464 (+0.0801152000 seconds)

7E FF 7D 23 C0 21 7D 26 7D 23 7D 20 7D 30 45 34 ~ÿ}#À!}&}#} }0E4
44 97 7D 20 3C CD 74 7D 20 7D 20 7D 22 E1 A7 EC D—} <Ít} } }"á§ì
7E ~

Answer:01/24/03 16:41:41.847268864 (+0.0600864000 seconds)

7D 26 7D 23 7D 20 7D 30 45 34 44 97 7D 20 3C CD }&}#} }0E4D—} <Í
74 7D 20 7D 20 7D 22 E1 A7 EC 7E 20 7D 20 7D 27 t} } }"á§ì~ } }'
7D 22 7D 28 7D 22 3E CE 7E 7E FF 7D 23 C0 21 7D }"}(}">Î~~ÿ}#À!}
21 7D 25 7D 20 7D 2E 7D 22 7D 26 7D 20 7D 2A 7D !}%} }.}"}&} }*}
20 7D 20 7D 27 7D 22 7D 28 7D 22 93 CB 7E 7E FF } }'}"}(}"“Ë~~ÿ
...
...
...
C0 21 7D 21 7D 32 7D 20 7D 2E 7D 22 7D 26 7D 20 À!}!}2} }.}"}&}
7D 2A 7D 20 7D 20 7D 27 7D 22 7D 28 7D 22 7D 20 }*} } }'}"}(}"}
89 7E ‰~

Port closed
-------------------------------------------------------------------------------------

Reference topic ...

[REQ] PPP - C source code for x51 for KE!L
http://www.elektroda.pl/eboard/viewtopic.php?p=143458#143458
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top