Closed p-weber closed 5 years ago
Functionality at DSPG FP added by: 842c809088b9c16d079563fdc1a5b9cde20569f1 b504017f3e0e570e750c6d7e9e75caeecfd1103f 81e4590c91c43bbe4ea7a7016569aff90eec7f6a
Functionality at DSPG PP added by: 0433522d5520ffe80ac76a90efc005d4189dc532 95978f5b9dae1f7e2c352e5a64e39ed1ab6fcaf5
Merged into develop branch with 4ac62f91ffe75691ebc8f23f189d9dfe70f01fc4
On DSPG, setting the PIN is working only sometimes. Try this: 1) Start server 2) Start Client 3) Set PIN to 1111 4) Start Registration 5) Try to register Device with PIN 1111 -> Fail 6) Try PIN with old PIN (i.e. 0000) -> Works
Client Logs: pi@raspberrypi:~/nachtest $ ./fp_legacy_client_rpi [INFO] bool HF::Application::Handle(std::string)
STACKFORCE openD LEGACY Demo Application 1.0
d
Select an Option (Q or q to close the demo app):
p 1111 [INFO] bool HF::Application::Handle(std::string) w [INFO] bool HF::Application::Handle(std::string) Registration window open until timeout! e [INFO] bool HF::Application::Handle(std::string) Deletes all registered handsets! w [INFO] bool HF::Application::Handle(std::string) Registration window open until timeout! p 1111 [INFO] bool HF::Application::Handle(std::string) Received udp data from server: {"module":"legacy","param1":"0","param2":"0","param3":"0","primitive":"indication","service":"disabledRegistrationWindow","status":"OK","version":"1.0.0"} Received udp data from server: {"module":"legacy","param1":"1","param2":"0","param3":"0","primitive":"indication","service":"openRegistrationWindow","status":"OK","version":"1.0.0"} [INFO ] Handset with ID: 1 successfully registered
Server: pi@raspberrypi:~/nachtest $ ./fp_legacy_server_rpi COMPORT: 0 Opened /dev/ttyACM0
22:08:29.140525 Host ->> CMBS CMBS_CMD_HELLO [0x1, 14 bytes, #0]: 00 00 00 00 00 00
22:08:29.142733 Host <<- CMBS CMBS_CMD_HELLO_RPLY [0x2, 13 bytes, #0]: 11 04 05 00 00 TARGET API version: 04.11 TARGET BUILD : 00.05 TARGET mode : 0
22:08:30.141728 Host ->> CMBS CMBS_CMD_CAPABILITIES [0xa, 13 bytes, #0]: 04 00 00 00 01
22:08:30.142809 Host <<- CMBS CMBS_CMD_CAPABILITIES_RPLY [0xb, 13 bytes, #0]: 04 00 00 00 01
22:08:31.172691 Host ->> CMBS CMBS_EV_DSR_HW_VERSION_GET [0x93, 8 bytes, #0]:
22:08:31.174263 Host <<- CMBS CMBS_EV_DSR_HW_VERSION_GET_RES [0x94, 31 bytes, #0]: 40 00 04 00 03 00 00 01 8d 00 06 00 4e 4f 4e 45 00 05 16 00 01 00 00 <CMBS_IE_HW_VERSION(64)>: CMBS Module HW Chip Type = CMBS_HW_CHIP_DCX81 HW Com Type = CMBS_HW_COM_TYPE_USB HW Chip Version = CMBS_HW_CHIP_VERSION_C
<CMBS_IE_PRODUCT_ID(141)>: Product ID: NONE
<CMBS_IE_RESPONSE(22)>: Response: OK
Getting MAX Buffer size...
22:08:31.194794 Host ->> CMBS CMBS_EV_DSR_PARAM_GET [0xd, 16 bytes, #0]: 10 00 04 00 3e 00 00 00 <CMBS_IE_PARAMETER(16)>: Max CMBS tarnsfer size
22:08:31.197001 Host <<- CMBS CMBS_EV_DSR_PARAM_GET_RES [0xe, 23 bytes, #0]: 10 00 06 00 3e 00 02 00 00 02 16 00 01 00 00 <CMBS_IE_PARAMETER(16)>: Max CMBS tarnsfer size : 00 02 <CMBS_IE_RESPONSE(22)>: Response: OK
Start Cordless Stack
22:08:31.217283 Host ->> CMBS CMBS_EV_DSR_SYS_START [0x19, 8 bytes, #0]:
22:08:31.219605 Host <<- CMBS CMBS_EV_DSR_SYS_START_RES [0x1a, 13 bytes, #0]: 16 00 01 00 00 <CMBS_IE_RESPONSE(22)>: Response: OK
22:08:31.239824 Host ->> CMBS CMBS_EV_DSR_PARAM_SET [0xf, 20 bytes, #0]: 10 00 08 00 06 00 04 00 ff ff 00 00 <CMBS_IE_PARAMETER(16)>: AUTH_PIN : FF FF 00 00
22:08:31.261038 Host <<- CMBS CMBS_EV_DSR_PARAM_SET_RES [0x10, 21 bytes, #0]: 10 00 04 00 06 00 00 00 16 00 01 00 00 <CMBS_IE_PARAMETER(16)>: AUTH_PIN <CMBS_IE_RESPONSE(22)>: Response: OK
22:08:35.471428 Host <<- CMBS CMBS_EV_DSR_CORD_CLOSEREG [0xb, 13 bytes, #0]: 4b 00 01 00 00 <CMBS_IE_REG_CLOSE_REASON(75)>: Registration timeout
Registration mode disabled! {"module":"legacy","param1":"a","param2":"0","param3":"0","primitive":"request","service":"printHelp","status":"OK","version":"1.0.0"}
STACKFORCE openD FP Demo Application 1.0
w : Open registration e : Close registration
r : Setup Call t : Release Call z : Mute u : Unmute i : Volume up o : Volume down
Select an Option (Press q to close the demo app):
{"module":"legacy","param1":"0","param2":"0","param3":"0","primitive":"request","service":"sendHello","status":"OK","version":"1.0.0"} {"module":"legacy","param1":"p","param2":"1111","param3":"0","primitive":"request","service":"OPEND_SUBAPI_SET_AC","status":"OK","version ":"1.0.0"} {"module":"legacy","param1":"w","param2":"0","param3":"0","primitive":"request","service":"openRegistrationWindow","status":"OK","version ":"1.0.0"}
22:09:13.509225 Host ->> CMBS CMBS_EV_DSR_CORD_OPENREG [0x9, 21 bytes, #0]: 18 00 04 00 78 00 00 00 6b 00 01 00 01 <CMBS_IE_INTEGER_VALUE(24)>: u32 value =120 <CMBS_IE_REG_ENABLE_TYPE(107)>: CMBS_HS_REG_ENABLE_ALL
22:09:13.512348 Host <<- CMBS CMBS_EV_DSR_CORD_OPENREG_RES [0xa, 13 bytes, #0]: 16 00 01 00 00 <CMBS_IE_RESPONSE(22)>: Response: OK
{"module":"legacy","param1":"e","param2":"0","param3":"0","primitive":"request","service":"subscriptionDelete","status":"OK","version":"1 .0.0"} {"module":"legacy","param1":"w","param2":"0","param3":"0","primitive":"request","service":"openRegistrationWindow","status":"OK","version ":"1.0.0"}
22:09:36.322070 Host ->> CMBS CMBS_EV_DSR_CORD_OPENREG [0x9, 21 bytes, #0]: 18 00 04 00 78 00 00 00 6b 00 01 00 01 <CMBS_IE_INTEGER_VALUE(24)>: u32 value =120 <CMBS_IE_REG_ENABLE_TYPE(107)>: CMBS_HS_REG_ENABLE_ALL
22:09:36.324228 Host <<- CMBS CMBS_EV_DSR_CORD_OPENREG_RES [0xa, 13 bytes, #0]: 16 00 01 00 00 <CMBS_IE_RESPONSE(22)>: Response: OK
{"module":"legacy","param1":"p","param2":"1111","param3":"0","primitive":"request","service":"OPEND_SUBAPI_SET_AC","status":"OK","version ":"1.0.0"}
22:10:21.992393 Host <<- CMBS CMBS_EV_DSR_TERMINAL_CAPABILITIES_IND [0x11, 41 bytes, #0]: 31 00 01 00 01 64 00 18 00 3f 18 44 00 0a 00 1 a 01 0c 00 02 00 00 00 00 00 02 08 22 00 01 01 00 more... <CMBS_IE_HS_NUMBER(49)>: HS Number = 1 <CMBS_IE_TERMINAL_CAPABILITIES(100)>: << TERMINAL-CAPABILITY >> 63 Length of Contents : 24 tone capabilities = 4 display capabilities = 4 A-VOL = 0 N-REJ = 0 echo parameter = 0 slot type capability = 10 Number of stored display characters (MS) = 0 Number of stored display characters (LS) = 26 Number of lines in (physical) display = 1 Number of characters/line = 12 Scrolling behaviour field = 0 Profile indicator_1 = 2 Profile indicator_2 = 0 Profile indicator_3 = 0 Profile indicator_4 = 0 Profile indicator_5 = 0 Profile indicator_6 = 0 Profile indicator_7 = 2 Profile indicator_8 = 8 Profile indicator_9 = 34 Profile indicator_10 = 0 control codes = 1 DSAA2 = 0 DSC2 = 0 escape to 8 bit character = 1 Blind slot indication = 0 sp0 = 0 sp1 = 0 sp2 = 0 sp3 = 0 sp4 = 0 sp5 = 0 sp6 = 0 sp7 = 0 sp8 = 0 sp9 = 0 sp10 = 0 sp11 = 0 sp12 = 0
22:10:21.993650 Host <<- CMBS CMBS_EV_DSR_HS_REGISTRATION_IN_PROGRESS [0x14, 14 bytes, #0]: 1c 00 02 00 01 00 <CMBS_IE_HANDSETS(28)>: Hs mask = 0x0001, First HS (1 based)=1
22:10:21.994193 Host <<- CMBS CMBS_EV_DSR_CORD_CLOSEREG [0xb, 13 bytes, #0]: 4b 00 01 00 01 <CMBS_IE_REG_CLOSE_REASON(75)>: HS successfully registered
Registration mode disabled!
22:10:22.12672 Host <<- CMBS CMBS_EV_DSR_HS_REGISTERED [0x7, 31 bytes, #0]: 0f 00 0e 00 01 01 01 00 00 00 00 00 09 22 5d 84 00 00 16 00 01 00 00 <CMBS_IE_HANDSETINFO(15)>: Handset:1 IPUI:0009225D84 Type:CMBS_HS_TYPE_CATIQ_1 registered <CMBS_IE_RESPONSE(22)>: Response: OK
Registration APP finished!1
22:10:22.850076 Host <<- CMBS CMBS_EV_DSR_TERMINAL_CAPABILITIES_IND [0x11, 41 bytes, #0]: 31 00 01 00 01 64 00 18 00 3f 18 44 00 0a 00 1 a 01 0c 00 02 00 00 00 00 00 02 08 22 00 01 01 00 more... <CMBS_IE_HS_NUMBER(49)>: HS Number = 1 <CMBS_IE_TERMINAL_CAPABILITIES(100)>: << TERMINAL-CAPABILITY >> 63 Length of Contents : 24 tone capabilities = 4 display capabilities = 4 A-VOL = 0 N-REJ = 0 echo parameter = 0 slot type capability = 10 Number of stored display characters (MS) = 0 Number of stored display characters (LS) = 26 Number of lines in (physical) display = 1 Number of characters/line = 12 Scrolling behaviour field = 0 Profile indicator_1 = 2 Profile indicator_2 = 0 Profile indicator_3 = 0 Profile indicator_4 = 0 Profile indicator_5 = 0 Profile indicator_6 = 0 Profile indicator_7 = 2 Profile indicator_8 = 8 Profile indicator_9 = 34 Profile indicator_10 = 0 control codes = 1 DSAA2 = 0 DSC2 = 0 escape to 8 bit character = 1 Blind slot indication = 0 sp0 = 0 sp1 = 0 sp2 = 0 sp3 = 0 sp4 = 0 sp5 = 0 sp6 = 0 sp7 = 0 sp8 = 0 sp9 = 0 sp10 = 0 sp11 = 0 sp12 = 0
22:10:23.151386 Host <<- CMBS CMBS_EV_DSR_HS_IN_RANGE [0x8, 16 bytes, #0]: 18 00 04 00 01 00 00 00 <CMBS_IE_INTEGER_VALUE(24)>: u32 value =1
22:10:23.171731 Host ->> CMBS CMBS_EV_DSR_TIME_UPDATE [0x5a, 33 bytes, #0]: 1b 00 02 00 01 00 1f 00 09 00 03 00 13 05 09 16 0a 17 08 1c 00 02 00 01 00 <CMBS_IE_REQUEST_ID(27)>: Request Id = 1 <CMBS_IE_DATETIME(31)>: APPSRV-INFO: DateTime: 09.05.19 22:10:23 <CMBS_IE_HANDSETS(28)>: Hs mask = 0x0001, First HS (1 based)=1
22:10:23.177531 Host <<- CMBS CMBS_EV_DSR_TARGET_LIST_CHANGE_NOTIF [0x92, 22 bytes, #0]: 3f 00 0a 00 06 01 00 00 00 01 00 00 00 00 <CMBS_IE_TARGET_LIST_CHANGE_NOTIF(63)>:
List: Internal Names List Number of entries in list: 1 Entry ID: 1 Change Type: Entry Inserted
22:10:23.179028 Host <<- CMBS CMBS_EV_DSR_TIME_UPDATE_RES [0x5b, 25 bytes, #0]: 1b 00 02 00 01 00 1c 00 02 00 01 00 16 00 01 00 01 <CMBS_IE_REQUEST_ID(27)>: Request Id = 1 <CMBS_IE_HANDSETS(28)>: Hs mask = 0x0001, First HS (1 based)=1 <CMBS_IE_RESPONSE(22)>: Response: ERROR
22:10:23.199334 Host ->> CMBS CMBS_EV_DSR_GEN_SEND_MISSED_CALLS [0x52, 34 bytes, #0]: 1b 00 02 00 00 00 1d 00 04 00 02 00 00 00 1c 00 02 00 01 00 2f 00 02 00 00 00 <CMBS_IE_REQUEST_ID(27)>: Request Id = 0 <CMBS_IE_GEN_EVENT(29)>: Generic event: Subtype = 2, Multiplicity = 0, LineId = 0 <CMBS_IE_HANDSETS(28)>: Hs mask = 0x0001, First HS (1 based)=1 <CMBS_IE_LA_NR_OF_ENTRIES(47)>: LA Number of records = 0
22:10:23.201653 Host <<- CMBS CMBS_EV_DSR_GEN_SEND_MISSED_CALLS_RES [0x53, 25 bytes, #0]: 1b 00 02 00 00 00 1c 00 02 00 01 00 16 00 01 0 0 01 <CMBS_IE_REQUEST_ID(27)>: Request Id = 0 <CMBS_IE_HANDSETS(28)>: Hs mask = 0x0001, First HS (1 based)=1 <CMBS_IE_RESPONSE(22)>: Response: ERROR
22:10:23.221984 Host ->> CMBS CMBS_EV_DSR_GEN_SEND_HS_USE_STATUS_IND [0x1d, 28 bytes, #0]: 1b 00 02 00 00 00 1d 00 04 00 00 00 00 00 1c 00 02 00 01 00 <CMBS_IE_REQUEST_ID(27)>: Request Id = 0 <CMBS_IE_GEN_EVENT(29)>: Generic event: Subtype = 0, Multiplicity = 0, LineId = 0 <CMBS_IE_HANDSETS(28)>: Hs mask = 0x0001, First HS (1 based)=1
22:10:23.226758 Host <<- CMBS CMBS_EV_DSR_GEN_HS_USE_STATUS_RES [0x20, 25 bytes, #0]: 1b 00 02 00 00 00 1c 00 02 00 01 00 16 00 01 00 01 <CMBS_IE_REQUEST_ID(27)>: Request Id = 0 <CMBS_IE_HANDSETS(28)>: Hs mask = 0x0001, First HS (1 based)=1 <CMBS_IE_RESPONSE(22)>: Response: ERROR
22:10:23.247086 Host ->> CMBS CMBS_EV_DSR_GEN_SEND_DIAGNOSTIC_STATUS_IND [0x1e, 28 bytes, #0]: 1b 00 02 00 00 00 1d 00 04 00 01 00 00 00 1c 00 02 00 01 00 <CMBS_IE_REQUEST_ID(27)>: Request Id = 0 <CMBS_IE_GEN_EVENT(29)>: Generic event: Subtype = 1, Multiplicity = 0, LineId = 0 <CMBS_IE_HANDSETS(28)>: Hs mask = 0x0001, First HS (1 based)=1
22:10:23.249384 Host <<- CMBS CMBS_EV_DSR_GEN_DIAGNOSTIC_STATUS_RES [0x21, 25 bytes, #0]: 1b 00 02 00 00 00 1c 00 02 00 01 00 16 00 01 0 0 01 <CMBS_IE_REQUEST_ID(27)>: Request Id = 0 <CMBS_IE_HANDSETS(28)>: Hs mask = 0x0001, First HS (1 based)=1 <CMBS_IE_RESPONSE(22)>: Response: ERROR
22:10:23.269715 Host ->> CMBS CMBS_EV_DSR_GEN_SEND_LINE_USE_STATUS_IND [0x1c, 28 bytes, #0]: 1b 00 02 00 00 00 1d 00 04 00 00 00 00 00 1 c 00 02 00 01 00 <CMBS_IE_REQUEST_ID(27)>: Request Id = 0 <CMBS_IE_GEN_EVENT(29)>: Generic event: Subtype = 0, Multiplicity = 0, LineId = 0 <CMBS_IE_HANDSETS(28)>: Hs mask = 0x0001, First HS (1 based)=1
22:10:23.271994 Host <<- CMBS CMBS_EV_DSR_GEN_LINE_USE_STATUS_RES [0x1f, 25 bytes, #0]: 1b 00 02 00 00 00 1c 00 02 00 01 00 16 00 01 00 01 <CMBS_IE_REQUEST_ID(27)>: Request Id = 0 <CMBS_IE_HANDSETS(28)>: Hs mask = 0x0001, First HS (1 based)=1 <CMBS_IE_RESPONSE(22)>: Response: ERROR
Additional, after restart of server(DSPG and DIALOG) the PIN is again the default value(0000).
Please remove label 'fixed'
We can reproduce the issue and we will fix it with the version 1.0.7.
Make it possible to change the default key of 0000 for legacy applications.