-
Notifications
You must be signed in to change notification settings - Fork 34
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
Bug in parsing of stringj written in MSB0 #26
Labels
Comments
Hello |
raydac
added a commit
that referenced
this issue
Feb 3, 2020
I made fix, if all is ok then tomorrow will make maintenance release |
thank you for your quickly fix |
here is fixed jar (inside zip) |
tested, good job. thank you very much . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi developer:
I use JBBP to parse the signals generated from IOT device , the device generate signal in BIG_ENDIAN and MSB0 bitorder:
but when I parse some string from the signal, I got Error result:
the test code is below:
public static void main(String[] args) {
// TODO Auto-generated method stub
long startTime = System.currentTimeMillis();
and the test result is below:
the generate byte str is :
00100000 01111010 01111010 01111010 01111010 00000000 00000000 00000000 01010000
but the parsed str is :
^^^^
10
the parsed 'zzzz' binary code is :
01011110 01011110 01011110 01011110
Full running:98ms
I noticed the binary code of "zzzz" is "01111010 01111010 01111010 01111010", but when I parse use MSB0 , it get the wrong result - '^^^^'.
if I use LSB0 in generater and parser , the result is correct.
but the real request is : the device generate signal in MSB0 bit order.
would you give me some advise to get the correct result ?
thanks a lot !
The text was updated successfully, but these errors were encountered: