______ __ __ __ /\__ _\ /\ \/\ \ /\ \ \/_/\ \/ _ __ ___ ___ \ \ \_\ \ __ ___ \_\ \ \ \ \ /\`'__\/ __`\ /' _ `\ \ \ _ \ /'__`\ /' _ `\ /'_` \ \_\ \__\ \ \//\ \L\ \/\ \/\ \ \ \ \ \ \/\ \L\.\_/\ \/\ \/\ \L\ \ /\_____\\ \_\\ \____/\ \_\ \_\ \ \_\ \_\ \__/.\_\ \_\ \_\ \___,_\ \/_____/ \/_/ \/___/ \/_/\/_/ \/_/\/_/\/__/\/_/\/_/\/_/\/__,_ / www.iron-hand.de Barcode Battler to PC (BBtoPC) by Iron Hand 2009 ver. 1.0.0.1 ------------------------------------------------------------- This is the main library to use your BB with your PC. No warranty is given use it on your own risk. All code is writen in C#. So it can be you need the .net framework. Documentation: -------------- namespace BBtoPC class name BBtoPC_Class ----------------------- functions: * void open_connection() -open the microphon device and creat the scanner thread * * void close_connection() -close the device, dispose all threads * * return funktions: * bool BB_IS_OPEN -is true if the device is open (default = false) * * bool Scaning -is true if the device is currently scanning (default = false) * * byte Scanner_Buffer -return the current scanner value (0-255) * * double[] Signal_Vector -return the last raw signal vector the device has scanned (0-255) * * int Binary_Vector -the translated signal vector as an array of binarys (0,1) * * string[] Final_Bin_Number_String -return an string array with the sortet binarys (exp.: 1|1111|001101|1110|...) * * int Final_Real_Number -return a array with the final decimal numbers of the scan (0-9) * * string Scanned_Number_String -return the final result as a simple string * * Example: -------- First import the BBtoPC.dll to your reverences in the project explorer. Then write things like this: ************************************************************************************************* *//...blabla all the other usings * *using BBtoPC; * * * *//...your namespace your class * * * *BBtoPC_Class BBC = new BBtoPC_Class() //made an instance * * * *private void Form1_Load(object sender, EventArgs e) * * { * * Barcode_Battler.open_connection(); //you can open the device whenever you want * * } * * * *private void button1_Click(object sender, EventArgs e) * * { * * if (Barcode_Battler.BB_IS_OPEN == true && Barcode_Battler.Scaning == false) * * { * * switch(Barcode_Battler.Reading_Error) * * { * * case 0: label1.Text = "Status: Card Reading OK"; * * break; * * case 1: label1.Text = "Status: Signal ERROR"; * * break; * * case 2: label1.Text = "Status: Barcode Battler Reading ERROR"; * * break; * * } * * * * richTextBox1.Text = Barcode_Battler.Scanned_Number_String; * * } * * } * * * ************************************************************************************************* Any questions? Visit www.iron-hand.de History ------- ver. 1.0.0.1 - fixed the signal error problem ver. 1.0.0.0 - First releas and stable version