Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

## 3.0.0

* Build environment updated for using MSYS2 MinGW UCRT 64-bit.
* Using VSCP-framework v ...
* Using VSCP-bootloader v ...
* Build environment updated for using MSYS2 MinGW UCRT 64-bit.
* Using VSCP-framework v2.1.0
* Using VSCP-bootloader v3.0.0

## 2.0.0

* [VSCP-framework repository](https://github.com/BlueAndi/vscp-framework) was restructured and the CLI tools moved to this dedicated repository.
* vscp-helper-lib updated to v15.0.0. The linux variant is only in release mode available. The windows variant in release and debug mode.
* ```dataNum``` variable in the VSCP message (from VSCP-framework) was renamed to ```dataSize```. Therefore the source code was updated accordingly.
* [VSCP-framework repository](https://github.com/BlueAndi/vscp-framework) was restructured and the CLI tools moved to this dedicated repository.
* vscp-helper-lib updated to v15.0.0. The linux variant is only in release mode available. The windows variant in release and debug mode.
* ```dataNum``` variable in the VSCP message (from VSCP-framework) was renamed to ```dataSize```. Therefore the source code was updated accordingly.
10 changes: 10 additions & 0 deletions logger/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,16 @@ This module contains the main entry point.
CONSTANTS
*******************************************************************************/

#ifndef VERSION
/** Version */
#define VERSION "x.x.x"
#endif /* VERSION */

#ifndef BUILDTYPE
/** Build type */
#define BUILDTYPE "debug"
#endif /* BUILDTYPE */

/** Program name */
#define MAIN_PROG_NAME "VSCP logger"

Expand Down
2 changes: 1 addition & 1 deletion logger/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
################################################################################

# Software version
VERSION= 0.2.0
VERSION= 3.0.0

# Binary file name
BIN= vscpLoggerPc
Expand Down
10 changes: 10 additions & 0 deletions nodeSim/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,16 @@ This module contains the main entry point.
CONSTANTS
*******************************************************************************/

#ifndef VERSION
/** Version */
#define VERSION "x.x.x"
#endif /* VERSION */

#ifndef BUILDTYPE
/** Build type */
#define BUILDTYPE "debug"
#endif /* BUILDTYPE */

/** Program name */
#define MAIN_PROG_NAME "VSCP level 1 node"

Expand Down
2 changes: 1 addition & 1 deletion nodeSim/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
################################################################################

# Software version
VERSION= 0.5.0
VERSION= 3.0.0

# Binary file name
BIN= vscpExamplePc
Expand Down
44 changes: 25 additions & 19 deletions nodeSim/vscp_user/vscp_tp_adapter.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ static const char* vscp_tp_adapter_protocolTypes[] =
/* 12 */ "Enter Boot Loader Mode",
/* 13 */ "Enter Boot Loader Mode ACK",
/* 14 */ "Enter Boot Loader Mode NACK",
/* 15 */ "Start Block Data Transfer",
/* 15 */ "Start Block",
/* 16 */ "Block Data",
/* 17 */ "Block Data ACK",
/* 18 */ "Block Data NACK",
Expand Down Expand Up @@ -167,8 +167,11 @@ static const char* vscp_tp_adapter_protocolTypes[] =
/* 47 */ "Reserved",
/* 48 */ "Activate New Image ACK",
/* 49 */ "Activate New Image NACK",
/* 50 */ "Start Block Data Transfer ACK",
/* 51 */ "Start Block Data Transfer NACK"
/* 50 */ "Start Block ACK",
/* 51 */ "Start Block NACK",
/* 52 */ "Block Chunk ACK",
/* 53 */ "Block Chunk NACK",
/* 54 */ "Boot Loader Check"
};

/** User friendly strings for VSCP helper library function return status. */
Expand Down Expand Up @@ -250,8 +253,6 @@ static const char* vscp_tp_adapter_errorStr[] =
extern void vscp_tp_adapter_init(void)
{
/* Nothing to do */

return;
}

/**
Expand Down Expand Up @@ -290,6 +291,20 @@ extern BOOL vscp_tp_adapter_readMessage(vscp_RxMessage * const msg)
LOG_WARNING_INT32("Couldn't receive event: ", vscphlpRet);
LOG_WARNING_STR("vscphlp_receiveEventEx failed: ", vscp_tp_adapter_getErrorStr(vscphlpRet));
}
/* Any simulated message available? */
else if (TRUE == vscp_tp_adapter_messageReceived)
{
*msg = vscp_tp_adapter_rxMessage;

vscp_tp_adapter_messageReceived = FALSE;

status = TRUE;
}
else
{
/* Nothing to do. */
;
}
}
/* Handle all level 1 events? */
else if (VSCP_TP_ADAPTER_LVL_1 == client->lvl)
Expand Down Expand Up @@ -318,17 +333,13 @@ extern BOOL vscp_tp_adapter_readMessage(vscp_RxMessage * const msg)
status = TRUE;
}
}
else
{
/* Skip it. */
;
}
}
}
/* Any simulated message available? */
else if (TRUE == vscp_tp_adapter_messageReceived)
{
*msg = vscp_tp_adapter_rxMessage;

vscp_tp_adapter_messageReceived = FALSE;

status = TRUE;
}

if (FALSE != status)
{
Expand Down Expand Up @@ -677,8 +688,6 @@ extern void vscp_tp_adapter_disconnect(void)
}

vscp_tp_adapter_isConnected = FALSE;

return;
}

/**
Expand All @@ -690,7 +699,6 @@ extern void vscp_tp_adapter_simulateReceivedMessage(vscp_RxMessage const * const
{
vscp_tp_adapter_rxMessage = *msg;
vscp_tp_adapter_messageReceived = TRUE;
return;
}

/*******************************************************************************
Expand Down Expand Up @@ -851,8 +859,6 @@ static void vscp_tp_adapter_showMessage(vscp_Message const * const msg, BOOL isR
}

printf("\n");

return;
}

/**
Expand Down
Loading
Loading