# Detecting Connected Antennas

**URL:** <https://forum.legato.io/t/detecting-connected-antennas/6494>\
**Category:** Legato Application Framework\
**Created:** [April 27, 2023, 3:41pm UTC](https://forum.legato.io/t/detecting-connected-antennas/6494 "2023-04-27T15:41:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![simon.naegele](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@simon.naegele](https://forum.legato.io/u/simon.naegele)\
**Post date:** [April 27, 2023, 3:41pm UTC](https://forum.legato.io/t/detecting-connected-antennas/6494/1 "2023-04-27T15:41:47Z")

</div>

Hi,  
is there a way to detect if antennas are connected to the module?  
Background is, that we want to detect if both antennas are connected after production.

Is there a way to do that via software?

Regards,  
Simon

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [April 27, 2023, 3:48pm UTC](https://forum.legato.io/t/detecting-connected-antennas/6494/2 "2023-04-27T15:48:23Z")

</div>

can you insert a SIM to it and type AT!GSTATUS? to check?

---

<div class="post-metadata">

**Author:** ![simon.naegele](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@simon.naegele](https://forum.legato.io/u/simon.naegele)\
**Post date:** [April 27, 2023, 5:22pm UTC](https://forum.legato.io/t/detecting-connected-antennas/6494/3 "2023-04-27T17:22:06Z")

</div>

```auto
!GSTATUS:
Current Time: 98162 Temperature: 30
Modem Mitigate Level: 0 ModemProc Mitigate Level: 0	
Reset Counter: 7 Mode: ONLINE
System mode: LTE PS state: Attached
IMS reg state: NOT REGISTERED IMS mode: Normal
IMS Srv State: NO SMS,NO VoIP
LTE band: B3 LTE bw: 20 MHz
LTE Rx chan: 1300 LTE Tx chan: 19300
LTE CA state: INACTIVE
EMM state: Registered Normal Service
RRC state: RRC Idle

PCC RxM RSSI: -72 RSRP (dBm): -108
PCC RxD RSSI: -93 RSRP (dBm): -136
Tx Power: -- TAC: 05DA (1498)
RSRQ (dB): -16 Cell ID: 01921401 (26350593)
SINR (dB): 0.4

```

I detached one of the two antennas. Where can I see which one isn’t attached?

EDIT: Ah I see, RxM and RxD.  
Is there an API for that? I coudn’t find one that will give me two different numbers

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [April 27, 2023, 5:48pm UTC](https://forum.legato.io/t/detecting-connected-antennas/6494/4 "2023-04-27T17:48:30Z")

</div>

Does this help?

> **[Antenna Monitoring - Legato Docs](https://docs.legato.io/latest/c_antenna.html)**
>
> legato™ is an open source Linux-based embedded platform designed to simplify connected IoT application development

---

<div class="post-metadata">

**Author:** ![simon.naegele](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@simon.naegele](https://forum.legato.io/u/simon.naegele)\
**Post date:** [April 27, 2023, 5:50pm UTC](https://forum.legato.io/t/detecting-connected-antennas/6494/5 "2023-04-27T17:50:13Z")

</div>

Perfect! That’s what I was searching for!

Thanks!
