# Log message on console when change gpio state

**URL:** <https://mangoh.discourse.group/t/log-message-on-console-when-change-gpio-state/1131>\
**Category:** Uncategorized\
**Created:** [February 4, 2018, 5:24pm UTC](https://mangoh.discourse.group/t/log-message-on-console-when-change-gpio-state/1131 "2018-02-04T17:24:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Francis.duhaut](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/francis.duhaut/32/350_2.png) [@Francis.duhaut](https://mangoh.discourse.group/u/Francis.duhaut)\
**Post date:** [February 4, 2018, 5:24pm UTC](https://mangoh.discourse.group/t/log-message-on-console-when-change-gpio-state/1131/1 "2018-02-04T17:24:02Z")

</div>

Hello

I drive gpio on mangoh Red in my app using le\_gpio.api (gpioService.le\_gpioPin34)

It work fine but …

On the console I have the message each time that I change gpio state:

1304.259636] qup\_i2c qup\_i2c.0: I2C slave addr:0x3a not connected  
[1305.253868] qup\_i2c qup\_i2c.0: QUP: I2C status flags :0x1300c8, irq:187

Is it any chance to remove it ?

In ssh it’s not a problem but in consol It’s not very good…

Thank’s

---

<div class="post-metadata">

**Author:** ![dfrey](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/dfrey/32/303_2.png) [@dfrey](https://mangoh.discourse.group/u/dfrey)\
**Post date:** [February 4, 2018, 5:50pm UTC](https://mangoh.discourse.group/t/log-message-on-console-when-change-gpio-state/1131/2 "2018-02-04T17:50:02Z")

</div>

That GPIO is driven by the low power microcontroller inside the module. That microcontroller is connected via i2c to the modem. The not connected message occurs because the microcontroller is asleep when it receives an i2c message to change the GPIO. The microcontroller then wakes up and the master retries the i2c command and it succeeds. I don’t remember the exact timing, but I recall that the microcontroller goes to low power mode after a couple hundred ms.

So to eliminate the message you would have to find the code that generates the log message in the i2c master driver and remove it.

---

<div class="post-metadata">

**Author:** ![Francis.duhaut](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/francis.duhaut/32/350_2.png) [@Francis.duhaut](https://mangoh.discourse.group/u/Francis.duhaut)\
**Post date:** [February 4, 2018, 8:13pm UTC](https://mangoh.discourse.group/t/log-message-on-console-when-change-gpio-state/1131/3 "2018-02-04T20:13:48Z")

</div>

Ok thank I will have a look and publish my result for all user.

For the moment I will used the gpioExpender.
