Hello,
I have been trying to get some time measurements running open62541 pubsub_realtime example on LS1028ARDB, LS1028A BSP, but it fails on timer_create with errno 95. Result print:
[2019-10-29 10:13:51.445 (UTC+0000)] warn/server Username/Password configured, but no encrypting SecurityPolicy. This can leak credentials on the network.
[2019-10-29 10:13:51.445 (UTC+0000)] info/userland PubSub channel requested
[2019-10-29 10:13:51.445 (UTC+0000)] info/server Open PubSub ethernet connection.
[2019-10-29 10:13:51.445 (UTC+0000)] info/userland Adding a publisher with a cycle time of 0.250000 milliseconds
[2019-10-29 10:13:51.445 (UTC+0000)] warn/userland Failed to create a system event with code -1
errno: 95, Operation not supported
[2019-10-29 10:13:51.445 (UTC+0000)] info/network TCP network layer listening on opc.tcp://localhost:4840/
^C[2019-10-29 10:14:02.706 (UTC+0000)] info/server received ctrl-c
[2019-10-29 10:14:02.706 (UTC+0000)] info/network Shutting down the TCP network layer
[2019-10-29 10:14:02.706 (UTC+0000)] info/server PubSub cleanup was called.
I have tried this on another Linux platforms without this issue.
Link to open62541 example:
open62541/examples/pubsub_realtime at master · open62541/open62541 · GitHub
Sorry, it is not part of the NXP BSP, but I think I solved the problem. I was using clockid MONOTONIC_RAW on timer_create() and changing that to CLOCK_REALTIME seem to have solved my issue.
Can you please clarify whether or not the problematic software is part of the NXP SDK/BSP you are working with (included in any ready configuration/package list and/or mentioned in the SDK/BSP documentation) or you obtained it from a publicly
available resource?
Regards,
Platon