Demos gpsPublish no LE_INFO wp85 mangoh red

Hi,
I’m new to mangoh and i’m trying to test the gpsPublish demo app (in the /mangOH/samples/Demos/GpsPublish git repository). I have no problem to compile the app and to transfert it on my mangoh Red (wp85). On the mangoh, the app is running, no problem, but i don’t have any print i should receive with logread, and at the same time no errors (but a lot of informations i don’t understand i must admit). I just add a simple LE_INFO at the beginning of the component init and i can’t see it…I suspect that I don’t understand something elementary, but i can’t see what.

Here is the logread when i stop and start the app :
(app stop gpsPublish, app start gpsPublish, logread | grep gpsPublish

Also, if i want to comment some code in the component init to see what part is source of error, i can’t build the app anymore : i have an error that explain that some of my importations are not used, so quite complex to debug.

If anyone has any idea…

how about doing this?

logread -f &
app stop gpsPublish
app start gpsPublish

" i have an error that explain that some of my importations are not used" --> can you post the error in build console?

"how about doing this?

logread -f &
app stop gpsPublish
app start gpsPublish"

I have the same results. When i don’t add “grep gpsPublish”, i also always have :
Dec 10 15:04:35 swi-mdm9x15 user.debug kernel: [ 1440.956233] NMEA read driver miss interrupt, abandon current buff
However it is not specific to this application. I also must say that it not the only app where I met this problem (not any LE_INFO but no errors).

For the error in the build console: i replace all the component init with a single LE_INFO and here is the result when i try to mkapp :

I guess it is a normal behaviour, when you define a c fonction above you have to use it in the component_init…

Suggest you trying with the simple helloworld command.

For the compilation error, you have to add
-Wno-error=unused-function

Otherwise the warning will be treated as error

Thanks for your quick answers.

What do you mean by “helloworld command” ? if you mean the helloworld exemple app, i already tried it and it works just fine.

“For the compilation error, you have to add
-Wno-error=unused-function”

How do you write it ?

then why helloworld application is working fine but not for your application?
Maybe you can port those code to helloworld so that you can know where is the place that makes your application cannot print log.

Here is how I write it (-C -Wno-error=unused-function) in Developer studio:

22:40:55 **** Incremental Build of configuration Target_Legato_Debug for project hello7 ****
make -C Target_Legato_Debug all 
make: Entering directory `/home/owner/legato/workspace/hello7/Target_Legato_Debug'
cd ..;mkapp -t wp76xx -o Target_Legato_Debug -w Target_Legato_Debug -i "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/interfaces/atServices" -i "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/interfaces/airVantage/legacy" -i "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/interfaces/watchdog" -i "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/interfaces/portService" -i "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/interfaces/supervisor" -i "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/interfaces/logDaemon" -i "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/interfaces/positioning" -i "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/interfaces/secureStorage" -i "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/interfaces" -i "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/interfaces/wifi" -i "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/interfaces/modemServices" -i "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/interfaces/airVantage" -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/components/dataConnectionService/platformAdaptor/default" -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/components/test/watchdogChain" -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/apps/platformServices/airVantageConnector" -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/components/airVantage" -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/modules/WiFi/apps/tools/wifi" -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/components/positioning" -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/components/secStore" -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/components/uartMode/platformAdaptor/default" -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/components/portService" -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/components/modemServices/platformAdaptor/default" -s "." -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/components/audio/platformAdaptor/default" -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/apps/tools" -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/components/3rdParty" -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/components/fwupdate/platformAdaptor/default" -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/components/dataConnectionService" -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/modules/WiFi/service" -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/components/airVantage/platformAdaptor/default" -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/components/fwupdate" -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/components/positioning/platformAdaptor/default" -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/components/devMode" -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/components/secStore/platformAdaptor/default" -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/apps/platformServices/mqttClient" -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/components/atServices" -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/components/modemServices" -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/components" -s "/home/owner/legato/packages/legato.framework.19.2.0.wp76xx-201906171244/resources/legato/components/uartMode" -C -g -X -g -L -g -C -Wno-error=unused-function hello7.adef
[1/10] Compiling C source
[2/10] Compiling C source
[3/10] Compiling C source
[4/10] Compiling C source
[5/10] Linking C library
[6/10] Linking C executable
[7/10] Bundling file
[8/10] Bundling file
[9/10] Creating info.properties
[10/10] Packaging app
make: Leaving directory `/home/owner/legato/workspace/hello7/Target_Legato_Debug'

22:40:56 Build Finished (took 1s.200ms)

This morning I tested with differents others app such as wiredSensor and i have exactly the same problem, so i went to the legato tutorial and i did the Extended helloworld app (within a single process) : i also don’t have any LE_INFO. So it works for the most simple hello app application, but not for the extended one with two components. It should at least simplify the problem : it is not related to the gpsPublish app. Furthermore, i have at my disposition a mangoh yellow and a mongoh red, and I have exactly the same behaviour with the two cards.

Do you have any idea with these new elements ?

Here is the logread for the extended hello world app (https://docs.legato.io/19_01/getStartedIPC.html) :

You can port the extended hello app to the working helloworld, then you will know which line makes the problem