tag:blogger.com,1999:blog-3993498847203183398.post3048592139600437577..comments2024-03-28T09:19:27.451+00:00Comments on RevK<sup>®</sup>'s ramblings: 4G donglesRevKhttp://www.blogger.com/profile/12369263214193333422noreply@blogger.comBlogger11125tag:blogger.com,1999:blog-3993498847203183398.post-45390666520827265402015-03-13T08:01:19.865+00:002015-03-13T08:01:19.865+00:00A word of warning with dongles which appear as an ...A word of warning with dongles which appear as an NIC: I bought a Huawei 3G dongle intending to attach it to a Raspberry Pi. My idea was to provide a remote monitoring system with an always-on interface to which I could connect at any time. To achieve this, I purchased an AAISP 3 data SIM which provides a static IP address on the Internet (fantastic product!).<br /><br />Sadly, the virtual network associated with the dongle (192.168.1) does not provide a facility for port address translation which meant it was impossible to make incoming connections from the Internet. I was obliged to fall back to using another dongle with an AT-style interface which worked for me using PPP. My RPi then had an always-on Internet-facing IP address.<br /><br />I'd be interested to hear if more recent 4G dongles offer port address translation in their menu pages. Hopefully this will eventually become standard.Richardhttps://www.blogger.com/profile/17795443623710688794noreply@blogger.comtag:blogger.com,1999:blog-3993498847203183398.post-13721951589612265572015-03-11T20:03:50.835+00:002015-03-11T20:03:50.835+00:00This is how the ones I've used recently worked...This is how the ones I've used recently worked. It is like having a NAT/router embedded in a USB stick.<br />The host machine sees an Ethernet interface with a "router" attached that does DHCP. The "router" also has an embedded web interface for managing it, accessing SMSs, etc.<br />This is good for normal use attached to a laptop, since you don't need any special drivers. (Actually the ones I've used do also appear as a CD drive, with some management software I've never used).<br />However, for RevK's Firebrick scenario these are potentially less good than the old ones that appeared as a serial device, since there isn't a standard protocol to bring the interface up/down, specify the APN, etc. You'd probably have to do this by scrapping the embedded web interface.admcdhttps://www.blogger.com/profile/17362291010055616793noreply@blogger.comtag:blogger.com,1999:blog-3993498847203183398.post-72562096686230779522015-03-10T15:26:14.376+00:002015-03-10T15:26:14.376+00:00>i.e. you "dial" the APN
That sounds...>i.e. you "dial" the APN<br /><br />That sounds about right to me. From memory, for Vodafone, it used to be:<br /><br /> Z+AT+CGDCONT=1,"IP","internet"<br /><br />And, when working with the development team for getting the early USB modems running with the EEEPC and other netbooks, I recall playing with usb-modeswitch a lot...Anonymoushttps://www.blogger.com/profile/18427000118752159232noreply@blogger.comtag:blogger.com,1999:blog-3993498847203183398.post-22250188872425632762015-03-10T11:37:10.140+00:002015-03-10T11:37:10.140+00:00Someone may correct me here if I'm wrong, but ...Someone may correct me here if I'm wrong, but I *think* that 3G itself works in a very dial-up way, in that you have to choose which APN to connect to (i.e. you "dial" the APN), so to some extent it probably does make sense to model it as a dialup modem.<br /><br />Maybe a better model is an ethernet interface connected to an 802.1q tagged VLAN trunk, with each VLAN ending up at an appropriate APN?<br /><br />Also, I suspect that a lot of this stuff stems from trying to be compatible with all OSes without needing to install extra drivers - I certainly spent a long time trying to get Android tethering to work with a Mac a few years ago before giving up because there were basically no RNDIS drivers for Macs (whilst this Just Works™ under both Windows and Linux). Not sure if that's improved, but I can certainly see some motivation in picking a standard that's so old that every OS already has mature support.Steve Hillhttps://www.blogger.com/profile/09798286430189689578noreply@blogger.comtag:blogger.com,1999:blog-3993498847203183398.post-49340716176019069602015-03-10T09:35:39.905+00:002015-03-10T09:35:39.905+00:00Oh yes, I remember being tasked to integrate (at t...Oh yes, I remember being tasked to integrate (at the software level) a 3G module into a netbook, back in the days when netbooks were cool in Marketing's eyes. Luckily, I'd recently gone through the process of tethering my Nokia phone to my Linux firewall, so I knew where to find the relevant data.<br /><br />I think the 3G situation stemmed from 3G being an extension of EDGE, which was an extension of GPRS, which was very much a dial-up paradigm, originally charged by the minute. Per-minute charges instinctively suggest analogue-modem methods, and PPP and Hayes commands fitted neatly into existing deployed software...Jonathanhttps://www.blogger.com/profile/04753744153864691285noreply@blogger.comtag:blogger.com,1999:blog-3993498847203183398.post-64947498919912934162015-03-10T08:23:57.335+00:002015-03-10T08:23:57.335+00:00I was going to say "wouldn't it make more...I was going to say "wouldn't it make more sense for these things to pretend to be an ethernet NIC" in relation to the 3G dongles, then you beat me to it with the 4G ones. What a bizarre scheme the 3G dongles use. On the face of it the change 4G dongles have made is a step forwards.Owen Smithhttps://www.blogger.com/profile/00890951742186614705noreply@blogger.comtag:blogger.com,1999:blog-3993498847203183398.post-18771551025205065042015-03-10T07:28:49.686+00:002015-03-10T07:28:49.686+00:00Except it is not a real serial interface. I guess ...Except it is not a real serial interface. I guess it is to simplify code on the host.RevKhttps://www.blogger.com/profile/12369263214193333422noreply@blogger.comtag:blogger.com,1999:blog-3993498847203183398.post-57854275212527921872015-03-10T03:30:51.219+00:002015-03-10T03:30:51.219+00:00I remember back when I started at T-Mobile tech su...I remember back when I started at T-Mobile tech support before dongles were dongles being very suprised that I was typing dial-up hayes commands into that thing...Chad Hhttps://www.blogger.com/profile/06466797076721870606noreply@blogger.comtag:blogger.com,1999:blog-3993498847203183398.post-43504024040839633322015-03-10T00:39:36.004+00:002015-03-10T00:39:36.004+00:00I'd hope that you can just set the Ethernet in...I'd hope that you can just set the Ethernet interface to "automatically acquire an IP address (DHCP)", then send TCP/IP packets over the "Ethernet" interface and those packets appear on the Internet, with all the intermediate tech being hidden. That way you can have a PC with a standard Ethernet driver, plug in the dongle and it "just works".<br /><br />No idea if that's actually what happens :-)Anonymousehttps://www.blogger.com/profile/14477337188314298338noreply@blogger.comtag:blogger.com,1999:blog-3993498847203183398.post-73128109809600837552015-03-09T21:23:24.985+00:002015-03-09T21:23:24.985+00:00Presumably this is due to the increase in throughp...Presumably this is due to the increase in throughput and the serial interface can't manage it?Alexis Threlfallhttps://www.blogger.com/profile/11792447399167532389noreply@blogger.comtag:blogger.com,1999:blog-3993498847203183398.post-53516287259606721052015-03-09T20:41:14.840+00:002015-03-09T20:41:14.840+00:00Once you get as far as talking Ethernet to it, you...Once you get as far as talking Ethernet to it, you'll find it simulates a sound card feeding an acoustic coupler. You dial by playing DTMF tones to it, then simulate multiple 56k modems doing MLPPP.<br /><br />(Intended as a joke, but you never know ... sooner or later, somebody will probably try it for real anyway...)jas88https://www.blogger.com/profile/05563592458314214904noreply@blogger.com