Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unrecognised INFO response #2

Open
elpollouk opened this issue Feb 8, 2020 · 5 comments
Open

Unrecognised INFO response #2

elpollouk opened this issue Feb 8, 2020 · 5 comments
Labels
bug Something isn't working

Comments

@elpollouk
Copy link
Owner

elpollouk commented Feb 8, 2020

CommandStationError: Unrecognised INFO_RESPONSE, got 62 22 c1 81
    at ELinkCommandStation.<anonymous> (/mnt/data/projects/Itokawa/dist/devices/commandStations/elink.js:233:23)
    at Generator.next (<anonymous>)
    at fulfilled (/mnt/data/projects/Itokawa/dist/devices/commandStations/elink.js:5:58)
@elpollouk
Copy link
Owner Author

Preceded by (after letting laptop sleep):

dcc> 2020-02-08T10:36:45.070Z:ERROR:eLink: Unrecognised message type, got 97
2020-02-08T10:36:45.073Z:ERROR:eLink: Failed sending heartbeat request: CommandStationError: Unrecognised message type, got 97
2020-02-08T10:36:45.075Z:ERROR:eLink: CommandStationError: Unrecognised message type, got 97
    at ELinkCommandStation.<anonymous> (/mnt/data/projects/Itokawa/dist/devices/commandStations/elink.js:200:27)
    at Generator.next (<anonymous>)
    at fulfilled (/mnt/data/projects/Itokawa/dist/devices/commandStations/elink.js:5:58)
(node:975) UnhandledPromiseRejectionWarning: CommandStationError: Unrecognised message type, got 97
    at ELinkCommandStation.<anonymous> (/mnt/data/projects/Itokawa/dist/devices/commandStations/elink.js:200:27)
    at Generator.next (<anonymous>)
    at fulfilled (/mnt/data/projects/Itokawa/dist/devices/commandStations/elink.js:5:58)
(node:975) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:975) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

@elpollouk
Copy link
Owner Author

Actual cause is a derailment/short

@elpollouk
Copy link
Owner Author

Debug dump of the error:

2020-04-28T13:13:22.187Z: Sent: 21 24 05
2020-04-28T13:13:22.190Z: Recv: 62 22 40 00
2020-04-28T13:13:27.192Z: Sent: 21 24 05
2020-04-28T13:13:27.194Z: Recv: 62 22 40 00
2020-04-28T13:13:32.199Z: Sent: 21 24 05
2020-04-28T13:13:32.202Z: Recv: 62 22 40 00
2020-04-28T13:13:32.842Z: Recv: 61 00 61
2020-04-28T13:13:32.843Z: Recv: 61 00 61
2020-04-28T13:13:32.844Z: Recv: 61 00 61
2020-04-28T13:13:37.207Z: Sent: 21 24 05

@elpollouk
Copy link
Owner Author

More complete dump:

2020-04-28T13:23:31.140Z: Recv: 62 22 40 00
2020-04-28T13:23:35.557Z: Recv: 61 00 61
2020-04-28T13:23:35.558Z: Recv: 61 00 61
2020-04-28T13:23:35.559Z: Recv: 61 00 61
2020-04-28T13:23:36.142Z: Sent: 21 24 05
2020-04-28T13:23:36.164Z: Recv: 62 22 c1 81
2020-04-28T13:23:51.173Z: Close: /dev/ttyACM0
2020-04-28T13:23:51.473Z: Open: /dev/ttyACM0
2020-04-28T13:23:51.474Z: Sent: 21 24 05
2020-04-28T13:23:51.476Z: Recv: 62 22 c1 81

@elpollouk elpollouk added the bug Something isn't working label Nov 26, 2020
@elpollouk
Copy link
Owner Author

elpollouk commented Feb 28, 2022

Confirmed to be indicating a short circuit. The "clear error" message appears to be [0x21, 0x81, 0xa0] which should be acknowledged with [0x62, 0x22, 0x40] if there is no longer a short.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant