-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCONFIG.TXT
158 lines (121 loc) · 6.24 KB
/
CONFIG.TXT
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
# Configuration file for MOMO_AUDIO_PLAY_RECORD (AUDIO_PR)
# Revision History
# 2020-07-27,rage Expansion Soundmodul
# 2017-01-22,rage Initial version
# Configuration Variables in config.txt:
# RFID_TYPE [SR, LR]
# RFID reader device type: SR is Short Range reader, LR is Long Range reader.
# If no type is specified (i.e. the variable is #-commented), the associated
# logic will not be activated. Default SR frontplate RFID reader.
# RFID_POWER [UA]
# RFID reader power source, must be set to UA.
# If no value is specified (i.e. the variable is #-commented), the associated
# logic will not be activated. UA set to frontplate PWR_OUT_RFID_GND_LB
# RFID_DETECT_TIMEOUT [s]
# Duration in seconds measured from the trigger, i.e. when the light barrier
# filter output gets active or a transponder has been read already.
# Within this period, the system tries to identify the bird by its
# transponder ID. If no transponder is detected, the bird is treated
# as UNKNOWN and the feeder usually will be closed.
# LB_FILTER_DURATION [s]
# Light barrier (LB) filter duration in seconds. The LB may change its
# state several times during a bird is picking food. To prevent the
# underlying logic from assuming each time "a new bird", this filter has
# been implemented. The duration starts whenever the LB turns to inactive
# state, i.e. no object is detected any more. When the LB returns active
# before this time is over, this event will be ignored. Timing diagram:
# ____ __
# LB activity : ___/ \______/ \______________________________
# ____________________________
# Filter Output: ___/ |------t------\________________
#
# A value of 0 disables the filter.
# ON_TIME_1, OFF_TIME_1 [hour:min] MEZ
# These variable determines the on and off time of the MOMO_AUDIO.
# When it is in the off state, RFID Reader and Soundmodul is switched off
# , light barriers are switched on.
# AUDIO_POWER [UA2]
# AUDIO module power source, must be set to UA1 or UA2.
# If no value is specified (i.e. the variable is #-commented),
# the associated logic will not be activated. Default 5V output
# AUDIO_CFG_XX
# Configuration values for the audio module FN-RM01 Audio Recorder
# and Player Module, see reference "Audio_Modul.pdf".
# Currently following parameters are supported:
# 4.3.9 Volume control
# VC - Volume control
# Parameter 30: default volume
# There are total of 31 volume levels,
# Level 1 is mute while level 31 is the maximum volume.
# 4.3.13 Choose a storage device(µSD Card or USB flash drive)
# to work with the module
# ST - Storage Device:
# Parameter 0:shift to SD card(by default)
# 1:shift to USB flash drive
# 4.3.14 Choose audio-recording input mode Connection for MIC recording
# IM - Input Mode:
# Parameter 0:connect with MIC (by default)
# 1:connect with LINE-IN
# 2:connect wit 2-channel Aux-in
# 4.3.15 Set audio-recording quality(bit rate)
# RQ - Recording Quality:
# Parameter 0: 128kbps(by default)
# 1: 96kbps
# 2: 64kbps
# 3: 32kbps
# AUDIO PLAYBACK setting [s]
# Default duration in seconds.
# AUDIO RECORD setting [s]
# Default duration in seconds.
# AUDIO PLAYBACK_TYPE [1,2,3,4,5; 6,7,8,9]
# Playback files not random: P001.x, P002.x, P003.x, P004.x and P005.x. [1,2,3,4,5]
# Playback_Type random: [6,7,8,9].
# random, [6] for P001.x and P002.x over duration playback in seconds.
# random, [9] for P001.wav,P002.wav,P003.wav,P004.wav and P005.wav over duration playback in seconds.
# RF - ID : Audio module
# Transponder ID and optional parameters.
# ID = 0123456789012345:{playback}:{record}:{playback_type}
#
# Fields may be left empty to use default values, for example
# ID = 9E1CE7D001AF0001:1:: but uses the default settings for PLAYBACK, RECORD and PLAYBACK_TYPE.
# There are two special IDs: "ANY" means there was a transponder detected,
# but its ID is not listed in this file. "UNKNOWN" means that NO transponder
# could be detected within RFID_DETECT_TIMEOUT. Cancel "UNKNOWN":0:0 for "ANY".
#
# Please copy on Audio module mikroSD-Card 5 files:
# P001.wav/mp3, P002.wav/mp3, P003.wav/mp3, P004.wav/mp3 and P005.wav/mp3
# Total file numbers 5.
#
# The file Rxxx will be incremented (R+++). R001.wav/mp3 to R999.wav/mp3.
# Total file numbers 7.
# Means there are R001.wav/mp3 and R002.wav/mp3 on Audio module mikroSD-Card.
# Next record file will be R003.wav/mp3
# RFID configuration
RFID_TYPE = SR # Short Range reader
RFID_POWER = UA # Set to frontplate PWR_OUT_RFID_GND_LB
RFID_DETECT_TIMEOUT = 20 # [sec]
# Light barrier filter
LB_FILTER_DURATION = 0
# Operating time of the MOMO_AUDIO [hour:min] MEZ (MESZ-1)
ON_TIME_1 = 08:30
OFF_TIME_1 = 16:30
# AUDIO configuration
AUDIO_POWER = UA2 # 5V output default
AUDIO_CFG_VC = 23 # Volume Control [xx] default 30, see 4.3.9.
AUDIO_CFG_ST = 0 # SD card [x] default 0, see 4.3.13.
AUDIO_CFG_IM = 0 # MIC signal [x] default 0, see 4.3.14.
AUDIO_CFG_RQ = 0 # Recording Quality [x] default 0, see 4.3.15.
# AUDIO PLAYBACK setting durations (default)
PLAYBACK = 10 # [sec]
# AUDIO RECORD setting durations (default)
RECORD = 30 # [sec]
# AUDIO PLAYBACK TYPE setting durations (default)
PLAYBACK_TYPE = 3 # not random P003
# ID-specific configurations
ID = D2ECE7D001AF0001:20:20 # runs playback for 20sec,runs record for 20sec.
ID = 33C213A801AF0001:20:0:1 # no random playback runs P001 for 20sec.
ID = 4B76C4B43A6F0001:20:0:5 # no random playback runs P005 for 20sec.
ID = 39D0000000008001:0:20:6 # record for 20sec.
ID = A159D99B16900001:20:0:9 # random playback runs P001, P002, P003, P004 and P005 for 20sec.
#ID = ANY:10:0:3 # runs playback for 10 sec., for each ID number
#ID = UNKNOWN:10:0:1 # after light barrier conctact, runs playback 10 sec.