OpenWrt Forum Archive

Topic: Extroot on the SD card reader of my 4G dongle?

The content of this topic has been archived on 29 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I am configuring a hotspot to be installed in my vehicle using a TP-LINK TL-MR3020 router and Huawei E3272 4G LTE dongle on the T-Mobile network.

I had extroot working on a usb flash stick, but I was having trouble with the 4G dongle coming up as SDA1 during boot before usbmodeswitch could catch it, so the router would not see the extroot on the flash drive.

Then it occurred to me that the Huawei dongle has an SD card reader built in, why not just extroot to that? So, I managed to set up extroot on the SDcard, all was good.

Then I installed USB-modeswitch and (lol) now it can no longer see the SD card. hmm

Is there a way to use the 4G modem of the dongle for internet and the SD card reader portion at the same time?

Not a complete noobie to openwrt, but let's just assume that I am because I am starting to feel like it!

Thanks for any help!

I saw a post recently where someone was having a similar issue, I don't know whether they solved the problem or not but it would be worth doing a search and I would guess that usb-modeswitch would be a good keyword to use.

(Last edited by Xotic750 on 20 May 2016, 22:19)

Thanks, I'll give it a try. Not always easy to guess just the right keywords for searching.

Retroplayer wrote:

I am configuring a hotspot to be installed in my vehicle using a TP-LINK TL-MR3020 router and Huawei E3272 4G LTE dongle on the T-Mobile network.

I had extroot working on a usb flash stick, but I was having trouble with the 4G dongle coming up as SDA1 during boot before usbmodeswitch could catch it, so the router would not see the extroot on the flash drive.

Then it occurred to me that the Huawei dongle has an SD card reader built in, why not just extroot to that? So, I managed to set up extroot on the SDcard, all was good.

Then I installed USB-modeswitch and (lol) now it can no longer see the SD card. hmm

Is there a way to use the 4G modem of the dongle for internet and the SD card reader portion at the same time?

Not a complete noobie to openwrt, but let's just assume that I am because I am starting to feel like it!

Thanks for any help!

Don't know if this works but there is a thread here and a Wiki section here thanks to booBot.

Good Luck!

vernonjvs wrote:

Don't know if this works but there is a thread here and a Wiki section here thanks to booBot.

Good Luck!

Yes, the Wiki section did the trick! Thank you! I sorta remembered that I could turn off the virtual cd-rom. No more usbmodeswitch needed!

Now I just need to remember how to get the 4G working again and set up failsafe to prefer Wifi and only use the 4G in the absence of it.

(Last edited by Retroplayer on 21 May 2016, 02:04)

Retroplayer wrote:

Yes, the Wiki section did the trick!

Good!
smile

Could you share your modem's model and firmware version - I'd like to update the list in the wiki.

And please comment whether the AT-commands were exactly as I used for my modem or did you have to use their analogs for your's? If commands were different - please share too.

(Last edited by booBot on 21 May 2016, 08:25)

This came from using the Mobile Partner software that came on the virtual CD-ROM:

Device name: E3372
Hardware Version: CL1E3372SM Ver.A
Firmware Version: 21.286.03.01.209
Software Version: 23.015.11.00.03

My understanding is that the firmware 21.* is already in stick mode and not Hilink.

The Setport menu was a bit different.

Send:AT^SETPORT=?

Recieve: AT^SETPORT=?
Recieve: ^SETPORT:3: 3G DIAG
Recieve: ^SETPORT:10: 4G MODEM
Recieve: ^SETPORT:1: 3G MODEM
Recieve: ^SETPORT:12: 4G PCUI
Recieve: ^SETPORT:13: 4G DIAG
Recieve: ^SETPORT:5: 3G GPS
Recieve: ^SETPORT:14: 4G GPS
Recieve: ^SETPORT:A: BLUE TOOTH
Recieve: ^SETPORT:16: NCM
Recieve: ^SETPORT:A1: CDROM
Recieve: ^SETPORT:A2: SD
Recieve: OK

Send:AT^SETPORT?

Recieve: AT^SETPORT?
Recieve: ^SETPORT:FF;12,16,A2
Recieve: OK

I turned on only the NCM function, but I have not gotten the modem to work yet, so I am probably going to need to change it. The important thing of course was the removal of the virtual cd-rom.

Looking at those settings, could you recommend what I should turn on/off? I'd like the modem to be able to use 4G when available, but 3G when it's not. My data plan is also unlimited, but 4G up to 3GB/month and then reverts to 3G speeds.

Should I turn on all the "modems"?

BTW, GPS and BLUETOOTH give me errors. This stick doesn't appear to have those features.

Re-arranged to hopefully be a little more clear:


Recieve: ^SETPORT:1: 3G MODEM
Recieve: ^SETPORT:3: 3G DIAG    *
Recieve: ^SETPORT:5: 3G GPS     *

Recieve: ^SETPORT:10: 4G MODEM
Recieve: ^SETPORT:12: 4G PCUI
Recieve: ^SETPORT:13: 4G DIAG   *
Recieve: ^SETPORT:14: 4G GPS    *

Recieve: ^SETPORT:16: NCM

Recieve: ^SETPORT:A: BLUE TOOTH *
Recieve: ^SETPORT:A1: CDROM
Recieve: ^SETPORT:A2: SD

Items marked with an asterisk cause an error if I attempt to set them.

I changed it to ^SETPORT:FF;12,1,10,16,A2 to see if I will have any more luck.

(Last edited by Retroplayer on 21 May 2016, 09:44)

I'd rather had it like that:

at^setport="ff;1,3,10,12,13,16,a2"

You may omit the "16" there if you want a plain PPP-style modem.
Just re-enable all the DIAGs and do not disable the PCUI.

EDIT:
The "NCM" (shown as "16") is a network adapter style of connection (instead of /dev/ttyUSBx it will use something other). I plan to try it too - may be it has a bit smaller footprint compared to the set of all PPP-related modules.

(Last edited by booBot on 21 May 2016, 11:28)

booBot wrote:

I'd rather had it like that:

at^setport="ff;1,3,10,12,13,16,a2"

You may omit the "16" there if you want a plain PPP-style modem.
Just re-enable all the DIAGs and do not disable the PCUI.

EDIT:
The "NCM" (shown as "16") is a network adapter style of connection (instead of /dev/ttyUSBx it will use something other). I plan to try it too - may be it has a bit smaller footprint compared to the set of all PPP-related modules.

The DIAG ports cause an ERROR response and will not set with the AT commands. I cannot turn them on for some reason. Would have loved to use the GPS as a GPS is part of my overall plan, but it also causes an error.

A PPP style modem is ok, maybe. I am just looking for the fastest speed to take advantage of the 4G. There are so many different methods and options, it has been difficult to find information. I did have it working at one time but I ended up with so much bloat from trying so many different things that I got lost in what finally worked and my configuration files were a mess. I unfortunately don't know what I did to get it working before.

As for NCM, from the reading I have done, it requires the CDC-ETHER package which I cannot find in attitude adjustment.

When only the NCM was turned on and Luci-Proto-3g installed, the router would crash when trying to configure a new interface from the GUI.No error was given. It would just kick me back to the main login screen.

I'd be happy to be your guinea pig to try various things for your wiki entry. Even though I may eventually stumble on getting it working, I would prefer to understand why and how so that I can optimize it and make for the cleanest solution. The 4G and 3G stuff is a bit over my head right now.

(Last edited by Retroplayer on 21 May 2016, 11:57)

I'm far from being an expert here.

Did

at^setport="ff;1,3,10,12,13,a2"

answer with "OK"?

If so, I think you should not touch those interfaces yourself, let the comgt do its job.
All you have to do is to point to /dev/ttyUSB0 in the network settings. At least - it worked for me automagically from then on.

I'd be glad to help you - I'm also interested in this topic very much.

EDIT:
Do you mean that you DID NOT explicetely disable the "1", "3" and "13" yourself (in the previous AT-command)? What was before the

AT^SETPORT?
^SETPORT:FF;12,16,A2

dialog?

(Last edited by booBot on 21 May 2016, 12:54)

If 3 or 13 is anywhere in the string, the AT command will result in an error.

They were not turned on in the original config.

^SETPORT:A1,A2;12,10,16,A2 was the original string if I remember correctly.

Unfortunately I changed it from the factory several months ago, so even what it said yesterday is not the original string.

In the list above, I can set anything (or all) that do not have asterisks (*). Any of the choices with asterisks will give an error and the settings will not change at all (ie. it will ignore everything else.)

I turned on all the modems (1,10, and 16) and Luci still crashes when I try to add a new interface. It was not doing that before. Hmm...

(Last edited by Retroplayer on 21 May 2016, 13:27)

hello..
mine is e3372h hilink version.
extroot on microsd card cannot run.
seems, usbmodeswicth is the culprit. since the usbmodeswitch was run, the /dev/sda was broken.
i tired to send AT command in debug mode, but when i send it, it gives me ERROR.
why ? does the hilink version cannot send AT commands ? i sent it with AT^SETPORT="FF;A2,A3" but ERROR
AT^SETPORT? can give the result
AT^RESET also can
i want to disable cd emulation, because i thought the problem caused by that.

if i change the firmware into mobile partner i can disable the cd rom emulation using AT command. and extroot from micro sd card working fine.

(Last edited by gentong on 30 Jun 2016, 05:15)

The discussion might have continued from here.