We have moved to a new Sailfish OS Forum. Please start new discussions there.
8

[3.0.0.8] [Xperia XA2] CellName not known/identified?

Tracked by Jolla

asked 2018-11-13 23:18:06 +0200

mniemi gravatar image

I have created a tiny app (for small prototyping purposes) that keeps track of the cellular base station IDs for detecting the area/location without GPS. The app has worked nicely for months on Jolla C. However, as I started using it on my fresh Xperia XA2, the app fails to get the CellId/CellName. The reason for the malfunction on XA2appears to be the non-existent data (a bug?) in the "CellName" file.

The app uses the CellName from file /run/state/namespaces/Cellular/CellName (or "Cellular_1" in the dual SIM models). The CellName file is empty on XA2 as indicated in the following listings:

On Jolla C (only one sim card inserted, therefore "Cellular_1/CellName" is empty):

[nemo@Sailfish ~]$ cat /run/state/namespaces/Cellular/CellName
5329xxx[nemo@Sailfish ~]$ cat /run/state/namespaces/Cellular_1/CellName
[nemo@Sailfish ~]$

On XA2 (both Cellular/CellName and Cellular_1/CellName are empty despite a sim card in slot 1 e.g. Cellular/CellName should have a value):

[nemo@Sailfish ~]$ cat /run/state/namespaces/Cellular/CellName
[nemo@Sailfish ~]$ cat /run/state/namespaces/Cellular_1/CellName
[nemo@Sailfish ~]$

Is this intentional (i.e. different functioning on different devices) or a bug? Is there another way to request the CellName? Would some dbus command unveil the CellName, perhaps?

I tried the the following dbus-send command, too: /bin/dbus-send --system --print-reply=literal --type=method_call --dest=org.ofono /ril_0 org.ofono.NetworkRegistration.GetProperties

This command, surprisingly, results in smaller set of variables/data on XA2 than in Jolla C (some actual values removed/replaced with xxxxx):

On Xperia XA2:

[nemo@Sailfish ~]$ /bin/dbus-send --system --print-reply=literal --type=method_call --dest=org.ofono /ril_0 org.ofono.NetworkRegistration.GetProperties
   array [
      dict entry(
         Status         variant             registered      )
      dict entry(
         Mode         variant             auto      )
      dict entry(
         Technology         variant             lte      )
      dict entry(
         MobileCountryCode         variant             xxx     )
      dict entry(
         MobileNetworkCode         variant             xx      )
      dict entry(
         Name         variant             xxxxx      )
      dict entry(
         Strength         variant             byte 70
      )
   ]
[nemo@Sailfish ~]$

On Jolla C:

[nemo@Sailfish ~]$ /bin/dbus-send --system --print-reply=literal --type=method_call --dest=org.ofono /ril_0 org.ofono.NetworkRegistration.GetProperties
   array [
      dict entry(
         Status         variant             registered      )
      dict entry(
         Mode         variant             auto      )
      dict entry(
         LocationAreaCode         variant             uint16 xxxxx
      )
      dict entry(
         CellId         variant             uint32 xxxxx
      )
      dict entry(
         Technology         variant             umts      )
      dict entry(
         MobileCountryCode         variant             xxx      )
      dict entry(
         MobileNetworkCode         variant             xx      )
      dict entry(
         Name         variant             xxxxx      )
      dict entry(
         Strength         variant             byte 48
      )
   ]
[nemo@Sailfish ~]$

I am now slightly confused: Is there a way to get the CellName/CellId on my Xperia XA2 dual sim at all? Is there a bug or a device-specific way to retrieve the values that I am not aware of?

edit retag flag offensive close delete

Comments

2

Have a similar issue with the excellent Situations App which can't identify the cell I'm connected to on my Xperia XA2 running the free version of Sailfish X (Sailfish 3). Seems like an OS bug?

ninepine ( 2018-12-05 00:06:58 +0200 )edit

This is also the case for 3.0.1.11.

SteBe ( 2019-01-11 17:40:01 +0200 )edit

Doesn't also work for 3.0.1.14 (Sony XA2 dual sim).

sjn ( 2019-02-23 19:07:33 +0200 )edit

1 Answer

Sort by » oldest newest most voted
2

answered 2020-01-21 08:49:49 +0200

Rulli gravatar image

Following commands should give Cell Id in Xperia XA2 for sim cards:

dbus-send --system --print-reply --dest=org.ofono /ril_0 org.ofono.NetworkMonitor.GetServingCellInformation
dbus-send --system --print-reply --dest=org.ofono /ril_1 org.ofono.NetworkMonitor.GetServingCellInformation
edit flag offensive delete publish link more

Comments

Thank you, Rulli! Sure, these commands work! I will now check, whether I can get my experimental app working again.

mniemi ( 2020-02-03 01:35:54 +0200 )edit
Login/Signup to Answer

Question tools

Follow
7 followers

Stats

Asked: 2018-11-13 23:18:06 +0200

Seen: 534 times

Last updated: Jan 21 '20