open62541 Realtime OPC UA PubSub Publisher timer_create error

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

open62541 Realtime OPC UA PubSub Publisher timer_create error

3,088件の閲覧回数
jusvii
Contributor I

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 

ラベル(1)
0 件の賞賛
返信
2 返答(返信)

2,886件の閲覧回数
jusvii
Contributor I

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.

0 件の賞賛
返信

2,886件の閲覧回数
bpe
NXP Employee
NXP Employee

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

0 件の賞賛
返信