Closed DanielMartensson closed 5 years ago
You are setting your baud rate to a very low, non-standard value (11520) which could be causing some issues. Try either not setting it at all, or setting it to something standard (probably 115200 is what you meant), and see if that fixes it. If not, please also print out what the return value from each of the readBytes() calls is and post that here as well. Thanks!
Wow! How can I be so blind! It working now when I set the correct baudrate. :) Great library!
4076
Buffer[0] = 0
Buffer[1] = 0
Buffer[2] = 0
Buffer[3] = 0
Buffer[4] = 0
Buffer[5] = 0
Buffer[6] = 0
Buffer[7] = 0
Buffer[8] = 0
Buffer[9] = 0
Buffer[10] = 0
Buffer[11] = 0
1118
Buffer[0] = 66
Buffer[1] = 66
Buffer[2] = 66
Buffer[3] = 66
Buffer[4] = 66
Buffer[5] = 66
Buffer[6] = 66
Buffer[7] = 66
Buffer[8] = 66
Buffer[9] = 66
Buffer[10] = 66
Buffer[11] = 66
672
Buffer[0] = 66
Buffer[1] = 66
Buffer[2] = 66
Buffer[3] = 66
Buffer[4] = 66
Buffer[5] = 66
Buffer[6] = 66
Buffer[7] = 66
Buffer[8] = 66
Buffer[9] = 66
Buffer[10] = 66
Buffer[11] = 66
672
Buffer[0] = 66
Buffer[1] = 66
Buffer[2] = 66
Buffer[3] = 66
Buffer[4] = 66
Buffer[5] = 66
Buffer[6] = 66
Buffer[7] = 66
Buffer[8] = 66
Buffer[9] = 66
Buffer[10] = 66
Buffer[11] = 66
684
Buffer[0] = 66
Buffer[1] = 66
Buffer[2] = 66
Buffer[3] = 66
Buffer[4] = 66
Buffer[5] = 66
Buffer[6] = 66
Buffer[7] = 66
Buffer[8] = 66
Buffer[9] = 66
Buffer[10] = 66
Buffer[11] = 66
684
Buffer[0] = 66
Buffer[1] = 66
Buffer[2] = 66
Buffer[3] = 66
Buffer[4] = 66
Buffer[5] = 66
Buffer[6] = 66
Buffer[7] = 66
Buffer[8] = 66
Buffer[9] = 66
Buffer[10] = 66
Buffer[11] = 66
672
Buffer[0] = 66
Buffer[1] = 66
Buffer[2] = 66
Buffer[3] = 66
Buffer[4] = 66
Buffer[5] = 66
Buffer[6] = 66
Buffer[7] = 66
Buffer[8] = 66
Buffer[9] = 66
Buffer[10] = 66
Buffer[11] = 66
676
Buffer[0] = 66
Buffer[1] = 66
Buffer[2] = 66
Buffer[3] = 66
Buffer[4] = 66
Buffer[5] = 66
Buffer[6] = 66
Buffer[7] = 66
Buffer[8] = 66
Buffer[9] = 66
Buffer[10] = 66
Buffer[11] = 66
680
Buffer[0] = 66
Buffer[1] = 66
Buffer[2] = 66
Buffer[3] = 66
Buffer[4] = 66
Buffer[5] = 66
Buffer[6] = 66
Buffer[7] = 66
Buffer[8] = 66
Buffer[9] = 66
Buffer[10] = 66
Buffer[11] = 66
672
Buffer[0] = 66
Buffer[1] = 66
Buffer[2] = 66
Buffer[3] = 66
Buffer[4] = 66
Buffer[5] = 66
Buffer[6] = 66
Buffer[7] = 66
Buffer[8] = 66
Buffer[9] = 66
Buffer[10] = 66
Buffer[11] = 66
672
Buffer[0] = 66
Buffer[1] = 66
Buffer[2] = 66
Buffer[3] = 66
Buffer[4] = 66
Buffer[5] = 66
Buffer[6] = 66
Buffer[7] = 66
Buffer[8] = 66
Buffer[9] = 66
Buffer[10] = 66
Buffer[11] = 66
681
Buffer[0] = 66
Buffer[1] = 66
Buffer[2] = 66
Buffer[3] = 66
Buffer[4] = 66
Buffer[5] = 66
Buffer[6] = 66
Buffer[7] = 66
Buffer[8] = 66
Buffer[9] = 66
Buffer[10] = 66
Buffer[11] = 66
675
Buffer[0] = 66
Buffer[1] = 66
Buffer[2] = 66
Buffer[3] = 66
Buffer[4] = 66
Buffer[5] = 66
Buffer[6] = 66
Buffer[7] = 66
Buffer[8] = 66
Buffer[9] = 66
Buffer[10] = 66
Buffer[11] = 66
672
Buffer[0] = 66
Buffer[1] = 66
Buffer[2] = 66
Buffer[3] = 66
Buffer[4] = 66
Buffer[5] = 66
Buffer[6] = 66
Buffer[7] = 66
Buffer[8] = 66
Buffer[9] = 66
Buffer[10] = 66
Buffer[11] = 66
Hello!
I found a bug in the JSerialComm package. First i use the program CuteCom in Linux to open the com port and read. It works fine. All I see is the letter "BBBBBBBB" where I sending from a STM32 micro controller.
Then I try to read with Java.
And the output will be:
What happen? Why did it stop? I'm expecting number 66 (letter B) all the times. If i try with Linux terminal it also works.