AT Commands (Luci Web) 5G/4G modems

I want to use AT commands on Luci interface , Where I installed all required packages + Installed Command Shell

https://openwrt.org/docs/guide-user/network/wan/wwan/at_commands#:~:text=To%20send%20AT%20commands%20directly,and%20print%20the%20modem's%20answers.

using AT commands through PUTTY is working fine ...
socat - /dev/ttyUSB2,crnl

some commands on web interface (custom commands) is not working

Example for specific 5G bands
AT+QNWPREFCFG="nsa_nr5g_band",78:77:78:28:40:41

echo -e AT+QNWPREFCFG="nsa_nr5g_band",78:77:78:28:40:41 | socat - /dev/ttyUSB2,crnl

Error

For ATI and AT+QCAINFO are working fine
echo -e ATI | socat - /dev/ttyUSB2,crnl

The target from this commands to make layout for commands I need them always to check network and no need for typing them on PUTTY or others


Update : 06/23/2024
Special Thanks to Mr.@IceG for his time and efforts to develop this package

Hi @KFO,
I quickly create a package, can you check if it works?
luci-app-at-socat_1.0.2_all.ipk

1 Like

is it the right way for installing ?

Download Completed but nothing after that


Ok I installed the package from system ---> upload package


Its great , but how I can create my own list to be ready


or add option to add executed AT commands to drop down list

"Configuration" tab and there you create a list of your at commands.

1 Like

@IceG
Really Its amazing package ....
but there is something

it looks like stuck with first command


@KFO It is written what the correctly added command should look like:

COMMAND DESCRIPTION;AT COMMAND

Example
Query network information ➜ AT+QNWINFO;AT+QNWINFO

1 Like

Dude @IceG
You are a great legacy of information and experience.

Really I appreciated your time and efforts .. I hope from OpenWrt team to add this package to their system

https://github.com/4IceG/Modem-extras/raw/main/myrepo/luci-app-at-socat_1.0.2_all.ipk

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.