SendCommand - Set J1939 Baud Rate 37
Posted: Tue 24. Aug 2021, 00:13
For the longest time I thought this command wasn't working because it was throwing a '144 ERR_INVALID_COMMAND'.
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?
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?