<div dir="ltr"><div dir="ltr"><div><div>Hey Aleksander,<br></div><div>I do get the 
+CTZU notification, but it worked differently for quectel because it 
doesn't receive the new time we need to check for +CTZE that's the URC 
that we get when we receive notification that the time has been changed.<br> </div>For
 my use case, I would like to update my local time automatically on a 
linux environment using modemmanager with quectel modules. <br></div><div>So right now I manage to change cinterion's function to process +CTZE events and I receive the signal like this</div><div style="color:rgb(187,187,187);background-color:rgb(40,44,52);font-family:"Fira Code","Droid Sans Mono","monospace",monospace,"Droid Sans Fallback","Droid Sans Mono","monospace",monospace;font-weight:normal;font-size:14px;line-height:19px;white-space:pre-wrap"><div><span style="color:rgb(187,187,187)">        </span><span style="color:rgb(97,175,239)">GDBusProxy</span><span style="color:rgb(187,187,187)"> </span><span style="color:rgb(224,108,117)">*</span><span style="color:rgb(171,178,191)">proxy</span><span style="color:rgb(187,187,187)"> </span><span style="color:rgb(224,108,117)">=</span><span style="color:rgb(187,187,187)"> </span><span style="color:rgb(152,195,121)">g_dbus_proxy_new_sync</span><span style="color:rgb(187,187,187)">(</span><span style="color:rgb(97,175,239)">connection</span><span style="color:rgb(171,178,191)">,</span></div><div><span style="color:rgb(187,187,187)">                                                </span><span style="color:rgb(171,178,191)">G_DBUS_PROXY_FLAGS_NONE</span><span style="color:rgb(171,178,191)">,</span></div><div><span style="color:rgb(187,187,187)">                                                </span><span style="color:rgb(152,195,121)">NULL</span><span style="color:rgb(171,178,191)">,</span></div><div><span style="color:rgb(187,187,187)">                                                </span><span style="color:rgb(229,192,123)">"org.freedesktop.ModemManager1"</span><span style="color:rgb(171,178,191)">,</span></div><div><span style="color:rgb(187,187,187)">                                                </span><span style="color:rgb(171,178,191)">modemPath</span><span style="color:rgb(171,178,191)">,</span></div><div><span style="color:rgb(187,187,187)">                                                </span><span style="color:rgb(229,192,123)">"org.freedesktop.ModemManager1.Modem.Time"</span><span style="color:rgb(171,178,191)">,</span></div><div><span style="color:rgb(187,187,187)">                                                </span><span style="color:rgb(152,195,121)">NULL</span><span style="color:rgb(171,178,191)">,</span></div><div><span style="color:rgb(187,187,187)">                                                </span><span style="color:rgb(224,108,117)">&</span><span style="color:rgb(171,178,191)">error</span><span style="color:rgb(187,187,187)">);</span></div><div><span style="color:rgb(187,187,187)">        </span><span style="color:rgb(224,108,117)">if</span><span style="color:rgb(187,187,187)"> (</span><span style="color:rgb(171,178,191)">error</span><span style="color:rgb(187,187,187)"> </span><span style="color:rgb(224,108,117)">!=</span><span style="color:rgb(187,187,187)"> </span><span style="color:rgb(152,195,121)">NULL</span><span style="color:rgb(187,187,187)">) {</span></div><div><span style="color:rgb(187,187,187)">            </span><span style="color:rgb(152,195,121)">g_printerr</span><span style="color:rgb(187,187,187)">(</span><span style="color:rgb(229,192,123)">"Error creating ModemManager1.Modem proxy: </span><span style="color:rgb(86,182,194)">%s\n</span><span style="color:rgb(229,192,123)">"</span><span style="color:rgb(171,178,191)">,</span><span style="color:rgb(187,187,187)"> </span><span style="color:rgb(171,178,191)">error</span><span style="color:rgb(171,178,191)">-></span><span style="color:rgb(171,178,191)">message</span><span style="color:rgb(187,187,187)">);</span></div><div><span style="color:rgb(187,187,187)">            </span><span style="color:rgb(152,195,121)">g_error_free</span><span style="color:rgb(187,187,187)">(</span><span style="color:rgb(171,178,191)">error</span><span style="color:rgb(187,187,187)">);</span></div><div><span style="color:rgb(187,187,187)">            </span><span style="color:rgb(224,108,117)">return</span><span style="color:rgb(187,187,187)"> </span><span style="color:rgb(198,120,221)">1</span><span style="color:rgb(187,187,187)">;</span></div><div><span style="color:rgb(187,187,187)">        }</span></div><br><div><span style="color:rgb(187,187,187)">        </span><span style="color:rgb(152,195,121)">g_signal_connect</span><span style="color:rgb(187,187,187)">(</span><span style="color:rgb(171,178,191)">proxy</span><span style="color:rgb(171,178,191)">,</span><span style="color:rgb(187,187,187)"> </span><span style="color:rgb(229,192,123)">"g-properties-changed"</span><span style="color:rgb(171,178,191)">,</span><span style="color:rgb(187,187,187)"> </span><span style="color:rgb(152,195,121)">G_CALLBACK</span><span style="color:rgb(187,187,187)">(</span><span style="color:rgb(152,195,121)">update_local_time</span><span style="color:rgb(187,187,187)">)</span><span style="color:rgb(171,178,191)">,</span><span style="color:rgb(187,187,187)"> </span><span style="color:rgb(152,195,121)">NULL</span><span style="color:rgb(187,187,187)">);</span></div><div><span style="color:rgb(187,187,187)">    }<br></span></div></div></div><div>But I'm not sure it's the best way to process the signal<br></div><div><br></div><div>Thomas,</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le lun. 24 avr. 2023 à 12:43, Aleksander Morgado <<a href="mailto:aleksandermj@chromium.org">aleksandermj@chromium.org</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hey,<br>
<br>
><br>
> I am trying to get notification from Quectel when there is a time change, I see that there is a signal NetworkTimeChanged for this but when I looked at the code, I see that the signal is not being emitted for Quectel modules.<br>
><br>
<br>
True; we're not emitting those for all modem types. Do you get +CTZU<br>
notifications in your modem? Right now I think we're processing these<br>
only for cinterion modules.<br>
<br>
Also, what is your usecase? I assume you're interested on the timezone<br>
information exclusively, right?<br>
<br>
-- <br>
Aleksander<br>
</blockquote></div>