Don't think it's using ppp. Try converting output to hex to be anle to see the 
exchange.  Also get hold of the protocol manual. 

--
Kelsey Hartigan Go
SM Prime Holdings, Inc.


On Dec 26, 2010, at 1:36 PM, Carlos Yu <[email protected]> wrote:

> Been a while since I posted.  Merry Christmas!
> 
> I need a bit of help setting up a null modem ppp server on Ubuntu 
> 10.04.  I am trying to connect a credit card terminal (Verifone vx510) 
> via serial port to my laptop to speed up socket programming.  I setup 
> the Verifone to connect via RS232 and ran picocom to look at what was 
> being transmitted through the serial port.  Below is a screenshot:
> 
> picocom v1.4
> 
> port is        : /dev/ttyUSB0
> flowcontrol    : none
> baudrate is    : 9600
> parity is      : none
> databits are   : 8
> escape is      : C-a
> noinit is      : no
> noreset is     : no
> nolock is      : no
> send_cmd is    : ascii_xfr -s -v -l10
> receive_cmd is : rz -vv
> 
> Terminal ready
> ~�}#�!}!}!} }.}%}&} } �V}'}"}(}"5�~~�}#�!}!}"} }.}%}&} } ��}'}"}(}"�} 
> ~~�}#�!}!}#} }.}%}&} }!}&q}'}"}(}"Gb~~�}#�!}!}$} }.}%}&} 
> }!}9�}'}"}(}"��~~�}#�!}!}%} }.}%}&} }!-�}'}"}(}"z?~~�}#�!}!}&} }.}%}&} 
> }!A};}'}"}(}"E�~~�}#�!}!}'} }.}%}&} }!T�}'}"}(}"ә~~�}#�!}!}(} }.}%}&} 
> }!h7}'}"}(}"q}%~~�}#�!}!})} }.}%}&} }!{�}'}"}(}"?�~~�}#�!}!}*} }.}%}&} 
> }!}'}"}(}"J}<~~�}#�!}%}*} }*} } } } } } �Q~~�}#�!}%}*} }*} } } } } } 
> �Q~~�}#�!}%}*} }*} } } } } } �Q~
> Thanks for using picocom
> 
> Looked like the Verifone was transmitting PPP packets so I proceeded to 
> setup pppd with the following options:
> 
> -detach
> local
> noauth
> nocrtscts
> lock
> lcp-echo-interval 5
> lcp-echo-failure 3
> /dev/ttyUSB0
> 9600
> 
> Problem is, the Verifone device is attempting to connect but PPPD is 
> timing out.  Below is the pppd log:
> 
> r...@cjy-linux:/home/cyware# pppd -d /dev/ttyUSB0
> using channel 20
> Using interface ppp0
> Connect: ppp0 <--> /dev/ttyUSB0
> sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0x1aa399e9> 
> <pcomp> <accomp>]
> sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0x1aa399e9> 
> <pcomp> <accomp>]
> sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0x1aa399e9> 
> <pcomp> <accomp>]
> sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0x1aa399e9> 
> <pcomp> <accomp>]
> sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0x1aa399e9> 
> <pcomp> <accomp>]
> sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0x1aa399e9> 
> <pcomp> <accomp>]
> sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0x1aa399e9> 
> <pcomp> <accomp>]
> sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0x1aa399e9> 
> <pcomp> <accomp>]
> sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0x1aa399e9> 
> <pcomp> <accomp>]
> sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0x1aa399e9> 
> <pcomp> <accomp>]
> LCP: timeout sending Config-Requests
> Connection terminated.
> Modem hangup
> 
> I am able to connect the Verifone using its modem to PLDT prepaid 
> Internet.  Problem is the waiting time after each compile.  I am willing 
> to pay anyone who can come to my office and make it work.  Of course 
> free advice from PLUG members is preferred.  Thanks.
> 
> 
> _________________________________________________
> Philippine Linux Users' Group (PLUG) Mailing List
> http://lists.linux.org.ph/mailman/listinfo/plug
> Searchable Archives: http://archives.free.net.ph
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
http://lists.linux.org.ph/mailman/listinfo/plug
Searchable Archives: http://archives.free.net.ph

Reply via email to