|
PS5 Barcode scanner
|
#include <stdio.h>#include <stdlib.h>#include <string.h>#include <ctype.h>#include <fcntl.h>#include <unistd.h>#include "lib.h"#include "menu.h"#include "utils.h"#include "main.h"#include "fancy.h"#include "pdf_lib.h"#include "fnt\\datetime.fnt"#include "fnt\\barcode.fnt"#include "fnt\\brain.fnt"#include "fnt\\cards.fnt"#include "fnt\\nodata.fnt"#include "fnt\\tools.fnt"#include "fnt\\trashfl.fnt"#include "fnt\\trashemp.fnt"#include "fnt\\version.fnt"#include "fnt\\battsm.fnt"#include "fnt\\lr2.fnt"#include "fnt\\flashi.fnt"#include "fnt\\comp.fnt"#include "fnt\\standby.fnt"#include "fnt\\battvolt.fnt"#include "fnt\\opl9723.fnt"#include "fnt\\opldata.fnt"#include "fnt\\oplsend.fnt"#include "fnt\\any_key.fnt"#include "fnt\\msgicons.fnt"#include "fnt\\light.fnt"#include "fnt\\optiobar.fnt"#include "fnt\\KA_bar.fnt"#include "fnt\\KA8_exit.fnt"#include "fnt\\KA_utils.fnt"#include "fnt\\KA_int.fnt"#include "fnt\\KA8_back.fnt"#include "fnt\\opl_blue.fnt"#include "fnt\\qty.fnt"#include "fnt\\splash.fnt"#include "fnt\\b_tooth.fnt"#include "fnt\\KA8_real.fnt"#include "fnt\\KA_Ma_Sl.fnt"#include "fnt\\no_bt_ad.fnt"#include "fnt\\scrolbar.fnt"#include "fnt\\globe.fnt"#include "fnt\\breadcrumbs.fnt"#include "fnt\\gpstest.fnt"#include "fnt\\gpsformat.fnt"#include "fnt\\gpstimezone.fnt"Macros | |
| #define | NULL 0 |
| #define | MAXBATTVOLT 300L |
| #define | MAX_AD 1023L |
Functions | |
| int | UpdateBluetoothState (int *stateChange) |
| Bluetooth stat machine. | |
| void | set_font_input (void) |
| Sets font and cursor for input. | |
| int | KAfancyselmenu (fancyselmenus *items, int layers[], char *elements, long *value, int more) |
| Selectable list menu with masking based on elements parameter. | |
| void | InitMenu (void) |
| Initializes the main menu array. | |
| void | MainMenu (void) |
| Executes the main menu. | |
| void | print_message_bar (int bartype) |
| Prints the the bottom message bar according to the specified type. | |
| int | scan_setup_bluetooth (void) |
| Handle the initialisation of the Bluetooth in real time. | |
| void | update_scan_screen (int real_time_mode, char *last_barc, db_record *rec, int *pos, int *offset) |
| Displays the appropriate screen (batch or real time). | |
| void | action_delete_record (db_record *db_rec, long record) |
| Delete the given record, or the current record if record = -1. | |
| int | handle_quantity_input (db_record *db_rec, long fnd_quantity, long *new_quantity, long found_record) |
| Handle the quantity inout. | |
| void | process_realtime_data (char *barc) |
| Process the real time data (Bluetooth). | |
| void | action_change_quantity (db_record *db_rec, long record_index) |
| Changes the quantity. | |
| void | main_scan (void) |
| Scanning barcodes from the main menu item. | |
| void | update_record (long rec_index, db_record *rec) |
| Edit a record and save it. | |
| void | main_scroll (void) |
| Scrolls through stored records. | |
| void | main_delete (void) |
| Deletes stored file. | |
| void | interface_menu (void) |
| System communication interface menu. | |
| void | baudrate_menu (void) |
| System communication baudrate menu. | |
| void | protocol_menu (void) |
| System communication protocol menu. | |
| void | comm_menu (void) |
| System communication menu. | |
| void | qty_menu (void) |
| System quantity options menu. | |
| void | PutBufferTest (void) |
| void | bluetooth_menu (void) |
| System bluetooth menu. | |
| void | SetBluetoothMode () |
| System bluetoth set mode handler. | |
| void | SetPINCode (void) |
| System bluetooth set PIN code handler. | |
| void | SetMACAddress (void) |
| System bluetooth set MAC address handler. | |
| void | sys_bluetooth_reset (void) |
| System bluetooth reset handler. | |
| void | sys_battery (void) |
| System battery status handler. | |
| void | gps_menu (void) |
| System GPS menu handler. | |
| void | gps_brd_menu (void) |
| System GPS breadcrumb config menu. | |
| void | gps_format_menu (void) |
| System GPS format menu. | |
| void | gps_test (void) |
| System GPS test handler. | |
| void | gps_time_zone_menu (void) |
| System GPS time zone config handler. | |
| void | sys_memory (void) |
| System config/memory menu. | |
| void | save_config (void) |
| System config/mem save configuration handler. | |
| void | send_Z3 (void) |
| System config/mem send configuration handler. | |
| void | DefaultConfig (void) |
| System config/mem default conifguration handler. | |
| void | system_menu (void) |
| Main system menu handler. | |
| int | getMACAddress (int MAC_MODE) |
| System bluetooth get MAC address handler. | |
| int | Discovery (char *address) |
| BT_Discovery, does the discovery of other bluetooth devices, and allows the selection of discovered devices. | |
| int | verifyBTAddress (char *BTAddress) |
| Verify bluetooth address. | |
| int | BT_address_setup (void) |
| Setup bluetooth MAC address handler. | |
| void | ConnectBluetooth (void) |
| System bluetooth connection handler. | |
| void | DisconnectBluetooth (void) |
| Systme bluetooth disconnect handler. | |
| void | main_version (void) |
| Main version display handler. | |
| int | send_barcode_real_time (char *barcode) |
| Sends a barcode string over the active comm port using putcom(). | |
| int | check_connection (void) |
| Check if bluetooth is connected. | |
| void | applySuffixSettings (int suffix) |
| Updates the global variable containing the suffix based on the selection. | |
| void | choose_suffix () |
| Choose the suffix for the Bluetooth transmission. | |
| int | init_connection () |
| Initiates bluetooth connection. | |
| int | close_connection (void) |
| Closes bluetooth connection. | |
| int | init_master_connection () |
| Initiates bluetooth master connection. | |
| int | init_slave_connection () |
| Initiates bluetooth slave connection. | |
| long | get_active_port (void) |
| Gets the active comm port number. | |
| void | display_master_connection_screen (void) |
| Displays master bluetooth conenction screen. | |
| void | display_slave_connection_screen (void) |
| Displays bluetooth slave connection screen. | |
| void | InputPincode (char *pincode) |
| System bluetooth PIN code input handler. | |
| void | InputMACAddress (char *address) |
| System bluettoh MAC addres input handler. | |
| int | check_flash_BT_address (void) |
| Checks bluetooth MAC address as read from OS. | |
| int | check_flash_PIN_code (void) |
| Checks bluetooth PIN code as read from OS. | |
| void | get_master_slave_mode (void) |
| System bluetooth master/slave mode selection handler. | |
| void | get_BT_interface (void) |
| System bluetooth data mode selection handler. | |
| int | check_valid_BT_address (void) |
| Checks bluetooth MAC address against OS setting. | |
| void | bat_test (void) |
| Battery voltage test. | |
| char | direct_character_input (unsigned char byte1, unsigned char byte2) |
| Translates direct input menu codes to integer value. | |
| void | SetDefault (void) |
| Set default symbology prefix and suffix. | |
| void | process_menu_code (char *barcode) |
| Process menu code label. | |
| void | main_send (void) |
| Main send stored records handler. | |
| void | OnOseComInfo (int status, int errorsuccess, int progress, const char *info) |
| OseComm status. | |
| void | sys_barcodes (void) |
| System barcode config menu. | |
| void | sys_datetime (void) |
| System date/time handler. | |
| void | sys_standby (void) |
| System standby menu. | |
| void | sys_backlight (void) |
| System backlight menu. | |
| void | printsign (int x_start, int y, int signid) |
| Displays preset symbols at specified coordinates. | |
| void | printbar (int y, int type, int LeftRight) |
| Displays menu bar at speicified row. | |
| void | set_standby (void) |
| Sets autopower down according to menu cofiguration. | |
| void | set_barcodes (void) |
| Sets bar code enables according to menu configuration. | |
| void | display_mem (void) |
| System config/mem free memory display handler. | |
| void | disp_no_database (void) |
| Displays empty databse file message. | |
| void | display_scroll_data (db_record *db_rec, long curr, long max) |
| Display data record. | |
| void | fill_record_struct (db_record *db_rec, char *record) |
| Populate data record from character array. | |
| int | get_record (db_record *db_rec, long *rec_nr, long *max_rec) |
| Get specified data record from file. | |
| int | show_message (const char *msg, int icons) |
| Show a message with an icon max message size is 60 chars. | |
| void | printbattery (void) |
| Displays the battery icon. | |
| void | display_BT_error (int err) |
| Display bluetooth error status. | |
| void | set_time_and_date (void) |
| Sets the time and date from keypad inputs. | |
| void | display_change_quantity (db_record *db_rec) |
| Displays the change quantity screen. | |
| void | change_quantity (db_record *db_rec, long record_index) |
| Change quantity handler. | |
| int | check_input_quant (char *input_quant, int use_default, long def_value, long fnd_quantity, long *new_quantity) |
| Checks the quantity string input and returns the resulting quantity. | |
| long | string_quantity_to_long (char *quantity, int *illegal) |
| Converts the quantity string to a long value. | |
| long | bin_search (char *fname, char *record, char *sstring, int sstr_len, int start, int rec_size) |
| long | GetLastRecord (int rec_size) |
| Gets the record number of the last record stored. | |
| void | print_msg_icons (int x, int y, int icons) |
| Displays the selected icon. | |
| int | send_neto (void) |
| Send data records using neto handler. | |
| int | send_xmodem (void) |
| Send data records using xmodem handler. | |
| int | send_plain (void) |
| Send data records with no protocol handler. | |
| void | display_time_date_error (int err_code) |
| Display time/date error message. | |
| int | display_do_setting (void) |
| Displays save or cancel bar and waits for response. | |
| void | display_time_date (char *time_str, char *date_str) |
| Displays time and date. | |
| void | change_character (int x, int y, char *time_str, char *date_str) |
| Changes character to next greater value. | |
| void | store_time_date (char *time_str, char *date_str) |
| saves time and date. | |
| int | is_date_string_ok (char *date_str) |
| Checks date string. | |
| int | is_time_string_ok (char *time_str) |
| Checks time string. | |
| void | setstartpos (int *x, int *y) |
| Initializes x and y for time date editting. | |
| int | setcursorpos (int *x, int *y, int direction) |
| Sets the cursor position. | |
| void | remove_record (long record_no) |
| Deletes the specified data record from the file. | |
| void | update_quantity_rec_struct (db_record *db_rec, long quantity) |
| Updates the quantity, time and date stamp and GPS coordinates for the record. | |
| void | create_db_rec_struct (db_record *db_rec, char *barcode, long quantity) |
| void | insertion_sort (FILE *pFile, long items) |
| void | save_data (db_record *db_rec, long pos) |
| Saves the data record at the specified position. | |
| int | get_qty_no_keyboard (char *qty) |
| Quantity entry when no keypad available handler. | |
| void | setbaudrate (long baudrate) |
| Set comm port baud rate according to specified number. | |
| void | display_scan_quantity (db_record *db_rec, long total) |
| Display screen for barcode scanning when quantity is accumulated. | |
| void | display_scan_barcode (db_record *db_rec) |
| Display screen for barcode scanning when quantity is not being accumulated. | |
| void | memory_full_error (void) |
| Display low memory warning screen. | |
| void | gps_tag (void) |
| System GPS real-time time and coordinate tag config setting handler. | |
| void | LoadMenuSettings (menuSettings *menu) |
| Populate structure with current menu settings. | |
| int | IsEqualMenuSettings (menuSettings *menu) |
| Compare current menu settings against submitted structure. | |
| void | CompareMenuSettings (menuSettings *menu) |
| Menu settings changed handler. | |
Variables | |
| scannerType | scanner |
| const char | back_string [] = " (back)" |
| const char | jan13_string [] = "JAN 13" |
| const char | ean13_string [] = "EAN 13" |
| const char | upca_string [] = "UPC A" |
| const char | jan8_string [] = "JAN 8" |
| const char | ean8_string [] = "EAN 8" |
| const char | upce_string [] = "UPC E" |
| const char | instore13_string [] = "INSTORE 13" |
| const char | instore8_string [] = "INSTORE 8" |
| const char | code39_string [] = "CODE 39" |
| const char | codabar_string [] = "CODABAR" |
| const char | d2of5_string [] = "INDUST 2 OF 5" |
| const char | i2of5_string [] = "INTERL 2 OF 5" |
| const char | code93_string [] = "CODE 93" |
| const char | code128_string [] = "CODE 128" |
| const char | msi_string [] = "MSI PLESSEY" |
| const char | iata_string [] = "IATA" |
| const char | uk_string [] = "UK PLESSEY" |
| const char | telepen_string [] = "TELEPEN" |
| const char | m2of5_string [] = "MATRIX 2 OF 5" |
| const char | chinpost_string [] = "CHINESE POST" |
| const char | nw7_abc_string [] = "CODABAR ABC" |
| const char | nw7_cx_string [] = "CODABAR CX" |
| const char | scode_string [] = "SCODE" |
| const char | laetus_string [] = "LAETUS" |
| const char | c39_fa_string [] = "CD 39 FULL ASCII" |
| const char | c39_it_string [] = "ITALIAN PHARMA." |
| const char | unknown_string [] = "UNKNOWN CODE" |
| const char | all_addon_string [] = "All ADDONS" |
| const char | ean_string [] = "EAN" |
| const char | upc_string [] = "UPC" |
| const char | rss14_string [] = "RSS-14" |
| const char | rssL_string [] = "RSS-Limited" |
| const char | rssE_string [] = "RSS-Expanded" |
| const char | pdf417_string [] = "PDF417" |
| const char | updf417_string [] = "MicroPDF417" |
| const char | DataMatrix_string [] = "DataMatrix" |
| const char | Aztec_string [] = "Aztec" |
| const char | Aztec_Runes_string [] = "Aztec Runes" |
| const char | QR_Code_string [] = "QR Code" |
| const char | Micro_QR_Code_string [] = "Micro QR Code" |
| const char | Maxicode_string [] = "Maxicode" |
| const char | jan13_2_string [] = "JAN 13 + 2" |
| const char | ean13_2_string [] = "EAN 13 + 2" |
| const char | upca_2_string [] = "UPC A + 2" |
| const char | jan8_2_string [] = "JAN 8 + 2" |
| const char | ean8_2_string [] = "EAN 8 + 2" |
| const char | upce_2_string [] = "UPC E + 2" |
| const char | code128_2_string [] = "CODE 128 + 2" |
| const char | jan13_5_string [] = "JAN 13 + 5" |
| const char | ean13_5_string [] = "EAN 13 + 5" |
| const char | upca_5_string [] = "UPC A + 5" |
| const char | jan8_5_string [] = "JAN 8 + 5" |
| const char | ean8_5_string [] = "EAN 8 + 5" |
| const char | upce_5_string [] = "UPC E + 5" |
| const char | code128_5_string [] = "CODE 128 + 5" |
| const char | menu_string [] = "MENU CODE" |
| const fancyselmenus | barcodem_with2d [] |
| const fancyselmenus | barcodem [] |
| const char | day_gb_sunday [] = " Sunday " |
| const char | day_gb_monday [] = " Monday " |
| const char | day_gb_tuesday [] = " Tuesday " |
| const char | day_gb_wednesday [] = " Wednesday" |
| const char | day_gb_thursday [] = " Thursday " |
| const char | day_gb_friday [] = " Friday " |
| const char | day_gb_saturday [] = " Saturday " |
| const days | day_gb [] |
| const char | baud_115200 [] = "115200 Baud" |
| const char | baud_57600 [] = " 57600 Baud" |
| const char | baud_38400 [] = " 38400 Baud" |
| const char | baud_19200 [] = " 19200 Baud" |
| const char | baud_9600 [] = " 9600 Baud" |
| const char | baud_4800 [] = " 4800 Baud" |
| const char | baud_2400 [] = " 2400 Baud" |
| const fancyselmenus | baudm [] |
| const char | int_cradle [] = " Cradle" |
| const char | int_BT_Batch [] = "BT Batch Mode" |
| const char | int_BT_RealTime [] = " BT Real Time" |
| const char | int_USB [] = " USB Cable" |
| const fancyselmenus | interfacem [] |
| const char | qty_enter_only [] = " Enter QTY" |
| const char | qty_required [] = " Collect QTY" |
| const char | qty_not_required [] = " No QTY" |
| const fancyselmenus | qtym [] |
| const char | standby_5 [] = " 5 seconds" |
| const char | standby_10 [] = "10 seconds" |
| const char | standby_15 [] = "15 seconds" |
| const char | standby_30 [] = "30 seconds" |
| const char | standby_45 [] = "45 seconds" |
| const char | standby_60 [] = "60 seconds" |
| const char | standby_120 [] = "120 seconds" |
| const char | standby_180 [] = "180 seconds" |
| const fancyselmenus | standbym [] |
| const char | backlight_off [] = " OFF" |
| const char | backlight_on [] = " ON" |
| const char | backlight_auto [] = " AUTO" |
| const fancyselmenus | backlightm [] |
| const char | protocol_no [] = "No Protocol" |
| const char | protocol_neto [] = "NetO Protocol" |
| const char | protocol_xmodem [] = "XMODEM Protocol" |
| const char | protocol_osecomm [] = "OseComm Protocol" |
| const fancyselmenus | protocolm [] |
| const char | gps_brd_off [] = "Off" |
| const char | gps_brd_1m [] = "1 minute" |
| const char | gps_brd_5m [] = "5 minutes" |
| const char | gps_brd_15m [] = "15 minutes" |
| const char | gps_brd_30m [] = "30 minutes" |
| const fancyselmenus | gpsBrdCrmb [] |
| const char | gps_format_raw [] = "NMEA" |
| const char | gps_format_DD [] = "Degrees" |
| const char | gps_format_DMS [] = "Deg:Min:Sec" |
| const fancyselmenus | gpsFormats [] |
| const char | timeZoneLabel [24][16] |
| fancymenus | mainmenu [6] |
| int | menu_state |
| int | NOT_IN_MENU_MODE = 0 |
| int | IN_MENU_MODE = 1 |
| int | EXITING_MENU_MODE = 2 |
| int | menu_layers [5] |
| long | enabled_barcodes |
| long | baudrate_enabled |
| long | protocol_enabled |
| long | standby_enabled |
| long | backlight_enabled |
| long | interface_enabled |
| long | gps_bread_crumbs |
| long | gps_data_format |
| long | time_zone_offset |
| long | time_zone_change |
| char * | protocol_desc |
| char * | interface_desc |
| char | temp_mac [MAX_ADDRESS+1] |
| int | battery_type |
| int | batt_power |
| int | battery_msg_status |
| int | g_fSuspendGPS |
| int | g_fSuspendConversion |
| int | prefix |
| int | suffix |
| Param | param_tab [MAX_SYMBOLOGIES] |
| const char | time_mask [] = "29:59:59" |
| const char | date_mask [] = "39/19/2999/E" |
| menuSettings | currentMenu |
| int | g_bltPINCallback |
| char | g_currentSuffix = '\0' |
| splash_screen | splash_msg |
| char | _signs [] |
| int | g_GPS_breadcrumbTimer |
| int | g_GPS_Test_Mode |
| const char | g_pszGPSBreadCrumb [] |
| int | g_nBreadCrumbIndex |
| unsigned long | g_nGPSStandbyTimeout |
| char | g_Longitude [] |
| char | g_Latitude [] |
| const char | g_EmptyLatitude [] |
| const char | g_EmptyLongitude [] |
| int | g_gpsfix |
| int | g_BreadCrumbFlag |
| int | g_BreadCrumbTime |
| int | g_util_timer |
| int | g_gpsOptions |
| char | BTLocalName [] |
| int | BTState |
| int | BTStateChange |
| int | com_opened |
| char | g_termID [5] |
| char | app_version [] |
| char | messageStr [] |
Created on: Mar 7, 2012 Author: kogami
| #define MAX_AD 1023L |
| #define MAXBATTVOLT 300L |
| #define NULL 0 |
| void action_change_quantity | ( | db_record * | db_rec, |
| long | record_index ) |
Changes the quantity.
| void action_delete_record | ( | db_record * | db_rec, |
| long | record ) |
Delete the given record, or the current record if record = -1.
| void applySuffixSettings | ( | int | suffix | ) |
Updates the global variable containing the suffix based on the selection.
| void bat_test | ( | void | ) |
Battery voltage test.
| void baudrate_menu | ( | void | ) |
System communication baudrate menu.
| long bin_search | ( | char * | fname, |
| char * | record, | ||
| char * | sstring, | ||
| int | sstr_len, | ||
| int | start, | ||
| int | rec_size ) |
| void bluetooth_menu | ( | void | ) |
System bluetooth menu.
| int BT_address_setup | ( | void | ) |
Setup bluetooth MAC address handler.
| void change_character | ( | int | x, |
| int | y, | ||
| char * | time_str, | ||
| char * | date_str ) |
Changes character to next greater value.
| void change_quantity | ( | db_record * | db_rec, |
| long | record_index ) |
Change quantity handler.
| int check_connection | ( | void | ) |
Check if bluetooth is connected.
| int check_flash_BT_address | ( | void | ) |
Checks bluetooth MAC address as read from OS.
| int check_flash_PIN_code | ( | void | ) |
Checks bluetooth PIN code as read from OS.
| int check_input_quant | ( | char * | input_quant, |
| int | use_default, | ||
| long | def_value, | ||
| long | fnd_quantity, | ||
| long * | new_quantity ) |
Checks the quantity string input and returns the resulting quantity.
| int check_valid_BT_address | ( | void | ) |
Checks bluetooth MAC address against OS setting.
| void choose_suffix | ( | ) |
Choose the suffix for the Bluetooth transmission.
| int close_connection | ( | void | ) |
Closes bluetooth connection.
| void comm_menu | ( | void | ) |
System communication menu.
| void CompareMenuSettings | ( | menuSettings * | menu | ) |
Menu settings changed handler.
| void ConnectBluetooth | ( | void | ) |
System bluetooth connection handler.
| void create_db_rec_struct | ( | db_record * | db_rec, |
| char * | barcode, | ||
| long | quantity ) |
| void DefaultConfig | ( | void | ) |
System config/mem default conifguration handler.
| char direct_character_input | ( | unsigned char | byte1, |
| unsigned char | byte2 ) |
Translates direct input menu codes to integer value.
| void DisconnectBluetooth | ( | void | ) |
Systme bluetooth disconnect handler.
| int Discovery | ( | char * | address | ) |
BT_Discovery, does the discovery of other bluetooth devices, and allows the selection of discovered devices.
| void disp_no_database | ( | void | ) |
Displays empty databse file message.
| void display_BT_error | ( | int | err | ) |
Display bluetooth error status.
| void display_change_quantity | ( | db_record * | db_rec | ) |
Displays the change quantity screen.
| int display_do_setting | ( | void | ) |
Displays save or cancel bar and waits for response.
| void display_master_connection_screen | ( | void | ) |
Displays master bluetooth conenction screen.
| void display_mem | ( | void | ) |
System config/mem free memory display handler.
| void display_scan_barcode | ( | db_record * | db_rec | ) |
Display screen for barcode scanning when quantity is not being accumulated.
| void display_scan_quantity | ( | db_record * | db_rec, |
| long | total ) |
Display screen for barcode scanning when quantity is accumulated.
| void display_scroll_data | ( | db_record * | db_rec, |
| long | curr, | ||
| long | max ) |
Display data record.
| void display_slave_connection_screen | ( | void | ) |
Displays bluetooth slave connection screen.
| void display_time_date | ( | char * | time_str, |
| char * | date_str ) |
Displays time and date.
| void display_time_date_error | ( | int | err_code | ) |
Display time/date error message.
| void fill_record_struct | ( | db_record * | db_rec, |
| char * | record ) |
Populate data record from character array.
| long get_active_port | ( | void | ) |
Gets the active comm port number.
| void get_BT_interface | ( | void | ) |
System bluetooth data mode selection handler.
| void get_master_slave_mode | ( | void | ) |
System bluetooth master/slave mode selection handler.
| int get_qty_no_keyboard | ( | char * | qty | ) |
Quantity entry when no keypad available handler.
| int get_record | ( | db_record * | db_rec, |
| long * | rec_nr, | ||
| long * | max_rec ) |
Get specified data record from file.
| long GetLastRecord | ( | int | rec_size | ) |
Gets the record number of the last record stored.
| int getMACAddress | ( | int | MAC_MODE | ) |
System bluetooth get MAC address handler.
| void gps_brd_menu | ( | void | ) |
System GPS breadcrumb config menu.
| void gps_format_menu | ( | void | ) |
System GPS format menu.
| void gps_menu | ( | void | ) |
System GPS menu handler.
| void gps_tag | ( | void | ) |
System GPS real-time time and coordinate tag config setting handler.
| void gps_test | ( | void | ) |
System GPS test handler.
| void gps_time_zone_menu | ( | void | ) |
System GPS time zone config handler.
| int handle_quantity_input | ( | db_record * | db_rec, |
| long | fnd_quantity, | ||
| long * | new_quantity, | ||
| long | found_record ) |
Handle the quantity inout.
| int init_connection | ( | ) |
Initiates bluetooth connection.
| int init_master_connection | ( | ) |
Initiates bluetooth master connection.
| int init_slave_connection | ( | ) |
Initiates bluetooth slave connection.
| void InitMenu | ( | void | ) |
Initializes the main menu array.
| void InputMACAddress | ( | char * | address | ) |
System bluettoh MAC addres input handler.
| void InputPincode | ( | char * | pincode | ) |
System bluetooth PIN code input handler.
| void insertion_sort | ( | FILE * | pFile, |
| long | items ) |
| void interface_menu | ( | void | ) |
System communication interface menu.
| int is_date_string_ok | ( | char * | date_str | ) |
Checks date string.
| int is_time_string_ok | ( | char * | time_str | ) |
Checks time string.
| int IsEqualMenuSettings | ( | menuSettings * | menu | ) |
Compare current menu settings against submitted structure.
|
extern |
Selectable list menu with masking based on elements parameter.
| void LoadMenuSettings | ( | menuSettings * | menu | ) |
Populate structure with current menu settings.
| void main_delete | ( | void | ) |
Deletes stored file.
| void main_scan | ( | void | ) |
Scanning barcodes from the main menu item.
| void main_scroll | ( | void | ) |
Scrolls through stored records.
| void main_send | ( | void | ) |
Main send stored records handler.
| void main_version | ( | void | ) |
Main version display handler.
| void MainMenu | ( | void | ) |
Executes the main menu.
| void memory_full_error | ( | void | ) |
Display low memory warning screen.
| void OnOseComInfo | ( | int | status, |
| int | errorsuccess, | ||
| int | progress, | ||
| const char * | info ) |
OseComm status.
| void print_message_bar | ( | int | bartype | ) |
Prints the the bottom message bar according to the specified type.
| void print_msg_icons | ( | int | x, |
| int | y, | ||
| int | icons ) |
Displays the selected icon.
| void printbar | ( | int | y, |
| int | type, | ||
| int | LeftRight ) |
Displays menu bar at speicified row.
| void printbattery | ( | void | ) |
Displays the battery icon.
| void printsign | ( | int | x_start, |
| int | y, | ||
| int | signid ) |
Displays preset symbols at specified coordinates.
| void process_menu_code | ( | char * | barcode | ) |
Process menu code label.
| void process_realtime_data | ( | char * | barc | ) |
Process the real time data (Bluetooth).
| void protocol_menu | ( | void | ) |
System communication protocol menu.
| void PutBufferTest | ( | void | ) |
| void qty_menu | ( | void | ) |
System quantity options menu.
| void remove_record | ( | long | record_no | ) |
Deletes the specified data record from the file.
| void save_config | ( | void | ) |
System config/mem save configuration handler.
| void save_data | ( | db_record * | db_rec, |
| long | pos ) |
Saves the data record at the specified position.
| int scan_setup_bluetooth | ( | void | ) |
Handle the initialisation of the Bluetooth in real time.
| int send_barcode_real_time | ( | char * | barcode | ) |
Sends a barcode string over the active comm port using putcom().
| int send_neto | ( | void | ) |
Send data records using neto handler.
| int send_plain | ( | void | ) |
Send data records with no protocol handler.
| int send_xmodem | ( | void | ) |
Send data records using xmodem handler.
| void send_Z3 | ( | void | ) |
System config/mem send configuration handler.
| void set_barcodes | ( | void | ) |
Sets bar code enables according to menu configuration.
|
extern |
Sets font and cursor for input.
| void set_standby | ( | void | ) |
Sets autopower down according to menu cofiguration.
| void set_time_and_date | ( | void | ) |
Sets the time and date from keypad inputs.
| void setbaudrate | ( | long | baudrate | ) |
Set comm port baud rate according to specified number.
| void SetBluetoothMode | ( | ) |
System bluetoth set mode handler.
| int setcursorpos | ( | int * | x, |
| int * | y, | ||
| int | direction ) |
Sets the cursor position.
| void SetDefault | ( | void | ) |
Set default symbology prefix and suffix.
| void SetMACAddress | ( | void | ) |
System bluetooth set MAC address handler.
| void SetPINCode | ( | void | ) |
System bluetooth set PIN code handler.
| void setstartpos | ( | int * | x, |
| int * | y ) |
Initializes x and y for time date editting.
| int show_message | ( | const char * | msg, |
| int | icons ) |
Show a message with an icon max message size is 60 chars.
| void store_time_date | ( | char * | time_str, |
| char * | date_str ) |
saves time and date.
| long string_quantity_to_long | ( | char * | quantity, |
| int * | illegal ) |
Converts the quantity string to a long value.
| void sys_backlight | ( | void | ) |
System backlight menu.
| void sys_barcodes | ( | void | ) |
System barcode config menu.
| void sys_battery | ( | void | ) |
System battery status handler.
| void sys_bluetooth_reset | ( | void | ) |
System bluetooth reset handler.
| void sys_datetime | ( | void | ) |
System date/time handler.
| void sys_memory | ( | void | ) |
System config/memory menu.
| void sys_standby | ( | void | ) |
System standby menu.
| void system_menu | ( | void | ) |
Main system menu handler.
| void update_quantity_rec_struct | ( | db_record * | db_rec, |
| long | quantity ) |
Updates the quantity, time and date stamp and GPS coordinates for the record.
| void update_record | ( | long | rec_index, |
| db_record * | rec ) |
Edit a record and save it.
| void update_scan_screen | ( | int | real_time_mode, |
| char * | last_barc, | ||
| db_record * | rec, | ||
| int * | pos, | ||
| int * | offset ) |
Displays the appropriate screen (batch or real time).
|
extern |
Bluetooth stat machine.
| int verifyBTAddress | ( | char * | BTAddress | ) |
Verify bluetooth address.
|
extern |
| const char all_addon_string[] = "All ADDONS" |
|
extern |
| const char Aztec_Runes_string[] = "Aztec Runes" |
| const char Aztec_string[] = "Aztec" |
| const char back_string[] = " (back)" |
| const char backlight_auto[] = " AUTO" |
| long backlight_enabled |
| const char backlight_off[] = " OFF" |
| const char backlight_on[] = " ON" |
| const fancyselmenus backlightm[] |
| const fancyselmenus barcodem[] |
| const fancyselmenus barcodem_with2d[] |
| int batt_power |
| int battery_msg_status |
| int battery_type |
| const char baud_115200[] = "115200 Baud" |
| const char baud_19200[] = " 19200 Baud" |
| const char baud_2400[] = " 2400 Baud" |
| const char baud_38400[] = " 38400 Baud" |
| const char baud_4800[] = " 4800 Baud" |
| const char baud_57600[] = " 57600 Baud" |
| const char baud_9600[] = " 9600 Baud" |
| const fancyselmenus baudm[] |
| long baudrate_enabled |
|
extern |
|
extern |
|
extern |
| const char c39_fa_string[] = "CD 39 FULL ASCII" |
| const char c39_it_string[] = "ITALIAN PHARMA." |
| const char chinpost_string[] = "CHINESE POST" |
| const char codabar_string[] = "CODABAR" |
| const char code128_2_string[] = "CODE 128 + 2" |
| const char code128_5_string[] = "CODE 128 + 5" |
| const char code128_string[] = "CODE 128" |
| const char code39_string[] = "CODE 39" |
| const char code93_string[] = "CODE 93" |
|
extern |
| menuSettings currentMenu |
| const char d2of5_string[] = "INDUST 2 OF 5" |
| const char DataMatrix_string[] = "DataMatrix" |
| const char date_mask[] = "39/19/2999/E" |
| const days day_gb[] |
| const char day_gb_friday[] = " Friday " |
| const char day_gb_monday[] = " Monday " |
| const char day_gb_saturday[] = " Saturday " |
| const char day_gb_sunday[] = " Sunday " |
| const char day_gb_thursday[] = " Thursday " |
| const char day_gb_tuesday[] = " Tuesday " |
| const char day_gb_wednesday[] = " Wednesday" |
| const char ean13_2_string[] = "EAN 13 + 2" |
| const char ean13_5_string[] = "EAN 13 + 5" |
| const char ean13_string[] = "EAN 13" |
| const char ean8_2_string[] = "EAN 8 + 2" |
| const char ean8_5_string[] = "EAN 8 + 5" |
| const char ean8_string[] = "EAN 8" |
| const char ean_string[] = "EAN" |
| long enabled_barcodes |
| int EXITING_MENU_MODE = 2 |
| int g_bltPINCallback |
|
extern |
|
extern |
| char g_currentSuffix = '\0' |
|
extern |
|
extern |
| int g_fSuspendConversion |
| int g_fSuspendGPS |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
| const char gps_brd_15m[] = "15 minutes" |
| const char gps_brd_1m[] = "1 minute" |
| const char gps_brd_30m[] = "30 minutes" |
| const char gps_brd_5m[] = "5 minutes" |
| const char gps_brd_off[] = "Off" |
| long gps_bread_crumbs |
| long gps_data_format |
| const char gps_format_DD[] = "Degrees" |
| const char gps_format_DMS[] = "Deg:Min:Sec" |
| const char gps_format_raw[] = "NMEA" |
| const fancyselmenus gpsBrdCrmb[] |
| const fancyselmenus gpsFormats[] |
| const char i2of5_string[] = "INTERL 2 OF 5" |
| const char iata_string[] = "IATA" |
| int IN_MENU_MODE = 1 |
| const char instore13_string[] = "INSTORE 13" |
| const char instore8_string[] = "INSTORE 8" |
| const char int_BT_Batch[] = "BT Batch Mode" |
| const char int_BT_RealTime[] = " BT Real Time" |
| const char int_cradle[] = " Cradle" |
| const char int_USB[] = " USB Cable" |
| char* interface_desc |
| long interface_enabled |
| const fancyselmenus interfacem[] |
| const char jan13_2_string[] = "JAN 13 + 2" |
| const char jan13_5_string[] = "JAN 13 + 5" |
| const char jan13_string[] = "JAN 13" |
| const char jan8_2_string[] = "JAN 8 + 2" |
| const char jan8_5_string[] = "JAN 8 + 5" |
| const char jan8_string[] = "JAN 8" |
| const char laetus_string[] = "LAETUS" |
| const char m2of5_string[] = "MATRIX 2 OF 5" |
| fancymenus mainmenu[6] |
| const char Maxicode_string[] = "Maxicode" |
| int menu_layers[5] |
| int menu_state |
| const char menu_string[] = "MENU CODE" |
| char messageStr[] |
| const char Micro_QR_Code_string[] = "Micro QR Code" |
| const char msi_string[] = "MSI PLESSEY" |
| int NOT_IN_MENU_MODE = 0 |
| const char nw7_abc_string[] = "CODABAR ABC" |
| const char nw7_cx_string[] = "CODABAR CX" |
| Param param_tab[MAX_SYMBOLOGIES] |
| const char pdf417_string[] = "PDF417" |
| int prefix |
| char* protocol_desc |
| long protocol_enabled |
| const char protocol_neto[] = "NetO Protocol" |
| const char protocol_no[] = "No Protocol" |
| const char protocol_osecomm[] = "OseComm Protocol" |
| const char protocol_xmodem[] = "XMODEM Protocol" |
| const fancyselmenus protocolm[] |
| const char QR_Code_string[] = "QR Code" |
| const char qty_enter_only[] = " Enter QTY" |
| const char qty_not_required[] = " No QTY" |
| const char qty_required[] = " Collect QTY" |
| const fancyselmenus qtym[] |
| const char rss14_string[] = "RSS-14" |
| const char rssE_string[] = "RSS-Expanded" |
| const char rssL_string[] = "RSS-Limited" |
|
extern |
| const char scode_string[] = "SCODE" |
|
extern |
| const char standby_10[] = "10 seconds" |
| const char standby_120[] = "120 seconds" |
| const char standby_15[] = "15 seconds" |
| const char standby_180[] = "180 seconds" |
| const char standby_30[] = "30 seconds" |
| const char standby_45[] = "45 seconds" |
| const char standby_5[] = " 5 seconds" |
| const char standby_60[] = "60 seconds" |
| long standby_enabled |
| const fancyselmenus standbym[] |
| int suffix |
| const char telepen_string[] = "TELEPEN" |
| char temp_mac[MAX_ADDRESS+1] |
| const char time_mask[] = "29:59:59" |
| long time_zone_change |
| long time_zone_offset |
| const char timeZoneLabel[24][16] |
| const char uk_string[] = "UK PLESSEY" |
| const char unknown_string[] = "UNKNOWN CODE" |
| const char upc_string[] = "UPC" |
| const char upca_2_string[] = "UPC A + 2" |
| const char upca_5_string[] = "UPC A + 5" |
| const char upca_string[] = "UPC A" |
| const char upce_2_string[] = "UPC E + 2" |
| const char upce_5_string[] = "UPC E + 5" |
| const char upce_string[] = "UPC E" |
| const char updf417_string[] = "MicroPDF417" |