1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25 package net.sf.bluecove;
26
27 import javax.bluetooth.DataElement;
28 import javax.bluetooth.UUID;
29
30 public interface Consts {
31
32 public static final String RESPONDER_LONG_UUID = "B10C0BE1111111111111111111110001";
33
34 public static final String RESPONDER_LONG_UUID_L2CAP = "B10C0BE1111111111111111111110002";
35
36 public static final String RESPONDER_LONG_UUID_OBEX = "B10C0BE1111111111111111111110003";
37
38 public static final String RESPONDER_SHORT_UUID = "BC01";
39
40 public static final String RESPONDER_SHORT_UUID_L2CAP = "BC02";
41
42 public static final String RESPONDER_SERVICECLASS_UUID = "B10C0BE1111111111111111111110000";
43
44 public static final UUID uuidLong = new UUID(Consts.RESPONDER_LONG_UUID, false);
45
46 public static final UUID uuidShort = new UUID(Consts.RESPONDER_SHORT_UUID, true);
47
48 public static final UUID uuidL2CAPLong = new UUID(Consts.RESPONDER_LONG_UUID_L2CAP, false);
49
50 public static final UUID uuidL2CAPShort = new UUID(Consts.RESPONDER_SHORT_UUID_L2CAP, true);
51
52 public static final UUID uuidOBEX = new UUID(Consts.RESPONDER_LONG_UUID_OBEX, false);
53
54 public static final UUID uuidSrvClassExt = new UUID(Consts.RESPONDER_SERVICECLASS_UUID, false);
55
56 public static final String RESPONDER_SERVERNAME = "bluecovesrv";
57
58 public static final int TEST_SERVICE_ATTRIBUTE_INT_ID = 0x0A0;
59
60 public static final int TEST_SERVICE_ATTRIBUTE_INT_TYPE = DataElement.INT_1;
61
62 public static final int TEST_SERVICE_ATTRIBUTE_INT_VALUE = 77;
63
64 public static final int TEST_SERVICE_ATTRIBUTE_INT_VALUE_TEST_ALL = 88;
65
66 public static final int TEST_SERVICE_ATTRIBUTE_STR_ID = 0x0A1;
67
68 public static final String TEST_SERVICE_ATTRIBUTE_STR_VALUE = "SomeData";
69
70 public static final int TEST_SERVICE_ATTRIBUTE_URL_ID = 0x0A2;
71
72 public static final String TEST_SERVICE_ATTRIBUTE_URL_VALUE = "http:/www.bluecove.org:80/someUrl?q=10&bluecove=123&ServiceDiscovery=Test";
73
74 public static final int TEST_SERVICE_ATTRIBUTE_LONG_ID = 0x0A3;
75
76 public static final int TEST_SERVICE_ATTRIBUTE_LONG_TYPE = DataElement.INT_4;
77
78 public static final long TEST_SERVICE_ATTRIBUTE_LONG_VALUE = 128;
79
80
81
82 public static final int TEST_SERVICE_ATTRIBUTE_BYTES_ID = 0x0A4;
83
84 public static final int TEST_SERVICE_ATTRIBUTE_BYTES_TYPE = DataElement.INT_16;
85
86 public static final byte[] TEST_SERVICE_ATTRIBUTE_BYTES_VALUE = new byte[] { 1, -2, 3, 4, -5, 6, 7, 8, 9, -10, 11,
87 12, -13, 14, 15, 16 };
88
89 public static final int VARIABLE_SERVICE_ATTRIBUTE_BYTES_ID = 0x0A5;
90
91 public static final int SERVICE_ATTRIBUTE_BYTES_SERVER_INFO = 0x0A6;
92
93 public static final int SERVICE_ATTRIBUTE_ALL_START = 0x0B0;
94
95 public static final int serverUpTimeOutSec = 2 * 60;
96
97 public static final int DEVICE_COMPUTER = 0x0100;
98
99 public static final int DEVICE_PHONE = 0x0200;
100
101 public static final byte SEND_TEST_START = 7;
102
103 public static final int SEND_TEST_REPLY_OK = 77;
104
105 public static final int SEND_TEST_REPLY_OK_MESSAGE = 78;
106
107 public static final int TEST_SERVER_TERMINATE = 99;
108
109 public static final int TRAFFIC_GENERATOR_WRITE = 100;
110
111 public static final int TRAFFIC_GENERATOR_READ = 101;
112
113 public static final int TRAFFIC_GENERATOR_READ_WRITE = 102;
114
115
116
117 public static final int TEST_STRING = 1;
118
119 public static final int TEST_STRING_BACK = 2;
120
121 public static final int TEST_BYTE = 3;
122
123 public static final int TEST_BYTE_BACK = 4;
124
125 public static final int TEST_STRING_UTF = 5;
126
127 public static final int TEST_STRING_UTF_BACK = 6;
128
129 public static final int TEST_BYTE_ARRAY = 7;
130
131 public static final int TEST_BYTE_ARRAY_BACK = 8;
132
133 public static final int TEST_DataStream = 9;
134
135 public static final int TEST_DataStream_BACK = 10;
136
137 public static final int TEST_StreamAvailable = 11;
138
139 public static final int TEST_StreamAvailable_BACK = 12;
140
141 public static final int TEST_EOF_READ = 13;
142
143 public static final int TEST_EOF_READ_BACK = 14;
144
145 public static final int TEST_EOF_READ_ARRAY = 15;
146
147 public static final int TEST_EOF_READ_ARRAY_BACK = 16;
148
149 public static final int TEST_CONNECTION_INFO = 17;
150
151 public static final int TEST_CLOSED_CONNECTION = 18;
152
153 public static final int TEST_CLOSED_CONNECTION_BACK = 19;
154
155 public static final int TEST_BYTES_256 = 20;
156
157 public static final int TEST_BYTES_256_BACK = 21;
158
159 public static final int TEST_CAN_CLOSE_READ_ON_CLIENT = 22;
160
161 public static final int TEST_CAN_CLOSE_READ_ON_SERVER = 23;
162
163 public static final int TEST_CAN_CLOSE_READ_ARRAY_ON_CLIENT = 24;
164
165 public static final int TEST_CAN_CLOSE_READ_ARRAY_ON_SERVER = 25;
166
167 public static final int TEST_TWO_THREADS_SYNC_BYTES = 26;
168
169 public static final int TEST_TWO_THREADS_SYNC_ARRAYS = 27;
170
171 public static final int TEST_TWO_THREADS_BYTES = 28;
172
173 public static final int TEST_TWO_THREADS_ARRAYS = 29;
174
175 public static final int TEST_LAST_WORKING = TEST_TWO_THREADS_ARRAYS;
176
177
178
179
180 public static final int TEST_8K_PLUS_BYTE_ARRAY = 30;
181
182 public static final int TEST_8K_PLUS_BYTE_ARRAY_BACK = 31;
183
184 public static final int TEST_64K_PLUS_BYTE_ARRAY = 32;
185
186 public static final int TEST_64K_PLUS_BYTE_ARRAY_BACK = 33;
187
188 public static final int TEST_128K_BYTE_ARRAY_X_10 = 34;
189
190 public static final int TEST_128K_BYTE_ARRAY_X_10_BACK = 35;
191
192 public static final int TEST_LAST_BLUECOVE_WORKING = TEST_128K_BYTE_ARRAY_X_10_BACK;
193
194
195
196 public static final int TEST_L2CAP_LAST_WORKING = 3;
197 }