I looked at the documentation and found that the AT+CGDCONT command takes a very long parameter chain, and the field is defined at the very end. So, as you wrote, AT+CGDCONT=3,“IP”,“srsapn”,1,“01.000001” is incorrect, because the number 1 actually fits into the <PDP_addr> parameter.
Correct use is described in the manual as follows:
You defined two S-NSSAIs (slices) with AT+C5GNSSAI=8,“01.000001:02.000002”.
But the network only allows NSSAI 02.000002.
This means the modem can write 01.000001 to its configuration, but the network rejects it during attach/registration.
The +C5GREG output also returns “02.000002.”
In this case, the error isn’t in your command set, but in your operator’s slice provisioning.
In other words, the modem allows you to configure multiple NSSAIs simultaneously, but which slice you can actually use is entirely limited by the profile assigned to you by the network.
Try opening a PDU with only 02.000002 (using QMAP or AT+QPDUSIM, AT+CGACT, etc.).
If you remove 01.000001 you will see that the error messages disappear.
Thank for you reply and time. I am using open5GS core and srsRAN_Project’s gnb(attached are the configuration files and subscriber defintion screenshot). configs.zip (84.9 KB)
I would like to point out that these configs work fine when i try to activate slices from two different quectel modules. The issue i am experiencing is when i try to activate these slices from a single device. I am using sysmocom sim cards in these quectel modules.
//Quick health check (ports & logs)
# Port listening control
ss -lntp | grep -E '(:7777|:9090|:2152|:8805)'
# Expected:
# 127.0.0.14:7777 (nssfd), 127.0.0.7:9090 (upfd metrics), 127.0.0.7:2152 (GTPU)
# 127.0.0.4:7777 (smfd), 127.0.0.5:7777 (amfd), 127.0.0.5:9090 (amf metrics), 127.0.0.4:8805 (PFCP) vb.
# Latest logs (are there any errors)
journalctl -u open5gs-nssfd -n 30 --no-pager
journalctl -u open5gs-upfd -n 30 --no-pager
journalctl -u open5gs-smfd -n 30 --no-pager
journalctl -u open5gs-amfd -n 30 --no-pager
//U-Plane preparation (single DNN: srsapn)
# IP forward
sudo sysctl -w net.ipv4.ip_forward=1
# NAT (If your WAN interface is different, write it instead of eth0)
sudo iptables -t nat -C POSTROUTING -o eth0 -j MASQUERADE 2>/dev/null || \
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
# ogstun interface (idempotent)
ip link show ogstun >/dev/null 2>&1 || sudo ip link add ogstun type gretap remote 0.0.0.0 local 0.0.0.0
ip addr show dev ogstun | grep -q '10.45.0.1/16' || sudo ip addr add 10.45.0.1/16 dev ogstun
sudo ip link set ogstun up
Connect the gNB to the AMF.
The gNB (B210/srsRAN or your own gNB) will have an N2/NGAP IP of 127.0.0.5, PLMN = 001/01, and TAC = 7.
Restart the gNB. You should see the NG Setup message in the AMF log.
//UE/Quectel side—AT test sequence
ATZ
AT+CMEE=2
AT+CPIN?
AT+CSQ
AT+C5GREG? // 5G register = 1 olmalı
AT+C5GNSSAI=8,"01.000001:02.000002"
AT+C5GNSSAIRDP=0 // Allowed: both slices must be visible
AT+C5GNSSAIRDP=3 // Selected: 01.000001 veya 02.000002
AT+CGDCONT=2,"IP","srsapn",,,,,,,,,,,,,"01.000001"
AT+CGDCONT=3,"IP","srsapn",,,,,,,,,,,,,"02.000002"
AT+CGDCONT?
If Selected = 02.000002 :
AT+CGACT=1,3
AT+CGPADDR=3
AT+QPING=1,"8.8.8.8"
IfSelected = 01.000001:
AT+CGACT=1,2
AT+CGPADDR=2
AT+QPING=1,"8.8.8.8"
//If you get an error, you can check it with this command.
AT+CEER
After AT command , you can apply these commands ;
//Network traffic “smoke test”
#GTP-U
sudo tcpdump -ni any udp port 2152 -vv
# IP flow in ogstun when pinging from UE
sudo tcpdump -ni ogstun icmp
It’s a bit complicated but I can do this much without any hardware
After these steps, i am having issue with the defintion of PDP Contexts. The following commands return an ERROR.
AT+CGDCONT=2,"IP","srsapn",,,,,,,,,,,,,"01.000001"
AT+CGDCONT=3,"IP","srsapn",,,,,,,,,,,,,"02.000002"
AT+CEER (+CEER: No cause information available)
The format of the provided AT+CGDCONT does not seem to match the format provided in the rg50xq&rm5xxq series at commands manual v1.2(that you previously attached in the thread).
The output is already in the previous replies. Please find it again here with responses:
AT+QCFG="volte_disable",1
OK
AT+QNWPREFCFG="mode_pref",NR5G
OK
AT+QNWPREFCFG="nr5g_band",78
OK
AT+C5GNSSAI=8,"01.000001:02.000002"
OK
AT+CGDCONT=2,"IP","srsapn",,,,,,,,,,,,,,1,"01.000001"
OK
AT+CGDCONT=3,"IP","srsapn",,,,,,,,,,,,,,1,"02.000002"
OK
AT+CGACT=1,2
ERROR
AT+CGACT=1,3
OK
AT+C5GREG?
+C5GREG: 2,1,“000007”,“00066C000”,11,4,“02.000002”
Dear @apocalypto224 at+c5greg?
+C5GREG: 2,1,“000007”,“00066C000”,11,4,“02.000002”
=>Allowed S-NSSAIs received from the network is 02.000002, don’t include 01.000001.
Please note this.