Somehow, I managed to make the device behave strangely on a Windows PC.
I have to admit that I sent 1-2 AT commands via Putty, but I can’t remember exactly what they were.
The TRM240’s behavior is such that it is recognized by the Windows 10 PC, and a Quectel USB AT port, a Quectel DM port, a Quectel NMEA port, and a Quectel Wireless Ethernet Adapter network adapter appear in Device Manager, but only temporarily. What I mean is that the entries are there for a few seconds, then disappear again and reappear.
In the Network and Sharing Center, a mobile connection appears and disappears again in exactly the same rhythm.
Curiously, however, I can permanently access the TRM with Putty and apparently send AT commands, which are also confirmed with OK. I tried this with AT&F and AT&W.
Unfortunately, this does not change the behavior of the TRM240.
What other options are there for restoring the TRM240 to its factory settings, since it worked perfectly at first? I only played around with it because I wanted to use it as a backup for a router. In retrospect, that was a little naive.
Perhaps someone knows the decisive command or procedure.
Since you cannot recall what kind of AT commands were executed, we can try restoring mobile module’s default settings. Below are the steps to factory restore your Quectel EC25/EC21 modem settings using AT commands.
Restore factory defaults:
AT+QPRTPARA=3
Reboot the module to apply changes:
AT+CFUN=1,1
After the reboot, your modem will be restored to its factory settings. Please note that you will need to reconfigure your APN and any other custom settings afterwards.
If you have any questions or need further assistance, please don’t hesitate to contact us.
It’s not great that I can’t remember the commands anymore. Ultimately, the goal was to get the TRM240 working on a Pi 4 with OpenWRT OS. I also tried a few commands on the TRM240. In retrospect, that was not ideal.
Please follow the steps below to restore factory defaults on the mobile modem inside your TRB240 device. These steps reset the modem configuration to a clean state and resolve most abnormal modem behavior.
Step 1 – Reset modem non-volatile parameters
Connect to the modem AT command interface and run:
AT+QPRTPARA=3
After that reboot the modem:
AT+CFUN=1,1
Wait approximately 90 seconds for the modem to restart.
Step 2 – Restore default AT configuration
After the modem reconnects, run:
AT&F
AT&W
Then reboot again:
AT+CFUN=1,1
Wait another 90 seconds.
Step 3 – Restore USB mode
Verify USB configuration:
AT+QCFG="usbnet"
If the returned value is not 0, run:
AT+QCFG="usbnet",0
AT+CFUN=1,1
Wait for the modem to restart.
These steps restore factory defaults on the modem used in Teltonika TRB240 devices and typically resolve issues caused by incorrect modem configuration.
If the problem persists after completing these steps, please provide the following command outputs:
I look forward to your update on this matter. Please let me know the outcome of your tests when they are completed, as this information will help us better understand the situation and determine the next steps if necessary.
well, it looks a little better now, but somehow my connected Windows 10 laptop now shows “Not connected” or “Off” in the taskbar on the right under Connections.
I should mention that I used a different SIM card from 1&1.
Here are the requested outputs of the commands. AT+QCFG? returns an ERROR.
ATI
Quectel
EC21
Revision: EC21ECGAR06A10M1G
OK
AT+QCFG?
ERROR
AT+QCFG?
ERROR
AT+QPRTPARA?
+QPRTPARA: 1,1,1,1
It may be due to the other SIM card.
Are there any provider profiles stored in the TRM240?
Could it be that 1&1 is not stored there, but only the common ones, such as Vodafone, Telekom, and O2?
Nevertheless, I maintain that your commands were the breakthrough and brought the modem back to life.
Thank you very much.
I will test the SIM card I used initially again this week and then report back.