I bought this module but I don't know how to use it. The supplier provides this example:
Setting virtual serial port parameters:
/bin/stty -F /dev/ttyUSB0 9600 raw -echo
Device initialization:
echo -ne "x50x51" > /dev/ttyUSB0
Example relay state change:
echo -ne "x51xA0" > /dev/ttyUSB0
echo -ne "x51xAB" > /dev/ttyUSB0
Could anyone explain to me what this command does?
echo -ne "x51xA0" > /dev/ttyUSB0
I understand that the last digit controls the state, but it is not clear if it is the last digit of the hex number, bearing in mind that the following example is x51xAB, so the last digit of the number 1100 is taken into account?
And, under these conditions, how do I know which relay I'm changing the state for? Is it related to the first hex number?