mirror of
https://github.com/Martin-P/OpenV2G.git
synced 2024-11-18 12:53:58 +00:00
git-svn-id: https://svn.code.sf.net/p/openv2g/code/trunk@76 d9f2db14-54d0-4bde-b00c-16405c910529
This commit is contained in:
parent
97e9cc9f3b
commit
75c2627f62
5 changed files with 11 additions and 5 deletions
BIN
data/test/sessionSetupReq.xml.exi
Normal file
BIN
data/test/sessionSetupReq.xml.exi
Normal file
Binary file not shown.
BIN
data/test/sessionSetupRes.xml.exi
Normal file
BIN
data/test/sessionSetupRes.xml.exi
Normal file
Binary file not shown.
|
@ -26,6 +26,7 @@
|
||||||
#include "v2g_serviceMethods.h"
|
#include "v2g_serviceMethods.h"
|
||||||
#include "v2g_dataTypes.h"
|
#include "v2g_dataTypes.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
static void printBinaryArray(uint8_t* byte, uint32_t len);
|
static void printBinaryArray(uint8_t* byte, uint32_t len);
|
||||||
|
|
||||||
|
@ -337,7 +338,7 @@ int chargeParameterDiscovery(struct MessageHeaderType* header, struct ChargePara
|
||||||
int powerDelivery(struct MessageHeaderType* header, struct PowerDeliveryReqType* param, struct PowerDeliveryResType* result)
|
int powerDelivery(struct MessageHeaderType* header, struct PowerDeliveryReqType* param, struct PowerDeliveryResType* result)
|
||||||
{
|
{
|
||||||
|
|
||||||
size_t i;
|
int i;
|
||||||
|
|
||||||
printf("EVSE side: powerDelivery called\n" );
|
printf("EVSE side: powerDelivery called\n" );
|
||||||
printf("\tReceived data:\n");
|
printf("\tReceived data:\n");
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
#define CODE_VERSION_EXI 1
|
#define CODE_VERSION_EXI 1
|
||||||
#define CODE_VERSION_SERVICE 2
|
#define CODE_VERSION_SERVICE 2
|
||||||
#define CODE_VERSION CODE_VERSION_SERVICE
|
#define CODE_VERSION CODE_VERSION_SERVICE
|
||||||
|
/* #define CODE_VERSION CODE_VERSION_EXI */
|
||||||
|
|
||||||
#ifndef MAIN_H_
|
#ifndef MAIN_H_
|
||||||
#define MAIN_H_
|
#define MAIN_H_
|
||||||
|
|
|
@ -59,23 +59,27 @@
|
||||||
#if EXI_STREAM == BYTE_ARRAY
|
#if EXI_STREAM == BYTE_ARRAY
|
||||||
/* 64 kilobytes = 65 536 bytes */
|
/* 64 kilobytes = 65 536 bytes */
|
||||||
/* 1 megabyte = 1 048 576 bytes*/
|
/* 1 megabyte = 1 048 576 bytes*/
|
||||||
#define BUFFER_SIZE 1048576
|
#define BUFFER_SIZE 256
|
||||||
uint8_t bufferIn[BUFFER_SIZE];
|
uint8_t bufferIn[BUFFER_SIZE];
|
||||||
uint8_t bufferOut[BUFFER_SIZE];
|
uint8_t bufferOut[BUFFER_SIZE];
|
||||||
#endif /* EXI_STREAM == BYTE_ARRAY */
|
#endif /* EXI_STREAM == BYTE_ARRAY */
|
||||||
|
|
||||||
/* avoids warning: initializer element is not computable at load time */
|
/* avoids warning: initializer element is not computable at load time */
|
||||||
#define ARRAY_SIZE_BYTES 300
|
#define ARRAY_SIZE_BYTES 100
|
||||||
uint8_t bytesData[ARRAY_SIZE_BYTES];
|
uint8_t bytesData[ARRAY_SIZE_BYTES];
|
||||||
#define ARRAY_SIZE_STRINGS 30000
|
#define ARRAY_SIZE_STRINGS 100
|
||||||
uint32_t codepoints[ARRAY_SIZE_STRINGS];
|
uint32_t codepoints[ARRAY_SIZE_STRINGS];
|
||||||
#define ARRAY_SIZE_STRINGS_ASCII 150
|
#define ARRAY_SIZE_STRINGS_ASCII 100
|
||||||
char charsNamespaceURI[ARRAY_SIZE_STRINGS_ASCII];
|
char charsNamespaceURI[ARRAY_SIZE_STRINGS_ASCII];
|
||||||
char charsLocalName[ARRAY_SIZE_STRINGS_ASCII];
|
char charsLocalName[ARRAY_SIZE_STRINGS_ASCII];
|
||||||
|
|
||||||
/* String table memory setup */
|
/* String table memory setup */
|
||||||
uint16_t numberOfLocalStringsDecode[EXI_MAX_NUMBER_OF_QNAMES];
|
uint16_t numberOfLocalStringsDecode[EXI_MAX_NUMBER_OF_QNAMES];
|
||||||
uint16_t numberOfLocalStringsEncode[EXI_MAX_NUMBER_OF_QNAMES];
|
uint16_t numberOfLocalStringsEncode[EXI_MAX_NUMBER_OF_QNAMES];
|
||||||
|
|
||||||
|
#ifndef NULL
|
||||||
|
#define NULL ((void *) 0)
|
||||||
|
#endif
|
||||||
|
|
||||||
#if EXI_DEBUG == 1
|
#if EXI_DEBUG == 1
|
||||||
# define DEBUG_PRINTF(x) printf x
|
# define DEBUG_PRINTF(x) printf x
|
||||||
|
|
Loading…
Reference in a new issue