Firmware-820 Message-125
I2C PORT (125, 7Dh)
The I2C PORT message indicates if the port was opened by the I2C PORT command. The [BODY] of the I2C PORT message indicates the port I2C port number, whether it has been opened and whether its pull-up resistors have been enabled. If the WiDig is configured to stream data from a digital (I2C) sensor, ie. there are repeated attempts to open the port, this message is only sent once for the port and would only be sent again if the port still can’t be opened after the port was turned off and on again with the STREAM command.
The I2C PORT message [BODY] is:
0xp00yyy: | x = 1; port enabled |
x = 0; port disabled | |
yyy = [0..6]; I2C port number, where port number = 0 corresponds with inputs 1-2 | |
p = 1; internal pull-up resistors enabled | |
p = 0; internal pull-up resistors disabled |
Example:
- 240, 125, 0 {DEV}, 125 {I2C PORT}, 67 { x = 1, yyy = 3, p = 0}, 247 (F0h, 7Dh, 00h, 7Fh, 03h, F7h)
This message indicates that port 3 (inputs 4-5), without its internal pull-up resistors enabled, was opened for I2C communications.