Ip.access Nano3G S8 does not attempt to connect to OsmoHNBGW

Hello everyone,

I have an ip.access Nano3G S8 femto cell that I would like to use with OsmoHNBGW. The device is brand new, never used by any operator.

Access I have:

Web commissioning interface (works only ~60 s after factory reset)
DMI console via telnet on port 8090
SSH on port 22 is not available (connection refused)

The problem:
The femto cell does not even attempt to connect to my HNBGW. The only network activity I can see from it are TCP SYNs to port 3052, which appears to be its proprietary management protocol BSMIS (ip.access AMS/BSMIS, managementServerType = MANAGEMENT_SERVER_TYPE_AMS_BSMIS (0)). This parameter is read-only and reverts to 0 after every reboot, even if I try to change it via DMI or dmi.init.

The DMI console constantly reports:

dmi> get hnbGwConnectionCloseCause
ATTRIBUTE RESPONSE:
hnbGwConnectionCloseCause (3596) = HNBGW_CONNECTION_CLOSE_CAUSE_INVALID_CONFIGURATION (0)

regardless of what I do.

NTP is configured and working — I can see NTP requests and responses on the server side. localApDateConsideredValid (1895825353) = TRUE.

Configuration I used on the femto:

text

PLMN Id == MCC + MNC

set mcc="999"
set mnc="01"

[uarfcnDownlink, 1900 MHz band], [scramblingCode], [dummyCellId]

set rfParamsCandidateList=({9800, 401, 1})

[lac], [rac]

set lacRacCandidateList=({10422, (99)})

cellid == RNCID<<16+HNBCID

set hnbCId=1
set rncIdentity=0

set hnbGwAddress="192.168.0.254"
action 2061
action 1216
action establishPermanentHnbGwConnection
set csgAccessMode=CSG_ACCESS_MODE_OPEN_ACCESS


IPsec is disabled (ipsecEnable = FALSE). I am trying to run everything locally.

Relevant getobj output:

text
managementServerType = MANAGEMENT_SERVER_TYPE_AMS_BSMIS (0)
amsConnectionState = AP_CONNECTION_STATE_CONNECTING (1)
hnbGwConnectionState = HNB_CONNECTION_STATE_DISCONNECTED (0)
hnbGwConnectionCloseCause = HNBGW_CONNECTION_CLOSE_CAUSE_INVALID_CONFIGURATION (0)
ipsecEnable = FALSE
localApDateConsideredValid = TRUE

My questions:

  1. Does this femto cell require a special firmware to work with OsmoHNBGW (i.e. without BSMIS)? If so, can anyone share it?
  2. Or is there something missing in the configuration that prevents it from even trying to connect to the HNBGW?
  3. Does the fact that it insists on BSMIS (managementServerType = 0, read-only) mean it will never attempt Iuh connection to HNBGW unless BSMIS succeeds first?

The Osmocom wiki mentions that this exact model was used in your tests, so I hope someone here has experience with it.

Thank you!

Thanks a lot. Very cool guide.

Phase 3 done — I have root SSH on my nano3G (563.16.0).

Working on Phase 4:

  • IUH_ENABLE is set in both configs (uplayerapp: one-line, 3gcntrl: two-line). uplayerapp logs IUH OPERATION IS ENABLED.
  • Missing iapc and libsctp.so.1. /opt/ipaccess/Iapc/ can’t be created (cramfs).

I found iapc for train 579 (DPH-154), not 563. ABI matches, but I know Iuh may be train-dependent. Will try it, but if anyone has 563 versions, please share.

Also — how did you handle the read-only cramfs for the Iapc bind-mount?

Thanks!

For the read-only cramfs, you can’t create a mountpoint inside it, so bind over the parent directory instead:

  1. Run grep overlay /proc/filesystems. If the kernel has overlayfs, use it and skip the copy.
  2. Otherwise copy the tree to a writable location with cp -a /opt/ipaccess /tmp/ipaccess. Use a writable flash partition instead if it has to survive a reboot.
  3. Run mkdir /tmp/ipaccess/Iapc and put iapc there.
  4. Run mount --bind /tmp/ipaccess /opt/ipaccess.
  5. Do this before uplayerapp and 3gcntrl start, or restart them afterwards. Running processes keep the old files open.

For libsctp.so.1:

  1. Check that the kernel has SCTP with ls /proc/net/sctp, or load sctp.ko if one ships. Without kernel SCTP the library does nothing.
  2. On your PC, run readelf -h -A -l on an existing 563 binary to get the arch, float ABI and libc loader. Cross-build lksctp-tools to match.
  3. Run readelf -d iapc | grep NEEDED first, because libsctp may not be the only missing library. Put the libraries in the writable dir and start with LD_LIBRARY_PATH pointing there.

For the 579 iapc on 563, test in two gates:

  1. Bring the stack up and capture on the HNBGW side. You want an SCTP INIT to port 29169, then an HNB Register Request in the osmo-hnbgw log.
  2. If the register goes out but the cell never comes up, the internal interface between the apps differs between trains, and you need the 563 iapc.

I’ve made it through Phase 4 on my ip.access nano3G S8 (train 563.16.0), but the unit never attempts the SCTP connection to osmo-hnbgw. I’d appreciate any pointers.

What works

  • Iapc package installed on the writable partition (/var/ipaccess/Iapc/).

  • Bind-mount of patched files over the stock ones, because / is read-only cramfs:

    text

    mount --bind /var/ipaccess/patched/opnormal /etc/init.d/opnormal
    mount --bind /var/ipaccess/patched/mgr_app.sh /opt/ipaccess/MgrApp/mgr_app.sh
    

    Only these two files reference /opt/ipaccess/Iapc/iapc.sh, so I didn’t copy the whole /opt/ipaccess tree (it’s 26 MB, and /var/ipaccess only has ~2.4 MB free and /tmp over 14MB).

  • Bind-mount restored on boot via crlServerBaseUrl → /var/ipaccess/boot-init.sh.

  • All libraries load (from /proc/<pid>/maps for iapc):

    text

    /opt/ipaccess/lib/libranap.so.0
    /opt/ipaccess/lib/librua.so.0
    /opt/ipaccess/lib/libhnbap.so.0
    /var/ipaccess/lib/libiapctraffic2.so.0
    /var/ipaccess/lib/libsctp.so.1
    /usr/lib/libstdc++.so.6
    
  • iapc running, ipa-mgr_app -i:

    text

    ./ipa-mgr_app -i
    
  • UPLAYERAPP reports IUH mode:

    text

    >>> IUH OPERATION IS ENABLED IN UPLAYERAPP
    
  • OAM streams established:

    text

    [SysAgent-2] IAPC-SYSM PM Stream Established
    [SysAgent-2] IAPC-SYSM APDiag Stream Established
    [MIBCnx-1] Registering attributes and actions with OAM Agent
    

What does NOT work

  • No SCTP association to osmo-hnbgw on 172.27.0.15:29169.

  • SYSCTRL stays in STATE bringcommsup and rejects every Iuh action:

    text

    SYSCTRL: EVENT SELECTCELLPARAM (42) NOT HANDLED in STATE bringcommsup
    SYSCTRL: EVENT PERFORMUNLOCK (38) NOT HANDLED in STATE bringcommsup
    SYSCTRL: EVENT CONNECTTOAC (22) NOT HANDLED in STATE bringcommsup
    
  • The unit keeps retrying AMS on 172.27.0.15:3052, gets RST, and loops:

    text

    SYSCTRLCONNFSM: EVENT AMSDISCONNECTED (2308) NOT HANDLED in STATE waitforamsconnect
    

    text

    172.29.0.253.35416 > 172.27.0.15.3052: Flags [S]
    172.27.0.15.3052 > 172.29.0.253.35416: Flags [R.]
    
  • apAlarmEventLog shows:

    text

    "Event:1 - AMS fallback to LKG set failed;falling back to Factory Settings FILE=sysctrl_conn, LINE=682"
    

    (LKG AMS Address is empty.)

Questions

  1. Is there a way to make SYSCTRL skip the AMS wait and go straight to ready? Is there an amsEnable / amsFallbackAllowed / managementServerType parameter I’m missing, or a hidden DMI action that forces this transition?

  2. If I switch managementServerType from AMS_BSMIS (0) to ACS_TR069 (1), does SYSCTRL stop waiting for AMS and wait for an ACS (port 7547) instead? Has anyone made that work in practice? (The parameter is marked read-only, but writes via DMI are accepted — they just don’t survive a reboot, so I’d need to re-apply them from my boot hook.)

  3. Or is this the known train-579-on-563 incompatibility, and the only real fix is an iapc built for train 563? If so, does anyone have one to share — or can point me to where to find one?

Any help appreciated.

Your iapc hasn’t been tested yet. SYSCTRL rejects CONNECTTOAC while it sits in bringcommsup, so it never asks iapc to connect. A 563 build would hit the same wall. Fix the management bring-up first.

This is trap 54 in jphein’s TRAPS.md: with no reachable management server, the system manager parks and nothing below it starts. Here that’s BSMIS on :3052 getting RST, with an empty LKG falling back to factory.

  1. Stand up a TR-069 ACS you control, for example GenieACS. Use plain http, because the stack is too old for modern TLS.
  2. From your boot hook, set managementServerType to the TR-069 value and managementServerUrl to your ACS. Write the bare names (the operational tier), not default* or local*. Trap 53 records the type write as applied and behaving despite the read-only warning.
  3. Check whether the retry loop picks up the change. If it keeps dialling 3052, the write has to land before SYSCTRL starts. The empty LKG is why your writes vanish on reboot, so keep re-applying from the hook.
  4. On the ACS, confirm Inform and InformResponse, then watch whether SYSCTRL leaves bringcommsup. If it still waits, it needs config pushed from the ACS.
  5. Only then judge iapc: you want an SCTP INIT to :29169. If SYSCTRL moves on and iapc stays silent, ask jphein for their 563 iapc and iapc-gw-shim. Their nano3Gs run iapc from /var/ipaccess/iapc/.

The next wall is trap 57. The normal boot never programs the picoArray, so bring-up must program it before the apps start. Programming it under running apps reboots the board.