Testing

Since TCP is at the very top level of the implemented Bluetooth protocol, and provides the upper interface to the application, the most logical way to test the functionality of the block was to construct a dummy application. The test block which was constructed in VCC to fulfil this purpose can be found as part of the workspace 'MootoothWorkspace2'

This application was placed at either end of mirrored instances of the protocol stack in VCC, and could then convieniently be used to test the operation of either the whole Bluetooth stack, or of the TCP block on its own. This made it fairly easy to test all of the various features of TCP, using various connection options, transferring differnet quantities and types of data, etc.

It was very useful to be able to use this 'application' block to test the TCP block in isolation, and then recycle it to test that the stack as a whole was working as expected.