Howto Linux on NeoConnect Lite Device aka Huawei ETS 2258

newklear

Expert Member
Joined
Apr 15, 2008
Messages
1,826
Reaction score
812
Location
Cape Town
Thought I would share this here seen as the same steps for the Prime device do not work on the Lite Device.

I have successfully used this method on Ubuntu 9.04 + 9.10, Puppy Linux 4.3.1, PCLinuxOS 2009 + 2010.

Note:
1. Install wvdial or as an extra option install gnu screen if not already installed.
2. Use a basic editor such as scite, parcellite, leafpad, gedit, Do Not use abiword.
3. Kernel must be 2.6* or higher. Use uname -r to check.
4. Commands to run in terminal will be in red.

Set yourself up as root in terminal so it's easier to edit and write config files.
su -
-- enter your admin password when prompted to, on Ubuntu you can just prefix your commands with "sudo"

1. Start with the Device Unplugged.

2. Let's make a device rule
scite /etc/udev/rules.d/026_ti_usb_3410.rules
copy & paste the following:
Code:
#TI USB 3410
SUBSYSTEM=="usb_device" ACTION=="add"
SYSFS{idVendor}=="0451",SYSFS{idProduct}=="3410" \
SYSFS{bNumConfigurations}=="2" \
SYSFS{bConfigurationValue}=="1" \
RUN+="/bin/sh -c 'echo 2 > /sys%p/device/bConfigurationValue'"
Save & exit

3. Plug the device in and wait 15 seconds then run the command below.
dmesg -c
You should see something like this:
Code:
[ 152.504816] usbcore: registered new interface driver ti_usb_3410_5052
[ 152.504824] /build/buildd/linux-ports-2.6.25/drivers/usb/serial/ti_usb_3410_5052.c: TI USB 3410/5052 Serial Driver v0.9
[ 152.604585] ti_usb_3410_5052 2-2:2.0: TI USB 3410 1 port adapter converter detected
[ 152.607216] usb 2-2: TI USB 3410 1 port adapter converter now attached to ttyUSB0
If all good, jump to step 4.

If not and you only see this:
Code:
[ 297.906632] firmware: requesting ti_usb-3410.bin
[ 297.922129] usb 4-1: ti_download_firmware - firmware not found
[ 297.924327] ti_usb_3410_5052: probe of 4-1:1.0 failed with error -5
Then:
cp /lib/firmware/$(uname -r)/ti_3410.fw /lib/firmware/ti_usb-3410.bin

Make sure the rules file exists:
cat /etc/udev/rules.d/026_ti_usb_3410.rules
Make sure the firmware file exists:
ls /lib/firmware/ti_usb-3410.bin
Double check the /etc/udev/rules.d/026_ti_usb_3410.rules file, just one incorrectly pasted"`" can throw it all out.

Unplug Device and plug back in, check dmesg -c again.

4. scite /ect/wvdial.conf
copy & paste the following:
Code:
[Dialer neotel]

Modem = /dev/ttyUSB0

Baud = 230400

Phone = #777

Init1 = ATZ

Stupid Mode = 1

Dial Command = ATDT

Username = [email protected]

Password = 1234

PPPD Options = crtcts multilink usepeerdns lock defaultroute
After adding your number Save & exit.

5. scite /ect/resolv.conf
copy and paste the following:
Code:
nameserver 41.160.0.36
nameserver 41.160.128.12
Save & exit.

6. wvdial neotel
Voila! you should now be connected!
To make sure:
ifconfig | grep ppp0
and you should see
Code:
ppp0      Link encap:Point-to-Point Protocol

To disconnect your connection press ctrl + c or again if you are impatient.

As an added option you can screen with the wvdial neotel command as follows:
screen wvdial neotel
Once connected press ctrl + a + d to leave the process running and out of the way, you can now close the terminal and carry on with your business. To reattach the connection session, open terminal and type screen -r or screen -list to view if running multiple screen sessions, see screen --help for more info.

Great, Connection is running, now what if we wanted to share our connection to other computers.

ICS with Linux:

Flush and delete existing firewall rules:
iptables -F
iptables -t nat -F
iptables -t mangle -F


Delete the chains:
iptables -X
iptables -t nat -X
iptables -t mangle -X


Save IP Tables Rules:
service iptables save
service iptables restart


scite /etc/rc.d/rc.local
copy & paste and insert
Code:
echo "1" > /proc/sys/net/ipv4/ip_forward

iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
service iptables save
service iptables restart


Make sure IP tables are set:
chkconfig --list iptables

make sure either level 5 or level 2345 are on

Set Linux Host IP:
192.168.0.1
netmask
255.255.255.0

Set Client IP
192.168.0.x
netmask
255.255.255.0
gateway
192.168.0.1

Happy Linuxing on NeoConnect Lite :)
 
Thanks for this! It works great - Will I just need to change resolve.conf if I swap between the Neotel device and the Vodacom 3G?
 
Thanks for this! It works great - Will I just need to change resolve.conf if I swap between the Neotel device and the Vodacom 3G?

As you probably gathered, it's alot easier using the 3G dongle, different steps on various Distro's. No more Neotel though, using TDM adsl in Mozambique now :-)
 
Top
Sign up to the MyBroadband newsletter
X