0
|
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 |
|
|
21 |
|
|
22 |
#ifndef SERIALPACKETSIZE_H_D7CC307B_845C_4f9e_8079_C9C2C37A1B4D
|
|
23 |
#define SERIALPACKETSIZE_H_D7CC307B_845C_4f9e_8079_C9C2C37A1B4D
|
|
24 |
|
|
25 |
// The reference serial connection (with serial cable) has a
|
|
26 |
// packet size of 4096 with an 8 bit header so we send 4088
|
|
27 |
// bytes at a time.
|
|
28 |
#define KMaxPacketSize 4088
|
|
29 |
|
|
30 |
// The USB implementation has a packet size of 64k
|
|
31 |
#define KMaxUSBPacketSize 0xFFFF
|
|
32 |
|
|
33 |
// The Bluetooth implementation is implemented by virtual serial
|
|
34 |
// port on the PC side but is socket based on the device side.
|
|
35 |
// As far as the device goes there is no packet limit and messages
|
|
36 |
// are not broken up in packet chunks.
|
|
37 |
// Change the value from 1024 * 16 to 1024 * 4, testing proved 1024 * 16
|
|
38 |
// is too large to communicate.
|
|
39 |
#define KMaxBluetoothPacketSize ( 1024 * 4 )
|
|
40 |
|
|
41 |
// The TCPIP transport is connection oriented and does not
|
|
42 |
// need to packeted for transport at the application level.
|
|
43 |
// However we do package it anyway so that the data can be
|
|
44 |
// collected in pieces and written to a file rather than a single
|
|
45 |
// memory buffer.
|
|
46 |
#define KMaxTCPIPPacketSize ( 1024 * 32 )
|
|
47 |
|
|
48 |
#endif // defined SERIALPACKETSIZE_H_D7CC307B_845C_4f9e_8079_C9C2C37A1B4D
|