# Cm data connect on boot

**URL:** <https://mangoh.discourse.group/t/cm-data-connect-on-boot/1237>\
**Category:** Uncategorized\
**Created:** [March 13, 2018, 11:50am UTC](https://mangoh.discourse.group/t/cm-data-connect-on-boot/1237 "2018-03-13T11:50:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dingo](https://avatars.discourse-cdn.com/v4/letter/d/c2a13f/32.png) [@dingo](https://mangoh.discourse.group/u/dingo)\
**Post date:** [March 13, 2018, 11:50am UTC](https://mangoh.discourse.group/t/cm-data-connect-on-boot/1237/1 "2018-03-13T11:50:38Z")

</div>

trying to figure out the best logical solution for setting up a data connection on boot without it being triggered by something, once booted we just want to connect via gsm… whats more logical then say a simple start up script

---

<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:** [March 13, 2018, 2:57pm UTC](https://mangoh.discourse.group/t/cm-data-connect-on-boot/1237/2 "2018-03-13T14:57:01Z")

</div>

You could write a simple Legato app that calls `le_data_AddConnectionStateHandler()` to register for data connection service status events and then call `le_data_Request()` to actually request a data connection. I think this is basically what cm data is doing under the hood. If you have an app that requires a data connection, an even better solution would be to just integrate the above function calls into that app.
