Menu

Command 111

Command 111 writes to "smart" sensors (sensors that store identification and calibration information on an I2C-connected memory chip. See also [Command 110]. Command 110 goes into all the nitty-gritty details of how the representation of bytes works for these commands, this command works the same way. Here's the syntax: s{111,<channel>,<block to write>,<byte 0>,<byte 1>,<byte 2>,<byte 3>,<byte 4>,<byte 5>,<byte 6>,<byte 7>}

As with Command 110, each byte is represented in decimal form. Here's an example of what Logger Pro sent while calibrating a pH sensor on channel 1:
s{111,1,0,1,20,67,165,0,1,22,0}. Here's the breakdown of what's going on (things preceded by a "#" are comments):

s{111, # This is command 111 (obviously)
1,     # We are operating on channel 1
0,     # We are writing memory block zero on the sensor (i.e. the first 8 bytes)
1,20,67,165,0,1,22,0 # Compare these with the first 8 bytes of the example output on wiki page for Command 110.
                     # The pH sensor's serial number and lot ID are different (because it's a different sensor)
                     # but the memory layout version number (1) and sensor type ID number (20) are the same.
}

Related

Wiki: Command 110
Wiki: Home
Wiki: Types of sensors

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.