It looks that it works, but I think it was my error...
The uC answer my request with 2 bytes (something like 0A 89). For these reason I have to use "_CommReadByte" (2 times) instead of "_CommGetline". This way I'm receiving data.
So the communication shouldn't be the matter, even if I changed the dll you've posted.
I've had some trouble to understand what I received with "_CommReadByte". From the explanation in "CommMG.au3" I expected me 2 string like "0A"and "89", but before both strings will be converted to decimal value (so I receive a string "10" and another "137").
I've a rudimental test system, so I've had difficult to understand.
The solution that I've found is:
1) receive byte1
2) convert to hex with function Hex($byte1,2)
3) receive byte2
4) convert to hex with function Hex($byte2,2)
5) concatenate the two hex ($byte_rec = $byte1_hex & $byte2_hex)
6) convert $byte_rec to decimal (Dec($byte_rec)) to obtain the decimal value (the result).
Do you think this conversion/result is reliable?
Thank you very much!