jremington:
That is because the OP is using Serial.print(x,HEX).
Sterretje's approach is the way to go, although I would use snprintf() to simplify the code dramatically.
From the link in reply #5:
So, the first and last three bytes in each received frame could be simply ignored or removed.
I have a laser I am trying to do the same thing with I send a Hex Code to open it which has an address,function code etc and it returns an address,function code,Register number,Measurement and CRC i want to only see the measurement could use some help
burtonrobotics:
I have a laser I am trying to do the same thing with I send a Hex Code to open it which has an address,function code etc and it returns an address,function code,Register number,Measurement and CRC i want to only see the measurement could use some help
You have asked a new question in an old Thread so I am suggesting to the Moderator to move you to your own Thread.
Please post your program and a link to the datasheet for the laser device you are hoping to communicate with.
...R
burtonrobotics:
I have a laser I am trying to do the same thing with I send a Hex Code to open it which has an address,function code etc and it returns an address,function code,Register number,Measurement and CRC i want to only see the measurement could use some help
You have to give a lot more detail and a better description. As I understand it, you have a laser that you want to open?
@burtonrobotics
TOPIC SPLIT
DO NOT HIJACK / NECRO POST !
Could you take a few moments to Learn How To Use The Forum.
Other general help and troubleshooting advice can be found here.
It will help you get the best out of the forum in the future.