Automatic Activation, Hotplug and UDEV, Configuration
Post Reply
wbockhh
Posts: 1
Joined: 13 Dec 2022, 18:41

Alcatel IK41 fails to run on Raspberry

Post by wbockhh » 13 Dec 2022, 18:48

Hi,

I am trying to get a Alcatel IK41 running on a Raspberry. The dongle is described as a USB-part to be controlled via AT-comands in order to take full control about the LTE-connection.

I intend to use it in a stand-alone homatic-environment for a time to time transfer of log-events over the internet with a LTE connection.

Here is the environment: RockPi4B, armbian/debian bullseye. On a clean new and updated installation of today I got the following information after inserting the Alcatel-Stick:

lsusb:

Bus 007 Device 003: ID 1bbb:0908 T & A Mobile Phones Mobilebroadband
..
lsusb-t:

/: Bus 07.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
|__ Port 1: Dev 3, If 0, Class=Communications, Driver=cdc_ether, 480M
|__ Port 1: Dev 3, If 1, Class=CDC Data, Driver=cdc_ether, 480M
|__ Port 1: Dev 3, If 2, Class=Mass Storage, Driver=usb-storage, 480M

usb-devices:
...
T: Bus=07 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 3 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=02(commc) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1bbb ProdID=0908 Rev=02.42
S: Manufacturer=Alcatel
S: Product=Mobilebroadband
S: SerialNumber=1234567890ABCDE
C: #Ifs= 3 Cfg#= 1 Atr=80 MxPwr=500mA
I: If#=0x0 Alt= 0 #EPs= 1 Cls=02(commc) Sub=06 Prot=00 Driver=cdc_ether
I: If#=0x1 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_ether
I: If#=0x2 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage

ifconfig -a:
enx9aaf27c18c5e: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.51.167 netmask 255.255.255.0 broadcast 192.168.51.255
inet6 fe80::d007:a593:9431:fe4 prefixlen 64 scopeid 0x20<link>
ether 9a:af:27:c1:8c:5e txqueuelen 1000 (Ethernet)
RX packets 65 bytes 4682 (4.5 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 70 bytes 5629 (5.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

A strange message occurs after apt install wvdial:

E: Fehlschlag beim Holen von http://ik41.home/index.html Datei hat eine unerwartete Größe (21429 != 206908). Eventuell läuft gerade eine Spiegel-Synchronisierung? [IP: 192.168.51.1 80]
Hashes of expected file:
- SHA256:8ce4033e9040bef7780b8ffd74fe1f0295cde8420398837b01daed9a9cf36fb6
- MD5Sum:965afc4ab5a33c255d1e8ca9c734384b [weak]
- Filesize:86292 [weak]
E: Einige Archive konnten nicht heruntergeladen werden; vielleicht »apt-get update« ausführen oder mit »--fix-missing« probieren?

What about " http://ik41.home/index.html" ??

Thereafter I installed usb-modeswitch and usb-modeswitch-data and cretated a file
/etc/usb_modeswitch.d/1bbb:f000
TargetVendor=0x1bbb
TargetProductList="0000, 0017, 00b7, 011e, 0191, 0195"
StandardEject=1

I got:
...
T: Bus=07 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 3 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1bbb ProdID=0195 Rev=02.42
S: Manufacturer=Alcatel
S: Product=Mobilebroadband
S: SerialNumber=1234567890ABCDE
C: #Ifs= 3 Cfg#= 1 Atr=80 MxPwr=500mA
I: If#=0x0 Alt= 0 #EPs= 1 Cls=e0(wlcon) Sub=01 Prot=03 Driver=rndis_host
I: If#=0x1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=rndis_host
I: If#=0x2 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage

As this didnt help I configured according the following forum entry:
https://forums.raspberrypi.com/viewtopic.php?t=234921

What I have done:
- disable the automatic mode switch at boot (DisableSwitching=1 in /etc/usb_modeswitch.conf)
- create a script to be executed at boot, for manual usb mode switching
Script content:
$ cat ~/switch_to_modem.sh
#!/bin/sh
usb_modeswitch -v 0x1bbb -p 0xf000 -V 0x1bbb -P 0x0195 -K

Line to add in /etc/rc.local (note: before exit 0):
sudo /home/pi/switch_to_modem.sh
Of course one could also avoid creating the script file, and just add its content directly into /etc/rc.local. I prefer to have the script at hand.

The outcome:

Welcome to Armbian 22.11.1 Bullseye with Linux 5.15.80-rockchip64
RX today: Error: Interface "enx1ad89a3487fe" not found in database.

lsusb:
Bus 007 Device 003: ID 1bbb:0908 T & A Mobile Phones Mobilebroadband

lsusb -t
/: Bus 07.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
|__ Port 1: Dev 3, If 0, Class=Communications, Driver=cdc_ether, 480M
|__ Port 1: Dev 3, If 1, Class=CDC Data, Driver=cdc_ether, 480M
|__ Port 1: Dev 3, If 2, Class=Mass Storage, Driver=usb-storage, 480M

ifconfig -a
enx4ab73df1f38b: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.51.148 netmask 255.255.255.0 broadcast 192.168.51.255
inet6 fe80::6fb2:f4be:eb82:afc1 prefixlen 64 scopeid 0x20<link>
ether 4a:b7:3d:f1:f3:8b txqueuelen 1000 (Ethernet)
RX packets 76 bytes 5114 (4.9 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 80 bytes 6141 (5.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

Now I tried to log in:

/etc/wvdial.conf
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0
Modem Type = Analog Modem
ISDN = 0
Modem = /dev/ttyS2
Baud = 9600
[Dialer congstar]
Carrier Check = no
Init3 = AT+CGDCONT=1,"IPV4V6","internet.v6.telekom"
Stupid Mode = 1
Phone = *99#
Dialer Command = ATD
Dial Attemps = 2
Username = congstar
Password = cs


wvdial:
--> WvDial: Internet dialer version 1.61
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
--> Re-Sending: ATZ
--> Modem not responding.

/var/log/usb_modeswitch_7-1:
USB_ModeSwitch log from Mon Dec 12 22:30:58 CET 2022
Raw parameters: {--switch-mode} {7-1}
Use global config file: /etc/usb_modeswitch.conf
Use global config file: /etc/usb_modeswitch.conf
Use top device dir /sys/bus/usb/devices/7-1
Check class of first interface ...
Interface class is 08.

USB values from sysfs:
manufacturer Alcatel
product Mobilebroadband
serial 1234567890ABCDE
Logger is /usr/bin/logger
Switching globally disabled. Exit

Does anyone have an idea how can I solve my problem, or is the alcatel ik4 not suitable for my project??

Thanks in advance

Wolfgang

vom
Posts: 3
Joined: 07 Jan 2023, 23:51

Re: Alcatel IK41 fails to run on Raspberry

Post by vom » 07 Jan 2023, 23:56

I'm having this issue as well. I got one of these sticks from eBay because it was LTE and didn't have wifi built in.

Im trying to use smstools. So I need this device to come up as /dev/ttyUSBx.

I'm no stranger to linux, and know my way around. However I've never messed with WWAN USB devices in this manner. I too get only RNDIS + storage devices. I've tried things in this thread as well as other places on the net and so far I cannot get this device to "revert" (???) to "serial mode". I actually have no use for RNDIS / ethernet / IP connectivity. I simply want serial to send SMS.

Would love to know the magic to this (if there is). Besides that - I'd love to know of a USB stick that supports at least 4G in the USA that does work for SMS (easily).

Thanks.

vom
Posts: 3
Joined: 07 Jan 2023, 23:51

Re: Alcatel IK41 fails to run on Raspberry

Post by vom » 08 Jan 2023, 00:12

Sorry to self reply - but I see this thread:

https://draisberghof.de/usb_modeswitch/ ... php?t=2577

And the last message is saying that this device is NDIS/storage only (firmware limitation). So no serial at all. If that's the case - that would explain why it's such a nightmare to try to get this thing to expose a serial port.

vom
Posts: 3
Joined: 07 Jan 2023, 23:51

Re: Alcatel IK41 fails to run on Raspberry

Post by vom » 13 Jan 2023, 04:42

So my solution was to return the IK41 and get a Huawei UMG366 (Tmobile branded). This presents the USB serial, sg/cdrom, and WWAN (of which for my purpose (smstools)) I only need the USB serial).

I'm using this in the USA with a Tello SIM (TMO MVNO). Working well so far.

Annata20
Posts: 2
Joined: 12 Oct 2023, 04:01

Re: Alcatel IK41 fails to run on Raspberry

Post by Annata20 » 12 Oct 2023, 04:40

vom wrote: 08 Jan 2023, 00:12 Sorry to self reply - but I see this thread:

https://draisberghof.de/usb_modeswitch/ ... php?t=2577 dinosaur game

And the last message is saying that this device is NDIS/storage only (firmware limitation). So no serial at all. If that's the case - that would explain why it's such a nightmare to try to get this thing to expose a serial port.
I have read the explanations in this topic, they have solved my doubts

jeffreestar
Posts: 5
Joined: 16 Nov 2023, 04:52

Re: Alcatel IK41 fails to run on Raspberry

Post by jeffreestar » 16 Nov 2023, 04:58

The Alcatel IK4 is a USB dongle that can be used to connect to the internet via LTE. To use it, you will need to install the USB-mode switch and wvdial packages. You will also need to create a configuration file for usb-modeswitch.

Retro Bowl Unblocked 76

Post Reply