User Tools

Site Tools


user:jenda:3g

This is an old revision of the document!


Radiomodem and pppd howto

~ # usb_modeswitch -v 12d1 -p 14fe -m "0x01" -M "55534243123456780000000000000011062000000100000000000000000000" -I
(you will find the correct value in configPack.tar.gz from usb-modeswitch-data or similar in your distribution)

~ # cat /etc/ppp/peers/t-cenzor 
/dev/ttyUSB0
115200
defaultroute
usepeerdns
nodetach
crtscts
lock
noauth
local
debug
nodeflate

connect "/usr/sbin/chat -v -f /etc/chatscripts/t-cenzor-connect"
disconnect "/usr/sbin/chat -v -f /etc/chatscripts/t-cenzor-disconnect"

~ # cat /etc/chatscripts/t-cenzor-connect
TIMEOUT 10
ABORT 'BUSY'
ABORT 'NO ANSWER'
ABORT 'ERROR'

"" 'ATZ'

SAY 'Setting APN FQDN\n'
OK 'AT+CGDCONT=1,"IP","internet"'

ABORT 'NO CARRIER'
SAY 'Dialling!\n'
OK 'ATD*99***1#'
CONNECT ''

~ # pppd call t-cenzor

Tested with multiple Huawei and Mediatek modems and with T-Mobile and Vodafone.

user/jenda/3g.1452161659.txt.gz · Last modified: 2016/01/07 10:14 by jenda