android PPPoE撥號除錯記錄

2021-08-14 05:09:16 字數 661 閱讀 2808

ttyat = ttyusb2 //傳送at命令口

ttyppp = ttyusb3 //ppp口

ttydm = ttyusb0

ttygps = ttyusb1

1.檢視tty裝置

# ls /dev/ttyusb*

# cat /dev/ttyusb2

2.pppoe撥號at測試指令

<1>.傳送at測試指令

#echo -e "at\r\n" > /dev/ttyusb2

<2>. 測試訊號強度:傳送at+csq,正常訊號返回ok

#echo -e 「at+csq\r\n」 > /dev/ttyusb2

<3>.檢測是否有sim卡

# echo -e 「at+ccid\r\n」 > /dev/ttyusb2

<4>啟用網路

# echo -e "at+cgact=1,1\r\n" > /dev/ttyusb2

<5>檢查是否登陸上gprs網路

# echo -e "at+cgreg?\r\n" > /dev/ttyusb2

<6>.更改串列埠速率並儲存

# echo -e "at+ipr=115200;&w\r\n" > /dev/ttyusb2

<3>.撥號

PPPoE撥號除錯

因為公網和 230專案的 pppoe 都已調通,而應用於 1800 專案的pppoe 沒有做大的變動,故 pppoe 流程不會出問題。建立撥號後,附著,然後撥號,失敗,撥號始終顯示 正在連線,通過 wan微型埠 通過 etherale 抓pppoed 包顯示,客戶端一直在發 padi 廣播包,而我們...

windows ce gprs 撥號程式

include stdafx.h include ras.h handle hport invalid handle value hrasconn hrasconn null bool createport open the serial port hport createfile text com...

撥號相關縮寫

常見縮寫 adn abbreviated dialing number fdn fixed dialer number bdn barred dialing numbers lnd last number dialed sdn service dialing number adn sim 簿 縮位撥...