I am just testing zephyr modem_cellular example with cmux.
jyijyi:
have you tried DLCI1?
No, it is allocated for PPP comms, i cannot mess with that.
see log file:
before cmux
[00:00:10.003,000] <dbg> modem_chat: modem_chat_script_start: running script: swir_hl7800_init_chat_script
[00:00:10.003,000] <dbg> modem_chat: modem_chat_script_next: swir_hl7800_init_chat_script: step: 0
[00:00:10.003,000] <dbg> modem_chat: modem_chat_script_next: sending: AT
[00:00:10.023,000] <dbg> modem_chat: modem_chat_on_unknown_command_received: +KSUP: 0
[00:00:10.023,000] <dbg> modem_chat: modem_chat_log_received_command: +CEREG: 2
[00:00:10.023,000] <dbg> modem_chat: modem_chat_log_received_command: +CREG: 2
[00:00:10.023,000] <dbg> modem_chat: modem_chat_on_unknown_command_received: AT
[00:00:10.023,000] <dbg> modem_chat: modem_chat_on_unknown_command_received: OK
[00:00:11.003,000] <dbg> modem_chat: modem_chat_script_next: swir_hl7800_init_chat_script: step: 1
[00:00:11.003,000] <dbg> modem_chat: modem_chat_script_next: sending: AT
[00:00:11.024,000] <dbg> modem_chat: modem_chat_on_unknown_command_received: AT
[00:00:11.024,000] <dbg> modem_chat: modem_chat_on_unknown_command_received: OK
[00:00:12.003,000] <dbg> modem_chat: modem_chat_script_next: swir_hl7800_init_chat_script: step: 2
[00:00:12.003,000] <dbg> modem_chat: modem_chat_script_next: sending: AT
[00:00:12.024,000] <dbg> modem_chat: modem_chat_on_unknown_command_received: AT
[00:00:12.024,000] <dbg> modem_chat: modem_chat_on_unknown_command_received: OK
[00:00:13.003,000] <dbg> modem_chat: modem_chat_script_next: swir_hl7800_init_chat_script: step: 3
[00:00:13.003,000] <dbg> modem_chat: modem_chat_script_next: sending: AT
[00:00:13.024,000] <dbg> modem_chat: modem_chat_on_unknown_command_received: AT
[00:00:13.024,000] <dbg> modem_chat: modem_chat_on_unknown_command_received: OK
[00:00:14.003,000] <dbg> modem_chat: modem_chat_script_next: swir_hl7800_init_chat_script: step: 4
[00:00:14.003,000] <dbg> modem_chat: modem_chat_script_next: sending: AT+KSLEEP=2
[00:00:14.025,000] <dbg> modem_chat: modem_chat_on_unknown_command_received: AT+KSLEEP=2
[00:00:14.025,000] <dbg> modem_chat: modem_chat_log_received_command: OK
[00:00:14.025,000] <dbg> modem_chat: modem_chat_script_next: swir_hl7800_init_chat_script: step: 5
[00:00:14.025,000] <dbg> modem_chat: modem_chat_script_next: sending: AT+CPSMS=0
[00:00:14.046,000] <dbg> modem_chat: modem_chat_on_unknown_command_received: AT+CPSMS=0
[00:00:14.046,000] <dbg> modem_chat: modem_chat_log_received_command: OK
[00:00:14.046,000] <dbg> modem_chat: modem_chat_script_next: swir_hl7800_init_chat_script: step: 6
[00:00:14.046,000] <dbg> modem_chat: modem_chat_script_next: sending: AT+CEDRXS=0
[00:00:14.068,000] <dbg> modem_chat: modem_chat_on_unknown_command_received: AT+CEDRXS=0
[00:00:14.068,000] <dbg> modem_chat: modem_chat_log_received_command: OK
[00:00:14.068,000] <dbg> modem_chat: modem_chat_script_next: swir_hl7800_init_chat_script: step: 7
[00:00:14.068,000] <dbg> modem_chat: modem_chat_script_next: sending: ATE0
[00:00:14.089,000] <dbg> modem_chat: modem_chat_on_unknown_command_received: ATE0
[00:00:14.261,000] <dbg> modem_chat: modem_chat_log_received_command: OK
[00:00:14.261,000] <dbg> modem_chat: modem_chat_script_next: swir_hl7800_init_chat_script: step: 8
[00:00:14.261,000] <dbg> modem_chat: modem_chat_script_next: sending: AT+CFUN=1
[00:00:14.285,000] <dbg> modem_chat: modem_chat_log_received_command: OK
[00:00:14.285,000] <dbg> modem_chat: modem_chat_script_next: swir_hl7800_init_chat_script: step: 9
[00:00:14.285,000] <dbg> modem_chat: modem_chat_script_next: sending: AT+CGACT=0
[00:00:14.309,000] <dbg> modem_chat: modem_chat_log_received_command: OK
[00:00:14.309,000] <dbg> modem_chat: modem_chat_script_next: swir_hl7800_init_chat_script: step: 10
[00:00:14.309,000] <dbg> modem_chat: modem_chat_script_next: sending: AT+CFUN=4
[00:00:14.339,000] <dbg> modem_chat: modem_chat_log_received_command: OK
[00:00:14.339,000] <dbg> modem_chat: modem_chat_script_next: swir_hl7800_init_chat_script: step: 11
[00:00:14.339,000] <dbg> modem_chat: modem_chat_script_next: sending: AT+CMEE=1
[00:00:14.339,000] <dbg> modem_chat: modem_chat_log_received_command: +CEREG: 0
[00:00:14.339,000] <dbg> modem_chat: modem_chat_log_received_command: +CREG: 0
[00:00:14.364,000] <dbg> modem_chat: modem_chat_log_received_command: OK
[00:00:14.364,000] <dbg> modem_chat: modem_chat_script_next: swir_hl7800_init_chat_script: step: 12
[00:00:14.364,000] <dbg> modem_chat: modem_chat_script_next: sending: AT+CREG=1
[00:00:14.388,000] <dbg> modem_chat: modem_chat_log_received_command: OK
[00:00:14.388,000] <dbg> modem_chat: modem_chat_script_next: swir_hl7800_init_chat_script: step: 13
[00:00:14.388,000] <dbg> modem_chat: modem_chat_script_next: sending: AT+CEREG=1
[00:00:14.412,000] <dbg> modem_chat: modem_chat_log_received_command: OK
[00:00:14.412,000] <dbg> modem_chat: modem_chat_script_next: swir_hl7800_init_chat_script: step: 14
[00:00:14.412,000] <dbg> modem_chat: modem_chat_script_next: sending: AT+CREG?
[00:00:14.434,000] <dbg> modem_chat: modem_chat_log_received_command: +CREG: 1 0
[00:00:14.434,000] <dbg> modem_chat: modem_chat_log_received_command: OK
[00:00:14.434,000] <dbg> modem_chat: modem_chat_script_next: swir_hl7800_init_chat_script: step: 15
[00:00:14.434,000] <dbg> modem_chat: modem_chat_script_next: sending: AT+CEREG?
[00:00:14.458,000] <dbg> modem_chat: modem_chat_log_received_command: +CEREG: 1 0
[00:00:14.458,000] <dbg> modem_chat: modem_chat_log_received_command: OK
[00:00:14.458,000] <dbg> modem_chat: modem_chat_script_next: swir_hl7800_init_chat_script: step: 16
[00:00:14.458,000] <dbg> modem_chat: modem_chat_script_next: sending: AT+CGSN
[00:00:14.480,000] <dbg> modem_chat: modem_chat_log_received_command: 351144441214500
[00:00:14.480,000] <dbg> modem_chat: modem_chat_script_next: swir_hl7800_init_chat_script: step: 17
[00:00:14.480,000] <dbg> modem_chat: modem_chat_log_received_command: OK
[00:00:14.480,000] <dbg> modem_chat: modem_chat_script_next: swir_hl7800_init_chat_script: step: 18
[00:00:14.480,000] <dbg> modem_chat: modem_chat_script_next: sending: AT+CGMM
[00:00:14.503,000] <dbg> modem_chat: modem_chat_log_received_command: HL7812
[00:00:14.503,000] <dbg> modem_chat: modem_chat_script_next: swir_hl7800_init_chat_script: step: 19
[00:00:14.503,000] <dbg> modem_chat: modem_chat_log_received_command: OK
[00:00:14.503,000] <dbg> modem_chat: modem_chat_script_next: swir_hl7800_init_chat_script: step: 20
[00:00:14.504,000] <dbg> modem_chat: modem_chat_script_next: sending: AT+CGMI
[00:00:14.531,000] <dbg> modem_chat: modem_chat_log_received_command: Sierra Wireless
[00:00:14.531,000] <dbg> modem_chat: modem_chat_script_next: swir_hl7800_init_chat_script: step: 21
[00:00:14.531,000] <dbg> modem_chat: modem_chat_log_received_command: OK
[00:00:14.532,000] <dbg> modem_chat: modem_chat_script_next: swir_hl7800_init_chat_script: step: 22
[00:00:14.532,000] <dbg> modem_chat: modem_chat_script_next: sending: AT+CGMR
[00:00:14.554,000] <dbg> modem_chat: modem_chat_log_received_command: HL7812.5.7.3.0
[00:00:14.554,000] <dbg> modem_chat: modem_chat_script_next: swir_hl7800_init_chat_script: step: 23
[00:00:14.554,000] <dbg> modem_chat: modem_chat_log_received_command: OK
[00:00:14.554,000] <dbg> modem_chat: modem_chat_script_next: swir_hl7800_init_chat_script: step: 24
[00:00:14.554,000] <dbg> modem_chat: modem_chat_script_next: sending: AT+CIMI
[00:00:14.577,000] <dbg> modem_chat: modem_chat_log_received_command: 901288820006476
[00:00:14.577,000] <dbg> modem_chat: modem_chat_script_next: swir_hl7800_init_chat_script: step: 25
[00:00:14.577,000] <dbg> modem_chat: modem_chat_log_received_command: OK
[00:00:14.577,000] <dbg> modem_chat: modem_chat_script_next: swir_hl7800_init_chat_script: step: 26
[00:00:14.577,000] <dbg> modem_chat: modem_chat_script_next: sending: AT+CMUX=0,0,5,127
[00:00:14.601,000] <dbg> modem_chat: modem_chat_log_received_command: OK
[00:00:14.601,000] <dbg> modem_chat: modem_chat_script_stop: swir_hl7800_init_chat_script: complete
after cmux:
[00:00:14.722,000] <inf> modem_at_shell: pipe connected
[00:00:14.722,000] <inf> modem_at_shell: opening pipe
[00:00:14.747,000] <inf> modem_at_shell: pipe opened
[00:00:14.747,000] <inf> modem_at_shell: chat attached
[00:00:14.873,000] <dbg> modem_chat: modem_chat_script_start: running script: swir_hl7800_dial_chat_script
[00:00:14.873,000] <dbg> modem_chat: modem_chat_script_next: swir_hl7800_dial_chat_script: step: 0
[00:00:14.873,000] <dbg> modem_chat: modem_chat_script_next: sending: AT+CGDCONT=1,"IP","internet"
[00:00:14.898,000] <dbg> modem_chat: modem_chat_on_unknown_command_received: AT+CGDCONT=1,"IP","internet"
[00:00:14.898,000] <dbg> modem_chat: modem_chat_log_received_command: OK
[00:00:14.898,000] <dbg> modem_chat: modem_chat_script_next: swir_hl7800_dial_chat_script: step: 1
[00:00:14.898,000] <dbg> modem_chat: modem_chat_script_next: sending: AT+KCNXCFG=1,"GPRS","internet",,,"IPV4"
[00:00:14.944,000] <dbg> modem_chat: modem_chat_on_unknown_command_received: CCCCCCCCFG=1,"GPRS","internet",,,"IPV4"
[00:00:14.944,000] <dbg> modem_chat: modem_chat_log_received_command: OK
[00:00:14.944,000] <dbg> modem_chat: modem_chat_script_next: swir_hl7800_dial_chat_script: step: 2
[00:00:14.944,000] <dbg> modem_chat: modem_chat_script_next: sending: AT+WPPP=0
[00:00:14.966,000] <dbg> modem_chat: modem_chat_on_unknown_command_received: AT+WPPP=0
[00:00:14.966,000] <dbg> modem_chat: modem_chat_log_received_command: OK
[00:00:14.966,000] <dbg> modem_chat: modem_chat_script_next: swir_hl7800_dial_chat_script: step: 3
[00:00:14.966,000] <dbg> modem_chat: modem_chat_script_next: sending: AT+CFUN=1
[00:00:14.989,000] <dbg> modem_chat: modem_chat_on_unknown_command_received: AT+CFUN=1
[00:00:14.989,000] <dbg> modem_chat: modem_chat_log_received_command: OK
[00:00:14.989,000] <dbg> modem_chat: modem_chat_script_next: swir_hl7800_dial_chat_script: step: 4
[00:00:14.989,000] <dbg> modem_chat: modem_chat_script_next: sending: ATD*99***1#
[00:00:14.989,000] <dbg> modem_chat: modem_chat_log_received_command: +CEREG: 2
[00:00:14.989,000] <dbg> modem_chat: modem_chat_on_unknown_command_received: +CEREG: 2
[00:00:14.989,000] <dbg> modem_chat: modem_chat_on_unknown_command_received: +CREG: 2
[00:00:14.990,000] <dbg> modem_chat: modem_chat_log_received_command: +CREG: 2
[00:00:15.013,000] <dbg> modem_chat: modem_chat_on_unknown_command_received: ATD*99***1#
[00:00:15.013,000] <dbg> modem_chat: modem_chat_log_received_command: CONNECT
[00:00:15.013,000] <dbg> modem_chat: modem_chat_script_stop: swir_hl7800_dial_chat_script: complete
[00:00:15.013,000] <dbg> modem_chat: modem_chat_log_received_command: +CEREG: 2
[00:00:15.013,000] <dbg> modem_chat: modem_chat_log_received_command: +CREG: 2
[00:00:17.013,000] <dbg> modem_chat: modem_chat_script_start: running script: swir_hl7800_periodic_chat_script
[00:00:17.013,000] <dbg> modem_chat: modem_chat_script_next: swir_hl7800_periodic_chat_script: step: 0
[00:00:17.013,000] <dbg> modem_chat: modem_chat_script_next: sending: AT+CREG?
[00:00:17.036,000] <dbg> modem_chat: modem_chat_on_unknown_command_received: AT+CREG?
[00:00:18.269,000] <dbg> modem_chat: modem_chat_log_received_command: +CREG: 1 2
[00:00:18.269,000] <dbg> modem_chat: modem_chat_log_received_command: OK
[00:00:18.269,000] <dbg> modem_chat: modem_chat_script_next: swir_hl7800_periodic_chat_script: step: 1
[00:00:18.269,000] <dbg> modem_chat: modem_chat_script_next: sending: AT+CEREG?
[00:00:18.292,000] <dbg> modem_chat: modem_chat_on_unknown_command_received: AT+CEREG?
[00:00:18.292,000] <dbg> modem_chat: modem_chat_log_received_command: +CEREG: 1 2