Mosquitto+AirVatage+MqttClient on mangOH Green with wp7607?

okay, I compiled and installed the file you say:

Now? On the guide i read it:


But I did not understand how to see something…

I have a problem: when I update the mqtt file I can’t find the CAN driver and when I update the generic update file I can’t see mqtt apps. So I think that it is not the correct way or not?

Now I have this problem:
image

error in the log:

didn’t you already make the CAN driver work before?

yes I see them in if config (no problem :grinning:), but after these mqtt experiments, file can_iot.ko is not load…

mqtt is just an application, no idea why it will affect the CAN driver.

how do you compile the mqtt sample?

root@swi-mdm9x28-wp:~# logread -f
Apr 12 15:54:22 swi-mdm9x28-wp user.warn Legato: -WRN- | supervisor[32272]/supervisor T=main | proc.c GetWatchdogAction() 359 | kmod@0 watchdogAction ‘’ in proc section
Apr 12 15:54:22 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c app_Start() 3420 | Starting app ‘tools’
Apr 12 15:54:22 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/lib/libComponent_uartMode.so’ to '/legato/systems/current/appsWriteable/tools/lib/libC
Apr 12 15:54:22 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/lib/libComponent_secstore.so’ to '/legato/systems/current/appsWriteable/tools/lib/libC
Apr 12 15:54:22 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/lib/libComponent_cm.so’ to '/legato/systems/current/appsWriteable/tools/lib/libCompone
Apr 12 15:54:22 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/lib/libComponent_moduleLoad.so’ to '/legato/systems/current/appsWriteable/tools/lib/li
Apr 12 15:54:22 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/lib/libComponent_fwupdate.so’ to '/legato/systems/current/appsWriteable/tools/lib/libC
Apr 12 15:54:22 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/lib/libComponent_pmtool.so’ to '/legato/systems/current/appsWriteable/tools/lib/libCom
Apr 12 15:54:22 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/lib/libComponent_le_pa_uartMode_default.so’ to '/legato/systems/current/appsWriteable/
Apr 12 15:54:22 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/lib/libComponent_swiQmi.so’ to '/legato/systems/current/appsWriteable/tools/lib/libCom
Apr 12 15:54:22 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/lib/libComponent_le_pa_uartMode.so’ to '/legato/systems/current/appsWriteable/tools/li
Apr 12 15:54:22 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/lib/libComponent_gnss.so’ to '/legato/systems/current/appsWriteable/tools/lib/libCompo
Apr 12 15:54:22 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/bin/cm’ to ‘/legato/systems/current/appsWriteable/tools/bin/cm’: Already exists
Apr 12 15:54:22 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/bin/gnss’ to ‘/legato/systems/current/appsWriteable/tools/bin/gnss’: Already exists
Apr 12 15:54:22 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/bin/kmod’ to ‘/legato/systems/current/appsWriteable/tools/bin/kmod’: Already exists
Apr 12 15:54:22 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/bin/fwupdate’ to ‘/legato/systems/current/appsWriteable/tools/bin/fwupdate’: Already e
Apr 12 15:54:22 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/bin/secstore’ to ‘/legato/systems/current/appsWriteable/tools/bin/secstore’: Already e
Apr 12 15:54:22 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/bin/uartMode’ to ‘/legato/systems/current/appsWriteable/tools/bin/uartMode’: Already e
Apr 12 15:54:22 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/bin/pmtool’ to ‘/legato/systems/current/appsWriteable/tools/bin/pmtool’: Already exist
Apr 12 15:54:22 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/lib/libComponent_swiQmi.so’ to '/legato/systems/current/appsWriteable/tools/lib/libCom
Apr 12 15:54:22 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/lib/libComponent_le_pa_uartMode.so’ to '/legato/systems/current/appsWriteable/tools/li
Apr 12 15:54:22 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/scripts/cm’ to ‘/legato/systems/current/appsWriteable/tools/scripts/cm’: Already exist
Apr 12 15:54:22 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | resourceLimits.c SetRLimitValue() 282 | Setting resource limit maxCoreDumpFileBytes to value 8192.
Apr 12 15:54:22 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | resourceLimits.c SetRLimitValue() 282 | Setting resource limit maxFileBytes to value 90112.
Apr 12 15:54:22 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | resourceLimits.c SetRLimitValue() 282 | Setting resource limit maxLockedMemoryBytes to value 8192.
Apr 12 15:54:22 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | resourceLimits.c SetRLimitValue() 282 | Setting resource limit maxFileDescriptors to value 256.
Apr 12 15:54:22 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | resourceLimits.c SetRLimitValue() 282 | Setting resource limit maxMQueueBytes to value 512.
Apr 12 15:54:22 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | resourceLimits.c SetRLimitValue() 282 | Setting resource limit maxThreads to value 20.
Apr 12 15:54:22 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | resourceLimits.c SetRLimitValue() 282 | Setting resource limit maxQueuedSignals to value 100.
Apr 12 15:54:22 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | proc.c proc_Start() 1390 | Starting process ‘kmod@0’ with pid 719
Apr 12 15:54:22 swi-mdm9x28-wp user.info Legato: INFO | supervisor[719]/supervisor T=main | proc.c proc_Start() 1355 | Execing ‘bin/kmod’
Apr 12 15:54:22 swi-mdm9x28-wp user.warn Legato: -WRN- | UNKNOWN[719]/framework T=main | LE_FILENAME le_ref_CreateMap() 149 | Map name ‘refle_kernelModule_ClientHandlers’ truncated to ‘refle_kernelModule_ClientHandle’.
Apr 12 15:54:22 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | kernelModules.c le_kernelModule_Unload() 1515 | Requested to unload module ‘can_iot.ko’.
Apr 12 15:54:22 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | kernelModules.c le_kernelModule_Unload() 1557 | Unloading module, ‘can_iot.ko’, was successful.
Apr 12 15:54:22 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | proc.c proc_SigChildHandler() 2051 | Process ‘kmod@0’ (PID: 719) has exited with exit code 0.
Apr 12 15:54:22 swi-mdm9x28-wp user.debug kernel: [13720.803693] gpio_sync_ri: RI owner is Modem
Apr 12 15:54:22 swi-mdm9x28-wp user.debug kernel: [13720.803717] gpio_map_name_to_num: find GPIO 16
Apr 12 15:54:22 swi-mdm9x28-wp user.debug kernel: [13720.803728] export_store: Export GPIO: 16
Apr 12 15:54:22 swi-mdm9x28-wp user.debug kernel: [13720.803743] gpio-16 (sysfs): gpiod_request: status -16
Apr 12 15:54:22 swi-mdm9x28-wp user.debug kernel: [13720.803753] export_store: Status -16
Apr 12 15:54:22 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c app_StopComplete() 4686 | app ‘tools’ has stopped.
Apr 12 15:54:22 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | apps.c DeactivateAppContainer() 374 | Application ‘tools’ has stopped.
Apr 12 15:54:22 swi-mdm9x28-wp user.warn Legato: -WRN- | supervisor[32272]/supervisor T=main | proc.c GetWatchdogAction() 359 | mux@0 watchdogAction ‘’ in proc section
Apr 12 15:54:22 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c app_Start() 3420 | Starting app ‘muxCtrlTools’
Apr 12 15:54:22 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link ‘/legato/systems/current/apps/muxCtrlTools/read-only/lib/libComponent_mux.so’ to '/legato/systems/current/appsWriteable/muxCtrlTools
Apr 12 15:54:22 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link ‘/legato/systems/current/apps/muxCtrlTools/read-only/bin/mux’ to ‘/legato/systems/current/appsWriteable/muxCtrlTools/bin/mux’: Alrea
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | resourceLimits.c SetRLimitValue() 282 | Setting resource limit maxCoreDumpFileBytes to value 8192.
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | resourceLimits.c SetRLimitValue() 282 | Setting resource limit maxFileBytes to value 90112.
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | resourceLimits.c SetRLimitValue() 282 | Setting resource limit maxLockedMemoryBytes to value 8192.
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | resourceLimits.c SetRLimitValue() 282 | Setting resource limit maxFileDescriptors to value 256.
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | resourceLimits.c SetRLimitValue() 282 | Setting resource limit maxMQueueBytes to value 512.
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | resourceLimits.c SetRLimitValue() 282 | Setting resource limit maxThreads to value 20.
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | resourceLimits.c SetRLimitValue() 282 | Setting resource limit maxQueuedSignals to value 100.
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | proc.c proc_Start() 1390 | Starting process ‘mux@0’ with pid 723
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[723]/supervisor T=main | proc.c proc_Start() 1355 | Execing ‘bin/mux’
Apr 12 15:54:23 swi-mdm9x28-wp user.warn Legato: -WRN- | mux@0[723]/framework T=main | LE_FILENAME le_ref_CreateMap() 149 | Map name ‘refmangoh_muxCtrl_ClientHandlers’ truncated to ‘refmangoh_muxCtrl_ClientHandler’.
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | proc.c proc_SigChildHandler() 2051 | Process ‘mux@0’ (PID: 723) has exited with exit code 0.
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c app_StopComplete() 4686 | app ‘muxCtrlTools’ has stopped.
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | apps.c DeactivateAppContainer() 374 | Application ‘muxCtrlTools’ has stopped.
Apr 12 15:54:23 swi-mdm9x28-wp user.warn Legato: -WRN- | supervisor[32272]/supervisor T=main | proc.c GetWatchdogAction() 359 | mux@0 watchdogAction ‘’ in proc section
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c app_Start() 3420 | Starting app ‘muxCtrlTools’
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link ‘/legato/systems/current/apps/muxCtrlTools/read-only/lib/libComponent_mux.so’ to '/legato/systems/current/appsWriteable/muxCtrlTools
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link ‘/legato/systems/current/apps/muxCtrlTools/read-only/bin/mux’ to ‘/legato/systems/current/appsWriteable/muxCtrlTools/bin/mux’: Alrea
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | resourceLimits.c SetRLimitValue() 282 | Setting resource limit maxCoreDumpFileBytes to value 8192.
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | resourceLimits.c SetRLimitValue() 282 | Setting resource limit maxFileBytes to value 90112.
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | resourceLimits.c SetRLimitValue() 282 | Setting resource limit maxLockedMemoryBytes to value 8192.
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | resourceLimits.c SetRLimitValue() 282 | Setting resource limit maxFileDescriptors to value 256.
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | resourceLimits.c SetRLimitValue() 282 | Setting resource limit maxMQueueBytes to value 512.
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | resourceLimits.c SetRLimitValue() 282 | Setting resource limit maxThreads to value 20.
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | resourceLimits.c SetRLimitValue() 282 | Setting resource limit maxQueuedSignals to value 100.
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | proc.c proc_Start() 1390 | Starting process ‘mux@0’ with pid 727
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[727]/supervisor T=main | proc.c proc_Start() 1355 | Execing ‘bin/mux’
Apr 12 15:54:23 swi-mdm9x28-wp user.warn Legato: -WRN- | mux@0[727]/framework T=main | LE_FILENAME le_ref_CreateMap() 149 | Map name ‘refmangoh_muxCtrl_ClientHandlers’ truncated to ‘refmangoh_muxCtrl_ClientHandler’.
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | proc.c proc_SigChildHandler() 2051 | Process ‘mux@0’ (PID: 727) has exited with exit code 0.
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c app_StopComplete() 4686 | app ‘muxCtrlTools’ has stopped.
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | apps.c DeactivateAppContainer() 374 | Application ‘muxCtrlTools’ has stopped.
Apr 12 15:54:23 swi-mdm9x28-wp user.warn Legato: -WRN- | supervisor[32272]/supervisor T=main | proc.c GetWatchdogAction() 359 | kmod@0 watchdogAction ‘’ in proc section
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c app_Start() 3420 | Starting app ‘tools’
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/lib/libComponent_uartMode.so’ to '/legato/systems/current/appsWriteable/tools/lib/libC
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/lib/libComponent_secstore.so’ to '/legato/systems/current/appsWriteable/tools/lib/libC
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/lib/libComponent_cm.so’ to '/legato/systems/current/appsWriteable/tools/lib/libCompone
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/lib/libComponent_moduleLoad.so’ to '/legato/systems/current/appsWriteable/tools/lib/li
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/lib/libComponent_fwupdate.so’ to '/legato/systems/current/appsWriteable/tools/lib/libC
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/lib/libComponent_pmtool.so’ to '/legato/systems/current/appsWriteable/tools/lib/libCom
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/lib/libComponent_le_pa_uartMode_default.so’ to '/legato/systems/current/appsWriteable/
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/lib/libComponent_swiQmi.so’ to '/legato/systems/current/appsWriteable/tools/lib/libCom
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/lib/libComponent_le_pa_uartMode.so’ to '/legato/systems/current/appsWriteable/tools/li
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/lib/libComponent_gnss.so’ to '/legato/systems/current/appsWriteable/tools/lib/libCompo
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/bin/cm’ to ‘/legato/systems/current/appsWriteable/tools/bin/cm’: Already exists
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/bin/gnss’ to ‘/legato/systems/current/appsWriteable/tools/bin/gnss’: Already exists
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/bin/kmod’ to ‘/legato/systems/current/appsWriteable/tools/bin/kmod’: Already exists
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/bin/fwupdate’ to ‘/legato/systems/current/appsWriteable/tools/bin/fwupdate’: Already e
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/bin/secstore’ to ‘/legato/systems/current/appsWriteable/tools/bin/secstore’: Already e
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/bin/uartMode’ to ‘/legato/systems/current/appsWriteable/tools/bin/uartMode’: Already e
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/bin/pmtool’ to ‘/legato/systems/current/appsWriteable/tools/bin/pmtool’: Already exist
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/lib/libComponent_swiQmi.so’ to '/legato/systems/current/appsWriteable/tools/lib/libCom
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/lib/libComponent_le_pa_uartMode.so’ to '/legato/systems/current/appsWriteable/tools/li
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link ‘/legato/systems/current/apps/tools/read-only/scripts/cm’ to ‘/legato/systems/current/appsWriteable/tools/scripts/cm’: Already exist
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | resourceLimits.c SetRLimitValue() 282 | Setting resource limit maxCoreDumpFileBytes to value 8192.
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | resourceLimits.c SetRLimitValue() 282 | Setting resource limit maxFileBytes to value 90112.
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | resourceLimits.c SetRLimitValue() 282 | Setting resource limit maxLockedMemoryBytes to value 8192.
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | resourceLimits.c SetRLimitValue() 282 | Setting resource limit maxFileDescriptors to value 256.
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | resourceLimits.c SetRLimitValue() 282 | Setting resource limit maxMQueueBytes to value 512.
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | resourceLimits.c SetRLimitValue() 282 | Setting resource limit maxThreads to value 20.
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | resourceLimits.c SetRLimitValue() 282 | Setting resource limit maxQueuedSignals to value 100.
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | proc.c proc_Start() 1390 | Starting process ‘kmod@0’ with pid 731
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[731]/supervisor T=main | proc.c proc_Start() 1355 | Execing ‘bin/kmod’
Apr 12 15:54:23 swi-mdm9x28-wp user.warn Legato: -WRN- | UNKNOWN[731]/framework T=main | LE_FILENAME le_ref_CreateMap() 149 | Map name ‘refle_kernelModule_ClientHandlers’ truncated to ‘refle_kernelModule_ClientHandle’.
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | kernelModules.c le_kernelModule_Load() 1451 | Requested to load module ‘can_iot.ko’.
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | kernelModules.c ExecuteCommand() 211 | Execute ‘/sbin/insmod /legato/systems/current/modules/can_iot.ko’
Apr 12 15:54:23 swi-mdm9x28-wp user.crit Legato: CRT | supervisor[32272]/supervisor T=main | kernelModules.c ExecuteCommand() 248 | /sbin/insmod exited with error code 17.
Apr 12 15:54:23 swi-mdm9x28-wp user.err Legato: =ERR= | supervisor[32272]/supervisor T=main | kernelModules.c le_kernelModule_Load() 1489 | Load module, ‘can_iot.ko’, failed. (LE_FAULT)
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | proc.c proc_SigChildHandler() 2051 | Process ‘kmod@0’ (PID: 731) has exited with exit code 1.
Apr 12 15:54:23 swi-mdm9x28-wp user.warn Legato: -WRN- | supervisor[32272]/supervisor T=main | app.c app_SigChildHandler() 4015 | Process ‘kmod@0’ in app ‘tools’ faulted: Ignored.
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | app.c app_StopComplete() 4686 | app ‘tools’ has stopped.
Apr 12 15:54:23 swi-mdm9x28-wp user.info Legato: INFO | supervisor[32272]/supervisor T=main | apps.c DeactivateAppContainer() 374 | Application ‘tools’ has stopped.
app status
Apr 12 16:06:2

This is the log but i can’t understand what proble were born…

how do you compile the mqtt sample?
using mkapp?

I did it (mksys):

okay I solved the problem of load module only with a powercycle :ok_hand:

I was able to see on two terminals that Mosquitto works: publishing on one terminal, I see the publication on the other. In your opinion, how can I do to set up a PC experiment - MangOH, or publish a message from the PC I see it then in ssh?

no idea, I have never used Mosquitto before.

I have set up a configuration with MQTT client on mangOH, mosquitto server on PC, mosquitto client on same PC. Can publish from mangOH client and receive on PC client.

It’s a Linux PC though. You have to set up the iptables on LInux to allow the mangOH to send to it. Not familiar with how you do it on Windows.

I’m using Linux too :grin:

@pinst can you say me how you configured MQTT Client on mangOH and made Mosquitto on Ubuntu PC and mangOH in a communication pub/sub?

I am not using Sierra Wireless’ MQTT Client, I am using the paho MQTT library within my application.

Here is the mosquitto server receiving a message from the paho standalone client program. Unfortunately I’m not set up to run my application on the SW at this time.

$ /snap/mosquitto/current/usr/sbin/mosquitto -v -c /snap/mosquitto/current/default_config.conf
1618337359: mosquitto version 1.6.14 starting
1618337359: Config loaded from /snap/mosquitto/current/default_config.conf.
1618337359: Opening ipv4 listen socket on port 1883.
1618337359: Opening ipv6 listen socket on port 1883.
1618337359: mosquitto version 1.6.14 running
1618337682: New connection from 127.0.0.1 on port 1883.
1618337682: New client connected from 127.0.0.1 as paho-c-pub (p2, c1, k10).
1618337682: No will message specified.
1618337682: Sending CONNACK to paho-c-pub (0, 0)
1618337682: Received PUBLISH from paho-c-pub (d0, q0, r0, m0, 'mytopic', ... (5 bytes))
1618337682: Received DISCONNECT from paho-c-pub
1618337682: Client paho-c-pub disconnected.
$ paho_c_pub -c localhost -t mytopic -m hello

I have errors…

@pinst Sorry for the question, but how can I do to use paho? Did you simply downloaded it? I don’t understand how to do it…for me is a good thing to have mosquitto broker and paho client

Your error above is because there is already a server running. If you did an install of mosquitto the server will come up after boot. For my example I killed the existing server so I could start a new one and show the output.

The C iibrary source can be found under “MQTT Clients” on this page:

https://www.eclipse.org/paho/index.php?page=downloads.php