Skip to content
Advertisement

How to initialize pppd connection witsh RS232 modem?

I trying to run the pppd daemon on my embedded board. When I connect the modem to USB and run “pon provider” the initialization is correct (I get the IP address and in “ifconfig” I have ppp0 interface)

“provider” file:

JavaScript

“mobile-modem.chat” file:

JavaScript

However, I would like to run pppd on the serial port over RS232 (ttyO1 or ttyO2). To do this, I changed the line in the pppd file from “ttyUSB0” to “/ dev / ttyO2”. Unfortunately, the daemon does not establish a connection even though all parameters are the same, except of course the device (ttyO2). Below I am pasting logs from “/ var / log / messages”. How could I solve this problem? (The error while sending “AT ^ SYSCFG = 14,2,3fffffff, 0,1 ^ M ^ M” also occurs when connecting via USB and does not cause a connection error)

JavaScript

Advertisement

Answer

You’ve instructed pppd to enable RTSCTS hardware flow control (crtscts) on the serial port. However, you’ve not done the same on the modem side. The driver of the virtual USB serial port probably ignores this, but a real serial port does not.

If using RTSCTS flow control is your intention, make sure you’ve actually connected the lines and enable it on modem side (described in the AT manual). If not, disable it in pppd config.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement