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

K4203 switch to modem

Post by doorcollider » Tue Feb 25, 2020 1:16 pm

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: 1304
Joined: Wed Jul 11, 2012 3:14 pm
Location: Koh Samui, TH

Re: K4203 switch to modem

Post by LOM » Wed Feb 26, 2020 5:34 am

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: Tue Feb 25, 2020 1:14 pm

Re: K4203 switch to modem

Post by doorcollider » Wed Feb 26, 2020 8:20 am

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

doorcollider
Posts: 6
Joined: Tue Feb 25, 2020 1:14 pm

Re: K4203 switch to modem

Post by doorcollider » Wed Feb 26, 2020 8:46 am

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: 1304
Joined: Wed Jul 11, 2012 3:14 pm
Location: Koh Samui, TH

Re: K4203 switch to modem

Post by LOM » Wed Feb 26, 2020 9:50 am

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: Tue Feb 25, 2020 1:14 pm

Re: K4203 switch to modem

Post by doorcollider » Wed Feb 26, 2020 11:00 am

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

LOM
Posts: 1304
Joined: Wed Jul 11, 2012 3:14 pm
Location: Koh Samui, TH

Re: K4203 switch to modem

Post by LOM » Wed Feb 26, 2020 5:10 pm

doorcollider wrote:
Wed Feb 26, 2020 11:00 am
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: Tue Feb 25, 2020 1:14 pm

Re: K4203 switch to modem

Post by doorcollider » Thu Feb 27, 2020 9:42 am

it worked <3. Thnx alot!

doorcollider
Posts: 6
Joined: Tue Feb 25, 2020 1:14 pm

Re: K4203 switch to modem

Post by doorcollider » Sat Mar 28, 2020 9:06 pm

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

Josh
Site Admin
Posts: 6545
Joined: Sat Nov 03, 2007 12:30 am

Re: K4203 switch to modem

Post by Josh » Mon May 18, 2020 7:40 pm

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

Post Reply