[srslte-users] combined attach from srsue using ZeroMQ

Alexander Serkin alexander.serkin at gmail.com
Tue Aug 25 07:34:07 UTC 2020


Yup, checked the sequence.These minimal changes seem working for me:
--- nas.cc.orig 2020-08-25 10:29:44.169090687 +0300
+++ nas.cc      2020-08-25 01:53:39.127835481 +0300

@@ -1031,9 +1031,12 @@

   LIBLTE_MME_ATTACH_ACCEPT_MSG_STRUCT attach_accept = {};

   liblte_mme_unpack_attach_accept_msg((LIBLTE_BYTE_MSG_STRUCT*)pdu.get
(), &attach_accept);

  
-  if (attach_accept.eps_attach_result ==
LIBLTE_MME_EPS_ATTACH_RESULT_EPS_ONLY) {  
+/*  if (attach_accept.eps_attach_result ==
LIBLTE_MME_EPS_ATTACH_RESULT_EPS_ONLY) { */

+  if ((attach_accept.eps_attach_result ==
LIBLTE_MME_EPS_ATTACH_RESULT_COMBINED_EPS_IMSI_ATTACH) ||  
+      (attach_accept.eps_attach_result ==
LIBLTE_MME_EPS_ATTACH_RESULT_EPS_ONLY)) {

     // TODO: Handle t3412.unit

     // TODO: Handle tai_list

+    nas_log->console("Attach type %d in
progress\n",attach_accept.eps_attach_result);

     if (attach_accept.guti_present) {

       memcpy(&ctxt.guti, &attach_accept.guti.guti,
sizeof(LIBLTE_MME_EPS_MOBILE_ID_GUTI_STRUCT));

       have_guti = true;

@@ -1752,7 +1755,8 @@

  
   nas_log->info("Generating attach request\n");

  
-  attach_req.eps_attach_type = LIBLTE_MME_EPS_ATTACH_TYPE_EPS_ATTACH;
 
+/*  attach_req.eps_attach_type =
LIBLTE_MME_EPS_ATTACH_TYPE_EPS_ATTACH; */

+  attach_req.eps_attach_type =
LIBLTE_MME_EPS_ATTACH_TYPE_COMBINED_EPS_IMSI_ATTACH;

  
   for (u_int32_t i = 0; i < 8; i++) {

     attach_req.ue_network_cap.eea[i] = eea_caps[i];

Cheers,Alex
On Mon, 2020-08-24 at 23:06 +0200, Andre Puschmann wrote:
> Alex,
> by default we just handle the EPS_ONLY attach accept, because this
> iswhat we request by default. Please check the code. If you need
> differentbehavior, you need to change that.
> CheersAndre
> On 24/8/20 20:24, Alexander Serkin wrote:
> Thank you, AndreSuccessfully found the place. But now may be you can
> give another advice)When ue receives attach accept with attach result
> 2 (combined-imsi/epsattach) it does not respond with attach
> complete.When using EPS attach type (1) - everything is ok.That
> probably is something obvious?The pcap attached shows two types of
> attach - combined and eps. Ue.logis attached as well.
> Cheers,Alex
> On Mon, 2020-08-24 at 14:32 +0200, Andre Puschmann wrote:
> Alex,
> the message is generated by the NAS layer of the UE.
> The source can be found in nas.cc
> CheersAndre
> 
https://github.com/srsLTE/srsLTE/blob/master/srsue/src/stack/upper/nas.cc
> On 24/8/20 14:19, Alexander Serkin wrote:Dear friends, has anybody an
> advice on this?The idea is to modify EPS attach type value to 2
> (Combined EPS/IMSIattach) in Initial UE message.Can you please point
> me on this data within source code in order to tryanother value if
> that makes any sence?
> Many thanks,Alex
> 
> 
> On Thu, 2020-08-13 at 15:45 +0300, Alexander Serkin wrote:Dear
> colleaguesMy question is about the possibility to simulate combined
> attach fromsrsue using zeromq driver. Is it possible somehow? I
> looked throughthe UE config but did not find anything about that. My
> intention is totest some staff regarding the SGs interface on my lab
> MME node. Thatis combined attached is needed for.
> Thank you !Alex
> _______________________________________________srslte-users mailing
> listsrslte-users at lists.softwareradiosystems.com <mailto:srslte-
> users at lists.softwareradiosystems.com>
> http://www.softwareradiosystems.com/mailman/listinfo/srslte-users
> 
> 
> 
> 
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.srsran.com/pipermail/srsran-users/attachments/20200825/12bc307d/attachment.htm>


More information about the srsran-users mailing list