# Timer Handler never call

**URL:** <https://forum.legato.io/t/timer-handler-never-call/5343>\
**Category:** Legato Application Framework\
**Created:** [August 7, 2020, 3:04pm UTC](https://forum.legato.io/t/timer-handler-never-call/5343 "2020-08-07T15:04:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ph38240](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/ph38240/32/963_2.png) [@Ph38240](https://forum.legato.io/u/Ph38240)\
**Post date:** [August 7, 2020, 3:04pm UTC](https://forum.legato.io/t/timer-handler-never-call/5343/1 "2020-08-07T15:04:26Z")

</div>

Hello

I’d like to make a timer to check if my data connexion is up ( because the le\_data\_AddConnectionStateHandler seem to don’t work on my mangOH RED WP77).

```auto
static void decompteHandler(le_timer_Ref_t timerRef) {
    LE_INFO("decompteHandler\n");
    // le_mdc_ConState_t connectionState = dataConnectionState();
    // LE_INFO("decompteHandler state %s\n", printCnxState(connectionState));
}

void startTimer() {
    le_timer_Ref_t decompte = le_timer_Create("decompte");    
    le_timer_SetRepeat(decompte,3);
    le_timer_SetMsInterval(decompte, 500);
    le_timer_SetHandler(decompte, decompteHandler);
    le_timer_Start(decompte);
    LE_INFO("Timer running %d\n",le_timer_IsRunning(decompte));
}

COMPONENT_INIT
{
   startTimer();
   ...

```

My TimerHandler decompteHandler is never call.

In logref, i’ve got the timer initialization log:

```auto
Aug 7 16:59:29 swi-mdm9x28-wp user.debug Legato: DBUG | wClientExe[22337]/framework T=main | timer.c fa_timer_Start() 384 | localThreadRecPtr->timerFD=14
Aug 7 16:59:29 swi-mdm9x28-wp user.info Legato: INFO | wClientExe[22337]/wClient T=main | lwm2mclient.c startTimer() 859 | Timer running 1

```

Where i’m wrong ?

---

<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:** [August 7, 2020, 3:22pm UTC](https://forum.legato.io/t/timer-handler-never-call/5343/2 "2020-08-07T15:22:12Z")

</div>

I remember it should work in fw R8 or R9

> **[Problem with Reading UART](https://forum.sierrawireless.com/t/problem-with-reading-uart/13322)**
>
> I’m using UART to communicate with another device, I can write data but problem in reading the data, I’m calling the function read(uart\_fd, read\_buf, size) but after some time it stops receiving data. In the terminal I see: irq 50, desc: cefcd780,...
