Modem software
-
Hi,
what kind of software are you using for an lte modem? Especially on the Omega2 LTE version? We tried Modemmanager and uqmi but didnt get a stable connection. We are using the omega2 pro as an travel router and sometimes its loosing its connection to the modem and never get connected again, than we have to restart the interface manually, most of the times this helps. And sometimes is completly lost an we have to restart the omega. Were using OpenWrt 22.03.05. Modem is a Quectel Ep06. So the question is what kind of software is used on the original omega2 lte?
Greetz Doc
-
@DocHardinger The Omega2 LTE relies on quectel-cm to talk to the modem. To the best of my knowledge (and memory), quectel-cm is Quectel's wrapper around QMI.
You can find more info and the source code on GitHub: https://github.com/OnionIoT/OpenWRT-Packages/tree/openwrt-18.06/omega2-lte#omega2-lte-base-package
Have you tried using the recommended method for controlling the Omega2 LTE?
We actually recently released a version for OpenWRT 22.03.5: https://github.com/OnionIoT/OpenWRT-Packages/issues/70
-
Yes already tried to use the recommend approach. But we need to put in a pin for the sim card but there are no options for setting the pin. Im not sure how its working on the omage2 lte but we have an omega2+ with external quectel modem and need to unlock the sim with a pin somehow. Or do we need to use AT+ commands for that?
-
@DocHardinger Not sure about the Omega2LTE but here in Oz we can remove the PIN from the SIM card, just put it in your phone and set it to empty.
-
@crispyoz hmm ok, but thats no option for us because it will be used by different customers and for this we need pin verification.
-
@DocHardinger I don't have an Omega2 LTE to test but as I understand it the Omega2 communicates with the modem via USB so the device will be something like /dev/USB0, therefore you should be able to send commands to the modem like this:
echo -en '<some AT command>' > /dev/usb0
Check the Quectel's docs but I think it will be something like this:
echo -en 'AT+CPIN=55555' the 5555 is your PIN
You may need to add a newline character also, if so use echo -n instead of echo -en if that doesn't work then add \n after your PIN.
If that works as expected then you could add this to a hotplug script so the command gets executed when the interface comes up.
Others may have a better approach, but there's my brian dump of ideas
-
Yep @crispyoz is correct, you can pipe AT commands to the modem. @DocHardinger Pls check the quectel docs for the specifics.