FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
726 views 14 comments
by anonymous
Hello

Using firmware 7.04, how can we retreive the CELL ID via the console/CLI ?

I have tried gsmctl -K but it does not display the info

1 Answer

0 votes
by anonymous

Does this Wiki Page help?

by anonymous

Yes, I found the command:

gsmctl -C

I could have sworn I tried that this morning and it failed. I will double check. Maybe it was on an older firmware.

by anonymous

Ok, so this gets stranger.

I tried it again, and I get an error on VERIZON network, but it does display for T-MOBILE. On devices with a VERIZON SIM, I get:

# gsmctl -C
ERROR: Couldn't retrieve data


Even though, via LuCI, it shows the CELL ID without issue.

by anonymous

Does the following command work for you:

  • gsmctl -A 'AT+CREG?'

It returns the string in a format shown below, with one of the returned values being Cell ID:

+CREG: <n>,<stat>[,<lac>,<cell_ID>[,<Act>]] 

This modified command will give you Cell ID only in hexadecimal form:

  • gsmctl -A 'AT+CREG?'| cut -d '"' -f 4

Best regards,

by anonymous

@ZygimantasBliu

The command gsmctl -A 'AT+CREG?' returns the following:

+CREG: 2,3

Cell ID is not present.

by anonymous

+CREG: 2,3

According to the AT commands manual, number 3 indicates that the device is denied network registration. This might be the reason, why cell ID is not returned.

Can you confirm that your device is connected to the operator and has data?

Also, is this related to Verizon operator or T-Mobile as well?

Best regards,

by anonymous

@ZygimantasBliu

The carrier is US MOBILE (VERIZON MVNO)

Yes I am sure the modem is registered and LTE connection is working. I can ping and run curl commands from the wwan0 interface.

# ping -I wwan0 1.1.1.1
PING 1.1.1.1 (1.1.1.1): 56 data bytes
64 bytes from 1.1.1.1: seq=0 ttl=51 time=39.126 ms
64 bytes from 1.1.1.1: seq=1 ttl=51 time=30.736 ms
64 bytes from 1.1.1.1: seq=2 ttl=51 time=31.561 ms
^C
--- 1.1.1.1 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 30.348/32.942/39.126 ms

# curl -s --interface wwan0 ipaddr.ca/ip
174.216.216.102

by anonymous

Please provide a troubleshoot file, with the issue present.

Can you confirm that cell ID is not displayed with Verizon only, or are there other providers?

Best regards,

by anonymous

Yes. Well, I only have access to 2 carriers:  T-Mobile and Verizon.  

So far, the T-Mobile devices are able to report CellID via gsmctl. But all Verizon devices are failing to do so.

by anonymous
I cannot test this locally, thus I'd like to address it to the developers, but I need the requested file first.

Best regards,
by anonymous
Yes, I have just uploaded troubleshoot file from one of our Verizon sites
by anonymous
Thank you. It has been forwarded to the developers.

Once I have an update, I will let you know.

Best regards,
by anonymous

Could you check, what is the output of a couple of the following commands:

  • gsmctl -A 'AT+CGREG?'
  • gsmctl -A 'AT+CEREG?

These are also used, when retrieving cell ID, to be displayed in the WebUI. 

Best regards,

by anonymous

Thank you for working with me on this. Both commands give the same output:

# gsmctl -A 'AT+CGREG?'
+CGREG: 2,1,"4F00","1369022",7

# gsmctl -A 'AT+CEREG?'
+CEREG: 2,1,"4F00","1369022",7

So it seems the info is available via a different register.

Let me know if remote CLI access is still needed and I will make the arrangement.

by anonymous
No need for a remote.