Jump to content

This is the support site for Andrews & Arnold Ltd, a UK Internet provider. Information on these pages is generally for our customers but may be useful to others, enjoy!

Router - TG582N - Adding support for a 3G dongle: Difference between revisions

clean up, typos fixed: usb → USB (3)
m (Mention 'usb-modeswitch' package)
(clean up, typos fixed: usb → USB (3))
 
(11 intermediate revisions by 2 users not shown)
ZTE dongles, at least, have means to disable mode switching and make the dongle power-up as a USB 3G modem. There are two possible commands
to use, depending on the age of the dongle: use 'AT+ZCDRUN=E', or if that isn't supported use 'AT+ZCDRUN=8' to force the dongle into modem mode.
 
To reconfigure the dongle, one needs a computer which supports 3G dongles and which can do mode switching in order to present an interface which
accepts AT commands.
 
For example, a Linux computer with the ''usb-modeswitch'' and ''usb-modeswitch-data'' packages can be used. Plugging in a ZTE MF112 dongle results
in 'dmesg' reporting:
 
option 1-1:1.0: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
option 1-1:1.1: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
option 1-1:1.2: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
Trying 'screen /dev/ttyUSB0' shows this port doesn't respond to 'AT' commands (use ^Ak to kill the session), but 'screen /dev/ttyUSB1' does respond
to 'AT' commands.
 
Out of the box:
AT+ZCDRUN=E hides memory device, enables 3G modem
AT+ZCDRUN=F reveals memory device, disables 3G modem
 
Note that disabling mode switching may compromise use of the dongle under Windows.
 
=== Provide the data to mode switch ===
= Finding the data for a new dongle =
 
The first step is to find the USB ID(s) for the dongle. This is best achieved by using a computer which supports the dongle.
Coming soon...
Linux users can use 'lsusb' to list the attached USB devices. Run 'lsusb', then plug the dongle in and rerun 'lsusb'. Then wait for 30 seconds
or so, and run 'lsusb' again - this may show mode switching having taken place.
 
For example, with a ZTE MF112 lsusb initially reports
ID 19d2:0103 ZTE WCDMA Technologies MSM MF112
and then mode switches and lsusb reports
ID 19d2:0031 ZTE WCDMA Technologies MSM MF110/MF627/MF636
 
Strangely, with mode switching disabled the USB ID may be different from either of the previous USB IDs. The ZTE MF112 with mode switching disabled reports
 
ID 19d2:0016 ZTE WCDMA Technologies MSM
 
Armed with the USB ID(s) it's time to hope that someone else has already found the remaining data. Let's go searching.
 
== Luck ==
We've just been lucky with the ZTE MF112 - its 'storage ID' of 19d2:0103 isn't in the list of supported dongles, but with mode switching disabled the 'modem ID' of 19d2:0016 '''is''' in that list (appearing as the ZTE_MF110). Plugging the ZTE MF112 in, having first disabled mode switching, results in
:mobile device list
reporting at the end
Detected device: ZTE_MF110
# interfaces : 3
AT interface : 1
Data interface: 2
 
== Copying from a similar entry ==
It may be the case that a new dongle has similar USB ID(s) to a supported dongle from the same manufacturer. If so it would be worthwhile
trying most of the data from the supported dongle, but with the new USB ID(s). For example, the supported ZTE dongles all use the same
modeswitch string, and the ZTE MF100 and MF110 entries only differ in the USB IDs. So for the MF112 it's worth trying to copy those entries
but modifying the USB IDs.
 
[ In fact, the modem USB ID for the ZTE MF112 is the same (19d2:0031) as for the already supported ZTE_MF627 - so once the TG582n detects the
MF112 in storage mode and mode switches the device, then the TG582n detects the dongle as a ZTE MF627 ].
 
== Finding the config from the Internet ==
 
There are several external sites to consult in case someone else has already worked out the data for the new dongle:
 
* [http://forums.modem-help.co.uk/viewtopic.php?t=11342 modem-help.co.uk ]
 
* [http://www.draisberghof.de/usb_modeswitch/device_reference.txt USB modeswitch "known working hardware" list ]
 
* [http://www.dd-wrt.com/wiki/index.php/Mobile_Broadband dd-wrt.com ]
 
= Adding a new dongle =
 
:mobile device delete name=Maker_model
 
= Testing the new dongle =
 
The first check to be made is whether the TG582n successfully sees the dongle. Plug the dongle in, wait a minute or so, and then issue the command
:mobile device list
If the output ends with
No device detected
then the dongle hasn't been recognised. What to look for is the output ending with something like
Detected device: ZTE_MF627
# interfaces : 4
AT interface : 1
Data interface: 3
 
If the 'AT interface' or 'Data interface' lines report 'invalid' rather than a number, then the config is wrong - it's worth trying again with
different numbers.
 
Once the dongle is recognised, the next step is to configure the 3G service ([[Router - TG582N - 3G|3G]]) and then see if mobile broadband
works. On the web interface 'Broadband Connection' should show the mobile broadband connection, and 'View More' should show operator
and signal strength info - if the signal strength info is missing, the 'AT interface' might be wrongly configured.
 
[[Category:Router TG582N|3G]]
editor
698

edits