Part of stoqdrivers.printers.bematech.MP25 View In Hierarchy
Known subclasses: stoqdrivers.printers.bematech.MP20.MP20, stoqdrivers.printers.bematech.MP2100.MP2100
Method | __init__ | Undocumented |
Method | _reset | Undocumented |
Method | _create_packet | Create a 'pre-package' (command + params, basically) and involves |
Method | _read_reply | Undocumented |
Method | _check_error | Undocumented |
Method | _send_command | Undocumented |
Method | _read_register | Undocumented |
Method | _get_coupon_subtotal | Undocumented |
Method | _get_last_item_id | Undocumented |
Method | _get_coupon_number | Undocumented |
Method | get_status | Undocumented |
Method | _add_voucher | Undocumented |
Method | _configure_payment_methods | Undocumented |
Method | summarize | Prints a summary of all sales of the day |
Method | close_till | Close the till for the day, no other actions can be done after this |
Method | till_add_cash | Undocumented |
Method | till_remove_cash | Undocumented |
Method | till_read_memory | Undocumented |
Method | _till_read_memory_to_serial | Undocumented |
Method | till_read_memory_by_reductions | Undocumented |
Method | coupon_identify_customer | Undocumented |
Method | coupon_is_customer_identified | Undocumented |
Method | coupon_open | This needs to be called before anything else |
Method | coupon_cancel | Can only be called when a coupon is opened. It needs to be possible |
Method | cancel_last_coupon | Cancel the last non fiscal coupon or the last sale. |
Method | coupon_close | This can only be called when the coupon is open, has items added, |
Method | coupon_add_item | Undocumented |
Method | coupon_cancel_item | Cancel an item added to coupon; if no item id is specified, |
Method | coupon_add_payment | Undocumented |
Method | coupon_totalize | Undocumented |
Method | get_payment_receipt_identifier | Undocumented |
Method | _get_payment_description | Undocumented |
Method | payment_receipt_open | Undocumented |
Method | payment_receipt_print | Undocumented |
Method | payment_receipt_close | Undocumented |
Method | payment_receipt_print_duplicate | Undocumented |
Method | get_capabilities | Undocumented |
Method | get_constants | Undocumented |
Method | query_status | Undocumented |
Method | status_reply_complete | Undocumented |
Method | get_serial | Undocumented |
Method | get_ccf | Undocumented |
Method | get_coo | Undocumented |
Method | get_gnf | Undocumented |
Method | get_crz | Undocumented |
Method | get_tax_constants | Undocumented |
Method | get_payment_constants | Undocumented |
Method | get_sintegra | Undocumented |
Method | get_firmware_version | Return the firmware version |
Method | get_user_registration_info | Undocumented |
Inherited from SerialBase:
Method | set_port | Undocumented |
Method | get_port | Undocumented |
Method | fileno | Undocumented |
Method | writeline | Undocumented |
Method | write | Undocumented |
Method | read | Undocumented |
Method | readline | Undocumented |
1 2 n 2
+-----+------+-----------------+----+ | STX | NB | 0x1C + command | CS | +-----+------+-----------------+----+
Where:
STX: 'Transmission Start' indicator byte NB: 2 bytes, big endian length of command + CS (2 bytes) CS: 2 bytes, big endian checksum for command