# Legato Application Framework

**URL:** https://forum.legato.io/c/legato-application-framework/5.md?page=2

[Latest](https://forum.legato.io/latest.md) · [Categories](https://forum.legato.io/categories.md)

**Page:** 3

---

## [Guidelines for Creating Applications Using the Legato Application Framework](https://forum.legato.io/t/guidelines-for-creating-applications-using-the-legato-application-framework/6798)

<div class="topic-metadata">

**Author:** [@leoniemeeyr](https://forum.legato.io/u/leoniemeeyr)\
**Replies:** 1\
**Last updated:** [September 24, 2024, 8:59am UTC](https://forum.legato.io/t/guidelines-for-creating-applications-using-the-legato-application-framework/6798 "2024-09-24T08:59:28Z")

</div>

Hello everyone, I am diving into the Legato Application Framework and want some guidance on best practices for development. As I start building applications I want to ensure I am leveraging the frameworks features effec…

---

## [MangoOH GPIO1 / GPIO42 not showing under linux interface](https://forum.legato.io/t/mangooh-gpio1-gpio42-not-showing-under-linux-interface/6791)

<div class="topic-metadata">

**Author:** [@paul.avalosar](https://forum.legato.io/u/paul.avalosar)\
**Replies:** 1\
**Last updated:** [September 18, 2024, 1:18pm UTC](https://forum.legato.io/t/mangooh-gpio1-gpio42-not-showing-under-linux-interface/6791 "2024-09-18T13:18:22Z")

</div>

MangoOH GPIO1 / GPIO42 not showing under linux interface (/sys/class/gpio/gpio42) when doing an ls. I am using that expansion board and FX30S

---

## [Productizing 'dataConnectionServiceSample.c'](https://forum.legato.io/t/productizing-dataconnectionservicesample-c/6783)

<div class="topic-metadata">

**Author:** [@upsampled](https://forum.legato.io/u/upsampled)\
**Replies:** 15\
**Last updated:** [September 9, 2024, 12:31pm UTC](https://forum.legato.io/t/productizing-dataconnectionservicesample-c/6783 "2024-09-09T12:31:05Z")

</div>

Summary I have gotten the wp to connect for short periods of time when there is a good signal and APN values are known. I need to be able to keep connectivity to the WP for years on end, with the exception of a user expl…

---

## [Dynamic Resolution of Protocol ID for 3rd Party API calls](https://forum.legato.io/t/dynamic-resolution-of-protocol-id-for-3rd-party-api-calls/6777)

<div class="topic-metadata">

**Author:** [@upsampled](https://forum.legato.io/u/upsampled)\
**Replies:** 2\
**Last updated:** [August 28, 2024, 5:26pm UTC](https://forum.legato.io/t/dynamic-resolution-of-protocol-id-for-3rd-party-api-calls/6777 "2024-08-28T17:26:31Z")

</div>

We are attempting to port a Go application to the WP77 target. The use of custom compile tools (mkapp, etc.) complicates the use of cgo. To at least get something working I am leaning towards the approach shown in a prio…

---

## [Trying to use app install from a docker container: Device adress seems unreachable](https://forum.legato.io/t/trying-to-use-app-install-from-a-docker-container-device-adress-seems-unreachable/6772)

<div class="topic-metadata">

**Author:** [@paul.avalosar](https://forum.legato.io/u/paul.avalosar)\
**Replies:** 1\
**Last updated:** [August 13, 2024, 4:18pm UTC](https://forum.legato.io/t/trying-to-use-app-install-from-a-docker-container-device-adress-seems-unreachable/6772 "2024-08-13T16:18:41Z")

</div>

I’m running a docker container docker run -it --network host --mount source=volume,target=/workspace --mount type=bind,source=“$(pwd)”/helloWorld,target=/workspace/src fx30 I’m trying to upload the helloWorld App howe…

---

## [Help Needed with mcuwatchdog Implementation](https://forum.legato.io/t/help-needed-with-mcuwatchdog-implementation/6765)

<div class="topic-metadata">

**Author:** [@bcan](https://forum.legato.io/u/bcan)\
**Replies:** 7\
**Last updated:** [July 10, 2024, 10:29am UTC](https://forum.legato.io/t/help-needed-with-mcuwatchdog-implementation/6765 "2024-07-10T10:29:53Z")

</div>

Hello, I am currently using the watchdog API in our application. While working on this, I noticed that there is also an mcuwatchdog. The board I am using supports this. However, I couldn’t find any example or explanatio…

---

## [Reducing the size of Legato.cwe](https://forum.legato.io/t/reducing-the-size-of-legato-cwe/6706)

<div class="topic-metadata">

**Author:** [@Pankaj](https://forum.legato.io/u/Pankaj)\
**Replies:** 8\
**Last updated:** [June 21, 2024, 4:21am UTC](https://forum.legato.io/t/reducing-the-size-of-legato-cwe/6706 "2024-06-21T04:21:00Z")

</div>

I want to reduce the legato.cwe size to less than 6MB can anyone adivse on how we can do it. I am not using AirVantage serivces and apps. The only thing I need is the legato tools and Data Connection service. Attached …

---

## [Search option in legato.io is not working](https://forum.legato.io/t/search-option-in-legato-io-is-not-working/6729)

<div class="topic-metadata">

**Author:** [@murali.nagraj](https://forum.legato.io/u/murali.nagraj)\
**Replies:** 2\
**Last updated:** [June 6, 2024, 2:28pm UTC](https://forum.legato.io/t/search-option-in-legato-io-is-not-working/6729 "2024-06-06T14:28:58Z")

</div>

Search option in legato.io(Build Apps - Legato Docs) is not working. It is very difficult if we have to find related to any topic.

---

## [Set used Network Provider](https://forum.legato.io/t/set-used-network-provider/6733)

<div class="topic-metadata">

**Author:** [@mbramer](https://forum.legato.io/u/mbramer)\
**Replies:** 3\
**Last updated:** [April 25, 2024, 6:29am UTC](https://forum.legato.io/t/set-used-network-provider/6733 "2024-04-25T06:29:33Z")

</div>

Hi We use a WP7607-1 with a multi SIM. We can get the used network provider with the funktion le\_mrc\_GetCurrentNetworkName. But can we set und use a fixed provider? Thanks Grisu

---

## [How do you determine which \`sdef\` file to use?](https://forum.legato.io/t/how-do-you-determine-which-sdef-file-to-use/6732)

<div class="topic-metadata">

**Author:** [@upsampled](https://forum.legato.io/u/upsampled)\
**Replies:** 6\
**Last updated:** [April 4, 2024, 6:23pm UTC](https://forum.legato.io/t/how-do-you-determine-which-sdef-file-to-use/6732 "2024-04-04T18:23:47Z")

</div>

I have to create a customer kernel module for a wp7702 target running the 15.1 Firmware. I am trying to do this the legato way, knowing i can always fall back on Yocto/Bitbake recipes. I am following the Legato Custom Ke…

---

## [WP7702 i2C smbus kernel crash](https://forum.legato.io/t/wp7702-i2c-smbus-kernel-crash/6714)

<div class="topic-metadata">

**Author:** [@dan](https://forum.legato.io/u/dan)\
**Replies:** 13\
**Last updated:** [March 14, 2024, 9:46am UTC](https://forum.legato.io/t/wp7702-i2c-smbus-kernel-crash/6714 "2024-03-14T09:46:03Z")

</div>

Hi All, I’m at a complete loss here. I’m trying to read from an I2C sensor using smbus with the i2c-dev library I’ve included #include \<linux/i2c-dev.h\> #include \<sys/ioctl.h\> but at the point of reading from the sen…

---

## [le\_sms\_Delete in multi apps crash](https://forum.legato.io/t/le-sms-delete-in-multi-apps-crash/6705)

<div class="topic-metadata">

**Author:** [@pmark](https://forum.legato.io/u/pmark)\
**Replies:** 3\
**Last updated:** [February 29, 2024, 1:21am UTC](https://forum.legato.io/t/le-sms-delete-in-multi-apps-crash/6705 "2024-02-29T01:21:43Z")

</div>

I have two separate apps both handling SMS depending on a prefix, the app that handles the SMS deletes it like this le\_result\_t res = decodeMsgRequest(tel, text); if (res == LE\_OK) { char text2\[LE\_SMS\_TEXT\_MAX\_BYTES…

---

## [Data connection issue over eth0](https://forum.legato.io/t/data-connection-issue-over-eth0/6668)

<div class="topic-metadata">

**Author:** [@dave-k](https://forum.legato.io/u/dave-k)\
**Replies:** 5\
**Last updated:** [February 22, 2024, 1:34am UTC](https://forum.legato.io/t/data-connection-issue-over-eth0/6668 "2024-02-22T01:34:53Z")

</div>

We’re unable to send data over our WP based device’s eth0 interface and are currently stuck trying to find the problem. The interface physically is working fine (we can ping it over a LAN) but can’t send WAN data over ud…

---

## [OpenVpn client on legato](https://forum.legato.io/t/openvpn-client-on-legato/6272)

<div class="topic-metadata">

**Author:** [@bilawal.latif](https://forum.legato.io/u/bilawal.latif)\
**Replies:** 4\
**Last updated:** [February 1, 2024, 7:48am UTC](https://forum.legato.io/t/openvpn-client-on-legato/6272 "2024-02-01T07:48:43Z")

</div>

Hi, I am trying to SSH over sim but not able to do so because of firewalls of ISPs. So by connecting it to a vpn looks simple solution to a problem? I didn’t find much information how to build yocto image with OPENVPN …

---

## [Gnss bad position indication](https://forum.legato.io/t/gnss-bad-position-indication/6693)

<div class="topic-metadata">

**Author:** [@bcan](https://forum.legato.io/u/bcan)\
**Replies:** 6\
**Last updated:** [January 25, 2024, 1:09am UTC](https://forum.legato.io/t/gnss-bad-position-indication/6693 "2024-01-25T01:09:35Z")

</div>

Hello everyone, In the GPS experiment I conducted, using the GPS example as a reference legato-af/apps/sample/gpsApp at master · legatoproject/legato-af · GitHub , I sometimes encounter the warning message: swi-mdm9x2…

---

## [Cannot get callback between components (IPC) to work properly](https://forum.legato.io/t/cannot-get-callback-between-components-ipc-to-work-properly/4653)

<div class="topic-metadata">

**Author:** [@BCUbing](https://forum.legato.io/u/BCUbing)\
**Replies:** 4\
**Last updated:** [January 24, 2024, 4:12am UTC](https://forum.legato.io/t/cannot-get-callback-between-components-ipc-to-work-properly/4653 "2024-01-24T04:12:43Z")

</div>

Hi, I’m currently working on an application that must send data from one component (component A) to the other (component B) (via IPC). The sending part is implemented via API in component B. communication.api FUNCTI…

---

## [Multiple firmware images in spk](https://forum.legato.io/t/multiple-firmware-images-in-spk/6478)

<div class="topic-metadata">

**Author:** [@jack.heaffey](https://forum.legato.io/u/jack.heaffey)\
**Replies:** 12\
**Last updated:** [January 24, 2024, 3:12pm UTC](https://forum.legato.io/t/multiple-firmware-images-in-spk/6478 "2024-01-24T15:12:17Z")

</div>

Hi, The WP7610 module has 3 modem firmware slots, allowing for AT&T and Verizon firmware images to be installed simultaneously. How do I load the images onto the modem? I tried combining the AT&T and verizon .spk files…

---

## [Error of "make wp76xx"](https://forum.legato.io/t/error-of-make-wp76xx/6685)

<div class="topic-metadata">

**Author:** [@clover](https://forum.legato.io/u/clover)\
**Replies:** 10\
**Last updated:** [January 15, 2024, 4:13am UTC](https://forum.legato.io/t/error-of-make-wp76xx/6685 "2024-01-15T04:13:05Z")

</div>

I just started learning Legato and discovered this issue while following the official website. (lsh:wp76stable) shaw@shaw-Ubuntu:~/share/leafWorkspace/legato$ make wp76xx Building Legato for target 'wp76xx' modules/WiFi…

---

## [Disabling Incoming Calls for SIM Card](https://forum.legato.io/t/disabling-incoming-calls-for-sim-card/6669)

<div class="topic-metadata">

**Author:** [@bcan](https://forum.legato.io/u/bcan)\
**Replies:** 7\
**Last updated:** [December 19, 2023, 1:11am UTC](https://forum.legato.io/t/disabling-incoming-calls-for-sim-card/6669 "2023-12-19T01:11:07Z")

</div>

Hi All, While my application is running, if I try to call my app’s SIM card, my application crashes. However, I am not using the voice call service. How can I disable/enable incoming calls for the SIM card? Thank you! …

---

## [voiceCallService start automatically](https://forum.legato.io/t/voicecallservice-start-automatically/6661)

<div class="topic-metadata">

**Author:** [@bcan](https://forum.legato.io/u/bcan)\
**Replies:** 21\
**Last updated:** [December 15, 2023, 9:06am UTC](https://forum.legato.io/t/voicecallservice-start-automatically/6661 "2023-12-15T09:06:05Z")

</div>

Hello All, When I turn on the platform, is it possible to start the voiceCallService automatically? Are there any issues with starting it directly?

---

## [GPS application unable to get a fix](https://forum.legato.io/t/gps-application-unable-to-get-a-fix/2845)

<div class="topic-metadata">

**Author:** [@codegit001](https://forum.legato.io/u/codegit001)\
**Replies:** 6\
**Last updated:** [December 6, 2023, 1:54pm UTC](https://forum.legato.io/t/gps-application-unable-to-get-a-fix/2845 "2023-12-06T13:54:14Z")

</div>

Hi I am working with the GNSS module of Legato; it seems my application is unable to get a position fix. If I use “gnss get posInfo” command on the terminal while my app is running, the app also gets the info and subseq…

---

## [Loss of connection to AirVantage - only reboot works](https://forum.legato.io/t/loss-of-connection-to-airvantage-only-reboot-works/6651)

<div class="topic-metadata">

**Author:** [@kevine](https://forum.legato.io/u/kevine)\
**Replies:** 10\
**Last updated:** [December 5, 2023, 4:14am UTC](https://forum.legato.io/t/loss-of-connection-to-airvantage-only-reboot-works/6651 "2023-12-05T04:14:18Z")

</div>

After about a day of my WP7601-1 running, the connection to AirVantage is lost and cant be recovered unless I reboot the module. When looking at logread -F, there appears to be the following output stating about some ki…

---

## [Audio pcm error](https://forum.legato.io/t/audio-pcm-error/6648)

<div class="topic-metadata">

**Author:** [@bcan](https://forum.legato.io/u/bcan)\
**Replies:** 15\
**Last updated:** [December 1, 2023, 11:05am UTC](https://forum.legato.io/t/audio-pcm-error/6648 "2023-12-01T11:05:23Z")

</div>

Hi All, I have created an application using audioService.le\_audio in Legato to play audio from a file. However, sometimes after waking up from system suspend mode, I encounter the following error: Legato: =ERR= | audio…

---

## [Returning STRUCT from .api](https://forum.legato.io/t/returning-struct-from-api/6644)

<div class="topic-metadata">

**Author:** [@french.bulldog](https://forum.legato.io/u/french.bulldog)\
**Replies:** 2\
**Last updated:** [November 26, 2023, 8:10am UTC](https://forum.legato.io/t/returning-struct-from-api/6644 "2023-11-26T08:10:28Z")

</div>

I’m having trouble returning a user defined STRUCT through a function in my .api file. /home/f/legatoapps/\_build\_app/wp76xx/api/732e28177b4a96521bsb9d6c80fecb29/server/ctrlSerial\_server.c:349:61: error: incompatible typ…

---

## [Building for Legato 21.05.0 fails on iperf3](https://forum.legato.io/t/building-for-legato-21-05-0-fails-on-iperf3/6632)

<div class="topic-metadata">

**Author:** [@gioqw](https://forum.legato.io/u/gioqw)\
**Replies:** 7\
**Last updated:** [November 21, 2023, 7:43am UTC](https://forum.legato.io/t/building-for-legato-21-05-0-fails-on-iperf3/6632 "2023-11-21T07:43:05Z")

</div>

Hello, I’m having issues building an application for Legato 21.05.0 on a FX30 CAT-M (15.1.0.004), using the swi-fx30-catm\_4.2.0 package. It tries including from /usr/include when building the 3rdParty iperf which comes…

---

## [Having issue running ipc app on localhost](https://forum.legato.io/t/having-issue-running-ipc-app-on-localhost/6639)

<div class="topic-metadata">

**Author:** [@chw](https://forum.legato.io/u/chw)\
**Replies:** 1\
**Last updated:** [November 18, 2023, 4:34am UTC](https://forum.legato.io/t/having-issue-running-ipc-app-on-localhost/6639 "2023-11-18T04:34:33Z")

</div>

I installed legato(legato-18.08.0) on my ubuntu and trying to test sample apps(such as helloWorld and helloIpc) on localhost. I’m able to run helloWorld, however I have problem running helloIpc. Here are my steps: make…

---

## [Data is not written to device file (serial port) unless it is contained inside brackets '\[' and '\]'](https://forum.legato.io/t/data-is-not-written-to-device-file-serial-port-unless-it-is-contained-inside-brackets-and/6636)

<div class="topic-metadata">

**Author:** [@gilles.de.borger](https://forum.legato.io/u/gilles.de.borger)\
**Replies:** 4\
**Last updated:** [November 18, 2023, 4:21am UTC](https://forum.legato.io/t/data-is-not-written-to-device-file-serial-port-unless-it-is-contained-inside-brackets-and/6636 "2023-11-18T04:21:37Z")

</div>

I am experimenting with writing data to a serial port device file and reading it inside my application. The application checks if some bytes of data are present in the device file by calling ioctl. I noticed that only …

---

## [Data written to /dev/ttyHSL1 can later only be read if it is between bracktets i.e. \[\*data\*\]. All data outside of the brackets is ignored as if it does not exist](https://forum.legato.io/t/data-written-to-dev-ttyhsl1-can-later-only-be-read-if-it-is-between-bracktets-i-e-data-all-data-outside-of-the-brackets-is-ignored-as-if-it-does-not-exist/6634)

<div class="topic-metadata">

**Author:** [@gilles.de.borger](https://forum.legato.io/u/gilles.de.borger)\
**Replies:** 1\
**Last updated:** [November 17, 2023, 12:00am UTC](https://forum.legato.io/t/data-written-to-dev-ttyhsl1-can-later-only-be-read-if-it-is-between-bracktets-i-e-data-all-data-outside-of-the-brackets-is-ignored-as-if-it-does-not-exist/6634 "2023-11-17T00:00:56Z")

</div>

I have a callback function that is called every 50ms to see if there is some data written to the serial port /dev/ttyHSL1. If this is true then a second function is called to read the data from the serial port and store…

---

## [CHAP/PAP authentication over LTE](https://forum.legato.io/t/chap-pap-authentication-over-lte/6624)

<div class="topic-metadata">

**Author:** [@sergio.farias](https://forum.legato.io/u/sergio.farias)\
**Replies:** 2\
**Last updated:** [November 10, 2023, 2:52pm UTC](https://forum.legato.io/t/chap-pap-authentication-over-lte/6624 "2023-11-10T14:52:08Z")

</div>

Hi, I need to use the chap/pap authentication over LTE. I’m developing a firmware using the legato API. The functions used are: le\_mdc\_SetAuthentication to authentication and le\_mdc\_StartSession to start data connectio…

---

## [UDP traffic to EC2](https://forum.legato.io/t/udp-traffic-to-ec2/6615)

<div class="topic-metadata">

**Author:** [@sunil.somarajan](https://forum.legato.io/u/sunil.somarajan)\
**Replies:** 1\
**Last updated:** [October 27, 2023, 10:24pm UTC](https://forum.legato.io/t/udp-traffic-to-ec2/6615 "2023-10-27T22:24:04Z")

</div>

I am observing traffice from my FX30s to EC2 12:57:08.087175 IP 10.147.210.65.56830 \> ec2-52-17-142-62.eu-west-1.compute.amazonaws.com.5686: UDP, length 41 12:57:08.394272 IP ec2-52-17-142-62.eu-west-1.compute.amazonaw…

[Previous page](https://forum.legato.io/c/legato-application-framework/5.md?page=1)

[Next page](https://forum.legato.io/c/legato-application-framework/5.md?page=3)
