# I2c weirdness - notecard sending serial data when syncing (we use i2c)

**URL:** <https://discuss.blues.com/t/i2c-weirdness-notecard-sending-serial-data-when-syncing-we-use-i2c/407>\
**Category:** Notecarrier B\
**Tags:** python\
**Created:** [September 1, 2021, 8:13am UTC](https://discuss.blues.com/t/i2c-weirdness-notecard-sending-serial-data-when-syncing-we-use-i2c/407 "2021-09-01T08:13:49Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![cshannon](https://avatars.discourse-cdn.com/v4/letter/c/e79b87/32.png) [@cshannon](https://discuss.blues.com/u/cshannon)\
**Post date:** [September 1, 2021, 8:13am UTC](https://discuss.blues.com/t/i2c-weirdness-notecard-sending-serial-data-when-syncing-we-use-i2c/407/1 "2021-09-01T08:13:49Z")

</div>

When doing a hub.sync while connected to the notecard over i2c there is data being sent to our serial port. in this case /dev/ttyAMA0

How to stop this from happening? It’s disrupting our other communications.

---

<div class="post-metadata">

**Author:** ![RobLauer](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/roblauer/32/1567_2.png) [@RobLauer](https://discuss.blues.com/u/RobLauer)\
**Post date:** [September 1, 2021, 1:07pm UTC](https://discuss.blues.com/t/i2c-weirdness-notecard-sending-serial-data-when-syncing-we-use-i2c/407/2 "2021-09-01T13:07:09Z")

</div>

Hi @cshannon - are you using a Notecard with the Notecarrier Pi HAT? If so, check the back of the Notecarrier as there is a SERIAL TXRX switch and make sure that is set to OFF.

---

<div class="post-metadata">

**Author:** ![cshannon](https://avatars.discourse-cdn.com/v4/letter/c/e79b87/32.png) [@cshannon](https://discuss.blues.com/u/cshannon)\
**Post date:** [September 1, 2021, 10:53pm UTC](https://discuss.blues.com/t/i2c-weirdness-notecard-sending-serial-data-when-syncing-we-use-i2c/407/3 "2021-09-01T22:53:02Z")

</div>

No, we are not using the Pi Hat. We have our own board and there is no connection to the serial port on that. This seems like it is somewhere in the python notecard library? Meaning it is most likely a software issue because the notecard itself has no access to the serial port.

---

<div class="post-metadata">

**Author:** ![bsatrom](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/bsatrom/32/3_2.png) [@bsatrom](https://discuss.blues.com/u/bsatrom)\
**Post date:** [September 2, 2021, 1:27pm UTC](https://discuss.blues.com/t/i2c-weirdness-notecard-sending-serial-data-when-syncing-we-use-i2c/407/4 "2021-09-02T13:27:40Z")

</div>

Hey @cshannon thanks for the additional detail. Can you share additional details about your custom board design, specifically which pins are connected to the Notecard and the like?

Also, can you share a sample of the program you’re running and the data you’re observing on the serial port?

We’ve not observed this behavior on any of our Notecarriers before and like to try to repro the issue on my end.

---

<div class="post-metadata">

**Author:** ![bsatrom](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/bsatrom/32/3_2.png) [@bsatrom](https://discuss.blues.com/u/bsatrom)\
**Post date:** [September 2, 2021, 2:47pm UTC](https://discuss.blues.com/t/i2c-weirdness-notecard-sending-serial-data-when-syncing-we-use-i2c/407/5 "2021-09-02T14:47:01Z")

</div>

@cshannon I just had a random thought. Do you happen to know if the Notecard you are working with still has `trace` or `watch` enabled?

If you’re not sure, you can connect to the Notecard using the [Notecard playground](https://dev.blues.io/notecard-playground/) and send a manual `{"req":"hub.sync"}` request. if you see anything beyond an empty JSON object (`{}`) one of those modes is active and sending data over serial. You can turn trace off with `t off` and watch off with `w`.

 ![Screen Shot 2021-09-02 at 9.45.54 AM](https://us1.discourse-cdn.com/flex020/uploads/blues/original/1X/79a63aa15e936b813a71b39583373cd3539b712b.png)

Let me know if that sorts it before you spend the time sending along any of your design details or a code sample.

---

<div class="post-metadata">

**Author:** ![bsatrom](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/bsatrom/32/3_2.png) [@bsatrom](https://discuss.blues.com/u/bsatrom)\
**Post date:** [September 3, 2021, 2:20pm UTC](https://discuss.blues.com/t/i2c-weirdness-notecard-sending-serial-data-when-syncing-we-use-i2c/407/7 "2021-09-03T14:20:33Z")

</div>

Sounds good @cshannon, do let me know if you see it again. If you do manage to replicate it, I’d be interested to hear if it happens for multiple Notecards (if you have others on hand), vs. a single device.

---

<div class="post-metadata">

**Author:** ![cshannon](https://avatars.discourse-cdn.com/v4/letter/c/e79b87/32.png) [@cshannon](https://discuss.blues.com/u/cshannon)\
**Post date:** [September 3, 2021, 11:56pm UTC](https://discuss.blues.com/t/i2c-weirdness-notecard-sending-serial-data-when-syncing-we-use-i2c/407/8 "2021-09-03T23:56:31Z")

</div>

On Monday I will swap out this device for another one and see what I get.
