test_sequences.c (ec0ee77dc342141dc6983f945290b7abe9923dad) test_sequences.c (555cc8ad1e6e762b57dca4b8762e8c63f707b10c)
1/*
2 * Copyright (C) 2014 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 39 unchanged lines hidden (view full) ---

48
49#include "test_sequences.h"
50
51
52#define TEST_SEQUENCE(name) { (char**)name, sizeof(name) / sizeof(char *)}
53
54/* Service Level Connection (slc) test sequences */
55
1/*
2 * Copyright (C) 2014 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 39 unchanged lines hidden (view full) ---

48
49#include "test_sequences.h"
50
51
52#define TEST_SEQUENCE(name) { (char**)name, sizeof(name) / sizeof(char *)}
53
54/* Service Level Connection (slc) test sequences */
55
56// with codec negotiation feature
56const char * slc_test1[] = {
57 "AT+BRSF=438",
58 "+BRSF:1007",
59 "OK",
60 "AT+BAC=1,2",
61 "OK",
62 "AT+CIND=?",
63 "+CIND:(\"service\",(0,1)),(\"call\",(0,1)),(\"callsetup\",(0,3)),(\"battchg\",(0,5)),(\"signal\",(0,5)),(\"roam\",(0,1)),(\"callheld\",(0,2))",
64 "OK",
65 "AT+CIND?",
66 "+CIND:1,0,0,3,5,0,0",
67 "OK",
68 "AT+CMER=3,0,0,1",
69 "OK",
70 "AT+CHLD=?",
71 "+CHLD:(1,1x,2,2x,3)",
72 "OK"
73};
74
57const char * slc_test1[] = {
58 "AT+BRSF=438",
59 "+BRSF:1007",
60 "OK",
61 "AT+BAC=1,2",
62 "OK",
63 "AT+CIND=?",
64 "+CIND:(\"service\",(0,1)),(\"call\",(0,1)),(\"callsetup\",(0,3)),(\"battchg\",(0,5)),(\"signal\",(0,5)),(\"roam\",(0,1)),(\"callheld\",(0,2))",
65 "OK",
66 "AT+CIND?",
67 "+CIND:1,0,0,3,5,0,0",
68 "OK",
69 "AT+CMER=3,0,0,1",
70 "OK",
71 "AT+CHLD=?",
72 "+CHLD:(1,1x,2,2x,3)",
73 "OK"
74};
75
76// without codec negotiation feature
77const char * slc_test2[] = {
78 "AT+BRSF=438",
79 "+BRSF:495",
80 "OK",
81 "AT+CIND=?",
82 "+CIND:(\"service\",(0,1)),(\"call\",(0,1)),(\"callsetup\",(0,3)),(\"battchg\",(0,5)),(\"signal\",(0,5)),(\"roam\",(0,1)),(\"callheld\",(0,2))",
83 "OK",
84 "AT+CIND?",
85 "+CIND:1,0,0,3,5,0,0",
86 "OK",
87 "AT+CMER=3,0,0,1",
88 "OK",
89 "AT+CHLD=?",
90 "+CHLD:(1,1x,2,2x,3)",
91 "OK"
92};
93
75hfp_test_item_t slc_tests[] = {
94hfp_test_item_t slc_tests[] = {
76 TEST_SEQUENCE(slc_test1)
95 TEST_SEQUENCE(slc_test1),
96 TEST_SEQUENCE(slc_test2)
77};
78
79/* Service Level Connection (slc) common commands */
80const char * slc_cmds_test1[] = {
81 "AT+BAC=1,3",
82 "OK"
83};
84

--- 120 unchanged lines hidden ---
97};
98
99/* Service Level Connection (slc) common commands */
100const char * slc_cmds_test1[] = {
101 "AT+BAC=1,3",
102 "OK"
103};
104

--- 120 unchanged lines hidden ---