wiki:SerialComm

Languages:

Description of the serial commuication

Commands (case sensitive)

Command Reply Description
B OK - Beep Beeps the buzzer of the flap.
I EVT - open door Opens the incoming lock.
P
OK - Status:
CatFlap V0.90
Mode: 1
Voltage: 119
Light: 218
Flap position: -22
Darkness limit: 127
Open time: 16896
Flap limit: 50
Silent: 0
LP Green Lock: 0
LP Red Lock: 0
Cat 0: XX XX XX XX XX XX
Cat 1: YY YY YY YY YY YY
Prints the status and configuration of the flap.
Version
Current mode
Current voltage in 1/10 volts
Current brightness
If compiled with poti support, the current flap position
If in night mode and brightness is below this value, outgoing lock is engaged
Time to wait until lock is closed after the cat was detected
If the flap position is above this limit, the "flap opened" event is fired
If 1, no beep sound on entry of the cat
Low power status of the green lock, if battery is lost.
Low power status of the red lock, if battery is lost.
ID of the first cat.
ID of the second cat. And so on...
N (V0.95) OK - Night mode Activates night mode
D (V0.95) OK - Day mode Activates day mode
V (V0.95) OK - Vet mode Activates vet mode
X (V0.95) OK - Normal mode Activates normal mode

Events

Event Description
EVT - open door Occurs if green lock is opened (known chip detected, or opened by command
EVT - ID XX XX XX XX XX XX at the door Occurs if chip is detected (regardless if known or not)
EVT - Config Reset! Occurs if a config reset happened
EVT - Button XXX pressed! Occurs if a button is pressed, XXX can be "Red","Green" or "Door"
EVT - Flap opened: XXX Occurs if compiled with poti support and cat opens flap high enough
EVT - Flap closed: XXX Occurs if flap was opened before, and is now in center for two seconds or so
EVT - Low Power! Occurs if battery fails
EVT - Power restored! Occurs if failed battery changed
EVT - On battery! Occurs if AC power fails
EVT - On AC power! Occurs if AC power returns

Error messages

Error Description Version
ERR - Bad command! Occurs if bad command was written 0.90
ERR - Bad mode Occurs if setting of a new mode fails 0.95
Last modified 3 years ago Last modified on Oct 18, 2014, 12:49:20 AM