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

Why do you send the direct command in HEX format? #5

Open
jabrena opened this issue Apr 2, 2015 · 1 comment
Open

Why do you send the direct command in HEX format? #5

jabrena opened this issue Apr 2, 2015 · 1 comment

Comments

@jabrena
Copy link

jabrena commented Apr 2, 2015

Hi, i was checking your project and I noticed that you send the command in hex format.
what is the reason?

pull_command = new Buffer("0B00"+counter+"0001009A000"+ (port-1) + type +"0"+ mode +"60","hex");
//console.log(pull_command.toString("hex"));
sp.write(pull_command);

Many thanks in advance

Juan Antonio

@wenchaojiang
Copy link
Owner

the program is reverse engineered from Lego's android app. I examined the pattern of console dumps of the app, which in hex.

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

No branches or pull requests

2 participants