I finally released it was doing that because I was setting the rate to the default ('5 250K'). So changing it to '6' worked, and then setting it back to '5' worked once. All subsequent calls to '5' resulted in the same error. I think this is bad coding, it should not through an error if the command is just repeated.
Also, 'Get Protocol Connection Speed 45' doesn't seem to work either, I get all 0's back no matter the baud setting. Does it report the above setting or the detected baud rate of the connected device?
indeed, this seems to be an interpretation problem in the library. When calling the command "SetJ1939Baudrate" a sub-function is called to change the baudrate. Since the baurdate is the same, no change is done and so the function fails. We will check this behavior within the next release.
Regarding "Get Protocol Connection Speed", we cannot see any problem with this. Could you share the code you are using for that?