Skip to content
This repository has been archived by the owner on Jun 28, 2021. It is now read-only.

decode doesn't work #3

Open
bbrendon opened this issue Jan 7, 2018 · 3 comments
Open

decode doesn't work #3

bbrendon opened this issue Jan 7, 2018 · 3 comments
Assignees
Labels

Comments

@bbrendon
Copy link

bbrendon commented Jan 7, 2018

I couldn't get --decode to work.

# upb-cli -d PU08044FFF068655C5
Invalid command! Powerline repeater argument can only be 1, 2, or 4 which translates into 2, 4, or 6.

So I tried the example in your documentation and it also doesn't work.

# upb-cli -d 08008708FF2264E
Invalid command! Word count doesn't add up.
# upb-cli -V
1.1.6
# node -v
v7.10.1
@bbrendon
Copy link
Author

bbrendon commented Jan 7, 2018

Well, I removed PU from my string and it worked so I guess maybe something is wrong with the docs?

@DaAwesomeP
Copy link
Owner

DaAwesomeP commented Jan 7, 2018

Unfortunately, it's been many years since I worked with the UPB protocol, and I can't just look at a command and see the issue anymore. I believe that the PU is the PIM saying that it received the message in pulse mode. That definitely isn't hex, and I programmed it to pickup only on the UPB protocol and not the PIM-specific parts. Also, I only own the original Simply Automated RS-232 PIM, so that is what I tested with.

There must be something wrong with that example. This is most likely a result of a typo or out of date dependencies on a very new NodeJS version. I believe that I last developed the CLI tool with NodeJS v4. You could try with NVM. I don't think that the NPM version shouldn't matter. Unfortunately I am unavailable this next week, so I cannot fix it until after January 16. The non-CLI version (programmatic library only) is more future-proofed and should work flawlessly on newer NodeJS versions if you would like to try that (unless that decode error is a bug from there). It uses promises and has no dependencies.

@DaAwesomeP DaAwesomeP self-assigned this Jan 7, 2018
@DaAwesomeP DaAwesomeP added the bug label Jan 7, 2018
@bbrendon
Copy link
Author

bbrendon commented Jan 8, 2018

I'm using upb-cli as a poor man's library for a python program. It's actually working quite well. Some UPB messages come back un-decoded but no major issues. My main problem is my programming skills at this point.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants