Error starting redSensorToCloud on mangOH red

Hi,

Today I tried to run the redSensorToCloud example on my mangOH red. I followed all the directions and was able to succesfully compile and load the app on the target: my mangOH red board + WP7607-1.

Unfortunately when I try to start the app I receive the following error:

Jan  6 00:02:46 | supervisor[836]/supervisor T=main | app.c app_Create() 3167 | Creating app 'redSensorToCloud'
Jan  6 00:02:46 | supervisor[836]/supervisor T=main | proc.c GetFaultAction() 323 | No fault action specified for process 'redSensorToCloud'. Assuming 'ignore'.
Jan  6 00:02:46 | supervisor[836]/supervisor T=main | proc.c GetWatchdogAction() 359 | redSensorToCloud watchdogAction '' in proc section
Jan  6 00:02:46 | supervisor[836]/supervisor T=main | proc.c GetWatchdogAction() 359 | redSensorToCloud watchdogAction '' in proc section
Jan  6 00:02:46 | supervisor[836]/supervisor T=main | app.c app_Start() 3380 | Starting app 'redSensorToCloud'
Jan  6 00:02:46 | supervisor[836]/supervisor T=main | app.c CreateFileLink() 2064 | Created file link '/dev/log' to '/legato/systems/current/appsWriteable/redSensorToCloud/dev/log'.
Jan  6 00:02:46 | supervisor[836]/supervisor T=main | app.c CreateFileLink() 2064 | Created file link '/dev/null' to '/legato/systems/current/appsWriteable/redSensorToCloud/dev/null'.
Jan  6 00:02:46 | supervisor[836]/supervisor T=main | app.c CreateFileLink() 2064 | Created file link '/dev/zero' to '/legato/systems/current/appsWriteable/redSensorToCloud/dev/zero'.
Jan  6 00:02:46 | supervisor[836]/supervisor T=main | app.c CreateFileLink() 2064 | Created file link '/legato/systems/current/lib/liblegato.so' to '/legato/systems/current/appsWriteable/redSensorToCloud/lib/liblegato.so'.
Jan  6 00:02:46 | supervisor[836]/supervisor T=main | app.c CreateFileLink() 2064 | Created file link '/lib/ld-linux.so.3' to '/legato/systems/current/appsWriteable/redSensorToCloud/lib/ld-linux.so.3'.
Jan  6 00:02:46 | supervisor[836]/supervisor T=main | app.c CreateFileLink() 2064 | Created file link '/lib/libc.so.6' to '/legato/systems/current/appsWriteable/redSensorToCloud/lib/libc.so.6'.
Jan  6 00:02:46 | supervisor[836]/supervisor T=main | app.c CreateFileLink() 2064 | Created file link '/lib/libpthread.so.0' to '/legato/systems/current/appsWriteable/redSensorToCloud/lib/libpthread.so.0'.
Jan  6 00:02:46 | supervisor[836]/supervisor T=main | app.c CreateFileLink() 2064 | Created file link '/lib/librt.so.1' to '/legato/systems/current/appsWriteable/redSensorToCloud/lib/librt.so.1'.
Jan  6 00:02:46 | supervisor[836]/supervisor T=main | app.c CreateFileLink() 2064 | Created file link '/lib/libdl.so.2' to '/legato/systems/current/appsWriteable/redSensorToCloud/lib/libdl.so.2'.
Jan  6 00:02:46 | supervisor[836]/supervisor T=main | app.c CreateFileLink() 2064 | Created file link '/lib/libgcc_s.so.1' to '/legato/systems/current/appsWriteable/redSensorToCloud/lib/libgcc_s.so.1'.
Jan  6 00:02:46 | supervisor[836]/supervisor T=main | app.c CreateFileLink() 2064 | Created file link '/lib/libm.so.6' to '/legato/systems/current/appsWriteable/redSensorToCloud/lib/libm.so.6'.
Jan  6 00:02:46 | supervisor[836]/supervisor T=main | app.c CreateFileLink() 2064 | Created file link '/usr/lib/libstdc++.so.6' to '/legato/systems/current/appsWriteable/redSensorToCloud/lib/libstdc++.so.6'.
Jan  6 00:02:46 | supervisor[836]/supervisor T=main | app.c CreateFileLink() 2064 | Created file link '/legato/systems/current/apps/redSensorToCloud/read-only/lib/libComponent_sensorsComponent.so' to '/legato/systems/current/appsWriteabl
Jan  6 00:02:46 | supervisor[836]/supervisor T=main | app.c CreateFileLink() 2064 | Created file link '/legato/systems/current/apps/redSensorToCloud/read-only/lib/libComponent_avPublisherComponent.so' to '/legato/systems/current/appsWrit
Jan  6 00:02:46 | supervisor[836]/supervisor T=main | app.c CreateFileLink() 2064 | Created file link '/legato/systems/current/apps/redSensorToCloud/read-only/bin/redSensorToCloud' to '/legato/systems/current/appsWriteable/redSensorToClo
Jan  6 00:02:46 | supervisor[836]/supervisor T=main | app.c CreateFileLink() 1952 | Could not stat file at '/sys/devices/platform/led.0/led'. No such file or directory
Jan  6 00:02:46 | supervisor[836]/supervisor T=main | app.c CreateFileLink() 2069 | Failed to create link at '/sys/devices/platform/led.0/led' in app 'redSensorToCloud'.
Jan  6 00:02:46 | supervisor[836]/supervisor T=main | app.c app_Start() 3412 | Failed to set Smack rules or set up app area.
Jan  6 00:02:46 | supervisor[836]/supervisor T=main | supervisor.c SigChildHandler() 784 | Reaping unconfigured child process 2086.

I have seen the same problem raised here: Error starting redSensorToCloud [Solved]
I tried the solution proposed by dfrey. Unfortunately, this did not seem to solve my problem. Since I’m out of ideas at this point I would appreciate it if someone could help me, since it is blocking me from continuing development.

For your convenience, I have added some more information:

My /opt/swi folder:

mangoh@mangoh-vm:/opt/swi$ ls
SWI9X07Y_02.25.02.01          y22-ext-wp76xx
y22-ext-SWI9X06Y_02.18.05.00  y22-ext-wp76xx-Release_10.1
y22-ext-SWI9X07Y_02.18.06.00  y22-ext-wp77xx
y22-ext-SWI9X07Y_02.25.02.01  y22-ext-wp77xx-Release_9.1
y22-ext-SWI9X15Y_07.13.05.00  y22-ext-wp85
y22-ext-wp750x                y22-ext-wp85-wp750x-Release_16.1
mangoh@mangoh-vm:/opt/swi$ 

Legato AF version:

mangoh@mangoh-vm:~/legato_framework$ cat legato/version
18.10.3

Legato target version:

root@swi-mdm9x28-wp:~# legato version
18.10.3_0b50331a9f4d0ecc0fd816c2a1300436_modified
root@swi-mdm9x28-wp:~# 

Any help is appreciated. Greetings, Stefan

Output for ls /opt/swi/y22-ext-wp76xx -lha:

mangoh@mangoh-vm:~/legato_framework$ ls /opt/swi/y22-ext-wp76xx -lha
lrwxrwxrwx 1 root root 28 Mar 18 15:32 /opt/swi/y22-ext-wp76xx -> y22-ext-SWI9X07Y_02.25.02.01

Nobody has a solution? I will unfortunately have to cancel the project if this is not solved :confused:

A painful process I know - but perhaps it’s worth re-running through the build process (effectively a full rebuild) with a careful eye on current/correct/matching versions and on any faults thrown during any of the intermediary steps. (I have personally not encountered this issue).

Best of luck.

Hi, thank you for your answer.

By a full rebuild, do you mean a rebuild of the MangOH VM or a rebuild of the redSensorToCloud application?

I would recommend a full rebuild - ensuring you have the most recent versions/releases.
While I did not encounter your issue I had others and this process resolved them for me.

I rebuilt using the latest, Legato Distro 18.10.3 and for me the WP77xx and double-checking all matching versions. Carefully eyeballing the output of every build/make/compile step to ensure no errors were thrown that I had missed before moving on to the next step.

I will try that, thanks for the suggestion. Any advice on how to make sure I have the most recent versions / releases of everything? I am new to linux and legato has been quite the learningcurve to say the least.

Other thing to notice, it has only been this specific app that has been causing issues. All the other examples seem to run fine. I am just really worried that if I can not fix this error it will become a problem in a later stage of development.

I have restarted with a new VM and I have the same problem.

If anyone is still having this issue, please try with the latest release for your module and the associated toolchain. Then build against Legato 19.01. If that doesn’t work, post the full output of dmesg after a reboot has completed.

That solved the problem. Thank you !

Hello
I´m executing RedSensorToCloud with firmware version in the module 2.16 and Legato Framework 18.09 but application stops .

In the pass I have run this application without problems but with a previous Legato Framework. 18.05

This is the error I have related with the led service.
May 23 08:54:17 | supervisor[783]/supervisor T=main | app.c CreateFileLink() 1507 | Could not stat file at ‘/sys/devices/platform/led.0/led’. No such file or directory
May 23 08:54:17 | supervisor[783]/supervisor T=main | app.c CreateFileLink() 1624 | Failed to create link at ‘/sys/devices/platform/led.0/led’ in app ‘redSensorToCloud’.
May 23 08:54:17 | supervisor[783]/supervisor T=main | app.c app_Start() 2954 | Failed to set Smack rules or set up app area.

I have add the LedService by pointing the directory

  1. Right click on the API’s directory under the new project.
  2. Add the LedService by pointing the directory.

When I dowload the application to the module WP7702 I receive the message that "Legato Framework version used in application 18.09.01 and running on the devices 18.06.1 are not the same. "
In SierraWirless source latest firmware version for the module I have is 2.16
Jan 6 01:21:03 | supervisor[779]/supervisor T=main | app.c CreateFileLink() 1507 | Could not stat file at ‘/sys/devices/platform/led.0/led’. No such file or directory
Jan 6 01:21:03 | supervisor[779]/supervisor T=main | app.c CreateFileLink() 1624 | Failed to create link at ‘/sys/devices/platform/led.0/led’ in app ‘redSensorToCloud’.
Jan 6 01:21:03 | supervisor[779]/supervisor T=main | app.c app_Start() 2954 | Failed to set Smack rules or set up app area.

mangoh@mangoh-vm:~/legato_framework$ ls -al .repo
total 36
drwxrwxr-x 7 mangoh mangoh 4096 Nov 8 2018 .
drwxrwxr-x 4 mangoh mangoh 4096 May 8 2018 …
drwxrwxr-x 4 mangoh mangoh 4096 May 8 2018 manifests
drwxrwxr-x 10 mangoh mangoh 4096 Jan 22 23:36 manifests.git
lrwxrwxrwx 1 mangoh mangoh 44 Nov 8 2018 manifest.xml -> manifests/legato/releases/18.09.0/legato.xml
-rw-rw-r-- 1 mangoh mangoh 888 Jan 22 17:39 project.list
drwxrwxr-x 31 mangoh mangoh 4096 Nov 8 2018 project-objects
drwxrwxr-x 4 mangoh mangoh 4096 May 8 2018 projects
drwxrwxr-x 7 mangoh mangoh 4096 May 8 2018 repo
-rw-rw-r-- 1 mangoh mangoh 1507 Jan 22 17:39 .repo_fetchtimes.json

ATI3
Manufacturer: Sierra Wireless, Incorporated
Model: WP7702
Revision: SWI9X06Y_02.16.06.00 7605a6 jenkins 2018/06/20 17:56:12
IMEI: 352653090132077
IMEI SV: 2
FSN: VU829285460610
+GCAP: +CGSM,+DS

This error the log I have
May 23 08:54:17 | supervisor[783]/supervisor T=main | app.c app_Start() 2926 | Starting app ‘redSensorToCloud’
May 23 08:54:17 | supervisor[783]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link ‘/dev/log’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/dev/log’.
May 23 08:54:17 | supervisor[783]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link ‘/dev/null’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/dev/null’.
May 23 08:54:17 | supervisor[783]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link ‘/dev/zero’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/dev/zero’.
May 23 08:54:17 | supervisor[783]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link ‘/legato/systems/current/lib/liblegato.so’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/lib/liblegato.so’.
May 23 08:54:17 | supervisor[783]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link ‘/lib/ld-linux.so.3’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/lib/ld-linux.so.3’.
May 23 08:54:17 | supervisor[783]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link ‘/lib/libc.so.6’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/lib/libc.so.6’.
May 23 08:54:17 | supervisor[783]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link ‘/lib/libpthread.so.0’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/lib/libpthread.so.0’.
May 23 08:54:17 | supervisor[783]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link ‘/lib/librt.so.1’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/lib/librt.so.1’.
May 23 08:54:17 | supervisor[783]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link ‘/lib/libdl.so.2’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/lib/libdl.so.2’.
May 23 08:54:17 | supervisor[783]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link ‘/lib/libgcc_s.so.1’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/lib/libgcc_s.so.1’.
May 23 08:54:17 | supervisor[783]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link ‘/lib/libm.so.6’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/lib/libm.so.6’.
May 23 08:54:17 | supervisor[783]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link ‘/usr/lib/libstdc++.so.6’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/lib/libstdc++.so.6’.
May 23 08:54:17 | supervisor[783]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link ‘/legato/systems/current/apps/redSensorToCloud/read-only/lib/libComponent_sensorsComponent.so’ to '/legato/systems/current/appsWriteabl
May 23 08:54:17 | supervisor[783]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link ‘/legato/systems/current/apps/redSensorToCloud/read-only/lib/libComponent_avPublisherComponent.so’ to '/legato/systems/current/appsWrit
May 23 08:54:17 | supervisor[783]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link ‘/legato/systems/current/apps/redSensorToCloud/read-only/bin/redSensorToCloud’ to '/legato/systems/current/appsWriteable/redSensorToClo
May 23 08:54:17 | supervisor[783]/supervisor T=main | app.c CreateFileLink() 1507 | Could not stat file at ‘/sys/devices/platform/led.0/led’. No such file or directory
May 23 08:54:17 | supervisor[783]/supervisor T=main | app.c CreateFileLink() 1624 | Failed to create link at ‘/sys/devices/platform/led.0/led’ in app ‘redSensorToCloud’.
May 23 08:54:17 | supervisor[783]/supervisor T=main | app.c app_Start() 2954 | Failed to set Smack rules or set up app area.
May 23 08:54:17 | supervisor[783]/supervisor T=main | supervisor.c SigChildHandler() 783 | Reaping unconfigured child process 3608.

I have update rebuild the system with the latest version but the result is the same .

Any idea?

Thanks
Isabel

Hello

I have “RedSensorToCloud” already runnig but building the application with commands. It generates the file " mangoOH.wp77xx.update"

This application has dependencies with “LedService”, “DataHub” and “Battery”. When downloading the application in the WP7702 appears these application running.

There should be some documentation about that. Before “RedSensortoCloud” didn´t have these dependencies.

When trying to complile using developer Studio updating the Developer estudio to Legato Frameworks 18.09 I have follow these indications

I generate all the files without issue but they don´t run OK . File “mangoOH.wp77xx.update” generate by developer studio only generate the “Datahub” when is downloading on the modules. Then I have add “Led Service” and “BatterY” but application does not run anyway. I doný know why.

When creating the project I import the Project from a existing code and then I browse from mangoh/MangoOH.

Previously I have configuree the DS environment for MangOH projects.
In the Window > Preferences > C/C++ > Build > Environment , add:

  1. a MANGOH_ROOT variable pointing to the MangOH clone (i.e. /home/mangoh/mangOH )
  2. a MANGOH_BOARD variable equals to the board you’re targeting (either RED or GREEN ).

I would like to run the samples with “Developer Studio” and changes on the basics application and dependencies should be documented.

Thanks

Isabel

Hello

I have also add the new app dependencies defined in sdef file of MangOH.sdef adding the appropriate paths in the project properties > C/C++ build > Settings dialog, in Interfaces or Dependencies sections but still i have the same problem. I ´m still missing something.

${CURDIR}/interfaces
$LEGATO_ROOT/apps/sample/dataHub

${CURDIR}/apps/BatteryService

Components
"{CURDIR}/components" {CURDIR}/apps/RedSensorToCloud
“${CURDIR}/apps/BatteryService/battery”

“${CURDIR}/apps/RedSensorToCloud”

Thanks
Isabel