WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: (solved) Modem Huawei e1750 (from www.fonic.de); setup in TCL 3.8.4  (Read 5243 times)

Offline floppy

  • Hero Member
  • *****
  • Posts: 577
Hello,
I have now this usb modem for my wife laptop and trying it first on my desktop (tcl4.0 fresh installed!).
So, I kindly ask for a few help.

According informations in the internet, I will have to create diverse files and put them into the backup:

------------------------------------------------
File="/etc/usb_modeswitch.conf"
sed -i '1iCheckSuccess=5' $File
sed -i '1iMessageEndpoint=0x01' $File
sed -i '1iMessageContent="55534243000000000000000000000011060000000000000000000000000000"' $File
sed -i '1iTargetProduct= 0x1001' $File
sed -i '1iTargetVendor = 0x12d1' $File
sed -i '1i' $File
sed -i '1iDefaultProduct= 0x1446' $File
sed -i '1iDefaultVendor=  0x12d1' $File

#we now create a new rule making usb_modeswitch run everytime we connect the usb-modem to the computer
#we edit the file /etc/udev/rules.d/15-huawei-e1750.rules
#the line is:
# SUBSYSTEM==\"usb\", SYSFS{idProduct}==\"1446\", SYSFS{idVendor}==\"12d1\", RUN+=\"/usr/sbin/usb_modeswitch\"

echo SUBSYSTEM==\"usb\", SYSFS{idProduct}==\"1446\", SYSFS{idVendor}==\"12d1\", RUN+=\"/usr/sbin/usb_modeswitch\" >> /etc/udev/rules.d/15-huawei-e1750.rules

#we now restart udev
/etc/init.d/udev restart
################################

Issue: usb_modeswitch disappear from 3.8 to 4.0. Can somebody make it? (it seems not to start in 4.0).

Questions:
- should I restart udev as command in bootlocal.sh? (after the usb_modewitch.conf are restored) how to do this?
- since this will be done, how should I progress for connecting this stick? use the wifi.tcz or other applications?
Few words would help.
« Last Edit: October 02, 2011, 12:37:47 PM by floppy »
AMD K6-IIIATZ 550MHz MB DFI K6xv3/+66
P4 HP DC7100 3GB 3GHz
Samsung NC10 boot from SD card port (via USB reader)
.. all TinyCore proofed

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 6347
Re: Modem Huawei e1750 (from the company fonic); setup in TCL 4.0; how?
« Reply #1 on: September 26, 2011, 07:21:28 PM »
Once you have entered the udev rule, use this command and then plug the usb modem in
Code: [Select]
$ sudo udevadm control --reload-rules

Offline floppy

  • Hero Member
  • *****
  • Posts: 577
Re: Modem Huawei e1750 (from the company fonic); setup in TCL 4.0; how?
« Reply #2 on: September 27, 2011, 11:28:17 AM »
Thanks. I will put it at the end of bootlocal.sh

Other question: I could not find  PPPD.tcz and PPPsetup.tcz for 3.8.4. Where it is?
(I have to use 3.8.4 since no usb_modeswitch for 4.0 is there).
It seems to be the extensions for making the setup of this 3G modem.
AMD K6-IIIATZ 550MHz MB DFI K6xv3/+66
P4 HP DC7100 3GB 3GHz
Samsung NC10 boot from SD card port (via USB reader)
.. all TinyCore proofed

Offline maro

  • Hero Member
  • *****
  • Posts: 1229
Re: Modem Huawei e1750 (from the company fonic); setup in TCL 4.0; how?
« Reply #3 on: September 27, 2011, 02:25:57 PM »
I think in the end that extension names are to be seen as case sensitive. Therefore I would suggest you try:
    tce-load -wi pppsetup
and report back here any failure message if they still arise.

I've run into this kind of problem as my own extension mirror is on a NTFS file systems (which is not case sensitive). So some files might be getting downloaded, but then dependencies and local file names in TC can cause all sorts of "fun and games".

Offline netnomad

  • Hero Member
  • *****
  • Posts: 738
Re: Modem Huawei e1750 (from the company fonic); setup in TCL 4.0; how?
« Reply #4 on: September 28, 2011, 09:57:41 AM »
hi,
have a look at following link, it helped me to get a umts-connection:
http://forum.tinycorelinux.net/index.php/topic,458.msg30442.html#msg30442

after loading pppsetup and usb-modeswitch,
i succeeded in copying prepared config files to the right place:
/etc/resolv.conf                        for the dns-resolution
and all the files of /etc/ppp    for establishing the connection

« Last Edit: September 28, 2011, 10:02:57 AM by netnomad »

Offline floppy

  • Hero Member
  • *****
  • Posts: 577
Re: Modem Huawei e1750 (from the company fonic); setup in TCL 4.0; how?
« Reply #5 on: September 29, 2011, 09:39:34 AM »
@netnomad: I was trying wvdial before your proposal and Im nearly achieved it. So, if you agree, I will further stick to wvdial (3.8.4.. because there is no usb-modeswitch in 4.0). and come back to your proposal if I dont connect.

Issue (from remembering because I dont have the test pc in the front of me):
- after usb-modeswitch worked
- after I was connected to my provider www.fonic.de
- then I made "wvdial fonic" and it stopped with several error with "cannot find /usr/sbin/pppd...  change the configuration path in wvdial.conf" despite I already launched pppd on boot.

Question: is it a wvdial (where is the pppd file and how to make the setup in wvdial.conf?) or is it a pppd issue? (no pppd files are in /usr/sbin/.. where are they?)
AMD K6-IIIATZ 550MHz MB DFI K6xv3/+66
P4 HP DC7100 3GB 3GHz
Samsung NC10 boot from SD card port (via USB reader)
.. all TinyCore proofed

Offline netnomad

  • Hero Member
  • *****
  • Posts: 738
Re: Modem Huawei e1750 (from the company fonic); setup in TCL 4.0; how?
« Reply #6 on: September 29, 2011, 10:27:25 AM »
i don't use wvdial, i prefer the manual way...
i guess your routing or your dns-resolving is the problem.
after you established a connection, you could try to ping an ip-address, so don't ping an url,
try to get the ip from an url and then ping to that ip.
afterwards try to get the dns-server-ip of your provider and make sure that it's in your resolv.conf.
f.e.
nameserver >ip-of-the-dnsserver-of your isp<
probably it's better to take a nameserver of your 3g-network.
i remember that ididn't succeed with the dns-server that i use for wired connections.
« Last Edit: September 29, 2011, 10:33:12 AM by netnomad »

Offline floppy

  • Hero Member
  • *****
  • Posts: 577
Re: Modem Huawei e1750 (from the company fonic); setup in TCL 4.0; how?
« Reply #7 on: September 29, 2011, 12:52:12 PM »
Here are my errors... http://imagebin.org/176769
....
Unable to run /usr/sbin/pppd
Check permissions, or specify a "PPPD Path" option in wvdial.conf
....
So, Im still digging into the subject.. before I goes the manual way.
« Last Edit: September 29, 2011, 10:44:02 PM by floppy »
AMD K6-IIIATZ 550MHz MB DFI K6xv3/+66
P4 HP DC7100 3GB 3GHz
Samsung NC10 boot from SD card port (via USB reader)
.. all TinyCore proofed

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1104
  • HandMace informatic works
Re: Modem Huawei e1750 (from the company fonic); setup in TCL 4.0; how?
« Reply #8 on: September 30, 2011, 05:10:39 AM »
Yes, now that you ask me, I remember the other two problems:
for pppd path read here: http://forum.tinycorelinux.net/index.php/topic,311.msg50402.html#msg50402 ("PPPD Path = /usr/....")
And I remember that every time you used a wrong configuration for wvdial, after kill wvdial, had to run again "wvdialconf" and reedit /etc/wvdial.conf, this was the reason I first tried a working setup on ubuntu.

I should write in the .info but I must have forgotten
« Last Edit: September 30, 2011, 05:19:37 AM by vinnie »

Offline floppy

  • Hero Member
  • *****
  • Posts: 577
Re: Modem Huawei e1750 (from the company fonic); setup in TCL 4.0; how?
« Reply #9 on: September 30, 2011, 02:48:12 PM »
Great.
Major improvement was done. The PPPD path is included now in wvdial.conf.
But still not in the net.
The last message was "no carrier".
Probably its coming from the resolv.conf, where the content must be wrong (or no net in the U-Bahn in Stuttgart).

Today content of resolv.conf: (supplier www.fonic.de)
=====================
search pinternet.interkom.de
nameserver 82.113.100.6
=====================

I will try other contents tomorrow from home (after googling for other nameserver.. like 195.182.96.28 and 61, or 82.113.100.600, or 193.189.244.205 and 197, or 225 and 206).
AMD K6-IIIATZ 550MHz MB DFI K6xv3/+66
P4 HP DC7100 3GB 3GHz
Samsung NC10 boot from SD card port (via USB reader)
.. all TinyCore proofed

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1104
  • HandMace informatic works
Re: Modem Huawei e1750 (from the company fonic); setup in TCL 4.0; how?
« Reply #10 on: September 30, 2011, 06:56:52 PM »
you can use pubblic server for dns

Offline floppy

  • Hero Member
  • *****
  • Posts: 577
Re: Modem Huawei e1750 (from the company fonic); setup in TCL 4.0; how?
« Reply #11 on: October 01, 2011, 01:06:10 AM »
you can use pubblic server for dns
example? (germany.. or europe)
AMD K6-IIIATZ 550MHz MB DFI K6xv3/+66
P4 HP DC7100 3GB 3GHz
Samsung NC10 boot from SD card port (via USB reader)
.. all TinyCore proofed

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 4851
    • My Community Forum
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline floppy

  • Hero Member
  • *****
  • Posts: 577
Re: Modem Huawei e1750 (from the company fonic); setup in TCL 4.0; how?
« Reply #13 on: October 02, 2011, 11:10:13 AM »
A big THANKS to all ! I am writing from
- a compaq 6910p laptop
- booted via SD 8GB on USB-adapter
- TCL 3.8.4
- USB Modem Huawei e1750 from www.fonic.de 12d1:1446 (before usb_switch); 12d1:140c (after usb_switch)

I used this thread for solving my connection issue.
And:
- data from www.fonic.de describing the internet setups
- http://www.hermann-uwe.de/blog/the-fonic-surf-stick-huawei-e1750-hspa-usb-modem-on-debian-gnu-linux-via-usb-modeswitch-and-wvdial

I made following...

TCE:  wvdial and usb-modeswitch on boot

Boot code: nodhcp

Filetool.lst (for persistence)
====================================
...
opt/bootlocal.sh
etc/usb_modeswitch.conf
etc/udev/rules.d/15-huawei-e1750.rules
etc/wvdial.conf
etc/resolv.conf
...
=====================================


etc/usb_modeswitch.conf  content
=====================================
#
DefaultVendor=  0x12d1
DefaultProduct= 0x1446
TargetVendor= 0x12d1
TargetProductList= "1001,1406,1412,140c,1436,14ac,141b"
MessageContent="55534243123456780000000000000011060000000000000000000000000000"
MessageEndpoint=0x01
CheckSuccess=30
# Configuration for the usb_modeswitch package, a mode switching tool for
# USB devices providing multiple states or modes
#
# This file is evaluated by the wrapper script "usb_modeswitch_dispatcher"
# in /usr/sbin
# To enable an option, set it to "1", "yes" or "true" (case doesn't matter)
# Everything else counts as "disable"
# Disable automatic mode switching globally (e.g. to access the original
# install storage)
DisableSwitching=0
# Enable logging (results in a extensive report file in /var/log, named
# "usb_modeswitch_<interface-name>" (and probably others)
EnableLogging=1
=====================================


etc/udev/rules.d/15-huawei-e1750.rules  content (1 line)
=====================================
SUBSYSTEM=="usb", SYSFS{idProduct}=="1446", SYSFS{idVendor}=="12d1", RUN+="/usr/sbin/usb_modeswitch -c /etc/usb_modeswitch.conf"
=====================================


etc/wvdial.conf    content (XXXX is the pin code for this stick)
=====================================
[Dialer Defaults]
Modem = /dev/ttyUSB0
Baud = 460800
PPPD Path = /usr/local/sbin/pppd
[Dialer Pin]
Init1 = AT+CPIN=XXXX
[Dialer Fonic]
Phone = *99#
Username = foo
Password = foo
Stupid Mode = 1
Dial Command = ATDT
Init2 = ATZ
Init3 = AT+CGDCONT=1,"IP","pinternet.interkom.de"
=====================================

etc/resolv.conf   content
=====================================
search pinternet.interkom.de
nameserver 8.8.8.8
nameserver 8.8.4.4
=====================================

opt/bootlocal.sh
=====================================
....
# modeswitch relaunch after restore for the huawei e1750 (see .filetool.lst)
sudo udevadm control --reload-rules
....
=====================================


For going into the internet:
- boot the PC (restore mode)
- put the huawei USB stick  into a port.. wait a bit.. the USB is recognized automatically from the usb rule and switched to modem modus
- make in a terminal: "sudo wvdial pin", then "sudo wvdial fonic"
- then a bit time later, I could go with firefox into the internet

Comments/remarks are welcome for perhaps improving this summary.
Now I can walk around with an USB Stick (or an adapter and my SD 8GB) and this fonic modem .. and can go from everywhere into the net.
Freedom.. freedom..
« Last Edit: October 02, 2011, 12:36:45 PM by floppy »
AMD K6-IIIATZ 550MHz MB DFI K6xv3/+66
P4 HP DC7100 3GB 3GHz
Samsung NC10 boot from SD card port (via USB reader)
.. all TinyCore proofed

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1104
  • HandMace informatic works
Re: (solved) Modem Huawei e1750 (from www.fonic.de); setup in TCL 3.8.4
« Reply #14 on: October 02, 2011, 12:49:03 PM »
Thank for posting your experience :)