# MIC mismatch

**URL:** <https://www.thethingsnetwork.org/forum/t/mic-mismatch/44480>\
**Category:** Migrating Devices to V3\
**Created:** [February 18, 2021, 10:53am UTC](https://www.thethingsnetwork.org/forum/t/mic-mismatch/44480 "2021-02-18T10:53:47Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![thomaswa](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/thomaswa/32/48087_2.png) [@thomaswa](https://www.thethingsnetwork.org/forum/u/thomaswa)\
**Post date:** [February 18, 2021, 10:53am UTC](https://www.thethingsnetwork.org/forum/t/mic-mismatch/44480/1 "2021-02-18T10:53:47Z")

</div>

Hello,

I receive “MIC mismatch” when I migrate device vom V2 to V3. (OTAA join)  
Device is a Dragino LDDS75. (EU868)  
MAC is configured to V1.0.3. but also V1.0.2 ist not working.

```auto

{
  "name": "ns.up.join.drop",
  "time": "2021-02-18T10:51:29.295032328Z",
  "identifiers": [
    {
      "device_ids": {
        "device_id": "dragino-ultrasonic-w1",
        "application_ids": {
          "application_id": "dragino-ultrasonic-w1"
        },
        "dev_eui": "",
        "join_eui": ""
      }
    }
  ],
  "data": {
    "@type": "type.googleapis.com/ttn.lorawan.v3.ErrorDetails",
    "namespace": "pkg/joinserver",
    "name": "mic_mismatch",
    "message_format": "MIC mismatch",
    "correlation_id": "94e3a7ee41ec47828b1702abd7cea503",
    "code": 3
  },
  "correlation_ids": [
    "gs:conn:01EYT2WGFG0RKDK0WPF9VKYVB6",
    "gs:up:host:01EYT2WGFP7E4HA834NJGRY8S2",
    "gs:uplink:01EYTC8941PS0SSS68DEH6EAEF",
    "ns:uplink:01EYTC8945V42YEP8E4K965C32",
    "rpc:/ttn.lorawan.v3.GsNs/HandleUplink:01EYTC89439A9WXZXGPRJ3CSAW"
  ],
  "origin": "ip-10-100-6-153.eu-west-1.compute.internal",
  "context": {
    "tenant-id": "CgN0dG4="
  },
  "visibility": {
    "rights": [
      "RIGHT_APPLICATION_TRAFFIC_READ"
    ]
  },
  "unique_id": "01EYTC894F0B0M4P0WYNQMS94E"
}
```

regards,  
Thomas

---

<div class="post-metadata">

**Author:** ![kersing](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/kersing/32/44777_2.png) [@kersing](https://www.thethingsnetwork.org/forum/u/kersing)\
**Post date:** [February 18, 2021, 11:22am UTC](https://www.thethingsnetwork.org/forum/t/mic-mismatch/44480/2 "2021-02-18T11:22:38Z")

</div>

Please take a few minutes and learn how to [format](https://www.thethingsnetwork.org/forum/t/how-do-i-format-my-forum-post-howto/8735) your posts.

Have you checked your AppKey is correct?

---

<div class="post-metadata">

**Author:** ![thomaswa](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/thomaswa/32/48087_2.png) [@thomaswa](https://www.thethingsnetwork.org/forum/u/thomaswa)\
**Post date:** [February 18, 2021, 11:57am UTC](https://www.thethingsnetwork.org/forum/t/mic-mismatch/44480/3 "2021-02-18T11:57:41Z")

</div>

Yes, AppKey was copied from the V2. I also did double check. Where I’m not sure is the MAC Version.  
Datasheet at Dragino says Lora 1.0.3 but this setting did not exist in V2, so I’m not sure.

---

<div class="post-metadata">

**Author:** ![thomaswa](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/thomaswa/32/48087_2.png) [@thomaswa](https://www.thethingsnetwork.org/forum/u/thomaswa)\
**Post date:** [February 18, 2021, 12:29pm UTC](https://www.thethingsnetwork.org/forum/t/mic-mismatch/44480/4 "2021-02-18T12:29:56Z")

</div>

I have deleted and re-created a new device. Now the MIC mismatch is gone, but it endless loops the join process:  
 ![join](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/6/f/6f27d9e477cbc805b683d07068a234e778d060f8.png)

---

<div class="post-metadata">

**Author:** ![bertrik](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/bertrik/32/35697_2.png) [@bertrik](https://www.thethingsnetwork.org/forum/u/bertrik)\
**Post date:** [February 18, 2021, 12:47pm UTC](https://www.thethingsnetwork.org/forum/t/mic-mismatch/44480/5 "2021-02-18T12:47:24Z")

</div>

I am quite sure that the mac version is not your problem.

Are you really sure that the device isn’t also being handled in parallel by the v2 stack?  
AFAIK you should have only one set of valid APP EUI/keys in one of the stacks.  
So, invalidate the APP EUI/key in the v2 stack and make sure it is valid in the v3 stack, for example.  
And, once it works on the v3 stack, you can delete the device from the v2 stack.

Perhaps there is something wrong with your device, not receiving the join settings or not remembering them.

I’ve migrated a couple of devices and it all went pretty much exactly as expected.

---

<div class="post-metadata">

**Author:** ![thomaswa](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/thomaswa/32/48087_2.png) [@thomaswa](https://www.thethingsnetwork.org/forum/u/thomaswa)\
**Post date:** [February 18, 2021, 12:49pm UTC](https://www.thethingsnetwork.org/forum/t/mic-mismatch/44480/6 "2021-02-18T12:49:42Z")

</div>

I have connected my gateway to V3 and disconnected from V2, so there should not be a conflict with V2, right? AppKey was also modified in V2.  
I V2 the device worked fine for one year.

---

<div class="post-metadata">

**Author:** ![thomaswa](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/thomaswa/32/48087_2.png) [@thomaswa](https://www.thethingsnetwork.org/forum/u/thomaswa)\
**Post date:** [February 18, 2021, 1:38pm UTC](https://www.thethingsnetwork.org/forum/t/mic-mismatch/44480/7 "2021-02-18T13:38:29Z")

</div>

From gateway view it looks ok, but device is not working. ![downlink](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/d/8/d8a3eb7bc1640df025aca11fc15058a071b65001.png)

---

<div class="post-metadata">

**Author:** ![thomaswa](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/thomaswa/32/48087_2.png) [@thomaswa](https://www.thethingsnetwork.org/forum/u/thomaswa)\
**Post date:** [February 18, 2021, 2:37pm UTC](https://www.thethingsnetwork.org/forum/t/mic-mismatch/44480/8 "2021-02-18T14:37:17Z")

</div>

Still endless join loop. Try go get in contact with dragino. ![join](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/6/1/61fcd8656689900579436e1a7a53979ca2839374.png)

---

<div class="post-metadata">

**Author:** ![klaus\_schauer](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/klaus_schauer/32/35697_2.png) [@klaus\_schauer](https://www.thethingsnetwork.org/forum/u/klaus_schauer)\
**Post date:** [July 24, 2021, 10:09am UTC](https://www.thethingsnetwork.org/forum/t/mic-mismatch/44480/9 "2021-07-24T10:09:33Z")

</div>

Is there now a solution for this? The error also occurs when setting up a new device.

---

<div class="post-metadata">

**Author:** ![NOXLouis](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/noxlouis/32/35697_2.png) [@NOXLouis](https://www.thethingsnetwork.org/forum/u/NOXLouis)\
**Post date:** [September 2, 2022, 1:50pm UTC](https://www.thethingsnetwork.org/forum/t/mic-mismatch/44480/10 "2022-09-02T13:50:23Z")

</div>

Hello, I have the same issue with the code LoraWAN\_End\_Node V.1.2.0 (Cube WL) and the LSM100A

---

<div class="post-metadata">

**Author:** ![iarakis](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/iarakis/32/45098_2.png) [@iarakis](https://www.thethingsnetwork.org/forum/u/iarakis)\
**Post date:** [March 13, 2023, 3:45pm UTC](https://www.thethingsnetwork.org/forum/t/mic-mismatch/44480/11 "2023-03-13T15:45:44Z")

</div>

Where you able to solve it?
