# Equivalent to Ping for LTE chips

**URL:** https://community.particle.io/t/equivalent-to-ping-for-lte-chips/48491
**Category:** Firmware
**Tags:** electron
**Created:** [March 18, 2019, 1:15am UTC](https://community.particle.io/t/equivalent-to-ping-for-lte-chips/48491 "2019-03-18T01:15:43Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![wesner0019](https://avatars.discourse-cdn.com/v4/letter/w/0ea827/32.png) [@wesner0019](https://community.particle.io/u/wesner0019)
#### Post date: [March 18, 2019, 1:15am UTC](https://community.particle.io/t/equivalent-to-ping-for-lte-chips/48491/1 "2019-03-18T01:15:44Z")

</div>

Is there a call to ping an external website to see if you get a result? I dont think the LTE modems have that specific AT command.

I am wanting to ping an external website to verify it has a connection prior to publishing data.

---

<div class="post-metadata">

### Author: ![rickkas7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rickkas7/32/8681_2.png) [@rickkas7](https://community.particle.io/u/rickkas7)
#### Post date: [March 18, 2019, 11:58am UTC](https://community.particle.io/t/equivalent-to-ping-for-lte-chips/48491/2 "2019-03-18T11:58:21Z")

</div>

Ping is not currently supported on cellular devices.

There is a low-level HAL function inet\_ping, but calling it on a cellular device returns -120 (not supported).

On the 2G and 3G devices, there is a modem command AT+UPING but the problem is it returns the result as a URC, and there is no way to catch the URC from user firmware, so you can’t tell if it succeeded or not.

On LTE devices, it’s not possible at all because the u-blox SARA-R410M-02-B does not support AT+UPING.

The workaround would be to just try making the connection and see if it succeeds. Or essentially making a UDP echo service which does something like ping (ICMP), but over UDP, which is supported on all devices.
