mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-03-13 20:40:08 +01:00
Update package: dectmngr
Set model-id
This commit is contained in:
parent
66290ca8bb
commit
864c69d8ae
2 changed files with 13 additions and 5 deletions
|
|
@ -8,13 +8,13 @@ include $(TOPDIR)/rules.mk
|
|||
|
||||
PKG_NAME:=dectmngr
|
||||
PKG_RELEASE:=3
|
||||
PKG_VERSION:=3.1.5
|
||||
PKG_VERSION:=3.1.6
|
||||
|
||||
LOCAL_DEV=0
|
||||
ifneq ($(LOCAL_DEV),1)
|
||||
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/dectmngr.git
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_VERSION:=c0b513ebd6762cf97bd085c404119378aa0b2383
|
||||
PKG_SOURCE_VERSION:=2dfbe1dd7538d33c758b482e0bce88a3a562a436
|
||||
PKG_MIRROR_HASH:=skip
|
||||
endif
|
||||
|
||||
|
|
|
|||
|
|
@ -23,17 +23,25 @@ stop_and_wait_dectmngr() {
|
|||
}
|
||||
|
||||
start_service() {
|
||||
local opt_ext=
|
||||
local rfpi=
|
||||
local opt_rfpi=
|
||||
local model_id=
|
||||
|
||||
test $(db get hw.board.hasDect) = "0" && return
|
||||
|
||||
echo 1 > /sys/class/gpio/gpio14/value
|
||||
|
||||
rfpi=$(db -q get hw.board.dect_rfpi)
|
||||
[ -n "$rfpi" -a ${#rfpi} -eq 14 ] && opt_rfpi="-rfpi $rfpi"
|
||||
[ -n "$rfpi" -a ${#rfpi} -eq 14 ] && opt_ext="$opt_ext -rfpi $rfpi"
|
||||
|
||||
# model_id=$(db -q get hw.board.dect_model_id)
|
||||
# Setting model_id to 0x010203 is a workaround to reduce synchronisation time of some handset
|
||||
# TODO: remove below line and uncomment the line above to get value from db when the problem is solved
|
||||
model_id="01.02.03"
|
||||
[ -n "$model_id" -a ${#model_id} -eq 8 ] && opt_ext="$opt_ext -model $model_id"
|
||||
|
||||
procd_open_instance
|
||||
procd_set_param command $PROG -comname ttyH0 -log $LOG_PATH/dect-cmbs.log $opt_rfpi
|
||||
procd_set_param command $PROG -comname ttyH0 -log $LOG_PATH/dect-cmbs.log $opt_ext
|
||||
procd_set_param respawn 6 2 3
|
||||
procd_set_param term_timeout 20
|
||||
procd_set_param triggers asterisk
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue