调试4G模块的时候,拨号失败,出错信息如下:
- [root@WQ4418 peers]#echo -e "AT+CSQ\r\n" > /dev/ttyUSB2
- [root@WQ4418 peers]#AT+CSQ
- +CSQ: 18,99
- OK
- AT+CSQ
- +CSQ: 18,99
- OK
- [root@WQ4418 peers]#
- [root@WQ4418 peers]#
- [root@WQ4418 peers]#pppd call wcdma &
- [root@WQ4418 peers]#pppd options in effect:
- debug # (from /etc/ppp/peers/wcdma)
- nodetach # (from /etc/ppp/peers/wcdma)
- dump # (from /etc/ppp/peers/wcdma)
- noauth # (from /etc/ppp/peers/wcdma)
- user password # (from /etc/ppp/peers/wcdma)
- remotename 3gppp # (from /etc/ppp/peers/wcdma)
- /dev/ttyUSB3 # (from /etc/ppp/peers/wcdma)
- 115200 # (from /etc/ppp/peers/wcdma)
- lock # (from /etc/ppp/peers/wcdma)
- connect /usr/sbin/chat -s -v -f /etc/ppp/peers/wcdma-chat-connect # (from /etc/ppp/peers/wcdma)
- disconnect /usr/sbin/chat -s -v -f /etc/ppp/peers/wcdma-chat-disconnect # (from /etc/ppp/peers/wcdma)
- crtscts # (from /etc/ppp/peers/wcdma)
- local # (from /etc/ppp/peers/wcdma)
- hide-password # (from /etc/ppp/peers/wcdma)
- novj # (from /etc/ppp/peers/wcdma)
- novjccomp # (from /etc/ppp/peers/wcdma)
- ipcp-accept-local # (from /etc/ppp/peers/wcdma)
- ipcp-accept-remote # (from /etc/ppp/peers/wcdma)
- ipparam 3gppp # (from /etc/ppp/peers/wcdma)
- noipdefault # (from /etc/ppp/peers/wcdma)
- defaultroute # (from /etc/ppp/peers/wcdma)
- usepeerdns # (from /etc/ppp/peers/wcdma)
- noccp # (from /etc/ppp/peers/wcdma)
- /usr/sbin/chat: invalid option -- 'f'
- BusyBox v1.22.1 (2018-09-12 10:23:13 EDT) multi-call binary.
- Usage: chat EXPECT [SEND [EXPECT [SEND...]]]
- Useful for interacting with a modem connected to stdin/stdout.
- A script consists of one or more "expect-send" pairs of strings,
- each pair is a pair of arguments. Example:
- chat '' ATZ OK ATD123456 CONNECT '' ogin: pppuser word: ppppass '~'
- Script /usr/sbin/chat -s -v -f /etc/ppp/peers/wcdma-chat-connect finished (pid 710), status = 0x2
- Connect script failed
- [2]+ Done(8) pppd call wcdma
- [root@WQ4418 peers]#
- [root@WQ4418 peers]#
- [root@WQ4418 peers]#
- [root@WQ4418 peers]#[ 304.096000] EXT4-fs (mmcblk0p7): error count: 143
- [ 304.100000] EXT4-fs (mmcblk0p7): initial error at 1587144084: ext4_free_inode:300
- [ 304.108000] EXT4-fs (mmcblk0p7): last error at 1588105613: ext4_mb_generate_buddy:741
复制代码这个是由于/usr/sbin/chat 下的chat 有问题,需要更换chat程序。 chat程序放在 E:\Jx_WQ\02_参考资料\Linux资料\Linux文档\常见问题与解决\常用资料\Linux 4G上网 目录下。 有两个文件,分别是: ppp_arm_bin_eglfs_qt4.8.tar.bz2 ppp_arm_bin_eglfs_qt5.9.tar.bz2 根据linux系统的版本,进行选择。 2、如何更换新的chat程序 ppp_arm_bin_eglfs_xxx.tar.bz2 压缩包里有个chat,把它解压后拷贝到开发板中的/usr/sbin/下就可以了,用ssh,或者U盘,SD卡都行。 如果没有执行权限,就需要添加执行权限 chmod a+x /usr/bin/chat 对比文件是否拷贝成功,看拷到板子上的chat的md5码 命令:md5sum /usr/sbin/chat
|