Commit graph

57 commits

Author SHA1 Message Date
George Yang
14e5601aed dectmngr: remove the default PIN from dect config 2025-05-08 16:37:33 +02:00
George Yang
d3b2d4d9bf Revert "dectmngr: add rules in ruleng to handle DECT LED"
This reverts commit 5f36441b11.

As the solution caused conflict to WPS led.
2025-05-08 16:35:14 +02:00
George Yang
5f36441b11
dectmngr: add rules in ruleng to handle DECT LED
Also remove the default DECT PIN '1234'.
2025-05-08 11:59:08 +00:00
George Yang
02577401c7 Config dect: Fix a typo 2025-05-02 10:14:58 +02:00
George Yang
4c6f70342a dectmngr: Enable DECT base in default config
And also set the default PIN to '1234'.
2025-05-01 12:12:32 +02:00
George Yang
b1c9ce0d25 dectmngr-init: add few arguments for dectmngr
Add few arguments for dectmngr, which is based on the UCI config for
asterisk and dect:

    -sync $pcm_fsync (UCI dect.global.pcm_fsync)

    -slotsShift $pcm_slot_start (UCI dect.global.pcm_slot_star)

    -extensionShift N (starting index of UCI asterisk.extensionN for DECT)
2025-04-30 16:52:10 +02:00
Markus Gothe
d6c148f7e3
dectmngr: Support DECT FW per target
Add support for installing default DECT FW per target. This solves the need
to be able to have different default FW for different hardware architectures.

For Airoha we will update the DECT FW to DSPG 4.13 build 21 RC1.
2025-03-07 15:28:41 +00:00
Yalu Zhang
2409d8f4e0 dectmngr-3.6.6: set DECT reset GPIO pin from dectmngr instead of in init script
The reason is that sysfs for GPIO pins have been deprecated on the newer versions
of Linux kernel.
2024-04-18 13:47:51 +02:00
Grzegorz Sluja
2cd4776649 dectmngr-3.5.14: upgrading to DSPG 4.13 Build19 2023-08-31 11:42:07 +00:00
Yalu Zhang
7b056cd783 dectmngr: fix a bug in etc/init.d/dectmngr which kills the script itself
This is a regression caused by the below commit. The command "killall dectmngr" tries to kill
both the service /usr/sbin/dectmngr and the init-script /etc/init.d/dectmngr. This is wrong.

The fix is to kill /usr/sbin/dectmngr only.

commit 501193da98
Author: Yalu Zhang <yalu.zhang@iopsys.eu>
Date:   Tue May 11 11:15:35 2021 +0200

    Rename etc/init.d/dect to etc/init.d/dectmngr
2023-04-26 16:25:45 +02:00
Andreas Gnau
7847ed2c93 dectmngr: Workaround for BCM hs_uart driver
BCM "high speed" UART driver does not put the device-tree node of the
device into sysfs
2023-03-22 17:37:19 +01:00
Andreas Gnau
aaae999e3e dectmngr: Get GPIO via gpiod-tools instead of board-db
Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>
2023-03-22 17:37:19 +01:00
Andreas Gnau
77d1d82a89 dectmngr: Determine UART from device tree
Instead of hardcoding it, determine UART device to use for communication
with the DCX81 DECT chip using an alias in the device-tree
/aliases/dcx81-uart.

Also use the existence of the alias as an indicator of whether the
device supports DECT instead of checking for hw.board.hasDect in
board-db.

Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>
2023-03-22 17:37:19 +01:00
Andreas Gnau
9a3777dde9 dectmngr: cosmetic changes in init script 2023-03-21 09:21:13 +00:00
Grzegorz Sluja
9a02ad5175 dectmngr: Add new dspg FW 4.13 Build17 2022-07-28 10:00:33 +02:00
Yalu Zhang
99dd785dfd Update package endptmngr and dectmngr
dectmngr-3.5.2: Release the call completely when the first handset rejects an incoming call
endptmngr: Send CALL_REJECT event to Asterisk when DECT handset rejects the call
2022-05-31 14:59:15 +02:00
Sukru Senli
3da3e6b86d dectmngr: do not use hardcoded gpio for dect 2022-05-16 12:54:52 +02:00
Hemlata
4b0534dac7 Dectmngr: add a uci option dect.global.log_level for log level configuration 2022-03-01 12:50:48 +00:00
Yalu Zhang
69678f1dbc dectmngr-3.5.0: Upgrading to CMBS 4.13 Build 16 official release
This includes both the binary firmware on the target and dectmngr on the host.
2022-02-04 14:31:17 +01:00
Yalu Zhang
3e38df2389 Revert 2f8a76e34d
Fix the bug that dectmngr fails to start at the first attempt

Wait for the target up and running before starting dectmngr. Otherwise HELLO_REPLY
cannot be received and dectmngr exits and is started again by procd.
2021-12-23 14:19:45 +01:00
Yalu Zhang
2f8a76e34d Fix the bug that dectmngr fails to start at the first attempt
Wait for the target up and running before starting dectmngr. Otherwise HELLO_REPLY
cannot be received and dectmngr exits and is started again by procd.
2021-12-23 10:58:57 +01:00
Grzegorz Sluja
55f1310daa dectmngr-3.4.5 Set RXTUN value during the start up 2021-12-23 09:23:06 +01:00
Grzegorz Sluja
670904cd6c dectmngr: Integrate new binary CMBS 4.13 Build 16 RC28 2021-12-22 13:08:11 +01:00
Wenpeng Song
7add2a163d merge together with dectmngr feeds update 2021-12-08 16:32:34 +00:00
Yalu Zhang
d8e5dcf859 dectmngr 3.3.1: add some extensions to Line Settings List defined in CAT-iq 2.0
- /etc/init.d/dectmngr: set model id from hw.board.dect_model_id if the value in the database
  is valid. Otherwise set to 30.3B.06
- Add a config option: ENABLE_LINE_SETTINGS_EXTENSION in the package
2021-12-02 18:15:51 +01:00
Grzegorz Sluja
d2dda88aad dectmngr: Do not restart dectmngr on dect config change 2021-11-26 12:37:49 +01:00
Yalu Zhang
478e3a5c8b dectmngr: keep /etc/dect/LA_DB during sysupgrade 2021-11-11 15:24:40 +01:00
Grzegorz Sluja
f28659ebe0 dectmngr: Change uci config file from dectmngr to dect 2021-09-28 13:26:50 +02:00
Grzegorz Sluja
bd3f962614 dectmngr: Add dectmngr trigger so that change in uci config reloads it 2021-09-27 10:49:13 +02:00
Grzegorz Sluja
a4aa0b3521 Revert "dectmngr: Add handset name to uci configuration"
This reverts commit 67169eff2a.
2021-09-27 10:49:13 +02:00
Grzegorz Sluja
67169eff2a dectmngr: Add handset name to uci configuration 2021-09-24 10:18:47 +02:00
Grzegorz Sluja
a5f99f4fc3 dectmngr: Add new dspg FW 4.13 Build16 RC18 2021-09-03 12:57:42 +02:00
Grzegorz Sluja
99efedcf0f fixup! dectmngr: Disable dect_cmbs logging to file by default
To enable logging of communication between Host and DECT CMBS target the
following steps needs to be run:
$uci set dectmngr.general.log_dect_cmbs='1'
$uci commit
$/etc/init.d/dectmngr restart

Signed-off-by: Grzegorz Sluja <grzegorz.sluja@iopsys.eu>
2021-08-09 11:33:21 +02:00
Grzegorz Sluja
377e940927 dectmngr: Disable dect_cmbs logging to file by default
To enable logging of communication between Host and DECT CMBS target the
following steps needs to be run:
$uci set asterisk.general.log_dect_cmbs='1'
$uci commit
$/etc/init.d/dectmngr restart

Signed-off-by: Grzegorz Sluja <grzegorz.sluja@iopsys.eu>
2021-08-06 14:14:19 +02:00
Yalu Zhang
864c69d8ae Update package: dectmngr
Set model-id
2021-06-18 09:39:18 +02:00
Yalu Zhang
64d79c39bc Update package: dectmngr
Add more UBUS methods
2021-06-01 17:02:58 +02:00
Yalu Zhang
501193da98 Rename etc/init.d/dect to etc/init.d/dectmngr
Also remove some files for USB DECT sound driver configuration
2021-05-11 11:15:35 +02:00
Yalu Zhang
1ac9c4f057 Update package [ dectmngr ]
/etc/init.d/dect: gets DECT RFPI from the board DB and passes it to dectmngr
via a command line argument.
2021-04-15 17:05:34 +02:00
Yalu Zhang
2d8c76ba58 Update package [ dectmngr ]
Change log path from /tmp to /var/log/dectmngr
2021-03-29 11:45:07 +02:00
Yalu Zhang
9f7bf5d3e0 Update package dectmngr
Configure the number of TDM time slots correctly
2021-02-21 21:16:39 +01:00
Yalu Zhang
f4dd679f2e dectmngr: disable dectmngr temporarily for the FXS issues
This is a temporary workaround for https://project.iopsys.eu/issues/4141, i.e. DTMF events
can not be detected and silent egress RTP payload for incoming calls.

The latest working version is SMARTHUB3-GFAST-IOPSYS-6.1.0ALPHA0-210112_0249. The problem
starts with SMARTHUB3-GFAST-IOPSYS-6.1.0ALPHA0-210113_0331. Note that this was just a test
result on one SmartHub3 device. It may vary on other devices.

Between these two nightly build versions, there were some dectmngr changes. Simply stopping
dectmngr process by "service dect stop" may cause the bug disappears. Copy dectmngr from the
second firmware to the first one, then the problem happens too.

So it seems that changes in dectmngr causes the FXS issues. Further investigation in dectmngr
will be undertaken.
2021-02-16 16:58:02 +01:00
Yalu Zhang
9cfeee53e9 Update package dectmngr
Also improve /etc/init.d/dect for service stop
2021-01-26 11:03:20 +01:00
Yalu Zhang
e57d5962d1 Add etc/init.d/dect 2021-01-05 11:18:40 +01:00
Yalu Zhang
61cf78c264 Add package dectmngr 2021-01-04 17:21:18 +01:00
Sukru Senli
97e3a03f37 dectmngr: removed; it is obselete; dectmngr2 replaces it 2018-01-09 11:07:24 +01:00
Sukru Senli
66d3110ebe dectmngr v1.0.23 2016-07-08 19:46:53 +02:00
Kenneth Johansson
3324bd6c94 dectmngr: sync file in initscript.
make sure the new file is flushed to flash. Else if power is pulled the
file might end up as zero bytes large.
2016-02-26 16:00:07 +01:00
Ronny Nilsson
9599e9fad5 Attempt to increase dect testing successrate. Refs #7574 2015-11-18 15:02:02 +01:00
Ronny Nilsson
96c9277e1a Fixed a bug with dect antenna diversity. Binary data got wrong.
refs #5990
2015-11-18 15:02:02 +01:00
Nabeel Sowan
e649fcac7a Change DectAntennaDiversity syntax, off value is for CG300 using antenna 1, refs #5990 2015-07-28 14:24:44 +02:00