Configuration check need - IoT device not getting PDP context from working network

Playing with Osmo setup for an IoT-based test environment with real devices.

Full Osmo setup for data-based (no voice services) 2G network; all installed in same host save for external SDR (UHD URSP B210).
All connectivity up and running, services work as expected.
Basic / standard configuration for test purposes: MNC/MCC 001/01, GSM 900, ARFCN 10.
No blacklist applied on incoming IMSI; encryption not enforced.
BSC configured as EGPRS with PDCH-only configuration:

trx 0

rf_locked 0

arfcn 10

nominal power 23

max_power_red 0

rsl e1 tei 0

timeslot 0

phys_chan_config CCCH+SDCCH4

hopping enabled 0

timeslot 1

phys_chan_config SDCCH8

hopping enabled 0

timeslot 2

phys_chan_config PDCH

hopping enabled 0

timeslot 3


phys_chan_config PDCH

hopping enabled 0

timeslot 7

phys_chan_config PDCH

hopping enabled 0

Commercial smartphones successfully attach to the network with manual selection, and get service (basic Web browsing).

While trying with some IoT devices (uBlox LARA R6 chipset, https://www.digikey.com/en/product-highlight/u/u-blox/lara-r6-series-lte-cat-1-modules), the device log reports the registration but the PDP context is never established:

Cell: ICCID:
locationID: 000039B6, cellID: 000039B6
Cell: NTWK REG: YES (3G WCDMA - 3)
locationID: 000039B6, cellID: 000039B6
Cell: NTWK REG: YES (3G WCDMA - 3)
CellBackOff: Disabled, No cause information available, 0, No cause present
[…]
Cell: GPRS Connect IP verification failed (2)
Cell: GPRS Connect IP verification failed (2)
[…]
Cell: Tx UDP NOT SENT, Not Connected to GPRS (1)

On SGSN log it is reported the following:

20251203083435512 e[1;32mDMMe[0;me[1;33m e[1;32mINFOe[0;me[1;33m MM(310xxxxxxxxx289/cfe4e325) ← GMM ATTACH ACCEPT (new P-TMSI=0xcfe4e325) (gprs_gmm.c:355)e[0;m
[…]
20251203083437637 e[1;32mDMMe[0;me[1;33m e[1;32mINFOe[0;me[1;33m MM(310xxxxxxxxx289/cfe4e325) → GMM DETACH REQUEST TLLI=0xcfe4e325 type=GPRS detach Power-off (gprs_gmm.c:1524)e[0;m
20251203083437637 e[1;32mDMMe[0;me[1;33m e[1;32mINFOe[0;me[1;33m MM(310xxxxxxxxx289/cfe4e325) Cleaning MM context due to GMM DETACH REQUEST (gprs_gmm.c:200)e[0;m
20251203083437637 e[1;31mDMMe[0;me[1;33m e[1;31mERRORe[0;me[1;33m MM_STATE_Gb(2547561556)[0x55f2e646f8c0]{Idle}: Event E_MM_GPRS_DETACH not permitted (gprs_gmm.c:210)e[0;m
20251203083437637 e[1;33mDLLCe[0;m e[1;33mNOTICEe[0;m LLME(97d8b454/cfe4e325){ASSIGNED} LLGM Assign pre (cfe4e325 => ffffffff) (gprs_llc.c:1079)
20251203083437637 e[1;33mDLLCe[0;m e[1;33mNOTICEe[0;m LLME(ffffffff/ffffffff){UNASSIGNED} LLGM Assign post (cfe4e325 => ffffffff) (gprs_llc.c:1125)

PCU log entries:

20251203083436017 e[0;33m<0002> pdch_ul_controller.c:315 PDCH(bts=0,trx=0,ts=6) Timeout for registered POLL (FN=320944, reason=DL_ACK): TBF(DL:TFI-0-0-2:E:IMSI-310xxxxxxxxx289:TLLI-0xcfe4e325){FLOW}e[0;m
20251203083436020 e[1;34m<0009> tbf.cpp:487 TBF(DL:TFI-0-0-2:E:IMSI-310xxxxxxxxx289:TLLI-0xcfe4e325){FLOW} poll timeout for FN=320944, TS=6 (curr FN 320944), reason=DL_ACKe[0;m
20251203083436022 e[1;34m<0009> tbf.cpp:565 TBF(DL:TFI-0-0-2:E:IMSI-310xxxxxxxxx289:TLLI-0xcfe4e325){FLOW} Timeout for polling PACKET DOWNLINK ACK: |Assignment was on PACCH|Downlink ACK was received|e[0;m
20251203083436096 e[1;34m<0009> tbf.cpp:358 TBF(UL:TFI-0-0-0:E:IMSI-310xxxxxxxxx289:TLLI-0xcfe4e325){FLOW} N3101 exceeded MAX (10)e[0;m

Also changing N3101 (and extending the other related timers) brought no effect.

By checking https ://osmocom.org/issues/6118 (“osmo-pcu assigns multi-slot TBFs over PACCH to MS with unknwon ms_class”), maybe the device does not report its own ms_class and the default one is not compatible for some reason. We also enabled Access Burst on OsmoBSC, with no success.

We would like to not change the physical device configuration (AT commands not available).
Also, the IoT devices we have work fine with commercial mobile networks, without any intervention.

Can somebody check if there is something to fix in our current configuration (that you can find at this link: Link for my configuration?
Many thanks in advance.

Hi, without a proper pcap recording containing gsmtap (at osmo-bts and osmo-pcu). gsmtap_log ad Abis + Gb interfaces it’s difficult to figure out what problems you may have.

For GSMTAP, I personally like using the following:
osmo-bts-trx:

 gsmtap-remote-host 127.0.0.1
 gsmtap-sapi enable-all
 no gsmtap-sapi pdtch
 no gsmtap-sapi ptcch
 no gsmtap-sapi pacch

osmo-pcu:

 gsmtap-remote-host 127.0.0.1
 gsmtap-category dl-unknown
 gsmtap-category dl-ctrl
 gsmtap-category dl-data-gprs
 gsmtap-category dl-data-egprs
 gsmtap-category dl-agch
 gsmtap-category dl-pch
 gsmtap-category ul-unknown
 gsmtap-category ul-ctrl
 gsmtap-category ul-data-gprs
 gsmtap-category ul-data-egprs
 gsmtap-category ul-rach
1 Like

Hello @pespin and thanks for the hint.

I added the GSMTAP configurations to the osmo-pcu and osmo-bts-trx files successfully and traced the traffic with Wireshark.

Find in the Drive folder the .pcap files of a successfull attached MS with Edge connection and the unsuccessfull one of the IoT device.

I tried to analyze isolating the frame with e212.imsi filter (for the 310xxx… IMSI, the IoT device IMSI) but still not able to figure out properly the point where the process differs from successfull one performed by the smartphone.

I’m assuming in the pcap you only have the problematic UE on and trying to camp on the network, but I have the impression there’s multiple UEs in there because I see ongoing DNS queries on top of LLC. Otherwise, please do so in order to avoid making analysis more complex.

BTW, you can filter out TRXD (udp port 5702) unless really neeed since that accounts for 95% of the content of the huge pcap file.

In any case, I see the UE transmitting Routing Area Update Complete eg. in frame_nr=422 in RLCMAC and frame_nr=423 in gprs-ns, so it’s attaching fine.

I don’t see any Create PDP Context Request afterwards though, so it’s either some problem at BTS/PCU or some problem at the UE (eg. no APN configured/enabled, or bug in the stack).

I see in frame_nr=276 that an MS is announcing ms class 10 for both gprs and epgrs, while our default is 12 (osmo-pcu.git PCU_DEFAULT_MSLOT_CLASS). I have really rarely seen ms_class<12 in phones tbh, it may be more common in IoT devices.

Maybe setting “multislot-class default 10” in osmo-pcu.git helps.

You could also try configuring only 1 PDCH at the BSC/BTS/PCU and see if that improves the situation too.
Also try avoiding 8PSK (osmo-pcu vty “mcs max 4”).
Also try with enabling/disabling egprs (osmo-bsc vty “gprs mode gprs” & osmo-pcu vty “no egprs”).

Hello @pespin and thank you so much for the feedback.

The pcap contains different tries made by various IoT devices (some of them unexpected; we had neighbours’ devices trying to get access). This has made our own analysis harder too, and we spent some time searching for the sessions of interest (details below).

Some comments about your indications:

  • in lack of EGPRS, apparently, our devices could not access the network at all (modem log reported “device not registered” without any details, and there were no log entries on BTS/PCU/SGSN log files)

  • the multi-slot value of 10 was referring to another device; we will try to set it on the network nonetheless (current hardcoded value being 12)

  • we will run some more tests modifying the other values you indicated (8PSK, single PDCH)

Relevant sessions (gsm_rlcmac.tlli):

Device #1:

TLLI=0xe926244a

TLLI=0xd3230bd6

Device #2:

TLLI=0x7902fce6

We also spent some time checking the System Information Type messages on BCCH/CCCH, and we are not sure if the current configuration is coherent.

In particular:

  • RACH Control Parameters → Tx-integer: 12 slots used to spread transmission

  • Control Channel Description → CCCH-CONF: 1 basic physical channel used for CCCH, combined with SDCCHs

  • GPRS Cell Options → Access Burst Type: 8-bit format shall be used

Do you have any suggestions based on that on how to improve our configuration?

This can mean a lot of different ways to disable EGPRs, and some of them are going to be incorrect probably. See my mentions in my earlier post on how to disable EGPRS.

in lack of EGPRS our devices could not access the network at all

That’s strange, I’d expect any UE working with EGPRS to work with GPRS too. As mentioned, make sure you disabled EGPRS correctly. Otherwise you may be in a situation where the UE is still using EGPRS and the network doesn’t recognize it.

Do you have any suggestions based on that on how to improve our configuration?

I’d go for “simplifying” rather than “improving” first. Hence why I mentioned using 1 PDCH TS, dropping the “multislot-class default” to 10 or less, etc. to try to force the use of simplest setup which any UE should support.
You could try also setting “cs max 1” for instance, this way you also get more robust bursts in case there’s bad signal, etc.

Once you get it working with such a simple setup, go increasing the different fields above until you figure out what’s making it fail.