Lines Matching +full:0 +full:x22
20 #define EVENT_CMUX_CONNECTED BIT(0)
111 static uint8_t cmux_frame_control_sabm_cmd[] = {0xF9, 0x03, 0x3F, 0x01, 0x1C, 0xF9};
112 static uint8_t cmux_frame_control_sabm_ack[] = {0xF9, 0x03, 0x73, 0x01, 0xD7, 0xF9};
113 static uint8_t cmux_frame_control_cld_cmd[] = {0xF9, 0x03, 0xEF, 0x05, 0xC3, 0x01, 0xF2, 0xF9};
114 static uint8_t cmux_frame_control_cld_ack[] = {0xF9, 0x03, 0xEF, 0x05, 0xC1, 0x01, 0xF2, 0xF9};
115 static uint8_t cmux_frame_dlci1_sabm_cmd[] = {0xF9, 0x07, 0x3F, 0x01, 0xDE, 0xF9};
116 static uint8_t cmux_frame_dlci1_sabm_ack[] = {0xF9, 0x07, 0x73, 0x01, 0x15, 0xF9};
117 static uint8_t cmux_frame_dlci1_disc_cmd[] = {0xF9, 0x07, 0x53, 0x01, 0x3F, 0xF9};
118 static uint8_t cmux_frame_dlci1_ua_ack[] = {0xF9, 0x07, 0x73, 0x01, 0x15, 0xF9};
119 static uint8_t cmux_frame_dlci2_sabm_cmd[] = {0xF9, 0x0B, 0x3F, 0x01, 0x59, 0xF9};
120 static uint8_t cmux_frame_dlci2_sabm_ack[] = {0xF9, 0x0B, 0x73, 0x01, 0x92, 0xF9};
121 static uint8_t cmux_frame_dlci2_disc_cmd[] = {0xF9, 0x0B, 0x53, 0x01, 0xB8, 0xF9};
122 static uint8_t cmux_frame_dlci2_ua_ack[] = {0xF9, 0x0B, 0x73, 0x01, 0x92, 0xF9};
123 static uint8_t cmux_frame_control_msc_cmd[] = {0xF9, 0x01, 0xFF, 0x0B, 0xE3,
124 0x07, 0x0B, 0x09, 0x01, 0x6C, 0xF9};
126 static uint8_t cmux_frame_control_msc_ack[] = {0xF9, 0x01, 0xFF, 0x0B, 0xE1,
127 0x07, 0x0B, 0x09, 0x01, 0x6C, 0xF9};
129 static uint8_t cmux_frame_control_fcon_cmd[] = {0xF9, 0x01, 0xFF, 0x05, 0xA3, 0x01, 0x86, 0xF9};
130 static uint8_t cmux_frame_control_fcon_ack[] = {0xF9, 0x01, 0xFF, 0x05, 0xA1, 0x01, 0x86, 0xF9};
131 static uint8_t cmux_frame_control_fcoff_cmd[] = {0xF9, 0x01, 0xFF, 0x05, 0x63, 0x01, 0x86, 0xF9};
132 static uint8_t cmux_frame_control_fcoff_ack[] = {0xF9, 0x01, 0xFF, 0x05, 0x61, 0x01, 0x86, 0xF9};
138 0xF9, 0x0B, 0xEF, 0x43, 0x41, 0x54, 0x2B, 0x43, 0x47, 0x44, 0x43, 0x4F, 0x4E,
139 0x54, 0x3D, 0x31, 0x2C, 0x22, 0x49, 0x50, 0x22, 0x2C, 0x22, 0x74, 0x72, 0x61,
140 0x63, 0x6B, 0x75, 0x6E, 0x69, 0x74, 0x2E, 0x6D, 0x32, 0x6D, 0x22, 0x23, 0xF9};
143 0x41, 0x54, 0x2B, 0x43, 0x47, 0x44, 0x43, 0x4F, 0x4E, 0x54, 0x3D,
144 0x31, 0x2C, 0x22, 0x49, 0x50, 0x22, 0x2C, 0x22, 0x74, 0x72, 0x61,
145 0x63, 0x6B, 0x75, 0x6E, 0x69, 0x74, 0x2E, 0x6D, 0x32, 0x6D, 0x22};
147 static uint8_t cmux_frame_dlci2_at_newline[] = {0xF9, 0x0B, 0xEF, 0x05, 0x0D, 0x0A, 0xB7, 0xF9};
149 static uint8_t cmux_frame_data_dlci2_at_newline[] = {0x0D, 0x0A};
155 0xF9, 0x0B, 0xEF, 0xFE, 0x41, 0x54, 0x2B, 0x43, 0x47, 0x44, 0x43, 0x4F, 0x4E,
156 0x54, 0x3D, 0x31, 0x2C, 0x22, 0x49, 0x50, 0x22, 0x2C, 0x22, 0x74, 0x72, 0x61,
157 0x63, 0x6B, 0x75, 0x6E, 0x69, 0x74, 0x2E, 0x6D, 0x32, 0x6D, 0x22, 0x23, 0xF9};
162 static uint8_t cmux_frame_dlci1_at_at[] = {0xF9, 0x07, 0xEF, 0x05, 0x41, 0x54, 0x30, 0xF9};
164 static uint8_t cmux_frame_data_dlci1_at_at[] = {0x41, 0x54};
166 static uint8_t cmux_frame_dlci1_at_newline[] = {0xF9, 0x07, 0xEF, 0x05, 0x0D, 0x0A, 0x30, 0xF9};
168 static uint8_t cmux_frame_data_dlci1_at_newline[] = {0x0D, 0x0A};
173 static uint8_t cmux_frame_dlci1_at_at_desync[] = {0x41, 0x54, 0x30, 0xF9};
179 0xF9, 0x0B, 0xEF, 0x69, 0x7E, 0xFF, 0x7D, 0x23, 0xC0, 0x21, 0x7D, 0x21, 0x7D, 0x20, 0x7D,
180 0x20, 0x7D, 0x38, 0x7D, 0x22, 0x7D, 0x26, 0x7D, 0x20, 0x7D, 0x20, 0x7D, 0x20, 0x7D, 0x20,
181 0x7D, 0x23, 0x7D, 0x24, 0xC0, 0x23, 0x7D, 0x25, 0x7D, 0x26, 0x53, 0x96, 0x7D, 0x38, 0xAA,
182 0x7D, 0x27, 0x7D, 0x22, 0x7D, 0x28, 0x7D, 0x22, 0xD5, 0xA8, 0x7E, 0xF6, 0xF9};
185 0x7E, 0xFF, 0x7D, 0x23, 0xC0, 0x21, 0x7D, 0x21, 0x7D, 0x20, 0x7D, 0x20, 0x7D,
186 0x38, 0x7D, 0x22, 0x7D, 0x26, 0x7D, 0x20, 0x7D, 0x20, 0x7D, 0x20, 0x7D, 0x20,
187 0x7D, 0x23, 0x7D, 0x24, 0xC0, 0x23, 0x7D, 0x25, 0x7D, 0x26, 0x53, 0x96, 0x7D,
188 0x38, 0xAA, 0x7D, 0x27, 0x7D, 0x22, 0x7D, 0x28, 0x7D, 0x22, 0xD5, 0xA8, 0x7E};
190 static uint8_t cmux_frame_dlci2_ppp_18[] = {0xF9, 0x0B, 0xEF, 0x25, 0x7E, 0xFF, 0x7D, 0x23,
191 0xC0, 0x21, 0x7D, 0x22, 0x7D, 0x21, 0x7D, 0x20,
192 0x7D, 0x24, 0x7D, 0x3C, 0x90, 0x7E, 0x8F, 0xF9};
194 static uint8_t cmux_frame_data_dlci2_ppp_18[] = {0x7E, 0xFF, 0x7D, 0x23, 0xC0, 0x21,
195 0x7D, 0x22, 0x7D, 0x21, 0x7D, 0x20,
196 0x7D, 0x24, 0x7D, 0x3C, 0x90, 0x7E};
294 __ASSERT_NO_MSG(modem_pipe_open(bus_mock_pipe, K_SECONDS(10)) == 0); in test_modem_cmux_setup()
297 __ASSERT_NO_MSG(modem_cmux_attach(&cmux, bus_mock_pipe) == 0); in test_modem_cmux_setup()
299 __ASSERT_NO_MSG(modem_cmux_connect_async(&cmux) == 0); in test_modem_cmux_setup()
306 __ASSERT_NO_MSG(modem_pipe_open_async(dlci1_pipe) == 0); in test_modem_cmux_setup()
312 __ASSERT_NO_MSG(modem_pipe_open_async(dlci2_pipe) == 0); in test_modem_cmux_setup()
351 sizeof(cmux_frame_data_dlci2_at_cgdcont)) == 0, in ZTEST()
356 sizeof(cmux_frame_data_dlci2_at_newline)) == 0, in ZTEST()
381 sizeof(cmux_frame_data_dlci1_at_at)) == 0, in ZTEST()
386 sizeof(cmux_frame_data_dlci1_at_newline)) == 0, in ZTEST()
410 sizeof(cmux_frame_data_dlci2_ppp_52)) == 0, in ZTEST()
415 sizeof(cmux_frame_data_dlci2_ppp_18)) == 0, in ZTEST()
466 sizeof(cmux_frame_data_dlci1_at_at)) == 0, in ZTEST()
471 sizeof(cmux_frame_data_dlci1_at_newline)) == 0, in ZTEST()
489 sizeof(cmux_frame_control_fcoff_ack)) == 0, in ZTEST()
495 zassert_true(ret == 0, "Failed to block transmit while flow control is off"); in ZTEST()
498 zassert_true(ret == 0, "FCOFF failed to prevent transmission of data"); in ZTEST()
509 sizeof(cmux_frame_control_fcon_ack)) == 0, in ZTEST()
525 sizeof(cmux_frame_dlci2_ppp_52)) == 0, in ZTEST()
543 sizeof(cmux_frame_control_msc_ack)) == 0, in ZTEST()
553 zassert_true(modem_pipe_close_async(dlci1_pipe) == 0, "Failed to close DLCI1 pipe"); in ZTEST()
562 sizeof(cmux_frame_dlci1_disc_cmd)) == 0, in ZTEST()
578 zassert_true(ret == 0, "Received unexpected data"); in ZTEST()
581 zassert_true(modem_pipe_open_async(dlci1_pipe) == 0, "Failed to open DLCI1 pipe"); in ZTEST()
590 sizeof(cmux_frame_dlci1_sabm_cmd)) == 0, in ZTEST()
606 zassert_true(ret == 0, "Received unexpected data"); in ZTEST()
615 zassert_true(modem_pipe_close_async(dlci1_pipe) == 0, "Failed to close DLCI1"); in ZTEST()
616 zassert_true(modem_pipe_close_async(dlci2_pipe) == 0, "Failed to close DLCI2"); in ZTEST()
632 zassert_true(modem_cmux_disconnect_async(&cmux) == 0, "Failed to disconnect CMUX"); in ZTEST()
642 sizeof(cmux_frame_control_cld_cmd)) == 0, in ZTEST()
655 zassert_true(ret == 0, "Received unexpected data"); in ZTEST()
658 zassert_true(modem_cmux_connect_async(&cmux) == 0, "Failed to connect CMUX"); in ZTEST()
667 sizeof(cmux_frame_control_sabm_cmd)) == 0, in ZTEST()
680 zassert_true(ret == 0, "Received unexpected data"); in ZTEST()
683 zassert_true(modem_pipe_open_async(dlci1_pipe) == 0, "Failed to open DLCI1 pipe"); in ZTEST()
692 sizeof(cmux_frame_dlci1_sabm_cmd)) == 0, in ZTEST()
708 zassert_true(ret == 0, "Received unexpected data"); in ZTEST()
711 zassert_true(modem_pipe_open_async(dlci2_pipe) == 0, "Failed to open DLCI2 pipe"); in ZTEST()
720 sizeof(cmux_frame_dlci2_sabm_cmd)) == 0, in ZTEST()
736 zassert_true(ret == 0, "Received unexpected data"); in ZTEST()
742 zassert_true(modem_pipe_close(dlci1_pipe, K_SECONDS(10)) == 0, "Failed to close DLCI1"); in ZTEST()
744 zassert_true(modem_pipe_close(dlci2_pipe, K_SECONDS(10)) == 0, "Failed to close DLCI2"); in ZTEST()
746 zassert_true(modem_cmux_disconnect(&cmux) == 0, "Failed to disconnect CMUX"); in ZTEST()
751 zassert_true(modem_cmux_connect(&cmux) == 0, "Failed to connect CMUX"); in ZTEST()
756 zassert_true(modem_pipe_open(dlci1_pipe, K_SECONDS(10)) == 0, in ZTEST()
759 zassert_true(modem_pipe_open(dlci2_pipe, K_SECONDS(10)) == 0, in ZTEST()
766 zassert_true(modem_pipe_close(dlci1_pipe, K_SECONDS(10)) == 0, "Failed to close DLCI1"); in ZTEST()
768 zassert_true(modem_pipe_close(dlci2_pipe, K_SECONDS(10)) == 0, "Failed to close DLCI2"); in ZTEST()
770 zassert_true(modem_pipe_open(dlci1_pipe, K_SECONDS(10)) == 0, in ZTEST()
773 zassert_true(modem_pipe_open(dlci2_pipe, K_SECONDS(10)) == 0, in ZTEST()
793 zassert_true(modem_backend_mock_get(&bus_mock, buffer1, sizeof(buffer1)) > 0); in ZTEST()
799 zassert_true(modem_backend_mock_get(&bus_mock, buffer1, sizeof(buffer1)) == 0); in ZTEST()
813 zassert_true(modem_backend_mock_get(&bus_mock, buffer1, sizeof(buffer1)) == 0); in ZTEST()
858 sizeof(cmux_frame_data_dlci2_at_cgdcont)) == 0, in ZTEST()
863 sizeof(cmux_frame_data_dlci2_at_newline)) == 0, in ZTEST()