MATLAB: Using COM to read/write data to hardware

com protocol fprintf serial fread biometrics

Greetings,
Currently, I am trying to use TMTOOL to get data from medical hardware (Biometric DataLink).
There are a few protocol functions within the operating manual of the device that I cannot seem to get functioning correctly (maybe due to improper syntax).
Below I will post the hardware protocol.
‘M’ CMD_MASTER_PRESENT (command length = 3 bytes) This command is followed by one 8-bit number (30H) and a checksum. This command is sent by a PC at the beginning of communications to switch the subject unit out of its power-up continuous transmission mode and into its slave mode.
I have tried sending data using the following: fprintf(obj1, 'M') Where M is the command being sent to the hardware; however, the manual seems to be unclear about the following 8 bit number and the checksum.
Does anyone know the proper way to format the this?

Best Answer

The M has to be followed by the "subject unit" number.
I infer that the identifier should be the unit identifier offset by hex '30' (decimal 48) which happens to be the character '0'
biometricsltd.com's website seems to be very sparse on user-accessible documentation, so I do not know how they calculate their checksums. Do you have a link to the appropriate manual?
Related Question