You are not logged in.

#1 2015-07-19 18:35:15

trailtron
Member
Registered: 2015-06-24
Posts: 3

3G USB Modem not working

I am using a Visiontek 3G USB Modem.The output of lsusb is

#lsusb
Bus 001 Device 005: ID 2077:f000 Taicang T&W Electronics Co. Ltd 

Visiontek uses a modified Taicong Modem
After I installed usb modemswitch f000 in the above output became a000.Also the inbuilt memory card is automatically shown in lsblk(In Ubuntu its a sign that its in Modem mode.)
I usually uses a script given in the modem disk.First I have to run the following install script.

#!/bin/bash

#INSTALL_PATH=`echo $0 | sed 's/install//'`
INSTALL_PATH=`dirname $0`
echo $INSTALL_PATH

echo "..................start install................."
#echo -n "*** Check for root..."
if [ $EUID -ne 0 ]; then
        echo -e "*** Install failed."
        echo "*** Please install in root account."
       read -p "press any key to exit.... " -n 1
        exit -1
fi

cp w-connect-chat w-connect-chat-bak
cp wcdma wcdma-bak

read -p "Please input your APN:" yourapn
#sed -i "S/\TWWCDMA/g" 'find .
find ./ -name "w-connect-chat" | xargs sed -i 's/TWWCDMA/'$yourapn'/g'



read -p "Please input your user name(no user name,press ENTER  key):" youruser
if [ -z ${youruser} ]
  then
  find ./ -name "wcdma" | xargs sed -i 's/user twuser/user/'
else
  find ./ -name "wcdma" | xargs sed -i 's/twuser/"'$youruser'"/g'  
fi

read -p "Please input your password(no password,press ENTER  key):" yourpassword
if [ -z ${yourpassword} ]
   then
   find ./ -name "wcdma" | xargs sed -i 's/password twpassword/password/'
else
   find ./ -name "wcdma" | xargs sed -i 's/twpassword/"'$yourpassword'"/g'   
fi

#delete previous dial script
#TMP_FILE=/etc/udev/rules.d/cdrom-datacard.rules
#if [ -f $TMP_FILE ];then
#      rm -f $TMP_FILE
#      echo ..........delete first $TMP_FILE ok...........
#fi

The output after running the script is

..................start install.................
Please input your APN:bsnlnet
Please input your user name(no user name,press ENTER  key):
Please input your password(no password,press ENTER  key):
..........delete first /etc/ppp/peers/wcdma ok...........
..........delete second /etc/ppp/peers/w-connect-chat ok...........
..........delete third /sbin/dialup ok...........
install completed!!!.
press any key to exit.... 

NOTE:BSNL does'nt require a username and password.
Then I have to use a dialup script

#!/bin/bash

export PATH={$PATH}:/sbin
echo "$PATH"

echo "...............................start dial up..............................."
#echo -n "*** Check for root..."


if [ $EUID -ne 0 ]; then
       echo -e "*** Dialup failed."
       echo "*** Please dialup in root account."
       read -p "Press any key to exit.... " -n 1
       exit -1
fi

#read -p "Please input your APN:" $yourapn
#sed -i "S/\TWWCDMA/g" 'find .
#find ./ -name "w-connect-chat" | xargs sed -i 's/TWWCDMA/3gnet/'


sudo modprobe option
sudo chmod 777 /sys/bus/usb-serial/drivers/option1/new_id
sudo echo 2077 A000 > /sys/bus/usb-serial/drivers/option1/new_id

sleep 3s

#if [ "$(ls /dev/ttyUSB* |grep "ttyUSB2")" != "" ]
#    then
       echo "now connect to the internet......" -n 1
       pppd  call wcdma &
       read -p "wait for dial up.... " -n 1
#else
#    echo "Please check the datacard is plugged in and the cdrom has been ejected!"
#   read -p "Press any key to exit.... " -n 1
#    exit -1
#fi

Then when I run the script usually in Ubuntu Linux it will be connected.But here the output is

#dialup
{/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl}:/sbin
...............................start dial up...............................
now connect to the internet...... -n 1
wait for dial up.... pppd: The remote system is required to authenticate itself
pppd: but I couldn't find any suitable secret (password) for it to use to do so.

I tried using sakis3g as given by Arch Wiki but it showed "Error Connecting".I also used wvdial and it showed "Modem Initialized but nothing happend.
NOTE:The manufacturers box listed 'above Ubuntu Linux 9.10' as supported OS.It did'nt say Linux in general.It worked OK in Ubuntu 14.04.

Last edited by trailtron (2015-07-19 18:39:46)

Offline

Board footer

Powered by FluxBB