top of page

Comet USB Example Code

Due to popular demand, we have designed some EXAMPLE code showing how to interact with the CTI Comet USB using the C# programming language. It is not the complete code, it will just show you how to parse the information and connect to the unit. We have developed the following code which we will provide under the licence specified below. This means that you are free to use the code or binary as you wish however we will provide NO support for it in any way!

The code includes basic connection information including using the AutoFind software, examples of how to parse the CID information (however only number and name in this example) and displays them on a console window.

 

The code for this example is included below and was written using Microsoft Visual Studio Express: The project by default uses the AutoFind executable which requires the .NET framework.

​

  1. C# Project Source Files

​

Remember to include the below licence if you copy this code.

This code has been tested on Windows Vista and 7.

​

Licence

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

 

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

bottom of page