Hi Anastasios,
The code that was provided was not complete, although it was tested on two OBDII devices and was OK.
The only thing you can do is log the input and output to ensure that the sent and received bytes are as expected, or use a terminal to do it manually.
I don't have enough time to restart the project at the moment. It may help you to strip the code down to the bare minimum and start from scratch.
Regards, Terry