Automatic Activation, Hotplug and UDEV, Configuration
Post Reply
doorcollider
Posts: 6
Joined: 25 Feb 2020, 13:14

K4203 switch to modem

Post by doorcollider » 25 Feb 2020, 13:16

Hello, i'm trying to switch to modem mode from network and i don't know how.
Bus 001 Device 021: ID 12d1:1590 Huawei Technologies Co., Ltd.

LOM
Posts: 1404
Joined: 11 Jul 2012, 15:14
Location: Koh Samui, TH

Re: K4203 switch to modem

Post by LOM » 26 Feb 2020, 05:34

I don't think there is a modem mode in K4203 but you can try enabling HuaweiAltModeGlobal in /etc/usb_modeswitch.conf and see what that switches the dongle into.

doorcollider
Posts: 6
Joined: 25 Feb 2020, 13:14

Re: K4203 switch to modem

Post by doorcollider » 26 Feb 2020, 08:20

If there is no modem mode, how can i use it for sending sms's in linux with kannel?

doorcollider
Posts: 6
Joined: 25 Feb 2020, 13:14

Re: K4203 switch to modem

Post by doorcollider » 26 Feb 2020, 08:46

i get this error msg when i run usb_modeswitch after i changed altmode to 1 in config file:

Code: Select all

sudo usb_modeswitch -v 12d1 -p 1590 --huawei-alt-mode
Look for default devices ...
 Found devices in default mode (1)
Access device 002 on bus 001
Get the current device configuration ...
Current configuration number is 1
Use interface number 0
 with class 2
Error: can't use storage command in MessageContent with interface 0; interface class is 2, expected 8. Abort[code]

LOM
Posts: 1404
Joined: 11 Jul 2012, 15:14
Location: Koh Samui, TH

Re: K4203 switch to modem

Post by LOM » 26 Feb 2020, 09:50

12d1:1590 is an id the dongle get after switching, you can not switch further on that usb id.
If you want to switch from the cmdline then disable automatic switching by usb_modeswitch or whatever other program that has switched it into 12d1:1590.

doorcollider
Posts: 6
Joined: 25 Feb 2020, 13:14

Re: K4203 switch to modem

Post by doorcollider » 26 Feb 2020, 11:00

i disabled it and it switched to 12d1:1f1c but still not sending sms.

LOM
Posts: 1404
Joined: 11 Jul 2012, 15:14
Location: Koh Samui, TH

Re: K4203 switch to modem

Post by LOM » 26 Feb 2020, 17:10

doorcollider wrote: 26 Feb 2020, 11:00 i disabled it and it switched to 12d1:1f1c but still not sending sms.
No it didn't switch, 12d1:1f1c is the initial id before the dongle is switched.
You can now use that id on the cmdline and the alt-mode switch and see what you get after it switched.

doorcollider
Posts: 6
Joined: 25 Feb 2020, 13:14

Re: K4203 switch to modem

Post by doorcollider » 27 Feb 2020, 09:42

it worked <3. Thnx alot!

doorcollider
Posts: 6
Joined: 25 Feb 2020, 13:14

Re: K4203 switch to modem

Post by doorcollider » 28 Mar 2020, 21:06

How can i reverse to original value after huawei-alt-mode?

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Re: K4203 switch to modem

Post by Josh » 18 May 2020, 19:40

There is no "going back" after the initial mode switch. You have to re-plug the device.

Post Reply