Huawei e3372 mac os big sur

Declaration of VAR

So I have this 4G+/LTE modem — Huawei E3372, also known as Megafon M150-2 — which is exactly the variation I got.

Eventually I got sick of its connection management software for Mac OS (the one that comes from Megafon), so I started looking for a way to be able to connect to the internet on Mac OS without it.

About the modem

The modem itself is rather a great piece of hardware.

Coming in a form-factor of a USB-stick, it is capable of maintaining quite a high-speed internet connection, and apparently it supports all the international LTE standards because I was using it in several countries without problems.

On top of that it has slots for external antennas and even a slot for microSD card (don’t know what to do with it):


Note that it requires full-sized SIM-cards.

I bought it several years ago in Moscow at some Megafon selling point. Back then it cost me just

700 RUB (10-20 USD?). The reason for such a low price is usually that modems are locked to a particular operator, but in my case surprisingly that wasn’t the case.

If memory serves me well, I did not perform any unlocking operations, and it just works fine with SIM-cards from other operators than Megafon. I must say, however, I never tried it with any other russian operators — the only SIM-cards I was using it with were the ones from norwegian operators (Telia and Phonero).

And it is available for purchase even today:

  • from the very same Megafon, although it is likely to be a locked version (which can be unlocked);
  • an unlocked version on Amazon.

What’s wrong with the Megafon software

But what is wrong with the Megafon software? Well, while it does its job, after some time it started to irritate me for the following reasons:

  1. It installs god knows what to your system, while the only thing you really need is just a modem driver;
  2. In addition to the main application it requires its service to run in the background, otherwise it won’t even start discovering the modem;
  3. It sends some data to different Megafon hosts. I would understand if it was for checking the updates, but why different hosts then? I don’t feel like having yet another spyware in my system;
  4. File Activity tool from Instruments shows some enormous files access by the application and/or service. What could be the purpose of such an activity, I wonder?

So I started looking for a way to avoid using the Megafon software.

How to use the modem natively

The first clue was the fact that the modem works just fine with routers:

There is no need to install any Megafon software on the router for it to be able to connect to the internet via the modem, is there? So why the need in such a software on Mac OS?

After some research I got the following steps (mostly from this great topic at 4PDA and also this SuperUser answer):

  1. Install the driver for Mac OS for the initial modem discovery;
  2. Put the modem into a mode in which it will be discovered by Mac OS as a dial-up modem;
  3. Add a new network service using the modem.

Driver for Mac OS

Maybe it’s just me, but I’ve spent quite a some time looking for a driver. Surely, I could use the one installed together with the Megafon software, but there is no way to install only the driver, and I wanted to have a “clean” set-up procedure.

Читайте также:  Will works work on windows 10

Most of links I found on the internet were dead. Of course I tried looking at the official Huawei’s website, but didn’t succeed there either.

But then in a comment section at some blog I did find a link to the working driver. And it was hosted on the official Huawei’s website! I don’t know how does one find it on his own, but here’s the link.

You don’t have to install everything, the only thing you need from this package is the driver ( MobileConnectDriver.pkg ):

I will be hosting a copy just in case the official link dies like the rest at some point. Note that this is a driver for Mac OS Mojave, scroll to bottom for the Catalina version.

After the installation you should get the following thing installed:

Check if the modem is discovered in the system:

Switching to dial-up mode

I’m sure that it’s called something else and not the “dial-up mode”, but I haven’t found the correct name for it.

So, you’ve got your modem discovered by the system. Connect to it via screen :

And try to communicate with it using AT -commands. First I tried to collect some information about the device (first line in each group is the command, the following lines are the response):

From the Revision value we can see that is starts with 21 , which means that the modem has the STICK firmware. The HILINK revision numbers start with 22 . More details about firmware types are here (in russian).

Okay, and here’s the command to switch the modem into dial-up mode:

Connecting to the internet on Mac OS

The only thing left is to create a new network service in Mac OS.

Create a new service using HUAWEIMobile- interface:

Set the good old mobile dial number *99# :

And you’re connected to the internet without any additional software, using only the native Mac OS tools:

As it was pointed out in comments, the driver stopped working on Mac OS Catalina. Most likely this is because it was x32, and Catalina requires x64, so an x64 version of driver is required. That actually was one of the reasons why I haven’t upgraded to Catalina.

Fortunatelly, such version exists, and apparently has been available since at least 30.10.2019. An awesome chap shared a link on 4PDA forum. I’ll host a copy here too.

I’ve tested it on Catalina, and it works fine.

Mac OS Big Sur was released today. I installed it in the same virtual machine like the last time to test the modem, and no, it doesn’t work there.

The modem driver should have been still in the system after update, but even so, I’ve installed it again just in case (the one that worked on Catalina). Installation process went fine, didn’t even ask to allow it in Gatekeeper, but when I try to connect, it gives me this error:

And ls -l /dev/tty.HUA* shows that it’s not there.

So yeah, fuck you, Apple, I ain’t updating to Big Sur.

Источник

achmel / huawei-3372-ru.md

The Ultimate Guide for Huawei E3372h

Что я сделал, чтобы подружить модем с антенной?

  1. Взял стоковый модем, запустил виртуалку 2015 года с WindowsXP (песочницу), там уже были дрова Huawei, но в Мобильном ассистенте общаться с модемом не удалось.
  2. Скачал c 4pda Pupdatewiz и подходящую прошивку.
  3. Запустил Pupdatewiz — вуаля!
Читайте также:  C windows system32 winevt logs очистка

После прошивки стало:

  1. Выключил винду, на маке использовал mode_switch и переключил модем на вечный debug mode.
  2. Снова загрузил винду, в ней стал доступен Терминал.exe.

Вот этими командами восстанавливается убитая в ходе прошивки имеюшка. Тут как повезет либо AT^CIMEI , либо AT^NVWREX . Первая команда, как я понял, не всегда доступна, для успешного использования в второй надо предварительно воспользоваться утилитой imei_converter и вместо нулей записать то что надо. Команда AT^INFORBU нужна имхо для применения долгосрочной записи в NVRAM.

Код imei_converter.c приведен ниже:

  1. На фоне модем плевался мне подобными сообщениями в терминал:

Последнее событие — событие IMSI Attach.

  1. Самая полезная команда — AT^LOCINFO? , она выдает сразу MCC, MCN, LAC, CID. C этими данными можно сразу смело идти на https://xinit.ru/bs/ и получать данные базовой станции.
  1. Но под виндой сидеть было грустно. После перепрошивки на маке/линуксе можно сделать telnet 192.168.8.1 и засылать AT-команды в /dev/appvcom1 либо просто слушать cat

Первый способ — если не нужен интерактив

Второй способ — двухсторонний обмен с модемом, он не очень удобен, т.к. обычно происходит много событий.

Наиболее удобная для меня система — слушать события в отдельном терминале, а в другом кидать команды:

RSRP – средний уровень сигнала принимаемого с базовой станции оператора. Измеряется по логарифмической шкале в дБм (dBm) и отображается в виде отрицательных значений. Чем значение ближе к нулю, тем выше уровень принимаемого сигнала. Например, значение сигнала RSRP равное -65 dBm, намного лучше, чем значение -97 dBm.

SINR — отношение уровня полезного сигнала к уровню шума (соотношение сигнал/шум). Измеряется в дБ (dB). Чем выше данное значение, тем лучше качество сигнала. При значениях SINR ниже 0 скорость подключения будет очень низкой, т.к. это означает, что в принимаемом сигнале шума больше, чем полезной части.

Считается, что параметр сигнал\шум (SINR) в ряде случаев может быть важнее, чем уровень сигнала. При SINR в интервале 15-20 (dB) модем выдаст все, на что способна данная БС, даже при посредственном, около -70. -80 dBm, уровне RSRP, если сама БС окажется не перегружена в момент тестирования.

Показатели качества принимаемого сигнала

Значения параметров RSSI SINR (Ec/Io)
Отличные -30. -50 dBm 30 dB и выше
Хорошие -50. -70 dBm от 20 dB до 30 dB
Удовлетворительные -70. -85 dBm от 10 dB до 20 dB
Плохие -85. -110 dBm менее 10 dB

Основная часть (выборочная копипаста)

1. Предварительная подготовка

Есть две разновидности прошивок: Stick и HiLink . С прошивкой Stick модем будет видеться AT-модемом, для подключения к интернету нужно «дозваниваться». С HiLink-прошивкой модем представляется сетевой картой Ethernet, и не требует настроек в ОС.

По умолчанию, модем находится в режиме HiLink , такой типа роутер, с красивым веб-интерфейсом.

2. Balong Flash / Прошивка под mac, linux, windows

Для прошивки под Linux используется утилита balong_flash.

  • https://github.com/forth32/balongflash (Программа для прошивки модемов фирмы Huawei на чипсете Balong v7)
  • https://github.com/forth32/balong-fbtools (Утилиты для работы с flash модемов на платформе Balong)
  • https://github.com/forth32/balong-usbdload (Утилита для аварийной USB-загрузки модемов на чипсете Balong V7)
  • https://github.com/forth32/balong-nvtool (Утилита для обработки образов NVRAM устройств на чипсете Hisilicon Balong)

В отличие от Linux, нa Macintosh адрес, скорее всего, будет не /dev/ttyUSB0 , а /dev/tty.HUAWEIMobile-Diag .

Достоверно узнать адрес устройства можно с помощью команды ls /dev | grep HUA .

3. Pupdatewiz Flash / Прошивка под windows

Распаковать архив, поместить нужную прошивку (.exe или .bin) в папку с командным файлом go.cmd и запустить его.

4. Полезные и интересные АТ-команды и настройка конфигурации модема

В модеме имеется хранилище различной конфигурационной информации — NVRAM. Оно организовано в виде набора записей переменной длины. Каждая запись имеет номер — от 0 до 65535, но не все номера записей физически присутствуют в модеме. Чтобы узнать длину конкретной записи, используется команда:

— номер записи. В ответ модем выдает ее длину:

Посмотреть содержимое конкретной записи можно командой:

— смещение от начала записи до интересующего нас фрагмента (0 — с начала) — длина выводимого фрагмента, должна быть не больше полной длины записи минус смещение.

Поиск базовых станций сотовой связи

Данный модем обладает уникальным свойством — он умеет делать поиск всех окружающих базовых станций (БС). Причем не только БС оператора вставленной в него симкарты, а вообще все БС всех операторов, сигнал от которых достигает антенны модема. Для каждой найденной БС выводится ее CID и уровень принимаемого от нее сигнала. Это позволяет выбрать оператора с наивысшим уровнем сигнала, а также выбрать конкретную БС для наведения на нее внешней антенны. Единственный недостаток данного модема — он умеет искать только БС 2G и 3G. LTE-соты искать он не умееет.

Если в округе имеется сигнал LTE, то следует перевести модем в режим 2G3G командой AT^SYSCFGEX=»0201″,3FFFFFFF,1,2,800C5,, или в настройках веб-интерфейса. Также обратите внимание, что эту команду можно ввдить только через порт управления (PCUI). Если ее ввести через порт, предназначенный для установки РРР-соединения (modem), то команда будет выдавать пустой ответ (просто ОК и все). Формат команды: AT^NETSCAN=num,level,mode num — число находимых БС, от 1 до 20. Если будет найдено больше num БС, то станции с самым слабым сигналом будут исключены из списка level — минимальный уровень сигнала БС, включаемых в список. Задается в дБ, от -110 (самый низкий уровень) до -47 (самый высокий уровень). Станции с уровнем сигнала меньше level в список включаться не будут. mode — тип БС. 0 -поиск 2G-станций, 1 — поиск 3G-станций.

В этом примере заказывается поиск 3G БС с уровнем сигнала не ниже -108 дБ. Результат выдается в виде списка, отсортированного по уровню сигнала. Самая верхняя БС — самая мощная, нижняя — самая слабая. Формат элемента списка:

Источник

Question: Q: Huawei dongle e3372 support on mac os catalina

i’m not able to use huawei dongle e3372 on my mac after updating to catalina before it was working good in mojave. Please help me. Provide any software to run on catalina?

Posted on Oct 11, 2019 6:14 AM

Helpful answers

I found the solution for this issue. I’m able to use my Vodafone E3372 — 607 Datacard in Catalina.

  1. Follow steps installation steps from the HiLink Installation Guide from Download982.8KB.
  2. Download the HiLink application from Hilink products tool, support MAC 10.15.

Nov 2, 2019 1:21 PM

There’s more to the conversation

Loading page content

Page content loaded

Check with Huawei to see if your product is compatible with Catalina and it they have any updated software.

Oct 11, 2019 6:57 AM

it was working good in Mojave but when I updated my MacBook pro to Catalina, it has stop working. App does not support this type of error, I’m getting? Any software in 64-bit compatible in Huawei mobile partner?

Oct 11, 2019 7:05 AM

Ask Huawei if they have 64 bit support. You upgraded your OS to 64 bit only. Now you have to run 64 bit apps. Apple does not develop or provide third party software.

Oct 11, 2019 7:26 AM

Im having the exact same problem, O2 are my providers for the dongle and I just called them up and they said its down to Huawei to update the dongle but they have no idea when this will be, leaves me stuck into a contract with a dongle that isnt working.

Источник

Читайте также:  Беспроводная клавиатура windows linux
Оцените статью