LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-19-2009, 09:58 AM   #1
Peter333
LQ Newbie
 
Registered: Jan 2009
Posts: 4

Rep: Reputation: 0
Receive serial link is not 8-bit clean


Hi,

I have problem to connect pppd to my ISP.
On my machine is used GSM modem which supports multiplexer protocol (sharing physical serial port to several "virtual" serial ports). When I use pppd with physical serial port (/dev/ttyS0), all is OK and can get IP address and new device ppp0 is up. But when I use gsmMuxd which creates two virtual serial ports, then pppd accepts "CONNECT" and nothing more even it sends LCP packet Config-Requests. When I debug gsmMuxd I am seeing that it passes received LCP packets from /dev/ttyS0 to virtual port /dev/mux0 to pppd, but pppd denies them for unknown reason. Pppdump says that "CONNECT" string is last what is accepted and other packets are not received by pppd. Any tips, ideas ?

My pppd config file:
/dev/mux0 19200
connect '/usr/sbin/chat -v -s -e -f /etc/ppp/chat-gprs'
modem -detach
noccp
defaultroute
usepeerdns
noauth
ipcp-accept-remote
ipcp-accept-local
noipdefault

There is debug output of my pppd:

mymachinename:/etc/ppp/peers# pppd debug record init_mux_dump.txt call plus &
[1] 8343
mymachinename:/etc/ppp/peers# send (AT+CGDCONT=1,"IP","internet"^M)
expect (OK)
AT+CGDCONT=1,"IP","internet"
AT+CGDCONT=1,"IP","internet"^M^M
OKOK
-- got it

send (ATD*99***1#^M)
expect (CONNECT)

^M
ATD*99***1#
ATD*99***1#^M^M
CONNECTCONNECT
-- got it

send (^M)

Serial connection established.
using channel 10
Using interface ppp0
Connect: ppp0 <--> /dev/pts/13
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x333b8564> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x333b8564> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x333b8564> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x333b8564> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x333b8564> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x333b8564> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x333b8564> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x333b8564> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x333b8564> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x333b8564> <pcomp> <accomp>]
LCP: timeout sending Config-Requests
Connection terminated.
Receive serial link is not 8-bit clean:
Problem: all had bit 7 set to 0
Modem hangup

Peter
 
Old 01-20-2009, 04:47 AM   #2
Peter333
LQ Newbie
 
Registered: Jan 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Receive serial link is not 8-bit clean

I found reason of this problem in my pppd <-> modem communication. GSM modem MO200 which I use, supports multiplexer protocol by strange way. It uses virtual channel 1 for modem commands and virtual channel 2 for data. So that was the reason, "CONNECT" was received through virtual channel 1 but following data modem sends to channel 2.

Peter
 
Old 07-10-2012, 02:26 PM   #3
cerr
LQ Newbie
 
Registered: Apr 2012
Posts: 15

Rep: Reputation: Disabled
Quote:
Originally Posted by Peter333 View Post
I found reason of this problem in my pppd <-> modem communication. GSM modem MO200 which I use, supports multiplexer protocol by strange way. It uses virtual channel 1 for modem commands and virtual channel 2 for data. So that was the reason, "CONNECT" was received through virtual channel 1 but following data modem sends to channel 2.

Peter
Can you provide some more details on how you fixed this? Am getting a very similar error with a Huawei UMG1831 GSM modem.

Thank you,
Ron

Last edited by cerr; 07-10-2012 at 02:27 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Serial Receive Problem nasr-noor Programming 5 12-12-2008 10:51 AM
how to transfer and receive filein any format to and from serial port amit_pansuria Programming 3 07-18-2007 10:43 AM
how to transfer and receive file using serial port from my application amit_pansuria Programming 5 06-14-2007 05:27 PM
serial line is not 8 bit clean thunderrooster Linux - General 0 01-31-2002 08:17 AM
Recieve serial link is not 8-bit clean rdaves@earthlink.net Linux - Networking 5 07-12-2001 12:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration