[I've retaken this, see my third post bellow]
I've been trying to do this for almost two weeks, seen thousands of forums and tutorials and (I guess) I'm a step away from getting it working.
I have to connect several linux powered pin-pads to a windows server.
Windows XP side:
(My XP is in spanish, so option names can differ from real ones, since are translated by my own).
I've created an advanced connection via "new connection daemon" in the networking section of the control panel with the configuration bellow:
- Allow inlet connections.
- Device: COM1 ---> Speed: 57600 -- Flow Control: None (Appropriate parameters for pin-pad's modem)
- Always allow direct connection devices without providing any password (no users selected)
- Allow callers to access my LAN
- Specify TCP/IP addresses ---> From 192.168.0.1 to 192.168.0.5
- Allow the caller to specify it's own address.
Linux side:
/etc/ppp/options
Code:
ttyS0
57600
debug
lock
noauth
nocrtscts
defaultroute
noipdefault
logfile /var/log/messages
/etc/ppp/windows.chat contains:
Code:
TIMEOUT 3
'' CLIENT\dCLIENT\c
CLIENTSERVER ''
It's perm are 644
What I run is:
Code:
#pppd local -detach :192.168.0.1 connect "chat -v -f/etc/ppp/windows.chat"
When running it, I get:
Code:
Serial connection established.
Using interface ppp0
Connect: ppp0 <--> /dev/ttyS0
LCP: timeout sending Config-Requests
Connection terminated.
/var/log/messages shows:
Code:
Serial connection established.
using channel 10
Using interface ppp0
Connect: ppp0 <--> /dev/ttyS0
sent [LCP ConfigReq id=0x1 <asyncmap 0x0> <magic 0xb5312041> <pcomp> <accomp>]
sent [LCP ConfigReq id=0x1 <asyncmap 0x0> <magic 0xb5312041> <pcomp> <accomp>]
sent [LCP ConfigReq id=0x1 <asyncmap 0x0> <magic 0xb5312041> <pcomp> <accomp>]
sent [LCP ConfigReq id=0x1 <asyncmap 0x0> <magic 0xb5312041> <pcomp> <accomp>]
sent [LCP ConfigReq id=0x1 <asyncmap 0x0> <magic 0xb5312041> <pcomp> <accomp>]
sent [LCP ConfigReq id=0x1 <asyncmap 0x0> <magic 0xb5312041> <pcomp> <accomp>]
sent [LCP ConfigReq id=0x1 <asyncmap 0x0> <magic 0xb5312041> <pcomp> <accomp>]
sent [LCP ConfigReq id=0x1 <asyncmap 0x0> <magic 0xb5312041> <pcomp> <accomp>]
sent [LCP ConfigReq id=0x1 <asyncmap 0x0> <magic 0xb5312041> <pcomp> <accomp>]
sent [LCP ConfigReq id=0x1 <asyncmap 0x0> <magic 0xb5312041> <pcomp> <accomp>]
LCP: timeout sending Config-Requests
Connection terminated.
Modem Hangup
Frame sharing:
Windows XP side
Using "Free serial monitor"
http://www.serial-port-monitor.com/index.html I see:
Note: "respuesta" means response and "pedido" means request.
Code:
Respuesta:16/12/2008 12:46:34.79564 (+913.7969 seconds)
43 4C 49 45 4E 54 43 4C 49 45 4E 54 CLIENTCLIENT
Pedido:16/12/2008 12:46:35.04564 (+0.1250 seconds)
43 4C 49 45 4E 54 53 45 52 56 45 52 CLIENTSERVER
####################
Quote: Frames below don't always arrive in the server (once each 10 tries, more or less)
####################
Respuesta:16/12/2008 12:46:44.21764 (+9.1719 seconds)
7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 34 7D 22 ~ÿ}#À!}!}!} }4}"
7D 26 7D 20 7D 20 7D 20 7D 20 7D 25 7D 26 4A 29 }&} } } } }%}&J)
4C A4 7D 27 7D 22 7D 28 7D 22 46 84 7E 7E FF 7D L¤}'}"}(}"F„~~ÿ}
23 C0 21 7D 21 7D 21 7D 20 7D 34 7D 22 7D 26 7D #À!}!}!} }4}"}&}
20 7D 20 7D 20 7D 20 7D 25 7D 26 4A 29 4C A4 7D } } } }%}&J)L¤}
27 7D 22 7D 28 7D 22 46 84 7E 7E FF 7D 23 C0 21 '}"}(}"F„~~ÿ}#À!
7D 21 7D 21 7D 20 7D 34 7D 22 7D 26 7D 20 7D 20 }!}!} }4}"}&} }
7D 20 7D 20 7D 25 7D 26 4A 29 4C A4 7D 27 7D 22 } } }%}&J)L¤}'}"
7D 28 7D 22 46 84 7E 7E FF 7D 23 C0 21 7D 21 7D }(}"F„~~ÿ}#À!}!}
21 7D 20 7D 34 7D 22 7D 26 7D 20 7D 20 7D 20 7D !} }4}"}&} } } }
20 7D 25 7D 26 4A 29 4C A4 7D 27 7D 22 7D 28 7D }%}&J)L¤}'}"}(}
22 46 84 7E 7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 "F„~~ÿ}#À!}!}!}
7D 34 7D 22 7D 26 7D 20 7D 20 7D 20 7D 20 7D 25 }4}"}&} } } } }%
7D 26 4A 29 4C A4 7D 27 7D 22 7D 28 7D 22 46 84 }&J)L¤}'}"}(}"F„
7E 7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 34 7D ~~ÿ}#À!}!}!} }4}
22 7D 26 7D 20 7D 20 7D 20 7D 20 7D 25 7D 26 4A "}&} } } } }%}&J
29 4C A4 7D 27 7D 22 7D 28 7D 22 46 84 7E 7E FF )L¤}'}"}(}"F„~~ÿ
7D 23 C0 21 7D 21 7D 21 7D 20 7D 34 7D 22 7D 26 }#À!}!}!} }4}"}&
7D 20 7D 20 7D 20 7D 20 7D 25 7D 26 4A 29 4C A4 } } } } }%}&J)L¤
7D 27 7D 22 7D 28 7D 22 46 84 7E 7E FF 7D 23 C0 }'}"}(}"F„~~ÿ}#À
21 7D 21 7D 21 7D 20 7D 34 7D 22 7D 26 7D 20 7D !}!}!} }4}"}&} }
20 7D 20 7D 20 7D 25 7D 26 4A 29 4C A4 7D 27 7D } } }%}&J)L¤}'}
22 7D 28 7D 22 46 84 7E "}(}"F„~
The garbage strings are supposed to be the config-request string repeated several times
(7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 7D 34 7D 22 7D 26 7D 20 7D 20 7D 20 7D 20 7D 25 7D 26 57 ED A5 B6 7D 27 7D 22 7D 28 7D 22 26 4E 7E)
Linux side
/var/log/ppp/log shows:
Code:
pppd 2.4.4 started by root, uid 0
timeout set to 3 seconds
send(CLIENT\dCLIENT)
expect(CLIENTSERVER)
CLIENTSERVER
-- got it
send(^M)
Serial connection established
using channel 5
Using interface ppp0
Connect ppp0 <--> /dev/ttyS0
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x12345678> <pcomp> <accomp>]
last message repeated 9 times
LCP: timeout sending Config-Requests
If I call $ifconfig -a in the linux side while windows is receiving all this garbage that is supposed to be the configuration request, a non-configured network interface called ppp0 is shown (as expected):
Code:
ppp0 Link encap:Point-to-Point Protocol
POINTOPOINT NOARP MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
I'm a little closer now, but again, don't know what to read to understand this... Microsoft doesn't provide any information about this kind of interconnection nor in spanish, english, portuguese or italian (or I'm not able to find it).
Best manual I've found (strongly recommendable indeed) is:
How to hook up PPP in Linux