Huawei E35531 on XU4 (Ubunutu 18.04)

Post Reply
anil
Posts: 108
Joined: Thu Jun 21, 2018 8:54 pm
languages_spoken: english
ODROIDs: ODROID-XU4
Has thanked: 9 times
Been thanked: 0
Contact:

Huawei E35531 on XU4 (Ubunutu 18.04)

Post by anil » Wed Mar 25, 2020 1:26 pm

Dear All;
Can you pls help me to install Huawei E3531 mobile dongle on my XU4? i'm running ubunutu 18.04

my servce provider has given some linux installation files but non eof them are working

i have followed this...

Code: Select all

root@odroid:~# lsusb
Bus 006 Device 002: ID 0bda:8153 Realtek Semiconductor Corp.
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 003: ID 125f:a75a A-DATA Technology Co., Ltd.
Bus 004 Device 004: ID 174c:5106 ASMedia Technology Inc. ASM1051 SATA 3Gb/s bridge
Bus 004 Device 002: ID 05e3:0616 Genesys Logic, Inc. hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 12d1:1506 Huawei Technologies Co., Ltd. Modem/Networkcard
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
and then

Code: Select all

root@odroid:~# grep 12d1 /lib/udev/rules.d/40-usb_modeswitch.rules ATTRS{idVendor}=="12d1", ATTRsb_modeswitch '%b/%k'"
/lib/udev/rules.d/40-usb_modeswitch.rules:ATTRS{idVendor}=="12d1", ATTRS{manufacturer}!="AndroidRUN+="usb_modeswitch '/%k'"
/lib/udev/rules.d/40-usb_modeswitch.rules:ATTR{idVendor}=="12d1", ATTR{idProduct}=="1573", RUN+=
/lib/udev/rules.d/40-usb_modeswitch.rules:ATTR{idVendor}=="12d1", ATTR{idProduct}=="15c1", RUN+=
grep: ATTRS{idVendor}==12d1,: No such file or directory
grep: ATTR{bInterfaceNumber}==00,: No such file or directory
grep: ATTR{bInterfaceClass}==08,: No such file or directory
grep: RUN+=usb_modeswitch '%b/%k': No such file or directory
whats wrong here???
pls help me

anil
Posts: 108
Joined: Thu Jun 21, 2018 8:54 pm
languages_spoken: english
ODROIDs: ODROID-XU4
Has thanked: 9 times
Been thanked: 0
Contact:

Re: Huawei E35531 on XU4 (Ubunutu 18.04)

Post by anil » Thu Mar 26, 2020 5:36 pm

Isn't there any body help me here???

User avatar
odroid
Site Admin
Posts: 34142
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 675 times
Been thanked: 614 times
Contact:

Re: Huawei E35531 on XU4 (Ubunutu 18.04)

Post by odroid » Thu Mar 26, 2020 5:53 pm

I have no experience of using a USB modem.
I just think you need to check if "modeswitch" command worked properly or not.

anil
Posts: 108
Joined: Thu Jun 21, 2018 8:54 pm
languages_spoken: english
ODROIDs: ODROID-XU4
Has thanked: 9 times
Been thanked: 0
Contact:

Re: Huawei E35531 on XU4 (Ubunutu 18.04)

Post by anil » Fri Mar 27, 2020 12:36 am

ok tks


but this is the output

Code: Select all

root@odroid:~# modeswitch
modeswitch: command not found
root@odroid:~#

User avatar
odroid
Site Admin
Posts: 34142
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 675 times
Been thanked: 614 times
Contact:

Re: Huawei E35531 on XU4 (Ubunutu 18.04)

Post by odroid » Fri Mar 27, 2020 9:25 am

Try "usb_modeswitch" command. If it doesn't work, you need to install a deb package.

anil
Posts: 108
Joined: Thu Jun 21, 2018 8:54 pm
languages_spoken: english
ODROIDs: ODROID-XU4
Has thanked: 9 times
Been thanked: 0
Contact:

Re: Huawei E35531 on XU4 (Ubunutu 18.04)

Post by anil » Fri Mar 27, 2020 6:22 pm

tks. can you pls guide me the rest as well..

Code: Select all

root@odroid:~# usb_modeswitch

Usage: usb_modeswitch [<params>] [-c filename]

 -h, --help                    this help
 -e, --version                 print version information and exit
 -j, --find-mbim               return config no. with MBIM interface, exit

 -v, --default-vendor NUM      vendor ID of original mode (mandatory)
 -p, --default-product NUM     product ID of original mode (mandatory)
 -V, --target-vendor NUM       target mode vendor ID (optional)
 -P, --target-product NUM      target mode product ID (optional)
 -C, --target-class NUM        target mode device class (optional)
 -b, --bus-num NUM             system bus number of device (for hard ID)
 -g, --device-num NUM          system device number (for hard ID)
 -m, --message-endpoint NUM    direct the message transfer there (optional)
 -M, --message-content <msg>   message to send (hex number as string)
 -2, --message-content2 <msg>  additional messages to send (-n recommended)
 -3, --message-content3 <msg>  additional messages to send (-n recommended)
 -w, --release-delay NUM       wait NUM ms before releasing the interface
 -n, --need-response           obsolete, no effect (always on)
 -r, --response-endpoint NUM   read response from there (optional)
 -K, --std-eject               send standard EJECT sequence
 -d, --detach-only             detach the active driver, no further action
 -H, --huawei-mode             apply a special procedure
 -J, --huawei-new-mode         apply a special procedure
 -X, --huawei-alt-mode         apply a special procedure
 -S, --sierra-mode             apply a special procedure
 -O, --sony-mode               apply a special procedure
 -G, --gct-mode                apply a special procedure
 -N, --sequans-mode            apply a special procedure
 -A, --mobileaction-mode       apply a special procedure
 -T, --kobil-mode              apply a special procedure
 -L, --cisco-mode              apply a special procedure
 -B, --qisda-mode              apply a special procedure
 -E, --quanta-mode             apply a special procedure
 -F, --pantech-mode NUM        apply a special procedure, pass NUM through
 -Z, --blackberry-mode         apply a special procedure
 -U, --option-mode             apply a special procedure
 -R, --reset-usb               reset the device after all other actions
 -Q, --quiet                   don't show progress or error messages
 -W, --verbose                 print all settings and debug output
 -D, --sysmode                 specific result and syslog message
 -s, --check-success <seconds> switching result check with timeout
 -I, --inquire                 obsolete, no effect

 -c, --config-file <filename>  load long configuration from file

 -t, --stdinput                read long configuration from stdin

 -f, --long-config <text>      get long configuration from string

 -i, --interface NUM           select initial USB interface (default 0)
 -u, --configuration NUM       select USB configuration
 -a, --altsetting NUM          select alternative USB interface setting


 * usb_modeswitch: handle USB devices with multiple modes
 * Version 2.5.2 (C) Josua Dietze 2017
 * Based on libusb1/libusbx

 ! PLEASE REPORT NEW CONFIGURATIONS !

User avatar
odroid
Site Admin
Posts: 34142
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 675 times
Been thanked: 614 times
Contact:

Re: Huawei E35531 on XU4 (Ubunutu 18.04)

Post by odroid » Mon Mar 30, 2020 10:50 am

I don't know how to use it.
I just guess you needed to modify a udev rules file.

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 2 guests