|
1 /* |
|
2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef SERIALPACKETSIZE_H_D7CC307B_845C_4f9e_8079_C9C2C37A1B4D |
|
21 #define SERIALPACKETSIZE_H_D7CC307B_845C_4f9e_8079_C9C2C37A1B4D |
|
22 |
|
23 // The reference serial connection (with serial cable) has a |
|
24 // packet size of 4096 with an 8 bit header so we send 4088 |
|
25 // bytes at a time. |
|
26 #define KMaxPacketSize 4088 |
|
27 |
|
28 // The USB implementation has a packet size of 64k |
|
29 #define KMaxUSBPacketSize 0xFFFF |
|
30 |
|
31 // The Bluetooth implementation is implemented by virtual serial |
|
32 // port on the PC side but is socket based on the device side. |
|
33 // As far as the device goes there is no packet limit and messages |
|
34 // are not broken up in packet chunks. |
|
35 // Change the value from 1024 * 16 to 1024 * 4, testing proved 1024 * 16 |
|
36 // is too large to communicate. |
|
37 #define KMaxBluetoothPacketSize ( 1024 * 4 ) |
|
38 |
|
39 // The TCPIP transport is connection oriented and does not |
|
40 // need to packeted for transport at the application level. |
|
41 // However we do package it anyway so that the data can be |
|
42 // collected in pieces and written to a file rather than a single |
|
43 // memory buffer. |
|
44 #define KMaxTCPIPPacketSize ( 1024 * 32 ) |
|
45 |
|
46 #endif // defined SERIALPACKETSIZE_H_D7CC307B_845C_4f9e_8079_C9C2C37A1B4D |