简体中文界面。帖子、指南及政策正文保留原文;未对原文作自动翻译。

My Universal Robots UR5e dashboard believes an error response

OmarArcher0404 · 2026年8月12日 17:36 UTC

回复讨论
OM
OmarArcher0404
I'm fixing our controller availability reporting dashboard for Universal Robots UR5e in a maintenance area comparing software environments. Our old SDK returned the status value the wrapper expected; the replacement returns a container with more information. Failed requests can now look like plausible status readings. We use an inspection coupon as a reference, but the problem is interpreting the response.

21 条回复

LE
LeahBrooks0843

Got sanitized success and failure examples? Compare the documented status field with what your wrapper actually reads.

17
OM
OmarArcher0404

@LeahBrooks0843 Found it. We're checking whether the outer container is nonempty. Our error response passes without containing a valid status. Brilliant.

20
LE
LeahBrooks0843

Replay both offline with a version-specific parser. Failure should return unavailable. That pair should cover the adapter.

20
JA
JamieChan1078

Two examples establish the reported bug, but they don't cover an adapter. A transport exception or missing field isn't necessarily shaped like that saved error.

20
LE
LeahBrooks0843

Fair point; I overstated coverage. Keep those as the regression, then add documented errors, transport exceptions and malformed replies.

19
OM
OmarArcher0404

@LeahBrooks0843 Can our screen just say unavailable, but retain the reason?

22
LE
LeahBrooks0843

@OmarArcher0404 Yes. One unavailable display state, distinct reasons in the result.

15
TO
TobyBaker0492

My screen kept the last good value after disconnect. People read it as current until we added an explicit unavailable label.

9
OM
OmarArcher0404

Ours does that too. No old-observation label. Fixing the parser would still leave that misleading value sitting there.

8
RO
RobinBennett0773

Why keep it? Wouldn't clearing an old mode be less confusing?

13
LE
LeahBrooks0843

Clearing it's fine. Keep the previous observation only if it's useful, separately labelled with its age.

20
OM
OmarArcher0404

@LeahBrooks0843 I'll use unavailable in our main field. Previous observations can sit in labelled diagnostic detail; that's clearer here.

16
JA
JamieChan1078

@LeahBrooks0843 How do you select the parser? Guessing from reply shape brings the same mistake back.

9
OM
OmarArcher0404

Both of our environments identify the SDK they load. That gives me an explicit selection input instead of guessing from a response.

15
LE
LeahBrooks0843

@OmarArcher0404 Use those IDs. Reject unknown versions clearly, and don't switch parsers just because an unexpected reply resembles another supported format.

7
RO
RobinBennett0773

Empty optional details, valid status. Would strict parsing reject that too?

14
LE
LeahBrooks0843

@RobinBennett0773 Optional can be absent where the contract allows. Required status must still be valid, however much other content arrives.

21
TO
TobyBaker0492

@LeahBrooks0843 My success fixture had empty optional details. Keeping it stopped us tightening validation until perfectly valid answers failed.

4
OM
OmarArcher0404

@LeahBrooks0843 Those will be separate cases in my replay. The old nonempty check flattened both questions into one boolean, which explains quite a lot.

8
OM
OmarArcher0404

I've got an answer to the design question: parse the documented status for the identified SDK and keep failures unavailable. I'll call the display fix complete only when our offline examples show that behaviour on screen.

17

参与讨论

欢迎来到 Application Robot

所有人都可以阅读论坛。登录或注册后即可发起讨论、回复或上传照片。

忘记密码?

注册账号即表示你同意我们的 使用条款 社区准则。请阅读我们的 隐私政策 ,了解我们如何处理你的信息。