I want to write a program to switch the output realais on/off via a plain socket connection or a html web-service.
I can’t use any windows-dll or android-app, because neither is supported on the platform I’m working on.
In the manual “protocol_vm201” there’s only a status request, but no info about how to set the states.
A description of how to calculate the checksum is missing, too, though mentioned in the manual.
Could somebody please supply the information needed to control the state of the outgoing relais?
The length is the length of the entire packet, every byte
<6><CMD_TOGGLE>
1
2 <6>
3 <CMD_TOGGLE>
4
5
6
The checksum is calculated by adding every byte up to the checksum byte
checksum = + <6> + <CMD_TOGGLE> +
Inverting the bits
checksum = not checksum
And adding one
checksum = checksum + 1
I am using “commandfusion” program “iviewer” , a free user interface ( 2 pages ) to control the card on iphone , ipad or android .
Have fun !
Regards , Luc
Hi,
I want to write a program in python to control the vm201 module.
I saw your crc calculation example.
Have you also an example of a compleet data string which is sent to
the vm201 app from the card.