We have a solution where some hardware connects to a COM port on a Win 7 machine, and interacts with our Java app. The hardware wants to use a PPP Server to transparently connect to an other server over TCP/IP.
Does anyone have a suggestion on how to do this? Start an OS native PPP Server from the Java app, with a connection to the COM port? How is this done?
Point-to-Point Protocol (PPP) refers to a suite of computer communication protocols that provide a standard way to transport multiprotocol data over point-to-point links.
Your modem establishes a PPP connection and then over this connection your Ethernet packets flow. It sounds like you're disconnecting from your ISP at regular intervals. It could be any number of things causing you to lose your connection. You may have poor signal to the ISP end point and the connection is timing out.
This is a workaround using VirtualBox. I can't figure out how to run PPP server natively on Win7.
pppd - Ubuntu ttyS0 - VirtualBox Port 1 - Win7 COM1 -- RS232 -- target's ppp client
Open a Ubuntu terminal
pppd options in effect:
nodetach # (from command line)
holdoff 1 # (from command line)
persist # (from command line)
maxfail 0 # (from command line)
dump # (from command line)
noauth # (from command line)
/dev/ttyS0 # (from command line)
115200 # (from command line)
lock # (from /etc/ppp/options)
nocrtscts # (from command line)
local # (from command line)
asyncmap 0 # (from /etc/ppp/options)
passive # (from command line)
lcp-echo-failure 4 # (from /etc/ppp/options)
lcp-echo-interval 30 # (from /etc/ppp/options)
hide-password # (from /etc/ppp/options)
proxyarp # (from command line)
192.168.17.1:192.168.17.2 # (from command line)
noipx # (from /etc/ppp/options)
Using interface ppp0
Connect: ppp0 <--> /dev/ttyS0
Cannot determine ethernet address for proxy ARP
local IP address 192.168.17.1
remote IP address 192.168.17.2
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With