W . A . X . O
ncc-1701
LINUX - UNIX




Modem 56 K sous Linux

Modem USB 56k Startech

0 - Reconnaissance du matériel

  • Modem 56 k : StarTech.com 56K USB Dial-up and Fax Modem V.92 : spécifications du 56k USB Modem.
  • Description du protocole PPP, Point to Point Protocol.
  • Doc "Modem" Ubuntu : Documentation Modem Linux Ubuntu/Debian
  • Reconnaissance du modem 56k sous linux :
    usb 1-1: new full-speed USB device number 9 using xhci_hcd
    usb 1-1: New USB device found, idVendor=0572, idProduct=1349, bcdDevice= 1.00
    usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    usb 1-1: Product: USB Modem
    usb 1-1: Manufacturer: Conexant
    usb 1-1: SerialNumber: 24680246
    cdc_acm 1-1:1.0: ttyACM0: USB ACM device
    usbcore: registered new interface driver cdc_acm
    cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
    		

1 - Utilisation du modem USB 56k sous Linux avec WvDial

  • Archive du site officiel du logiciel wvdial : Archive du site alumnit.ca
  • Installation du logiciel : sudo apt-get install wvdial
  • Test du matériel via WVDIAL : wvdialconf
    └─$ sudo wvdialconf
    Editing `/etc/wvdial.conf'.
    
    Scanning your serial ports for a modem.
    
    ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
    ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
    ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
    ttyS1<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
    ttyS1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
    ttyS1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
    Modem Port Scan<*1>: S2   S3   
    ttyACM0<*1>: ATQ0 V1 E1 -- OK
    ttyACM0<*1>: ATQ0 V1 E1 Z -- OK
    ttyACM0<*1>: ATQ0 V1 E1 S0=0 -- OK
    ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
    ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
    ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
    ttyACM0<*1>: Modem Identifier: ATI -- 56000
    ttyACM0<*1>: Speed 4800: AT -- OK
    ttyACM0<*1>: Speed 9600: AT -- OK
    ttyACM0<*1>: Speed 19200: AT -- OK
    ttyACM0<*1>: Speed 38400: AT -- OK
    ttyACM0<*1>: Speed 57600: AT -- OK
    ttyACM0<*1>: Speed 115200: AT -- OK
    ttyACM0<*1>: Speed 230400: AT -- OK
    ttyACM0<*1>: Speed 460800: AT -- OK
    ttyACM0<*1>: Max speed is 460800; that should be safe.
    ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
    
    Found an USB modem on /dev/ttyACM0.
    Modem configuration written to /etc/wvdial.conf.
    ttyACM0: Speed 460800; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
    		

2 - Configuration de la connexion Modem 56k.

  • Fichier /etc/wvdial.conf :
    └─$ cat /etc/wvdial.conf
    [Dialer Defaults]
    Init1 = ATZ
    Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    Modem Type = USB Modem
    ; Phone = Target Phone Number
    ISDN = 0
    ; Password = Your Password
    New PPPD = yes
    ; Username = Your Login Name
    Modem = /dev/ttyACM0
    Baud = 460800